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

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

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

package org.tikv.kvproto;

public final class Pdpb {
  private Pdpb() {}
  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 pdpb.ErrorType}
   */
  public enum ErrorType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * OK = 0;
     */
    OK(0),
    /**
     * UNKNOWN = 1;
     */
    UNKNOWN(1),
    /**
     * NOT_BOOTSTRAPPED = 2;
     */
    NOT_BOOTSTRAPPED(2),
    /**
     * STORE_TOMBSTONE = 3;
     */
    STORE_TOMBSTONE(3),
    /**
     * ALREADY_BOOTSTRAPPED = 4;
     */
    ALREADY_BOOTSTRAPPED(4),
    /**
     * INCOMPATIBLE_VERSION = 5;
     */
    INCOMPATIBLE_VERSION(5),
    /**
     * REGION_NOT_FOUND = 6;
     */
    REGION_NOT_FOUND(6),
    UNRECOGNIZED(-1),
    ;

    /**
     * OK = 0;
     */
    public static final int OK_VALUE = 0;
    /**
     * UNKNOWN = 1;
     */
    public static final int UNKNOWN_VALUE = 1;
    /**
     * NOT_BOOTSTRAPPED = 2;
     */
    public static final int NOT_BOOTSTRAPPED_VALUE = 2;
    /**
     * STORE_TOMBSTONE = 3;
     */
    public static final int STORE_TOMBSTONE_VALUE = 3;
    /**
     * ALREADY_BOOTSTRAPPED = 4;
     */
    public static final int ALREADY_BOOTSTRAPPED_VALUE = 4;
    /**
     * INCOMPATIBLE_VERSION = 5;
     */
    public static final int INCOMPATIBLE_VERSION_VALUE = 5;
    /**
     * REGION_NOT_FOUND = 6;
     */
    public static final int REGION_NOT_FOUND_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 ErrorType valueOf(int value) {
      return forNumber(value);
    }

    public static ErrorType forNumber(int value) {
      switch (value) {
        case 0: return OK;
        case 1: return UNKNOWN;
        case 2: return NOT_BOOTSTRAPPED;
        case 3: return STORE_TOMBSTONE;
        case 4: return ALREADY_BOOTSTRAPPED;
        case 5: return INCOMPATIBLE_VERSION;
        case 6: return REGION_NOT_FOUND;
        default: return null;
      }
    }

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

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

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

    // @@protoc_insertion_point(enum_scope:pdpb.ErrorType)
  }

  /**
   * Protobuf enum {@code pdpb.CheckPolicy}
   */
  public enum CheckPolicy
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * SCAN = 0;
     */
    SCAN(0),
    /**
     * APPROXIMATE = 1;
     */
    APPROXIMATE(1),
    /**
     * USEKEY = 2;
     */
    USEKEY(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * SCAN = 0;
     */
    public static final int SCAN_VALUE = 0;
    /**
     * APPROXIMATE = 1;
     */
    public static final int APPROXIMATE_VALUE = 1;
    /**
     * USEKEY = 2;
     */
    public static final int USEKEY_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 CheckPolicy valueOf(int value) {
      return forNumber(value);
    }

    public static CheckPolicy forNumber(int value) {
      switch (value) {
        case 0: return SCAN;
        case 1: return APPROXIMATE;
        case 2: return USEKEY;
        default: return null;
      }
    }

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

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

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

    // @@protoc_insertion_point(enum_scope:pdpb.CheckPolicy)
  }

  /**
   * Protobuf enum {@code pdpb.OperatorStatus}
   */
  public enum OperatorStatus
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * SUCCESS = 0;
     */
    SUCCESS(0),
    /**
     * TIMEOUT = 1;
     */
    TIMEOUT(1),
    /**
     * CANCEL = 2;
     */
    CANCEL(2),
    /**
     * REPLACE = 3;
     */
    REPLACE(3),
    /**
     * RUNNING = 4;
     */
    RUNNING(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * SUCCESS = 0;
     */
    public static final int SUCCESS_VALUE = 0;
    /**
     * TIMEOUT = 1;
     */
    public static final int TIMEOUT_VALUE = 1;
    /**
     * CANCEL = 2;
     */
    public static final int CANCEL_VALUE = 2;
    /**
     * REPLACE = 3;
     */
    public static final int REPLACE_VALUE = 3;
    /**
     * RUNNING = 4;
     */
    public static final int RUNNING_VALUE = 4;


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

    public static OperatorStatus forNumber(int value) {
      switch (value) {
        case 0: return SUCCESS;
        case 1: return TIMEOUT;
        case 2: return CANCEL;
        case 3: return REPLACE;
        case 4: return RUNNING;
        default: return null;
      }
    }

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

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

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

    // @@protoc_insertion_point(enum_scope:pdpb.OperatorStatus)
  }

  public interface RequestHeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pdpb.RequestHeader)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * cluster_id is the ID of the cluster which be sent to.
     * 
* * uint64 cluster_id = 1; */ long getClusterId(); /** *
     * sender_id is the ID of the sender server, also member ID or etcd ID.
     * 
* * uint64 sender_id = 2; */ long getSenderId(); } /** * Protobuf type {@code pdpb.RequestHeader} */ public static final class RequestHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.RequestHeader) RequestHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use RequestHeader.newBuilder() to construct. private RequestHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestHeader() { clusterId_ = 0L; senderId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { clusterId_ = input.readUInt64(); break; } case 16: { senderId_ = 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.Pdpb.internal_static_pdpb_RequestHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RequestHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RequestHeader.class, org.tikv.kvproto.Pdpb.RequestHeader.Builder.class); } public static final int CLUSTER_ID_FIELD_NUMBER = 1; private long clusterId_; /** *
     * cluster_id is the ID of the cluster which be sent to.
     * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } public static final int SENDER_ID_FIELD_NUMBER = 2; private long senderId_; /** *
     * sender_id is the ID of the sender server, also member ID or etcd ID.
     * 
* * uint64 sender_id = 2; */ public long getSenderId() { return senderId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (clusterId_ != 0L) { output.writeUInt64(1, clusterId_); } if (senderId_ != 0L) { output.writeUInt64(2, senderId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, clusterId_); } if (senderId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, senderId_); } 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.Pdpb.RequestHeader)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.RequestHeader other = (org.tikv.kvproto.Pdpb.RequestHeader) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); result = result && (getSenderId() == other.getSenderId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClusterId()); hash = (37 * hash) + SENDER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSenderId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.RequestHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RequestHeader 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.Pdpb.RequestHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RequestHeader 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.Pdpb.RequestHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RequestHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.RequestHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RequestHeader 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.Pdpb.RequestHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RequestHeader 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.Pdpb.RequestHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RequestHeader 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.Pdpb.RequestHeader 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 pdpb.RequestHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.RequestHeader) org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RequestHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RequestHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RequestHeader.class, org.tikv.kvproto.Pdpb.RequestHeader.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.RequestHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clusterId_ = 0L; senderId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RequestHeader_descriptor; } public org.tikv.kvproto.Pdpb.RequestHeader getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.RequestHeader build() { org.tikv.kvproto.Pdpb.RequestHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.RequestHeader buildPartial() { org.tikv.kvproto.Pdpb.RequestHeader result = new org.tikv.kvproto.Pdpb.RequestHeader(this); result.clusterId_ = clusterId_; result.senderId_ = senderId_; 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.Pdpb.RequestHeader) { return mergeFrom((org.tikv.kvproto.Pdpb.RequestHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.RequestHeader other) { if (other == org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } if (other.getSenderId() != 0L) { setSenderId(other.getSenderId()); } 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.Pdpb.RequestHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.RequestHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long clusterId_ ; /** *
       * cluster_id is the ID of the cluster which be sent to.
       * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } /** *
       * cluster_id is the ID of the cluster which be sent to.
       * 
* * uint64 cluster_id = 1; */ public Builder setClusterId(long value) { clusterId_ = value; onChanged(); return this; } /** *
       * cluster_id is the ID of the cluster which be sent to.
       * 
* * uint64 cluster_id = 1; */ public Builder clearClusterId() { clusterId_ = 0L; onChanged(); return this; } private long senderId_ ; /** *
       * sender_id is the ID of the sender server, also member ID or etcd ID.
       * 
* * uint64 sender_id = 2; */ public long getSenderId() { return senderId_; } /** *
       * sender_id is the ID of the sender server, also member ID or etcd ID.
       * 
* * uint64 sender_id = 2; */ public Builder setSenderId(long value) { senderId_ = value; onChanged(); return this; } /** *
       * sender_id is the ID of the sender server, also member ID or etcd ID.
       * 
* * uint64 sender_id = 2; */ public Builder clearSenderId() { senderId_ = 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:pdpb.RequestHeader) } // @@protoc_insertion_point(class_scope:pdpb.RequestHeader) private static final org.tikv.kvproto.Pdpb.RequestHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.RequestHeader(); } public static org.tikv.kvproto.Pdpb.RequestHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RequestHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RequestHeader(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.Pdpb.RequestHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ResponseHeader) com.google.protobuf.MessageOrBuilder { /** *
     * cluster_id is the ID of the cluster which sent the response.
     * 
* * uint64 cluster_id = 1; */ long getClusterId(); /** * .pdpb.Error error = 2; */ boolean hasError(); /** * .pdpb.Error error = 2; */ org.tikv.kvproto.Pdpb.Error getError(); /** * .pdpb.Error error = 2; */ org.tikv.kvproto.Pdpb.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code pdpb.ResponseHeader} */ public static final class ResponseHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ResponseHeader) ResponseHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseHeader.newBuilder() to construct. private ResponseHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseHeader() { clusterId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResponseHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { clusterId_ = input.readUInt64(); break; } case 18: { org.tikv.kvproto.Pdpb.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Pdpb.Error.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.Pdpb.internal_static_pdpb_ResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ResponseHeader.class, org.tikv.kvproto.Pdpb.ResponseHeader.Builder.class); } public static final int CLUSTER_ID_FIELD_NUMBER = 1; private long clusterId_; /** *
     * cluster_id is the ID of the cluster which sent the response.
     * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.Error error_; /** * .pdpb.Error error = 2; */ public boolean hasError() { return error_ != null; } /** * .pdpb.Error error = 2; */ public org.tikv.kvproto.Pdpb.Error getError() { return error_ == null ? org.tikv.kvproto.Pdpb.Error.getDefaultInstance() : error_; } /** * .pdpb.Error error = 2; */ public org.tikv.kvproto.Pdpb.ErrorOrBuilder 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 (clusterId_ != 0L) { output.writeUInt64(1, clusterId_); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, clusterId_); } if (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.Pdpb.ResponseHeader)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ResponseHeader other = (org.tikv.kvproto.Pdpb.ResponseHeader) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); 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(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClusterId()); 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.Pdpb.ResponseHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ResponseHeader 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.Pdpb.ResponseHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ResponseHeader 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.Pdpb.ResponseHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ResponseHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ResponseHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ResponseHeader 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.Pdpb.ResponseHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ResponseHeader 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.Pdpb.ResponseHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ResponseHeader 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.Pdpb.ResponseHeader 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 pdpb.ResponseHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ResponseHeader) org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ResponseHeader.class, org.tikv.kvproto.Pdpb.ResponseHeader.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clusterId_ = 0L; if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ResponseHeader_descriptor; } public org.tikv.kvproto.Pdpb.ResponseHeader getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ResponseHeader build() { org.tikv.kvproto.Pdpb.ResponseHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ResponseHeader buildPartial() { org.tikv.kvproto.Pdpb.ResponseHeader result = new org.tikv.kvproto.Pdpb.ResponseHeader(this); result.clusterId_ = clusterId_; 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.Pdpb.ResponseHeader) { return mergeFrom((org.tikv.kvproto.Pdpb.ResponseHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ResponseHeader other) { if (other == org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } 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.Pdpb.ResponseHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ResponseHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long clusterId_ ; /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public long getClusterId() { return clusterId_; } /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public Builder setClusterId(long value) { clusterId_ = value; onChanged(); return this; } /** *
       * cluster_id is the ID of the cluster which sent the response.
       * 
* * uint64 cluster_id = 1; */ public Builder clearClusterId() { clusterId_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Pdpb.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Error, org.tikv.kvproto.Pdpb.Error.Builder, org.tikv.kvproto.Pdpb.ErrorOrBuilder> errorBuilder_; /** * .pdpb.Error error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .pdpb.Error error = 2; */ public org.tikv.kvproto.Pdpb.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Pdpb.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .pdpb.Error error = 2; */ public Builder setError(org.tikv.kvproto.Pdpb.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .pdpb.Error error = 2; */ public Builder setError( org.tikv.kvproto.Pdpb.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Error error = 2; */ public Builder mergeError(org.tikv.kvproto.Pdpb.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Pdpb.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Error error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .pdpb.Error error = 2; */ public org.tikv.kvproto.Pdpb.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .pdpb.Error error = 2; */ public org.tikv.kvproto.Pdpb.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Pdpb.Error.getDefaultInstance() : error_; } } /** * .pdpb.Error error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Error, org.tikv.kvproto.Pdpb.Error.Builder, org.tikv.kvproto.Pdpb.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Error, org.tikv.kvproto.Pdpb.Error.Builder, org.tikv.kvproto.Pdpb.ErrorOrBuilder>( 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:pdpb.ResponseHeader) } // @@protoc_insertion_point(class_scope:pdpb.ResponseHeader) private static final org.tikv.kvproto.Pdpb.ResponseHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ResponseHeader(); } public static org.tikv.kvproto.Pdpb.ResponseHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResponseHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResponseHeader(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.Pdpb.ResponseHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.Error) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ErrorType type = 1; */ int getTypeValue(); /** * .pdpb.ErrorType type = 1; */ org.tikv.kvproto.Pdpb.ErrorType getType(); /** * string message = 2; */ java.lang.String getMessage(); /** * string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code pdpb.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { type_ = 0; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = 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.Pdpb.internal_static_pdpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Error.class, org.tikv.kvproto.Pdpb.Error.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .pdpb.ErrorType type = 1; */ public int getTypeValue() { return type_; } /** * .pdpb.ErrorType type = 1; */ public org.tikv.kvproto.Pdpb.ErrorType getType() { org.tikv.kvproto.Pdpb.ErrorType result = org.tikv.kvproto.Pdpb.ErrorType.valueOf(type_); return result == null ? org.tikv.kvproto.Pdpb.ErrorType.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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.Pdpb.ErrorType.OK.getNumber()) { output.writeEnum(1, type_); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tikv.kvproto.Pdpb.ErrorType.OK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.Pdpb.Error)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.Error other = (org.tikv.kvproto.Pdpb.Error) obj; boolean result = true; result = result && type_ == other.type_; result = result && getMessage() .equals(other.getMessage()); 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Error parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Pdpb.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code pdpb.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.Error) org.tikv.kvproto.Pdpb.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Error.class, org.tikv.kvproto.Pdpb.Error.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0; message_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Error_descriptor; } public org.tikv.kvproto.Pdpb.Error getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.Error.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.Error build() { org.tikv.kvproto.Pdpb.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.Error buildPartial() { org.tikv.kvproto.Pdpb.Error result = new org.tikv.kvproto.Pdpb.Error(this); result.type_ = type_; result.message_ = message_; 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.Pdpb.Error) { return mergeFrom((org.tikv.kvproto.Pdpb.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.Error other) { if (other == org.tikv.kvproto.Pdpb.Error.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; 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.Pdpb.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .pdpb.ErrorType type = 1; */ public int getTypeValue() { return type_; } /** * .pdpb.ErrorType type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .pdpb.ErrorType type = 1; */ public org.tikv.kvproto.Pdpb.ErrorType getType() { org.tikv.kvproto.Pdpb.ErrorType result = org.tikv.kvproto.Pdpb.ErrorType.valueOf(type_); return result == null ? org.tikv.kvproto.Pdpb.ErrorType.UNRECOGNIZED : result; } /** * .pdpb.ErrorType type = 1; */ public Builder setType(org.tikv.kvproto.Pdpb.ErrorType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .pdpb.ErrorType type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 2; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 2; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 2; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 2; */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 2; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = 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:pdpb.Error) } // @@protoc_insertion_point(class_scope:pdpb.Error) private static final org.tikv.kvproto.Pdpb.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.Error(); } public static org.tikv.kvproto.Pdpb.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Pdpb.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TsoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.TsoRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint32 count = 2; */ int getCount(); /** * string dc_location = 3; */ java.lang.String getDcLocation(); /** * string dc_location = 3; */ com.google.protobuf.ByteString getDcLocationBytes(); } /** * Protobuf type {@code pdpb.TsoRequest} */ public static final class TsoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.TsoRequest) TsoRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TsoRequest.newBuilder() to construct. private TsoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TsoRequest() { count_ = 0; dcLocation_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TsoRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { count_ = input.readUInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); dcLocation_ = 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.Pdpb.internal_static_pdpb_TsoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TsoRequest.class, org.tikv.kvproto.Pdpb.TsoRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int COUNT_FIELD_NUMBER = 2; private int count_; /** * uint32 count = 2; */ public int getCount() { return count_; } public static final int DC_LOCATION_FIELD_NUMBER = 3; private volatile java.lang.Object dcLocation_; /** * string dc_location = 3; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; 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(); dcLocation_ = s; return s; } } /** * string dc_location = 3; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (count_ != 0) { output.writeUInt32(2, count_); } if (!getDcLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dcLocation_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, count_); } if (!getDcLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dcLocation_); } 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.Pdpb.TsoRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.TsoRequest other = (org.tikv.kvproto.Pdpb.TsoRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getCount() == other.getCount()); result = result && getDcLocation() .equals(other.getDcLocation()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); hash = (37 * hash) + DC_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDcLocation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.TsoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoRequest 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.Pdpb.TsoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoRequest 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.Pdpb.TsoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.TsoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoRequest 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.Pdpb.TsoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoRequest 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.Pdpb.TsoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoRequest 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.Pdpb.TsoRequest 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 pdpb.TsoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.TsoRequest) org.tikv.kvproto.Pdpb.TsoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TsoRequest.class, org.tikv.kvproto.Pdpb.TsoRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.TsoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } count_ = 0; dcLocation_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoRequest_descriptor; } public org.tikv.kvproto.Pdpb.TsoRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.TsoRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.TsoRequest build() { org.tikv.kvproto.Pdpb.TsoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.TsoRequest buildPartial() { org.tikv.kvproto.Pdpb.TsoRequest result = new org.tikv.kvproto.Pdpb.TsoRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.count_ = count_; result.dcLocation_ = dcLocation_; 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.Pdpb.TsoRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.TsoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.TsoRequest other) { if (other == org.tikv.kvproto.Pdpb.TsoRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getCount() != 0) { setCount(other.getCount()); } if (!other.getDcLocation().isEmpty()) { dcLocation_ = other.dcLocation_; 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.Pdpb.TsoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.TsoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int count_ ; /** * uint32 count = 2; */ public int getCount() { return count_; } /** * uint32 count = 2; */ public Builder setCount(int value) { count_ = value; onChanged(); return this; } /** * uint32 count = 2; */ public Builder clearCount() { count_ = 0; onChanged(); return this; } private java.lang.Object dcLocation_ = ""; /** * string dc_location = 3; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dcLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dc_location = 3; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string dc_location = 3; */ public Builder setDcLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dcLocation_ = value; onChanged(); return this; } /** * string dc_location = 3; */ public Builder clearDcLocation() { dcLocation_ = getDefaultInstance().getDcLocation(); onChanged(); return this; } /** * string dc_location = 3; */ public Builder setDcLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dcLocation_ = 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:pdpb.TsoRequest) } // @@protoc_insertion_point(class_scope:pdpb.TsoRequest) private static final org.tikv.kvproto.Pdpb.TsoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.TsoRequest(); } public static org.tikv.kvproto.Pdpb.TsoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TsoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TsoRequest(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.Pdpb.TsoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimestampOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.Timestamp) com.google.protobuf.MessageOrBuilder { /** * int64 physical = 1; */ long getPhysical(); /** * int64 logical = 2; */ long getLogical(); /** *
     * Number of suffix bits used for global distinction,
     * PD client will use this to compute a TSO's logical part.
     * 
* * uint32 suffix_bits = 3; */ int getSuffixBits(); } /** * Protobuf type {@code pdpb.Timestamp} */ public static final class Timestamp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.Timestamp) TimestampOrBuilder { private static final long serialVersionUID = 0L; // Use Timestamp.newBuilder() to construct. private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Timestamp() { physical_ = 0L; logical_ = 0L; suffixBits_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Timestamp( 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: { physical_ = input.readInt64(); break; } case 16: { logical_ = input.readInt64(); break; } case 24: { suffixBits_ = 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.Pdpb.internal_static_pdpb_Timestamp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Timestamp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Timestamp.class, org.tikv.kvproto.Pdpb.Timestamp.Builder.class); } public static final int PHYSICAL_FIELD_NUMBER = 1; private long physical_; /** * int64 physical = 1; */ public long getPhysical() { return physical_; } public static final int LOGICAL_FIELD_NUMBER = 2; private long logical_; /** * int64 logical = 2; */ public long getLogical() { return logical_; } public static final int SUFFIX_BITS_FIELD_NUMBER = 3; private int suffixBits_; /** *
     * Number of suffix bits used for global distinction,
     * PD client will use this to compute a TSO's logical part.
     * 
* * uint32 suffix_bits = 3; */ public int getSuffixBits() { return suffixBits_; } 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 (physical_ != 0L) { output.writeInt64(1, physical_); } if (logical_ != 0L) { output.writeInt64(2, logical_); } if (suffixBits_ != 0) { output.writeUInt32(3, suffixBits_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (physical_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, physical_); } if (logical_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, logical_); } if (suffixBits_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, suffixBits_); } 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.Pdpb.Timestamp)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.Timestamp other = (org.tikv.kvproto.Pdpb.Timestamp) obj; boolean result = true; result = result && (getPhysical() == other.getPhysical()); result = result && (getLogical() == other.getLogical()); result = result && (getSuffixBits() == other.getSuffixBits()); 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) + PHYSICAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPhysical()); hash = (37 * hash) + LOGICAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLogical()); hash = (37 * hash) + SUFFIX_BITS_FIELD_NUMBER; hash = (53 * hash) + getSuffixBits(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.Timestamp parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Timestamp 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.Pdpb.Timestamp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Timestamp 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.Pdpb.Timestamp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Timestamp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Timestamp parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Timestamp 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.Pdpb.Timestamp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Timestamp 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.Pdpb.Timestamp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Timestamp 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.Pdpb.Timestamp 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 pdpb.Timestamp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.Timestamp) org.tikv.kvproto.Pdpb.TimestampOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Timestamp_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Timestamp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Timestamp.class, org.tikv.kvproto.Pdpb.Timestamp.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.Timestamp.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(); physical_ = 0L; logical_ = 0L; suffixBits_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Timestamp_descriptor; } public org.tikv.kvproto.Pdpb.Timestamp getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.Timestamp build() { org.tikv.kvproto.Pdpb.Timestamp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.Timestamp buildPartial() { org.tikv.kvproto.Pdpb.Timestamp result = new org.tikv.kvproto.Pdpb.Timestamp(this); result.physical_ = physical_; result.logical_ = logical_; result.suffixBits_ = suffixBits_; 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.Pdpb.Timestamp) { return mergeFrom((org.tikv.kvproto.Pdpb.Timestamp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.Timestamp other) { if (other == org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance()) return this; if (other.getPhysical() != 0L) { setPhysical(other.getPhysical()); } if (other.getLogical() != 0L) { setLogical(other.getLogical()); } if (other.getSuffixBits() != 0) { setSuffixBits(other.getSuffixBits()); } 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.Pdpb.Timestamp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.Timestamp) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long physical_ ; /** * int64 physical = 1; */ public long getPhysical() { return physical_; } /** * int64 physical = 1; */ public Builder setPhysical(long value) { physical_ = value; onChanged(); return this; } /** * int64 physical = 1; */ public Builder clearPhysical() { physical_ = 0L; onChanged(); return this; } private long logical_ ; /** * int64 logical = 2; */ public long getLogical() { return logical_; } /** * int64 logical = 2; */ public Builder setLogical(long value) { logical_ = value; onChanged(); return this; } /** * int64 logical = 2; */ public Builder clearLogical() { logical_ = 0L; onChanged(); return this; } private int suffixBits_ ; /** *
       * Number of suffix bits used for global distinction,
       * PD client will use this to compute a TSO's logical part.
       * 
* * uint32 suffix_bits = 3; */ public int getSuffixBits() { return suffixBits_; } /** *
       * Number of suffix bits used for global distinction,
       * PD client will use this to compute a TSO's logical part.
       * 
* * uint32 suffix_bits = 3; */ public Builder setSuffixBits(int value) { suffixBits_ = value; onChanged(); return this; } /** *
       * Number of suffix bits used for global distinction,
       * PD client will use this to compute a TSO's logical part.
       * 
* * uint32 suffix_bits = 3; */ public Builder clearSuffixBits() { suffixBits_ = 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:pdpb.Timestamp) } // @@protoc_insertion_point(class_scope:pdpb.Timestamp) private static final org.tikv.kvproto.Pdpb.Timestamp DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.Timestamp(); } public static org.tikv.kvproto.Pdpb.Timestamp getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Timestamp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Timestamp(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.Pdpb.Timestamp getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TsoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.TsoResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint32 count = 2; */ int getCount(); /** * .pdpb.Timestamp timestamp = 3; */ boolean hasTimestamp(); /** * .pdpb.Timestamp timestamp = 3; */ org.tikv.kvproto.Pdpb.Timestamp getTimestamp(); /** * .pdpb.Timestamp timestamp = 3; */ org.tikv.kvproto.Pdpb.TimestampOrBuilder getTimestampOrBuilder(); } /** * Protobuf type {@code pdpb.TsoResponse} */ public static final class TsoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.TsoResponse) TsoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TsoResponse.newBuilder() to construct. private TsoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TsoResponse() { count_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TsoResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { count_ = input.readUInt32(); break; } case 26: { org.tikv.kvproto.Pdpb.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(org.tikv.kvproto.Pdpb.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = 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.Pdpb.internal_static_pdpb_TsoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TsoResponse.class, org.tikv.kvproto.Pdpb.TsoResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int COUNT_FIELD_NUMBER = 2; private int count_; /** * uint32 count = 2; */ public int getCount() { return count_; } public static final int TIMESTAMP_FIELD_NUMBER = 3; private org.tikv.kvproto.Pdpb.Timestamp timestamp_; /** * .pdpb.Timestamp timestamp = 3; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * .pdpb.Timestamp timestamp = 3; */ public org.tikv.kvproto.Pdpb.Timestamp getTimestamp() { return timestamp_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : timestamp_; } /** * .pdpb.Timestamp timestamp = 3; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (count_ != 0) { output.writeUInt32(2, count_); } if (timestamp_ != null) { output.writeMessage(3, getTimestamp()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, count_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTimestamp()); } 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.Pdpb.TsoResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.TsoResponse other = (org.tikv.kvproto.Pdpb.TsoResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getCount() == other.getCount()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.TsoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoResponse 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.Pdpb.TsoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoResponse 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.Pdpb.TsoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TsoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.TsoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoResponse 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.Pdpb.TsoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoResponse 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.Pdpb.TsoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TsoResponse 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.Pdpb.TsoResponse 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 pdpb.TsoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.TsoResponse) org.tikv.kvproto.Pdpb.TsoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TsoResponse.class, org.tikv.kvproto.Pdpb.TsoResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.TsoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } count_ = 0; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TsoResponse_descriptor; } public org.tikv.kvproto.Pdpb.TsoResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.TsoResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.TsoResponse build() { org.tikv.kvproto.Pdpb.TsoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.TsoResponse buildPartial() { org.tikv.kvproto.Pdpb.TsoResponse result = new org.tikv.kvproto.Pdpb.TsoResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.count_ = count_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.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.Pdpb.TsoResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.TsoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.TsoResponse other) { if (other == org.tikv.kvproto.Pdpb.TsoResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getCount() != 0) { setCount(other.getCount()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } 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.Pdpb.TsoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.TsoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int count_ ; /** * uint32 count = 2; */ public int getCount() { return count_; } /** * uint32 count = 2; */ public Builder setCount(int value) { count_ = value; onChanged(); return this; } /** * uint32 count = 2; */ public Builder clearCount() { count_ = 0; onChanged(); return this; } private org.tikv.kvproto.Pdpb.Timestamp timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> timestampBuilder_; /** * .pdpb.Timestamp timestamp = 3; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .pdpb.Timestamp timestamp = 3; */ public org.tikv.kvproto.Pdpb.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .pdpb.Timestamp timestamp = 3; */ public Builder setTimestamp(org.tikv.kvproto.Pdpb.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .pdpb.Timestamp timestamp = 3; */ public Builder setTimestamp( org.tikv.kvproto.Pdpb.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Timestamp timestamp = 3; */ public Builder mergeTimestamp(org.tikv.kvproto.Pdpb.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = org.tikv.kvproto.Pdpb.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Timestamp timestamp = 3; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .pdpb.Timestamp timestamp = 3; */ public org.tikv.kvproto.Pdpb.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .pdpb.Timestamp timestamp = 3; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : timestamp_; } } /** * .pdpb.Timestamp timestamp = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } 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:pdpb.TsoResponse) } // @@protoc_insertion_point(class_scope:pdpb.TsoResponse) private static final org.tikv.kvproto.Pdpb.TsoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.TsoResponse(); } public static org.tikv.kvproto.Pdpb.TsoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TsoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TsoResponse(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.Pdpb.TsoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BootstrapRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.BootstrapRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Store store = 2; */ boolean hasStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.Store getStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder(); /** * .metapb.Region region = 3; */ boolean hasRegion(); /** * .metapb.Region region = 3; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 3; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); } /** * Protobuf type {@code pdpb.BootstrapRequest} */ public static final class BootstrapRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.BootstrapRequest) BootstrapRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BootstrapRequest.newBuilder() to construct. private BootstrapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BootstrapRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BootstrapRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Store.Builder subBuilder = null; if (store_ != null) { subBuilder = store_.toBuilder(); } store_ = input.readMessage(org.tikv.kvproto.Metapb.Store.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(store_); store_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.BootstrapRequest.class, org.tikv.kvproto.Pdpb.BootstrapRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STORE_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Store store_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { return getStore(); } public static final int REGION_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 3; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (store_ != null) { output.writeMessage(2, getStore()); } if (region_ != null) { output.writeMessage(3, getRegion()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (store_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStore()); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.BootstrapRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.BootstrapRequest other = (org.tikv.kvproto.Pdpb.BootstrapRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasStore() == other.hasStore()); if (hasStore()) { result = result && getStore() .equals(other.getStore()); } result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasStore()) { hash = (37 * hash) + STORE_FIELD_NUMBER; hash = (53 * hash) + getStore().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.BootstrapRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapRequest 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.Pdpb.BootstrapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapRequest 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.Pdpb.BootstrapRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.BootstrapRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapRequest 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.Pdpb.BootstrapRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapRequest 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.Pdpb.BootstrapRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapRequest 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.Pdpb.BootstrapRequest 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 pdpb.BootstrapRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.BootstrapRequest) org.tikv.kvproto.Pdpb.BootstrapRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.BootstrapRequest.class, org.tikv.kvproto.Pdpb.BootstrapRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.BootstrapRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (storeBuilder_ == null) { store_ = null; } else { store_ = null; storeBuilder_ = null; } if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapRequest_descriptor; } public org.tikv.kvproto.Pdpb.BootstrapRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.BootstrapRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.BootstrapRequest build() { org.tikv.kvproto.Pdpb.BootstrapRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.BootstrapRequest buildPartial() { org.tikv.kvproto.Pdpb.BootstrapRequest result = new org.tikv.kvproto.Pdpb.BootstrapRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (storeBuilder_ == null) { result.store_ = store_; } else { result.store_ = storeBuilder_.build(); } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.BootstrapRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.BootstrapRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.BootstrapRequest other) { if (other == org.tikv.kvproto.Pdpb.BootstrapRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasStore()) { mergeStore(other.getStore()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.BootstrapRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.BootstrapRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Store store_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> storeBuilder_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return storeBuilder_ != null || store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { if (storeBuilder_ == null) { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } else { return storeBuilder_.getMessage(); } } /** * .metapb.Store store = 2; */ public Builder setStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } store_ = value; onChanged(); } else { storeBuilder_.setMessage(value); } return this; } /** * .metapb.Store store = 2; */ public Builder setStore( org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storeBuilder_ == null) { store_ = builderForValue.build(); onChanged(); } else { storeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Store store = 2; */ public Builder mergeStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (store_ != null) { store_ = org.tikv.kvproto.Metapb.Store.newBuilder(store_).mergeFrom(value).buildPartial(); } else { store_ = value; } onChanged(); } else { storeBuilder_.mergeFrom(value); } return this; } /** * .metapb.Store store = 2; */ public Builder clearStore() { if (storeBuilder_ == null) { store_ = null; onChanged(); } else { store_ = null; storeBuilder_ = null; } return this; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store.Builder getStoreBuilder() { onChanged(); return getStoreFieldBuilder().getBuilder(); } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { if (storeBuilder_ != null) { return storeBuilder_.getMessageOrBuilder(); } else { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } } /** * .metapb.Store store = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> getStoreFieldBuilder() { if (storeBuilder_ == null) { storeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder>( getStore(), getParentForChildren(), isClean()); store_ = null; } return storeBuilder_; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 3; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 3; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 3; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 3; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 3; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.BootstrapRequest) } // @@protoc_insertion_point(class_scope:pdpb.BootstrapRequest) private static final org.tikv.kvproto.Pdpb.BootstrapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.BootstrapRequest(); } public static org.tikv.kvproto.Pdpb.BootstrapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BootstrapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BootstrapRequest(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.Pdpb.BootstrapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BootstrapResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.BootstrapResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ boolean hasReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder(); } /** * Protobuf type {@code pdpb.BootstrapResponse} */ public static final class BootstrapResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.BootstrapResponse) BootstrapResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BootstrapResponse.newBuilder() to construct. private BootstrapResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BootstrapResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BootstrapResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { replication_modepb.ReplicationModepb.ReplicationStatus.Builder subBuilder = null; if (replicationStatus_ != null) { subBuilder = replicationStatus_.toBuilder(); } replicationStatus_ = input.readMessage(replication_modepb.ReplicationModepb.ReplicationStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationStatus_); replicationStatus_ = 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.Pdpb.internal_static_pdpb_BootstrapResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.BootstrapResponse.class, org.tikv.kvproto.Pdpb.BootstrapResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REPLICATION_STATUS_FIELD_NUMBER = 2; private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { return getReplicationStatus(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (replicationStatus_ != null) { output.writeMessage(2, getReplicationStatus()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (replicationStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReplicationStatus()); } 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.Pdpb.BootstrapResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.BootstrapResponse other = (org.tikv.kvproto.Pdpb.BootstrapResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasReplicationStatus() == other.hasReplicationStatus()); if (hasReplicationStatus()) { result = result && getReplicationStatus() .equals(other.getReplicationStatus()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasReplicationStatus()) { hash = (37 * hash) + REPLICATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getReplicationStatus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.BootstrapResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapResponse 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.Pdpb.BootstrapResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapResponse 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.Pdpb.BootstrapResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.BootstrapResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.BootstrapResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapResponse 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.Pdpb.BootstrapResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapResponse 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.Pdpb.BootstrapResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.BootstrapResponse 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.Pdpb.BootstrapResponse 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 pdpb.BootstrapResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.BootstrapResponse) org.tikv.kvproto.Pdpb.BootstrapResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.BootstrapResponse.class, org.tikv.kvproto.Pdpb.BootstrapResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.BootstrapResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (replicationStatusBuilder_ == null) { replicationStatus_ = null; } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_BootstrapResponse_descriptor; } public org.tikv.kvproto.Pdpb.BootstrapResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.BootstrapResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.BootstrapResponse build() { org.tikv.kvproto.Pdpb.BootstrapResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.BootstrapResponse buildPartial() { org.tikv.kvproto.Pdpb.BootstrapResponse result = new org.tikv.kvproto.Pdpb.BootstrapResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (replicationStatusBuilder_ == null) { result.replicationStatus_ = replicationStatus_; } else { result.replicationStatus_ = replicationStatusBuilder_.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.Pdpb.BootstrapResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.BootstrapResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.BootstrapResponse other) { if (other == org.tikv.kvproto.Pdpb.BootstrapResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasReplicationStatus()) { mergeReplicationStatus(other.getReplicationStatus()); } 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.Pdpb.BootstrapResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.BootstrapResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> replicationStatusBuilder_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationStatus_ = value; onChanged(); } else { replicationStatusBuilder_.setMessage(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus( replication_modepb.ReplicationModepb.ReplicationStatus.Builder builderForValue) { if (replicationStatusBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); } else { replicationStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder mergeReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = replication_modepb.ReplicationModepb.ReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } onChanged(); } else { replicationStatusBuilder_.mergeFrom(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder clearReplicationStatus() { if (replicationStatusBuilder_ == null) { replicationStatus_ = null; onChanged(); } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus.Builder getReplicationStatusBuilder() { onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder>( getReplicationStatus(), getParentForChildren(), isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; } 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:pdpb.BootstrapResponse) } // @@protoc_insertion_point(class_scope:pdpb.BootstrapResponse) private static final org.tikv.kvproto.Pdpb.BootstrapResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.BootstrapResponse(); } public static org.tikv.kvproto.Pdpb.BootstrapResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BootstrapResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BootstrapResponse(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.Pdpb.BootstrapResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IsBootstrappedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.IsBootstrappedRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.IsBootstrappedRequest} */ public static final class IsBootstrappedRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.IsBootstrappedRequest) IsBootstrappedRequestOrBuilder { private static final long serialVersionUID = 0L; // Use IsBootstrappedRequest.newBuilder() to construct. private IsBootstrappedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IsBootstrappedRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IsBootstrappedRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_IsBootstrappedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.IsBootstrappedRequest.class, org.tikv.kvproto.Pdpb.IsBootstrappedRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.IsBootstrappedRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.IsBootstrappedRequest other = (org.tikv.kvproto.Pdpb.IsBootstrappedRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest 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.Pdpb.IsBootstrappedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest 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.Pdpb.IsBootstrappedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest 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.Pdpb.IsBootstrappedRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest 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.Pdpb.IsBootstrappedRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest 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.Pdpb.IsBootstrappedRequest 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 pdpb.IsBootstrappedRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.IsBootstrappedRequest) org.tikv.kvproto.Pdpb.IsBootstrappedRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.IsBootstrappedRequest.class, org.tikv.kvproto.Pdpb.IsBootstrappedRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.IsBootstrappedRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedRequest_descriptor; } public org.tikv.kvproto.Pdpb.IsBootstrappedRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.IsBootstrappedRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.IsBootstrappedRequest build() { org.tikv.kvproto.Pdpb.IsBootstrappedRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.IsBootstrappedRequest buildPartial() { org.tikv.kvproto.Pdpb.IsBootstrappedRequest result = new org.tikv.kvproto.Pdpb.IsBootstrappedRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.IsBootstrappedRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.IsBootstrappedRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.IsBootstrappedRequest other) { if (other == org.tikv.kvproto.Pdpb.IsBootstrappedRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.IsBootstrappedRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.IsBootstrappedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.IsBootstrappedRequest) } // @@protoc_insertion_point(class_scope:pdpb.IsBootstrappedRequest) private static final org.tikv.kvproto.Pdpb.IsBootstrappedRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.IsBootstrappedRequest(); } public static org.tikv.kvproto.Pdpb.IsBootstrappedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IsBootstrappedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IsBootstrappedRequest(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.Pdpb.IsBootstrappedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IsBootstrappedResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.IsBootstrappedResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * bool bootstrapped = 2; */ boolean getBootstrapped(); } /** * Protobuf type {@code pdpb.IsBootstrappedResponse} */ public static final class IsBootstrappedResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.IsBootstrappedResponse) IsBootstrappedResponseOrBuilder { private static final long serialVersionUID = 0L; // Use IsBootstrappedResponse.newBuilder() to construct. private IsBootstrappedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IsBootstrappedResponse() { bootstrapped_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IsBootstrappedResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { bootstrapped_ = 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.Pdpb.internal_static_pdpb_IsBootstrappedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.IsBootstrappedResponse.class, org.tikv.kvproto.Pdpb.IsBootstrappedResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int BOOTSTRAPPED_FIELD_NUMBER = 2; private boolean bootstrapped_; /** * bool bootstrapped = 2; */ public boolean getBootstrapped() { return bootstrapped_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (bootstrapped_ != false) { output.writeBool(2, bootstrapped_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (bootstrapped_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, bootstrapped_); } 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.Pdpb.IsBootstrappedResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.IsBootstrappedResponse other = (org.tikv.kvproto.Pdpb.IsBootstrappedResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getBootstrapped() == other.getBootstrapped()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + BOOTSTRAPPED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBootstrapped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse 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.Pdpb.IsBootstrappedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse 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.Pdpb.IsBootstrappedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse 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.Pdpb.IsBootstrappedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse 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.Pdpb.IsBootstrappedResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse 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.Pdpb.IsBootstrappedResponse 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 pdpb.IsBootstrappedResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.IsBootstrappedResponse) org.tikv.kvproto.Pdpb.IsBootstrappedResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.IsBootstrappedResponse.class, org.tikv.kvproto.Pdpb.IsBootstrappedResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.IsBootstrappedResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } bootstrapped_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_IsBootstrappedResponse_descriptor; } public org.tikv.kvproto.Pdpb.IsBootstrappedResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.IsBootstrappedResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.IsBootstrappedResponse build() { org.tikv.kvproto.Pdpb.IsBootstrappedResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.IsBootstrappedResponse buildPartial() { org.tikv.kvproto.Pdpb.IsBootstrappedResponse result = new org.tikv.kvproto.Pdpb.IsBootstrappedResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.bootstrapped_ = bootstrapped_; 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.Pdpb.IsBootstrappedResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.IsBootstrappedResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.IsBootstrappedResponse other) { if (other == org.tikv.kvproto.Pdpb.IsBootstrappedResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getBootstrapped() != false) { setBootstrapped(other.getBootstrapped()); } 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.Pdpb.IsBootstrappedResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.IsBootstrappedResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private boolean bootstrapped_ ; /** * bool bootstrapped = 2; */ public boolean getBootstrapped() { return bootstrapped_; } /** * bool bootstrapped = 2; */ public Builder setBootstrapped(boolean value) { bootstrapped_ = value; onChanged(); return this; } /** * bool bootstrapped = 2; */ public Builder clearBootstrapped() { bootstrapped_ = 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:pdpb.IsBootstrappedResponse) } // @@protoc_insertion_point(class_scope:pdpb.IsBootstrappedResponse) private static final org.tikv.kvproto.Pdpb.IsBootstrappedResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.IsBootstrappedResponse(); } public static org.tikv.kvproto.Pdpb.IsBootstrappedResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IsBootstrappedResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IsBootstrappedResponse(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.Pdpb.IsBootstrappedResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllocIDRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AllocIDRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.AllocIDRequest} */ public static final class AllocIDRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AllocIDRequest) AllocIDRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AllocIDRequest.newBuilder() to construct. private AllocIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocIDRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllocIDRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_AllocIDRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AllocIDRequest.class, org.tikv.kvproto.Pdpb.AllocIDRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.AllocIDRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AllocIDRequest other = (org.tikv.kvproto.Pdpb.AllocIDRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AllocIDRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDRequest 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.Pdpb.AllocIDRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDRequest 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.Pdpb.AllocIDRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AllocIDRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDRequest 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.Pdpb.AllocIDRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDRequest 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.Pdpb.AllocIDRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDRequest 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.Pdpb.AllocIDRequest 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 pdpb.AllocIDRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AllocIDRequest) org.tikv.kvproto.Pdpb.AllocIDRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AllocIDRequest.class, org.tikv.kvproto.Pdpb.AllocIDRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AllocIDRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDRequest_descriptor; } public org.tikv.kvproto.Pdpb.AllocIDRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AllocIDRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AllocIDRequest build() { org.tikv.kvproto.Pdpb.AllocIDRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AllocIDRequest buildPartial() { org.tikv.kvproto.Pdpb.AllocIDRequest result = new org.tikv.kvproto.Pdpb.AllocIDRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.AllocIDRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.AllocIDRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AllocIDRequest other) { if (other == org.tikv.kvproto.Pdpb.AllocIDRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.AllocIDRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AllocIDRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.AllocIDRequest) } // @@protoc_insertion_point(class_scope:pdpb.AllocIDRequest) private static final org.tikv.kvproto.Pdpb.AllocIDRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AllocIDRequest(); } public static org.tikv.kvproto.Pdpb.AllocIDRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AllocIDRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllocIDRequest(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.Pdpb.AllocIDRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllocIDResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AllocIDResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 id = 2; */ long getId(); } /** * Protobuf type {@code pdpb.AllocIDResponse} */ public static final class AllocIDResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AllocIDResponse) AllocIDResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AllocIDResponse.newBuilder() to construct. private AllocIDResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocIDResponse() { id_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllocIDResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { id_ = 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.Pdpb.internal_static_pdpb_AllocIDResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AllocIDResponse.class, org.tikv.kvproto.Pdpb.AllocIDResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** * uint64 id = 2; */ public long getId() { return id_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (id_ != 0L) { output.writeUInt64(2, id_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } 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.Pdpb.AllocIDResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AllocIDResponse other = (org.tikv.kvproto.Pdpb.AllocIDResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getId() == other.getId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AllocIDResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDResponse 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.Pdpb.AllocIDResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDResponse 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.Pdpb.AllocIDResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AllocIDResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AllocIDResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDResponse 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.Pdpb.AllocIDResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDResponse 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.Pdpb.AllocIDResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AllocIDResponse 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.Pdpb.AllocIDResponse 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 pdpb.AllocIDResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AllocIDResponse) org.tikv.kvproto.Pdpb.AllocIDResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AllocIDResponse.class, org.tikv.kvproto.Pdpb.AllocIDResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AllocIDResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } id_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AllocIDResponse_descriptor; } public org.tikv.kvproto.Pdpb.AllocIDResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AllocIDResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AllocIDResponse build() { org.tikv.kvproto.Pdpb.AllocIDResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AllocIDResponse buildPartial() { org.tikv.kvproto.Pdpb.AllocIDResponse result = new org.tikv.kvproto.Pdpb.AllocIDResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.id_ = id_; 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.Pdpb.AllocIDResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.AllocIDResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AllocIDResponse other) { if (other == org.tikv.kvproto.Pdpb.AllocIDResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getId() != 0L) { setId(other.getId()); } 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.Pdpb.AllocIDResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AllocIDResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long id_ ; /** * uint64 id = 2; */ public long getId() { return id_; } /** * uint64 id = 2; */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** * uint64 id = 2; */ public Builder clearId() { id_ = 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:pdpb.AllocIDResponse) } // @@protoc_insertion_point(class_scope:pdpb.AllocIDResponse) private static final org.tikv.kvproto.Pdpb.AllocIDResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AllocIDResponse(); } public static org.tikv.kvproto.Pdpb.AllocIDResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AllocIDResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllocIDResponse(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.Pdpb.AllocIDResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetStoreRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetStoreRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 store_id = 2; */ long getStoreId(); } /** * Protobuf type {@code pdpb.GetStoreRequest} */ public static final class GetStoreRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetStoreRequest) GetStoreRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetStoreRequest.newBuilder() to construct. private GetStoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetStoreRequest() { storeId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetStoreRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { storeId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetStoreRequest.class, org.tikv.kvproto.Pdpb.GetStoreRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STORE_ID_FIELD_NUMBER = 2; private long storeId_; /** * uint64 store_id = 2; */ public long getStoreId() { return storeId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (storeId_ != 0L) { output.writeUInt64(2, storeId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (storeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, storeId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.GetStoreRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetStoreRequest other = (org.tikv.kvproto.Pdpb.GetStoreRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getStoreId() == other.getStoreId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStoreId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetStoreRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreRequest 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.Pdpb.GetStoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreRequest 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.Pdpb.GetStoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetStoreRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreRequest 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.Pdpb.GetStoreRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreRequest 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.Pdpb.GetStoreRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreRequest 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.Pdpb.GetStoreRequest 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 pdpb.GetStoreRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetStoreRequest) org.tikv.kvproto.Pdpb.GetStoreRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetStoreRequest.class, org.tikv.kvproto.Pdpb.GetStoreRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetStoreRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } storeId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetStoreRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetStoreRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetStoreRequest build() { org.tikv.kvproto.Pdpb.GetStoreRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetStoreRequest buildPartial() { org.tikv.kvproto.Pdpb.GetStoreRequest result = new org.tikv.kvproto.Pdpb.GetStoreRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.storeId_ = storeId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.GetStoreRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetStoreRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetStoreRequest other) { if (other == org.tikv.kvproto.Pdpb.GetStoreRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getStoreId() != 0L) { setStoreId(other.getStoreId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.GetStoreRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetStoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long storeId_ ; /** * uint64 store_id = 2; */ public long getStoreId() { return storeId_; } /** * uint64 store_id = 2; */ public Builder setStoreId(long value) { storeId_ = value; onChanged(); return this; } /** * uint64 store_id = 2; */ public Builder clearStoreId() { storeId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.GetStoreRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetStoreRequest) private static final org.tikv.kvproto.Pdpb.GetStoreRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetStoreRequest(); } public static org.tikv.kvproto.Pdpb.GetStoreRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetStoreRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetStoreRequest(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.Pdpb.GetStoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetStoreResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetStoreResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Store store = 2; */ boolean hasStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.Store getStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder(); /** * .pdpb.StoreStats stats = 3; */ boolean hasStats(); /** * .pdpb.StoreStats stats = 3; */ org.tikv.kvproto.Pdpb.StoreStats getStats(); /** * .pdpb.StoreStats stats = 3; */ org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder(); } /** * Protobuf type {@code pdpb.GetStoreResponse} */ public static final class GetStoreResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetStoreResponse) GetStoreResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetStoreResponse.newBuilder() to construct. private GetStoreResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetStoreResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetStoreResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Store.Builder subBuilder = null; if (store_ != null) { subBuilder = store_.toBuilder(); } store_ = input.readMessage(org.tikv.kvproto.Metapb.Store.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(store_); store_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Pdpb.StoreStats.Builder subBuilder = null; if (stats_ != null) { subBuilder = stats_.toBuilder(); } stats_ = input.readMessage(org.tikv.kvproto.Pdpb.StoreStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stats_); stats_ = 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.Pdpb.internal_static_pdpb_GetStoreResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetStoreResponse.class, org.tikv.kvproto.Pdpb.GetStoreResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STORE_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Store store_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { return getStore(); } public static final int STATS_FIELD_NUMBER = 3; private org.tikv.kvproto.Pdpb.StoreStats stats_; /** * .pdpb.StoreStats stats = 3; */ public boolean hasStats() { return stats_ != null; } /** * .pdpb.StoreStats stats = 3; */ public org.tikv.kvproto.Pdpb.StoreStats getStats() { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } /** * .pdpb.StoreStats stats = 3; */ public org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder() { return getStats(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (store_ != null) { output.writeMessage(2, getStore()); } if (stats_ != null) { output.writeMessage(3, getStats()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (store_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStore()); } if (stats_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStats()); } 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.Pdpb.GetStoreResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetStoreResponse other = (org.tikv.kvproto.Pdpb.GetStoreResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasStore() == other.hasStore()); if (hasStore()) { result = result && getStore() .equals(other.getStore()); } result = result && (hasStats() == other.hasStats()); if (hasStats()) { result = result && getStats() .equals(other.getStats()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasStore()) { hash = (37 * hash) + STORE_FIELD_NUMBER; hash = (53 * hash) + getStore().hashCode(); } if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetStoreResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreResponse 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.Pdpb.GetStoreResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreResponse 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.Pdpb.GetStoreResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetStoreResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetStoreResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreResponse 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.Pdpb.GetStoreResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreResponse 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.Pdpb.GetStoreResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetStoreResponse 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.Pdpb.GetStoreResponse 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 pdpb.GetStoreResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetStoreResponse) org.tikv.kvproto.Pdpb.GetStoreResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetStoreResponse.class, org.tikv.kvproto.Pdpb.GetStoreResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetStoreResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (storeBuilder_ == null) { store_ = null; } else { store_ = null; storeBuilder_ = null; } if (statsBuilder_ == null) { stats_ = null; } else { stats_ = null; statsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetStoreResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetStoreResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetStoreResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetStoreResponse build() { org.tikv.kvproto.Pdpb.GetStoreResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetStoreResponse buildPartial() { org.tikv.kvproto.Pdpb.GetStoreResponse result = new org.tikv.kvproto.Pdpb.GetStoreResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (storeBuilder_ == null) { result.store_ = store_; } else { result.store_ = storeBuilder_.build(); } if (statsBuilder_ == null) { result.stats_ = stats_; } else { result.stats_ = statsBuilder_.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.Pdpb.GetStoreResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetStoreResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetStoreResponse other) { if (other == org.tikv.kvproto.Pdpb.GetStoreResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasStore()) { mergeStore(other.getStore()); } if (other.hasStats()) { mergeStats(other.getStats()); } 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.Pdpb.GetStoreResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetStoreResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Store store_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> storeBuilder_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return storeBuilder_ != null || store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { if (storeBuilder_ == null) { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } else { return storeBuilder_.getMessage(); } } /** * .metapb.Store store = 2; */ public Builder setStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } store_ = value; onChanged(); } else { storeBuilder_.setMessage(value); } return this; } /** * .metapb.Store store = 2; */ public Builder setStore( org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storeBuilder_ == null) { store_ = builderForValue.build(); onChanged(); } else { storeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Store store = 2; */ public Builder mergeStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (store_ != null) { store_ = org.tikv.kvproto.Metapb.Store.newBuilder(store_).mergeFrom(value).buildPartial(); } else { store_ = value; } onChanged(); } else { storeBuilder_.mergeFrom(value); } return this; } /** * .metapb.Store store = 2; */ public Builder clearStore() { if (storeBuilder_ == null) { store_ = null; onChanged(); } else { store_ = null; storeBuilder_ = null; } return this; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store.Builder getStoreBuilder() { onChanged(); return getStoreFieldBuilder().getBuilder(); } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { if (storeBuilder_ != null) { return storeBuilder_.getMessageOrBuilder(); } else { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } } /** * .metapb.Store store = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> getStoreFieldBuilder() { if (storeBuilder_ == null) { storeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder>( getStore(), getParentForChildren(), isClean()); store_ = null; } return storeBuilder_; } private org.tikv.kvproto.Pdpb.StoreStats stats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder> statsBuilder_; /** * .pdpb.StoreStats stats = 3; */ public boolean hasStats() { return statsBuilder_ != null || stats_ != null; } /** * .pdpb.StoreStats stats = 3; */ public org.tikv.kvproto.Pdpb.StoreStats getStats() { if (statsBuilder_ == null) { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } else { return statsBuilder_.getMessage(); } } /** * .pdpb.StoreStats stats = 3; */ public Builder setStats(org.tikv.kvproto.Pdpb.StoreStats value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stats_ = value; onChanged(); } else { statsBuilder_.setMessage(value); } return this; } /** * .pdpb.StoreStats stats = 3; */ public Builder setStats( org.tikv.kvproto.Pdpb.StoreStats.Builder builderForValue) { if (statsBuilder_ == null) { stats_ = builderForValue.build(); onChanged(); } else { statsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.StoreStats stats = 3; */ public Builder mergeStats(org.tikv.kvproto.Pdpb.StoreStats value) { if (statsBuilder_ == null) { if (stats_ != null) { stats_ = org.tikv.kvproto.Pdpb.StoreStats.newBuilder(stats_).mergeFrom(value).buildPartial(); } else { stats_ = value; } onChanged(); } else { statsBuilder_.mergeFrom(value); } return this; } /** * .pdpb.StoreStats stats = 3; */ public Builder clearStats() { if (statsBuilder_ == null) { stats_ = null; onChanged(); } else { stats_ = null; statsBuilder_ = null; } return this; } /** * .pdpb.StoreStats stats = 3; */ public org.tikv.kvproto.Pdpb.StoreStats.Builder getStatsBuilder() { onChanged(); return getStatsFieldBuilder().getBuilder(); } /** * .pdpb.StoreStats stats = 3; */ public org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder() { if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } } /** * .pdpb.StoreStats stats = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder>( getStats(), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; } 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:pdpb.GetStoreResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetStoreResponse) private static final org.tikv.kvproto.Pdpb.GetStoreResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetStoreResponse(); } public static org.tikv.kvproto.Pdpb.GetStoreResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetStoreResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetStoreResponse(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.Pdpb.GetStoreResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutStoreRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.PutStoreRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Store store = 2; */ boolean hasStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.Store getStore(); /** * .metapb.Store store = 2; */ org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder(); } /** * Protobuf type {@code pdpb.PutStoreRequest} */ public static final class PutStoreRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.PutStoreRequest) PutStoreRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PutStoreRequest.newBuilder() to construct. private PutStoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutStoreRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutStoreRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Store.Builder subBuilder = null; if (store_ != null) { subBuilder = store_.toBuilder(); } store_ = input.readMessage(org.tikv.kvproto.Metapb.Store.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(store_); store_ = 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.Pdpb.internal_static_pdpb_PutStoreRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutStoreRequest.class, org.tikv.kvproto.Pdpb.PutStoreRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STORE_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Store store_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { return getStore(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (store_ != null) { output.writeMessage(2, getStore()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (store_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStore()); } 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.Pdpb.PutStoreRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.PutStoreRequest other = (org.tikv.kvproto.Pdpb.PutStoreRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasStore() == other.hasStore()); if (hasStore()) { result = result && getStore() .equals(other.getStore()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasStore()) { hash = (37 * hash) + STORE_FIELD_NUMBER; hash = (53 * hash) + getStore().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.PutStoreRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreRequest 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.Pdpb.PutStoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreRequest 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.Pdpb.PutStoreRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.PutStoreRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreRequest 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.Pdpb.PutStoreRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreRequest 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.Pdpb.PutStoreRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreRequest 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.Pdpb.PutStoreRequest 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 pdpb.PutStoreRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.PutStoreRequest) org.tikv.kvproto.Pdpb.PutStoreRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutStoreRequest.class, org.tikv.kvproto.Pdpb.PutStoreRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.PutStoreRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (storeBuilder_ == null) { store_ = null; } else { store_ = null; storeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreRequest_descriptor; } public org.tikv.kvproto.Pdpb.PutStoreRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.PutStoreRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.PutStoreRequest build() { org.tikv.kvproto.Pdpb.PutStoreRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.PutStoreRequest buildPartial() { org.tikv.kvproto.Pdpb.PutStoreRequest result = new org.tikv.kvproto.Pdpb.PutStoreRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (storeBuilder_ == null) { result.store_ = store_; } else { result.store_ = storeBuilder_.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.Pdpb.PutStoreRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.PutStoreRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.PutStoreRequest other) { if (other == org.tikv.kvproto.Pdpb.PutStoreRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasStore()) { mergeStore(other.getStore()); } 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.Pdpb.PutStoreRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.PutStoreRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Store store_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> storeBuilder_; /** * .metapb.Store store = 2; */ public boolean hasStore() { return storeBuilder_ != null || store_ != null; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store getStore() { if (storeBuilder_ == null) { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } else { return storeBuilder_.getMessage(); } } /** * .metapb.Store store = 2; */ public Builder setStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } store_ = value; onChanged(); } else { storeBuilder_.setMessage(value); } return this; } /** * .metapb.Store store = 2; */ public Builder setStore( org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storeBuilder_ == null) { store_ = builderForValue.build(); onChanged(); } else { storeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Store store = 2; */ public Builder mergeStore(org.tikv.kvproto.Metapb.Store value) { if (storeBuilder_ == null) { if (store_ != null) { store_ = org.tikv.kvproto.Metapb.Store.newBuilder(store_).mergeFrom(value).buildPartial(); } else { store_ = value; } onChanged(); } else { storeBuilder_.mergeFrom(value); } return this; } /** * .metapb.Store store = 2; */ public Builder clearStore() { if (storeBuilder_ == null) { store_ = null; onChanged(); } else { store_ = null; storeBuilder_ = null; } return this; } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.Store.Builder getStoreBuilder() { onChanged(); return getStoreFieldBuilder().getBuilder(); } /** * .metapb.Store store = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoreOrBuilder() { if (storeBuilder_ != null) { return storeBuilder_.getMessageOrBuilder(); } else { return store_ == null ? org.tikv.kvproto.Metapb.Store.getDefaultInstance() : store_; } } /** * .metapb.Store store = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> getStoreFieldBuilder() { if (storeBuilder_ == null) { storeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder>( getStore(), getParentForChildren(), isClean()); store_ = null; } return storeBuilder_; } 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:pdpb.PutStoreRequest) } // @@protoc_insertion_point(class_scope:pdpb.PutStoreRequest) private static final org.tikv.kvproto.Pdpb.PutStoreRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.PutStoreRequest(); } public static org.tikv.kvproto.Pdpb.PutStoreRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutStoreRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutStoreRequest(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.Pdpb.PutStoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutStoreResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.PutStoreResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ boolean hasReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder(); } /** * Protobuf type {@code pdpb.PutStoreResponse} */ public static final class PutStoreResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.PutStoreResponse) PutStoreResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PutStoreResponse.newBuilder() to construct. private PutStoreResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutStoreResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutStoreResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { replication_modepb.ReplicationModepb.ReplicationStatus.Builder subBuilder = null; if (replicationStatus_ != null) { subBuilder = replicationStatus_.toBuilder(); } replicationStatus_ = input.readMessage(replication_modepb.ReplicationModepb.ReplicationStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationStatus_); replicationStatus_ = 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.Pdpb.internal_static_pdpb_PutStoreResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutStoreResponse.class, org.tikv.kvproto.Pdpb.PutStoreResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REPLICATION_STATUS_FIELD_NUMBER = 2; private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { return getReplicationStatus(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (replicationStatus_ != null) { output.writeMessage(2, getReplicationStatus()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (replicationStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReplicationStatus()); } 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.Pdpb.PutStoreResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.PutStoreResponse other = (org.tikv.kvproto.Pdpb.PutStoreResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasReplicationStatus() == other.hasReplicationStatus()); if (hasReplicationStatus()) { result = result && getReplicationStatus() .equals(other.getReplicationStatus()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasReplicationStatus()) { hash = (37 * hash) + REPLICATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getReplicationStatus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.PutStoreResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreResponse 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.Pdpb.PutStoreResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreResponse 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.Pdpb.PutStoreResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutStoreResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.PutStoreResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreResponse 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.Pdpb.PutStoreResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreResponse 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.Pdpb.PutStoreResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutStoreResponse 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.Pdpb.PutStoreResponse 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 pdpb.PutStoreResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.PutStoreResponse) org.tikv.kvproto.Pdpb.PutStoreResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutStoreResponse.class, org.tikv.kvproto.Pdpb.PutStoreResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.PutStoreResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (replicationStatusBuilder_ == null) { replicationStatus_ = null; } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutStoreResponse_descriptor; } public org.tikv.kvproto.Pdpb.PutStoreResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.PutStoreResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.PutStoreResponse build() { org.tikv.kvproto.Pdpb.PutStoreResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.PutStoreResponse buildPartial() { org.tikv.kvproto.Pdpb.PutStoreResponse result = new org.tikv.kvproto.Pdpb.PutStoreResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (replicationStatusBuilder_ == null) { result.replicationStatus_ = replicationStatus_; } else { result.replicationStatus_ = replicationStatusBuilder_.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.Pdpb.PutStoreResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.PutStoreResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.PutStoreResponse other) { if (other == org.tikv.kvproto.Pdpb.PutStoreResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasReplicationStatus()) { mergeReplicationStatus(other.getReplicationStatus()); } 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.Pdpb.PutStoreResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.PutStoreResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> replicationStatusBuilder_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationStatus_ = value; onChanged(); } else { replicationStatusBuilder_.setMessage(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus( replication_modepb.ReplicationModepb.ReplicationStatus.Builder builderForValue) { if (replicationStatusBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); } else { replicationStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder mergeReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = replication_modepb.ReplicationModepb.ReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } onChanged(); } else { replicationStatusBuilder_.mergeFrom(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder clearReplicationStatus() { if (replicationStatusBuilder_ == null) { replicationStatus_ = null; onChanged(); } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus.Builder getReplicationStatusBuilder() { onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder>( getReplicationStatus(), getParentForChildren(), isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; } 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:pdpb.PutStoreResponse) } // @@protoc_insertion_point(class_scope:pdpb.PutStoreResponse) private static final org.tikv.kvproto.Pdpb.PutStoreResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.PutStoreResponse(); } public static org.tikv.kvproto.Pdpb.PutStoreResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutStoreResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutStoreResponse(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.Pdpb.PutStoreResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetAllStoresRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetAllStoresRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** *
     * Do NOT return tombstone stores if set to true.
     * 
* * bool exclude_tombstone_stores = 2; */ boolean getExcludeTombstoneStores(); } /** * Protobuf type {@code pdpb.GetAllStoresRequest} */ public static final class GetAllStoresRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetAllStoresRequest) GetAllStoresRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetAllStoresRequest.newBuilder() to construct. private GetAllStoresRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetAllStoresRequest() { excludeTombstoneStores_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetAllStoresRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { excludeTombstoneStores_ = 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.Pdpb.internal_static_pdpb_GetAllStoresRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetAllStoresRequest.class, org.tikv.kvproto.Pdpb.GetAllStoresRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int EXCLUDE_TOMBSTONE_STORES_FIELD_NUMBER = 2; private boolean excludeTombstoneStores_; /** *
     * Do NOT return tombstone stores if set to true.
     * 
* * bool exclude_tombstone_stores = 2; */ public boolean getExcludeTombstoneStores() { return excludeTombstoneStores_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (excludeTombstoneStores_ != false) { output.writeBool(2, excludeTombstoneStores_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (excludeTombstoneStores_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, excludeTombstoneStores_); } 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.Pdpb.GetAllStoresRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetAllStoresRequest other = (org.tikv.kvproto.Pdpb.GetAllStoresRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getExcludeTombstoneStores() == other.getExcludeTombstoneStores()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + EXCLUDE_TOMBSTONE_STORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExcludeTombstoneStores()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest 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.Pdpb.GetAllStoresRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest 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.Pdpb.GetAllStoresRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest 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.Pdpb.GetAllStoresRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest 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.Pdpb.GetAllStoresRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest 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.Pdpb.GetAllStoresRequest 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 pdpb.GetAllStoresRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetAllStoresRequest) org.tikv.kvproto.Pdpb.GetAllStoresRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetAllStoresRequest.class, org.tikv.kvproto.Pdpb.GetAllStoresRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetAllStoresRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } excludeTombstoneStores_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetAllStoresRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetAllStoresRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetAllStoresRequest build() { org.tikv.kvproto.Pdpb.GetAllStoresRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetAllStoresRequest buildPartial() { org.tikv.kvproto.Pdpb.GetAllStoresRequest result = new org.tikv.kvproto.Pdpb.GetAllStoresRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.excludeTombstoneStores_ = excludeTombstoneStores_; 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.Pdpb.GetAllStoresRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetAllStoresRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetAllStoresRequest other) { if (other == org.tikv.kvproto.Pdpb.GetAllStoresRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getExcludeTombstoneStores() != false) { setExcludeTombstoneStores(other.getExcludeTombstoneStores()); } 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.Pdpb.GetAllStoresRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetAllStoresRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private boolean excludeTombstoneStores_ ; /** *
       * Do NOT return tombstone stores if set to true.
       * 
* * bool exclude_tombstone_stores = 2; */ public boolean getExcludeTombstoneStores() { return excludeTombstoneStores_; } /** *
       * Do NOT return tombstone stores if set to true.
       * 
* * bool exclude_tombstone_stores = 2; */ public Builder setExcludeTombstoneStores(boolean value) { excludeTombstoneStores_ = value; onChanged(); return this; } /** *
       * Do NOT return tombstone stores if set to true.
       * 
* * bool exclude_tombstone_stores = 2; */ public Builder clearExcludeTombstoneStores() { excludeTombstoneStores_ = 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:pdpb.GetAllStoresRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetAllStoresRequest) private static final org.tikv.kvproto.Pdpb.GetAllStoresRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetAllStoresRequest(); } public static org.tikv.kvproto.Pdpb.GetAllStoresRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetAllStoresRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetAllStoresRequest(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.Pdpb.GetAllStoresRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetAllStoresResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetAllStoresResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .metapb.Store stores = 2; */ java.util.List getStoresList(); /** * repeated .metapb.Store stores = 2; */ org.tikv.kvproto.Metapb.Store getStores(int index); /** * repeated .metapb.Store stores = 2; */ int getStoresCount(); /** * repeated .metapb.Store stores = 2; */ java.util.List getStoresOrBuilderList(); /** * repeated .metapb.Store stores = 2; */ org.tikv.kvproto.Metapb.StoreOrBuilder getStoresOrBuilder( int index); } /** * Protobuf type {@code pdpb.GetAllStoresResponse} */ public static final class GetAllStoresResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetAllStoresResponse) GetAllStoresResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetAllStoresResponse.newBuilder() to construct. private GetAllStoresResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetAllStoresResponse() { stores_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetAllStoresResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stores_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } stores_.add( input.readMessage(org.tikv.kvproto.Metapb.Store.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)) { stores_ = java.util.Collections.unmodifiableList(stores_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetAllStoresResponse.class, org.tikv.kvproto.Pdpb.GetAllStoresResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STORES_FIELD_NUMBER = 2; private java.util.List stores_; /** * repeated .metapb.Store stores = 2; */ public java.util.List getStoresList() { return stores_; } /** * repeated .metapb.Store stores = 2; */ public java.util.List getStoresOrBuilderList() { return stores_; } /** * repeated .metapb.Store stores = 2; */ public int getStoresCount() { return stores_.size(); } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.Store getStores(int index) { return stores_.get(index); } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoresOrBuilder( int index) { return stores_.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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < stores_.size(); i++) { output.writeMessage(2, stores_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < stores_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, stores_.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.Pdpb.GetAllStoresResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetAllStoresResponse other = (org.tikv.kvproto.Pdpb.GetAllStoresResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getStoresList() .equals(other.getStoresList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getStoresCount() > 0) { hash = (37 * hash) + STORES_FIELD_NUMBER; hash = (53 * hash) + getStoresList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse 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.Pdpb.GetAllStoresResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse 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.Pdpb.GetAllStoresResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse 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.Pdpb.GetAllStoresResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse 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.Pdpb.GetAllStoresResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse 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.Pdpb.GetAllStoresResponse 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 pdpb.GetAllStoresResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetAllStoresResponse) org.tikv.kvproto.Pdpb.GetAllStoresResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetAllStoresResponse.class, org.tikv.kvproto.Pdpb.GetAllStoresResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetAllStoresResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStoresFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (storesBuilder_ == null) { stores_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { storesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetAllStoresResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetAllStoresResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetAllStoresResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetAllStoresResponse build() { org.tikv.kvproto.Pdpb.GetAllStoresResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetAllStoresResponse buildPartial() { org.tikv.kvproto.Pdpb.GetAllStoresResponse result = new org.tikv.kvproto.Pdpb.GetAllStoresResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (storesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { stores_ = java.util.Collections.unmodifiableList(stores_); bitField0_ = (bitField0_ & ~0x00000002); } result.stores_ = stores_; } else { result.stores_ = storesBuilder_.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.Pdpb.GetAllStoresResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetAllStoresResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetAllStoresResponse other) { if (other == org.tikv.kvproto.Pdpb.GetAllStoresResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (storesBuilder_ == null) { if (!other.stores_.isEmpty()) { if (stores_.isEmpty()) { stores_ = other.stores_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStoresIsMutable(); stores_.addAll(other.stores_); } onChanged(); } } else { if (!other.stores_.isEmpty()) { if (storesBuilder_.isEmpty()) { storesBuilder_.dispose(); storesBuilder_ = null; stores_ = other.stores_; bitField0_ = (bitField0_ & ~0x00000002); storesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStoresFieldBuilder() : null; } else { storesBuilder_.addAllMessages(other.stores_); } } } 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.Pdpb.GetAllStoresResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetAllStoresResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List stores_ = java.util.Collections.emptyList(); private void ensureStoresIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { stores_ = new java.util.ArrayList(stores_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> storesBuilder_; /** * repeated .metapb.Store stores = 2; */ public java.util.List getStoresList() { if (storesBuilder_ == null) { return java.util.Collections.unmodifiableList(stores_); } else { return storesBuilder_.getMessageList(); } } /** * repeated .metapb.Store stores = 2; */ public int getStoresCount() { if (storesBuilder_ == null) { return stores_.size(); } else { return storesBuilder_.getCount(); } } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.Store getStores(int index) { if (storesBuilder_ == null) { return stores_.get(index); } else { return storesBuilder_.getMessage(index); } } /** * repeated .metapb.Store stores = 2; */ public Builder setStores( int index, org.tikv.kvproto.Metapb.Store value) { if (storesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoresIsMutable(); stores_.set(index, value); onChanged(); } else { storesBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder setStores( int index, org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storesBuilder_ == null) { ensureStoresIsMutable(); stores_.set(index, builderForValue.build()); onChanged(); } else { storesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder addStores(org.tikv.kvproto.Metapb.Store value) { if (storesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoresIsMutable(); stores_.add(value); onChanged(); } else { storesBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder addStores( int index, org.tikv.kvproto.Metapb.Store value) { if (storesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoresIsMutable(); stores_.add(index, value); onChanged(); } else { storesBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder addStores( org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storesBuilder_ == null) { ensureStoresIsMutable(); stores_.add(builderForValue.build()); onChanged(); } else { storesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder addStores( int index, org.tikv.kvproto.Metapb.Store.Builder builderForValue) { if (storesBuilder_ == null) { ensureStoresIsMutable(); stores_.add(index, builderForValue.build()); onChanged(); } else { storesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder addAllStores( java.lang.Iterable values) { if (storesBuilder_ == null) { ensureStoresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stores_); onChanged(); } else { storesBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder clearStores() { if (storesBuilder_ == null) { stores_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { storesBuilder_.clear(); } return this; } /** * repeated .metapb.Store stores = 2; */ public Builder removeStores(int index) { if (storesBuilder_ == null) { ensureStoresIsMutable(); stores_.remove(index); onChanged(); } else { storesBuilder_.remove(index); } return this; } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.Store.Builder getStoresBuilder( int index) { return getStoresFieldBuilder().getBuilder(index); } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.StoreOrBuilder getStoresOrBuilder( int index) { if (storesBuilder_ == null) { return stores_.get(index); } else { return storesBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Store stores = 2; */ public java.util.List getStoresOrBuilderList() { if (storesBuilder_ != null) { return storesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stores_); } } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.Store.Builder addStoresBuilder() { return getStoresFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Store.getDefaultInstance()); } /** * repeated .metapb.Store stores = 2; */ public org.tikv.kvproto.Metapb.Store.Builder addStoresBuilder( int index) { return getStoresFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Store.getDefaultInstance()); } /** * repeated .metapb.Store stores = 2; */ public java.util.List getStoresBuilderList() { return getStoresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder> getStoresFieldBuilder() { if (storesBuilder_ == null) { storesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Store, org.tikv.kvproto.Metapb.Store.Builder, org.tikv.kvproto.Metapb.StoreOrBuilder>( stores_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); stores_ = null; } return storesBuilder_; } 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:pdpb.GetAllStoresResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetAllStoresResponse) private static final org.tikv.kvproto.Pdpb.GetAllStoresResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetAllStoresResponse(); } public static org.tikv.kvproto.Pdpb.GetAllStoresResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetAllStoresResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetAllStoresResponse(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.Pdpb.GetAllStoresResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetRegionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetRegionRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * bytes region_key = 2; */ com.google.protobuf.ByteString getRegionKey(); } /** * Protobuf type {@code pdpb.GetRegionRequest} */ public static final class GetRegionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetRegionRequest) GetRegionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetRegionRequest.newBuilder() to construct. private GetRegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRegionRequest() { regionKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRegionRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { regionKey_ = 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.Pdpb.internal_static_pdpb_GetRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionRequest.class, org.tikv.kvproto.Pdpb.GetRegionRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString regionKey_; /** * bytes region_key = 2; */ public com.google.protobuf.ByteString getRegionKey() { return regionKey_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!regionKey_.isEmpty()) { output.writeBytes(2, regionKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!regionKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, regionKey_); } 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.Pdpb.GetRegionRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetRegionRequest other = (org.tikv.kvproto.Pdpb.GetRegionRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRegionKey() .equals(other.getRegionKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_KEY_FIELD_NUMBER; hash = (53 * hash) + getRegionKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetRegionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionRequest 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.Pdpb.GetRegionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionRequest 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.Pdpb.GetRegionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetRegionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionRequest 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.Pdpb.GetRegionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionRequest 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.Pdpb.GetRegionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionRequest 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.Pdpb.GetRegionRequest 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 pdpb.GetRegionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetRegionRequest) org.tikv.kvproto.Pdpb.GetRegionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionRequest.class, org.tikv.kvproto.Pdpb.GetRegionRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetRegionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionKey_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetRegionRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetRegionRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetRegionRequest build() { org.tikv.kvproto.Pdpb.GetRegionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetRegionRequest buildPartial() { org.tikv.kvproto.Pdpb.GetRegionRequest result = new org.tikv.kvproto.Pdpb.GetRegionRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionKey_ = regionKey_; 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.Pdpb.GetRegionRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetRegionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetRegionRequest other) { if (other == org.tikv.kvproto.Pdpb.GetRegionRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionKey() != com.google.protobuf.ByteString.EMPTY) { setRegionKey(other.getRegionKey()); } 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.Pdpb.GetRegionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetRegionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.ByteString regionKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes region_key = 2; */ public com.google.protobuf.ByteString getRegionKey() { return regionKey_; } /** * bytes region_key = 2; */ public Builder setRegionKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } regionKey_ = value; onChanged(); return this; } /** * bytes region_key = 2; */ public Builder clearRegionKey() { regionKey_ = getDefaultInstance().getRegionKey(); 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:pdpb.GetRegionRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetRegionRequest) private static final org.tikv.kvproto.Pdpb.GetRegionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetRegionRequest(); } public static org.tikv.kvproto.Pdpb.GetRegionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRegionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRegionRequest(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.Pdpb.GetRegionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetRegionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetRegionResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Region region = 2; */ boolean hasRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * .metapb.Peer leader = 3; */ boolean hasLeader(); /** * .metapb.Peer leader = 3; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** * .metapb.Peer leader = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ java.util.List getDownPeersList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ int getDownPeersCount(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ java.util.List getDownPeersOrBuilderList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ java.util.List getPendingPeersList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ org.tikv.kvproto.Metapb.Peer getPendingPeers(int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ int getPendingPeersCount(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ java.util.List getPendingPeersOrBuilderList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index); } /** * Protobuf type {@code pdpb.GetRegionResponse} */ public static final class GetRegionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetRegionResponse) GetRegionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetRegionResponse.newBuilder() to construct. private GetRegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRegionResponse() { downPeers_ = java.util.Collections.emptyList(); pendingPeers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRegionResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } downPeers_.add( input.readMessage(org.tikv.kvproto.Pdpb.PeerStats.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } pendingPeers_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionResponse.class, org.tikv.kvproto.Pdpb.GetRegionResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int LEADER_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Peer leader_; /** * .metapb.Peer leader = 3; */ public boolean hasLeader() { return leader_ != null; } /** * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } public static final int DOWN_PEERS_FIELD_NUMBER = 5; private java.util.List downPeers_; /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public java.util.List getDownPeersList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public java.util.List getDownPeersOrBuilderList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public int getDownPeersCount() { return downPeers_.size(); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { return downPeers_.get(index); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { return downPeers_.get(index); } public static final int PENDING_PEERS_FIELD_NUMBER = 6; private java.util.List pendingPeers_; /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ public java.util.List getPendingPeersList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ public java.util.List getPendingPeersOrBuilderList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ public int getPendingPeersCount() { return pendingPeers_.size(); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { return pendingPeers_.get(index); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { return pendingPeers_.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 (header_ != null) { output.writeMessage(1, getHeader()); } if (region_ != null) { output.writeMessage(2, getRegion()); } if (leader_ != null) { output.writeMessage(3, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { output.writeMessage(5, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { output.writeMessage(6, pendingPeers_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegion()); } if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, pendingPeers_.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.Pdpb.GetRegionResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetRegionResponse other = (org.tikv.kvproto.Pdpb.GetRegionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } result = result && getDownPeersList() .equals(other.getDownPeersList()); result = result && getPendingPeersList() .equals(other.getPendingPeersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } if (getDownPeersCount() > 0) { hash = (37 * hash) + DOWN_PEERS_FIELD_NUMBER; hash = (53 * hash) + getDownPeersList().hashCode(); } if (getPendingPeersCount() > 0) { hash = (37 * hash) + PENDING_PEERS_FIELD_NUMBER; hash = (53 * hash) + getPendingPeersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetRegionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionResponse 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.Pdpb.GetRegionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionResponse 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.Pdpb.GetRegionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetRegionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionResponse 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.Pdpb.GetRegionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionResponse 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.Pdpb.GetRegionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionResponse 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.Pdpb.GetRegionResponse 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 pdpb.GetRegionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetRegionResponse) org.tikv.kvproto.Pdpb.GetRegionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionResponse.class, org.tikv.kvproto.Pdpb.GetRegionResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetRegionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDownPeersFieldBuilder(); getPendingPeersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { downPeersBuilder_.clear(); } if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { pendingPeersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetRegionResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetRegionResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetRegionResponse build() { org.tikv.kvproto.Pdpb.GetRegionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetRegionResponse buildPartial() { org.tikv.kvproto.Pdpb.GetRegionResponse result = new org.tikv.kvproto.Pdpb.GetRegionResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.build(); } if (downPeersBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); bitField0_ = (bitField0_ & ~0x00000008); } result.downPeers_ = downPeers_; } else { result.downPeers_ = downPeersBuilder_.build(); } if (pendingPeersBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); bitField0_ = (bitField0_ & ~0x00000010); } result.pendingPeers_ = pendingPeers_; } else { result.pendingPeers_ = pendingPeersBuilder_.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.Pdpb.GetRegionResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetRegionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetRegionResponse other) { if (other == org.tikv.kvproto.Pdpb.GetRegionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasLeader()) { mergeLeader(other.getLeader()); } if (downPeersBuilder_ == null) { if (!other.downPeers_.isEmpty()) { if (downPeers_.isEmpty()) { downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDownPeersIsMutable(); downPeers_.addAll(other.downPeers_); } onChanged(); } } else { if (!other.downPeers_.isEmpty()) { if (downPeersBuilder_.isEmpty()) { downPeersBuilder_.dispose(); downPeersBuilder_ = null; downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000008); downPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDownPeersFieldBuilder() : null; } else { downPeersBuilder_.addAllMessages(other.downPeers_); } } } if (pendingPeersBuilder_ == null) { if (!other.pendingPeers_.isEmpty()) { if (pendingPeers_.isEmpty()) { pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePendingPeersIsMutable(); pendingPeers_.addAll(other.pendingPeers_); } onChanged(); } } else { if (!other.pendingPeers_.isEmpty()) { if (pendingPeersBuilder_.isEmpty()) { pendingPeersBuilder_.dispose(); pendingPeersBuilder_ = null; pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000010); pendingPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPendingPeersFieldBuilder() : null; } else { pendingPeersBuilder_.addAllMessages(other.pendingPeers_); } } } 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.Pdpb.GetRegionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetRegionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 2; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 2; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 2; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 2; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** * .metapb.Peer leader = 3; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .metapb.Peer leader = 3; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .metapb.Peer leader = 3; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer leader = 3; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer leader = 3; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** * .metapb.Peer leader = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } private java.util.List downPeers_ = java.util.Collections.emptyList(); private void ensureDownPeersIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = new java.util.ArrayList(downPeers_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> downPeersBuilder_; /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public java.util.List getDownPeersList() { if (downPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(downPeers_); } else { return downPeersBuilder_.getMessageList(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public int getDownPeersCount() { if (downPeersBuilder_ == null) { return downPeers_.size(); } else { return downPeersBuilder_.getCount(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessage(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.set(index, value); onChanged(); } else { downPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.set(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder addDownPeers(org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(value); onChanged(); } else { downPeersBuilder_.addMessage(value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(index, value); onChanged(); } else { downPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder addDownPeers( org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder addAllDownPeers( java.lang.Iterable values) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, downPeers_); onChanged(); } else { downPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder clearDownPeers() { if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { downPeersBuilder_.clear(); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public Builder removeDownPeers(int index) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.remove(index); onChanged(); } else { downPeersBuilder_.remove(index); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder getDownPeersBuilder( int index) { return getDownPeersFieldBuilder().getBuilder(index); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public java.util.List getDownPeersOrBuilderList() { if (downPeersBuilder_ != null) { return downPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(downPeers_); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder() { return getDownPeersFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder( int index) { return getDownPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 5; */ public java.util.List getDownPeersBuilderList() { return getDownPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> getDownPeersFieldBuilder() { if (downPeersBuilder_ == null) { downPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>( downPeers_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); downPeers_ = null; } return downPeersBuilder_; } private java.util.List pendingPeers_ = java.util.Collections.emptyList(); private void ensurePendingPeersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = new java.util.ArrayList(pendingPeers_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> pendingPeersBuilder_; /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public java.util.List getPendingPeersList() { if (pendingPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(pendingPeers_); } else { return pendingPeersBuilder_.getMessageList(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public int getPendingPeersCount() { if (pendingPeersBuilder_ == null) { return pendingPeers_.size(); } else { return pendingPeersBuilder_.getCount(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessage(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.set(index, value); onChanged(); } else { pendingPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.set(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder addPendingPeers(org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(value); onChanged(); } else { pendingPeersBuilder_.addMessage(value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(index, value); onChanged(); } else { pendingPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder addPendingPeers( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder addAllPendingPeers( java.lang.Iterable values) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pendingPeers_); onChanged(); } else { pendingPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder clearPendingPeers() { if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { pendingPeersBuilder_.clear(); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public Builder removePendingPeers(int index) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.remove(index); onChanged(); } else { pendingPeersBuilder_.remove(index); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.Peer.Builder getPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().getBuilder(index); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public java.util.List getPendingPeersOrBuilderList() { if (pendingPeersBuilder_ != null) { return pendingPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pendingPeers_); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder() { return getPendingPeersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 6; */ public java.util.List getPendingPeersBuilderList() { return getPendingPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPendingPeersFieldBuilder() { if (pendingPeersBuilder_ == null) { pendingPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( pendingPeers_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); pendingPeers_ = null; } return pendingPeersBuilder_; } 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:pdpb.GetRegionResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetRegionResponse) private static final org.tikv.kvproto.Pdpb.GetRegionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetRegionResponse(); } public static org.tikv.kvproto.Pdpb.GetRegionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRegionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRegionResponse(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.Pdpb.GetRegionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetRegionByIDRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetRegionByIDRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 region_id = 2; */ long getRegionId(); } /** * Protobuf type {@code pdpb.GetRegionByIDRequest} */ public static final class GetRegionByIDRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetRegionByIDRequest) GetRegionByIDRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetRegionByIDRequest.newBuilder() to construct. private GetRegionByIDRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRegionByIDRequest() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRegionByIDRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionByIDRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionByIDRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionByIDRequest.class, org.tikv.kvproto.Pdpb.GetRegionByIDRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } 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.Pdpb.GetRegionByIDRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetRegionByIDRequest other = (org.tikv.kvproto.Pdpb.GetRegionByIDRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest 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.Pdpb.GetRegionByIDRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest 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.Pdpb.GetRegionByIDRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest 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.Pdpb.GetRegionByIDRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest 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.Pdpb.GetRegionByIDRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest 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.Pdpb.GetRegionByIDRequest 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 pdpb.GetRegionByIDRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetRegionByIDRequest) org.tikv.kvproto.Pdpb.GetRegionByIDRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionByIDRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionByIDRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetRegionByIDRequest.class, org.tikv.kvproto.Pdpb.GetRegionByIDRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetRegionByIDRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetRegionByIDRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetRegionByIDRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetRegionByIDRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetRegionByIDRequest build() { org.tikv.kvproto.Pdpb.GetRegionByIDRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetRegionByIDRequest buildPartial() { org.tikv.kvproto.Pdpb.GetRegionByIDRequest result = new org.tikv.kvproto.Pdpb.GetRegionByIDRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.GetRegionByIDRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetRegionByIDRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetRegionByIDRequest other) { if (other == org.tikv.kvproto.Pdpb.GetRegionByIDRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.GetRegionByIDRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetRegionByIDRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long regionId_ ; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } 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:pdpb.GetRegionByIDRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetRegionByIDRequest) private static final org.tikv.kvproto.Pdpb.GetRegionByIDRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetRegionByIDRequest(); } public static org.tikv.kvproto.Pdpb.GetRegionByIDRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRegionByIDRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRegionByIDRequest(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.Pdpb.GetRegionByIDRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanRegionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ScanRegionsRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** *
     * no limit when limit <= 0.
     * 
* * int32 limit = 3; */ int getLimit(); /** *
     * end_key is +inf when it is empty.
     * 
* * bytes end_key = 4; */ com.google.protobuf.ByteString getEndKey(); } /** * Protobuf type {@code pdpb.ScanRegionsRequest} */ public static final class ScanRegionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ScanRegionsRequest) ScanRegionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ScanRegionsRequest.newBuilder() to construct. private ScanRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanRegionsRequest() { 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 ScanRegionsRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 24: { limit_ = input.readInt32(); break; } case 34: { endKey_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScanRegionsRequest.class, org.tikv.kvproto.Pdpb.ScanRegionsRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } 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_; /** *
     * no limit when limit <= 0.
     * 
* * int32 limit = 3; */ public int getLimit() { return limit_; } public static final int END_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endKey_; /** *
     * end_key is +inf when it is empty.
     * 
* * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (limit_ != 0) { output.writeInt32(3, limit_); } if (!endKey_.isEmpty()) { output.writeBytes(4, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, limit_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, endKey_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.ScanRegionsRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ScanRegionsRequest other = (org.tikv.kvproto.Pdpb.ScanRegionsRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().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) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest 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.Pdpb.ScanRegionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest 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.Pdpb.ScanRegionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest 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.Pdpb.ScanRegionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest 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.Pdpb.ScanRegionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest 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.Pdpb.ScanRegionsRequest 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 pdpb.ScanRegionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ScanRegionsRequest) org.tikv.kvproto.Pdpb.ScanRegionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScanRegionsRequest.class, org.tikv.kvproto.Pdpb.ScanRegionsRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ScanRegionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } 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.Pdpb.internal_static_pdpb_ScanRegionsRequest_descriptor; } public org.tikv.kvproto.Pdpb.ScanRegionsRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ScanRegionsRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ScanRegionsRequest build() { org.tikv.kvproto.Pdpb.ScanRegionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ScanRegionsRequest buildPartial() { org.tikv.kvproto.Pdpb.ScanRegionsRequest result = new org.tikv.kvproto.Pdpb.ScanRegionsRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } 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.Pdpb.ScanRegionsRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.ScanRegionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ScanRegionsRequest other) { if (other == org.tikv.kvproto.Pdpb.ScanRegionsRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.ScanRegionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ScanRegionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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_ ; /** *
       * no limit when limit <= 0.
       * 
* * int32 limit = 3; */ public int getLimit() { return limit_; } /** *
       * no limit when limit <= 0.
       * 
* * int32 limit = 3; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** *
       * no limit when limit <= 0.
       * 
* * int32 limit = 3; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * end_key is +inf when it is empty.
       * 
* * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** *
       * end_key is +inf when it is empty.
       * 
* * bytes end_key = 4; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** *
       * end_key is +inf when it is empty.
       * 
* * bytes end_key = 4; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.ScanRegionsRequest) } // @@protoc_insertion_point(class_scope:pdpb.ScanRegionsRequest) private static final org.tikv.kvproto.Pdpb.ScanRegionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ScanRegionsRequest(); } public static org.tikv.kvproto.Pdpb.ScanRegionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanRegionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanRegionsRequest(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.Pdpb.ScanRegionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.Region) com.google.protobuf.MessageOrBuilder { /** * .metapb.Region region = 1; */ boolean hasRegion(); /** * .metapb.Region region = 1; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * .metapb.Peer leader = 2; */ boolean hasLeader(); /** * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ java.util.List getDownPeersList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ int getDownPeersCount(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ java.util.List getDownPeersOrBuilderList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ java.util.List getPendingPeersList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ org.tikv.kvproto.Metapb.Peer getPendingPeers(int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ int getPendingPeersCount(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ java.util.List getPendingPeersOrBuilderList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index); } /** * Protobuf type {@code pdpb.Region} */ public static final class Region extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.Region) RegionOrBuilder { private static final long serialVersionUID = 0L; // Use Region.newBuilder() to construct. private Region(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Region() { downPeers_ = java.util.Collections.emptyList(); pendingPeers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Region( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { downPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } downPeers_.add( input.readMessage(org.tikv.kvproto.Pdpb.PeerStats.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { pendingPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } pendingPeers_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Region_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Region_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Region.class, org.tikv.kvproto.Pdpb.Region.Builder.class); } private int bitField0_; public static final int REGION_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 1; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer leader_; /** * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leader_ != null; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } public static final int DOWN_PEERS_FIELD_NUMBER = 3; private java.util.List downPeers_; /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public java.util.List getDownPeersList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public java.util.List getDownPeersOrBuilderList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public int getDownPeersCount() { return downPeers_.size(); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { return downPeers_.get(index); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { return downPeers_.get(index); } public static final int PENDING_PEERS_FIELD_NUMBER = 4; private java.util.List pendingPeers_; /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ public java.util.List getPendingPeersList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ public java.util.List getPendingPeersOrBuilderList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ public int getPendingPeersCount() { return pendingPeers_.size(); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { return pendingPeers_.get(index); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { return pendingPeers_.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 (region_ != null) { output.writeMessage(1, getRegion()); } if (leader_ != null) { output.writeMessage(2, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { output.writeMessage(3, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { output.writeMessage(4, pendingPeers_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegion()); } if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, pendingPeers_.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.Pdpb.Region)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.Region other = (org.tikv.kvproto.Pdpb.Region) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } result = result && getDownPeersList() .equals(other.getDownPeersList()); result = result && getPendingPeersList() .equals(other.getPendingPeersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } if (getDownPeersCount() > 0) { hash = (37 * hash) + DOWN_PEERS_FIELD_NUMBER; hash = (53 * hash) + getDownPeersList().hashCode(); } if (getPendingPeersCount() > 0) { hash = (37 * hash) + PENDING_PEERS_FIELD_NUMBER; hash = (53 * hash) + getPendingPeersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.Region parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Region 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.Pdpb.Region parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Region 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.Pdpb.Region parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Region parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Region parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Region 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.Pdpb.Region parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Region 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.Pdpb.Region parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Region 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.Pdpb.Region 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 pdpb.Region} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.Region) org.tikv.kvproto.Pdpb.RegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Region_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Region_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Region.class, org.tikv.kvproto.Pdpb.Region.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.Region.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDownPeersFieldBuilder(); getPendingPeersFieldBuilder(); } } public Builder clear() { super.clear(); if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { downPeersBuilder_.clear(); } if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { pendingPeersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Region_descriptor; } public org.tikv.kvproto.Pdpb.Region getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.Region.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.Region build() { org.tikv.kvproto.Pdpb.Region result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.Region buildPartial() { org.tikv.kvproto.Pdpb.Region result = new org.tikv.kvproto.Pdpb.Region(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.build(); } if (downPeersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); bitField0_ = (bitField0_ & ~0x00000004); } result.downPeers_ = downPeers_; } else { result.downPeers_ = downPeersBuilder_.build(); } if (pendingPeersBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); bitField0_ = (bitField0_ & ~0x00000008); } result.pendingPeers_ = pendingPeers_; } else { result.pendingPeers_ = pendingPeersBuilder_.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.Pdpb.Region) { return mergeFrom((org.tikv.kvproto.Pdpb.Region)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.Region other) { if (other == org.tikv.kvproto.Pdpb.Region.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasLeader()) { mergeLeader(other.getLeader()); } if (downPeersBuilder_ == null) { if (!other.downPeers_.isEmpty()) { if (downPeers_.isEmpty()) { downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDownPeersIsMutable(); downPeers_.addAll(other.downPeers_); } onChanged(); } } else { if (!other.downPeers_.isEmpty()) { if (downPeersBuilder_.isEmpty()) { downPeersBuilder_.dispose(); downPeersBuilder_ = null; downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000004); downPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDownPeersFieldBuilder() : null; } else { downPeersBuilder_.addAllMessages(other.downPeers_); } } } if (pendingPeersBuilder_ == null) { if (!other.pendingPeers_.isEmpty()) { if (pendingPeers_.isEmpty()) { pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePendingPeersIsMutable(); pendingPeers_.addAll(other.pendingPeers_); } onChanged(); } } else { if (!other.pendingPeers_.isEmpty()) { if (pendingPeersBuilder_.isEmpty()) { pendingPeersBuilder_.dispose(); pendingPeersBuilder_ = null; pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000008); pendingPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPendingPeersFieldBuilder() : null; } else { pendingPeersBuilder_.addAllMessages(other.pendingPeers_); } } } 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.Pdpb.Region parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.Region) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 1; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 1; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 1; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 1; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 1; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .metapb.Peer leader = 2; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .metapb.Peer leader = 2; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer leader = 2; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer leader = 2; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** * .metapb.Peer leader = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } private java.util.List downPeers_ = java.util.Collections.emptyList(); private void ensureDownPeersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { downPeers_ = new java.util.ArrayList(downPeers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> downPeersBuilder_; /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public java.util.List getDownPeersList() { if (downPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(downPeers_); } else { return downPeersBuilder_.getMessageList(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public int getDownPeersCount() { if (downPeersBuilder_ == null) { return downPeers_.size(); } else { return downPeersBuilder_.getCount(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessage(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.set(index, value); onChanged(); } else { downPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.set(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder addDownPeers(org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(value); onChanged(); } else { downPeersBuilder_.addMessage(value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(index, value); onChanged(); } else { downPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder addDownPeers( org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder addAllDownPeers( java.lang.Iterable values) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, downPeers_); onChanged(); } else { downPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder clearDownPeers() { if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { downPeersBuilder_.clear(); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public Builder removeDownPeers(int index) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.remove(index); onChanged(); } else { downPeersBuilder_.remove(index); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder getDownPeersBuilder( int index) { return getDownPeersFieldBuilder().getBuilder(index); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public java.util.List getDownPeersOrBuilderList() { if (downPeersBuilder_ != null) { return downPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(downPeers_); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder() { return getDownPeersFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder( int index) { return getDownPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 3; */ public java.util.List getDownPeersBuilderList() { return getDownPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> getDownPeersFieldBuilder() { if (downPeersBuilder_ == null) { downPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>( downPeers_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); downPeers_ = null; } return downPeersBuilder_; } private java.util.List pendingPeers_ = java.util.Collections.emptyList(); private void ensurePendingPeersIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { pendingPeers_ = new java.util.ArrayList(pendingPeers_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> pendingPeersBuilder_; /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public java.util.List getPendingPeersList() { if (pendingPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(pendingPeers_); } else { return pendingPeersBuilder_.getMessageList(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public int getPendingPeersCount() { if (pendingPeersBuilder_ == null) { return pendingPeers_.size(); } else { return pendingPeersBuilder_.getCount(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessage(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.set(index, value); onChanged(); } else { pendingPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.set(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder addPendingPeers(org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(value); onChanged(); } else { pendingPeersBuilder_.addMessage(value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(index, value); onChanged(); } else { pendingPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder addPendingPeers( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder addAllPendingPeers( java.lang.Iterable values) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pendingPeers_); onChanged(); } else { pendingPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder clearPendingPeers() { if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { pendingPeersBuilder_.clear(); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public Builder removePendingPeers(int index) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.remove(index); onChanged(); } else { pendingPeersBuilder_.remove(index); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.Peer.Builder getPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().getBuilder(index); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public java.util.List getPendingPeersOrBuilderList() { if (pendingPeersBuilder_ != null) { return pendingPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pendingPeers_); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder() { return getPendingPeersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 4; */ public java.util.List getPendingPeersBuilderList() { return getPendingPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPendingPeersFieldBuilder() { if (pendingPeersBuilder_ == null) { pendingPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( pendingPeers_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); pendingPeers_ = null; } return pendingPeersBuilder_; } 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:pdpb.Region) } // @@protoc_insertion_point(class_scope:pdpb.Region) private static final org.tikv.kvproto.Pdpb.Region DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.Region(); } public static org.tikv.kvproto.Pdpb.Region getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Region parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Region(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.Pdpb.Region getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanRegionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ScanRegionsResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ java.util.List getRegionMetasList(); /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ org.tikv.kvproto.Metapb.Region getRegionMetas(int index); /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ int getRegionMetasCount(); /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ java.util.List getRegionMetasOrBuilderList(); /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionMetasOrBuilder( int index); /** * repeated .metapb.Peer leaders = 3; */ java.util.List getLeadersList(); /** * repeated .metapb.Peer leaders = 3; */ org.tikv.kvproto.Metapb.Peer getLeaders(int index); /** * repeated .metapb.Peer leaders = 3; */ int getLeadersCount(); /** * repeated .metapb.Peer leaders = 3; */ java.util.List getLeadersOrBuilderList(); /** * repeated .metapb.Peer leaders = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeadersOrBuilder( int index); /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ java.util.List getRegionsList(); /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ org.tikv.kvproto.Pdpb.Region getRegions(int index); /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ int getRegionsCount(); /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ java.util.List getRegionsOrBuilderList(); /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ org.tikv.kvproto.Pdpb.RegionOrBuilder getRegionsOrBuilder( int index); } /** * Protobuf type {@code pdpb.ScanRegionsResponse} */ public static final class ScanRegionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ScanRegionsResponse) ScanRegionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ScanRegionsResponse.newBuilder() to construct. private ScanRegionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanRegionsResponse() { regionMetas_ = java.util.Collections.emptyList(); leaders_ = java.util.Collections.emptyList(); regions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanRegionsResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regionMetas_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } regionMetas_.add( input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { leaders_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } leaders_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } regions_.add( input.readMessage(org.tikv.kvproto.Pdpb.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_ & 0x00000002) == 0x00000002)) { regionMetas_ = java.util.Collections.unmodifiableList(regionMetas_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { leaders_ = java.util.Collections.unmodifiableList(leaders_); } 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.Pdpb.internal_static_pdpb_ScanRegionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScanRegionsResponse.class, org.tikv.kvproto.Pdpb.ScanRegionsResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_METAS_FIELD_NUMBER = 2; private java.util.List regionMetas_; /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ public java.util.List getRegionMetasList() { return regionMetas_; } /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ public java.util.List getRegionMetasOrBuilderList() { return regionMetas_; } /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ public int getRegionMetasCount() { return regionMetas_.size(); } /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.Region getRegionMetas(int index) { return regionMetas_.get(index); } /** *
     * Keep for backword compatibability.
     * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionMetasOrBuilder( int index) { return regionMetas_.get(index); } public static final int LEADERS_FIELD_NUMBER = 3; private java.util.List leaders_; /** * repeated .metapb.Peer leaders = 3; */ public java.util.List getLeadersList() { return leaders_; } /** * repeated .metapb.Peer leaders = 3; */ public java.util.List getLeadersOrBuilderList() { return leaders_; } /** * repeated .metapb.Peer leaders = 3; */ public int getLeadersCount() { return leaders_.size(); } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.Peer getLeaders(int index) { return leaders_.get(index); } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeadersOrBuilder( int index) { return leaders_.get(index); } public static final int REGIONS_FIELD_NUMBER = 4; private java.util.List regions_; /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ public java.util.List getRegionsList() { return regions_; } /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ public int getRegionsCount() { return regions_.size(); } /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.Region getRegions(int index) { return regions_.get(index); } /** *
     * Extended region info with down/pending peers.
     * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < regionMetas_.size(); i++) { output.writeMessage(2, regionMetas_.get(i)); } for (int i = 0; i < leaders_.size(); i++) { output.writeMessage(3, leaders_.get(i)); } 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 (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < regionMetas_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, regionMetas_.get(i)); } for (int i = 0; i < leaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, leaders_.get(i)); } 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.Pdpb.ScanRegionsResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ScanRegionsResponse other = (org.tikv.kvproto.Pdpb.ScanRegionsResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRegionMetasList() .equals(other.getRegionMetasList()); result = result && getLeadersList() .equals(other.getLeadersList()); 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getRegionMetasCount() > 0) { hash = (37 * hash) + REGION_METAS_FIELD_NUMBER; hash = (53 * hash) + getRegionMetasList().hashCode(); } if (getLeadersCount() > 0) { hash = (37 * hash) + LEADERS_FIELD_NUMBER; hash = (53 * hash) + getLeadersList().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.Pdpb.ScanRegionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse 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.Pdpb.ScanRegionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse 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.Pdpb.ScanRegionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse 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.Pdpb.ScanRegionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse 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.Pdpb.ScanRegionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse 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.Pdpb.ScanRegionsResponse 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 pdpb.ScanRegionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ScanRegionsResponse) org.tikv.kvproto.Pdpb.ScanRegionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScanRegionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScanRegionsResponse.class, org.tikv.kvproto.Pdpb.ScanRegionsResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ScanRegionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionMetasFieldBuilder(); getLeadersFieldBuilder(); getRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionMetasBuilder_ == null) { regionMetas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { regionMetasBuilder_.clear(); } if (leadersBuilder_ == null) { leaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { leadersBuilder_.clear(); } 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.Pdpb.internal_static_pdpb_ScanRegionsResponse_descriptor; } public org.tikv.kvproto.Pdpb.ScanRegionsResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ScanRegionsResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ScanRegionsResponse build() { org.tikv.kvproto.Pdpb.ScanRegionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ScanRegionsResponse buildPartial() { org.tikv.kvproto.Pdpb.ScanRegionsResponse result = new org.tikv.kvproto.Pdpb.ScanRegionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionMetasBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { regionMetas_ = java.util.Collections.unmodifiableList(regionMetas_); bitField0_ = (bitField0_ & ~0x00000002); } result.regionMetas_ = regionMetas_; } else { result.regionMetas_ = regionMetasBuilder_.build(); } if (leadersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { leaders_ = java.util.Collections.unmodifiableList(leaders_); bitField0_ = (bitField0_ & ~0x00000004); } result.leaders_ = leaders_; } else { result.leaders_ = leadersBuilder_.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.Pdpb.ScanRegionsResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.ScanRegionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ScanRegionsResponse other) { if (other == org.tikv.kvproto.Pdpb.ScanRegionsResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (regionMetasBuilder_ == null) { if (!other.regionMetas_.isEmpty()) { if (regionMetas_.isEmpty()) { regionMetas_ = other.regionMetas_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRegionMetasIsMutable(); regionMetas_.addAll(other.regionMetas_); } onChanged(); } } else { if (!other.regionMetas_.isEmpty()) { if (regionMetasBuilder_.isEmpty()) { regionMetasBuilder_.dispose(); regionMetasBuilder_ = null; regionMetas_ = other.regionMetas_; bitField0_ = (bitField0_ & ~0x00000002); regionMetasBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionMetasFieldBuilder() : null; } else { regionMetasBuilder_.addAllMessages(other.regionMetas_); } } } if (leadersBuilder_ == null) { if (!other.leaders_.isEmpty()) { if (leaders_.isEmpty()) { leaders_ = other.leaders_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLeadersIsMutable(); leaders_.addAll(other.leaders_); } onChanged(); } } else { if (!other.leaders_.isEmpty()) { if (leadersBuilder_.isEmpty()) { leadersBuilder_.dispose(); leadersBuilder_ = null; leaders_ = other.leaders_; bitField0_ = (bitField0_ & ~0x00000004); leadersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLeadersFieldBuilder() : null; } else { leadersBuilder_.addAllMessages(other.leaders_); } } } 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.Pdpb.ScanRegionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ScanRegionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List regionMetas_ = java.util.Collections.emptyList(); private void ensureRegionMetasIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { regionMetas_ = new java.util.ArrayList(regionMetas_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionMetasBuilder_; /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public java.util.List getRegionMetasList() { if (regionMetasBuilder_ == null) { return java.util.Collections.unmodifiableList(regionMetas_); } else { return regionMetasBuilder_.getMessageList(); } } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public int getRegionMetasCount() { if (regionMetasBuilder_ == null) { return regionMetas_.size(); } else { return regionMetasBuilder_.getCount(); } } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.Region getRegionMetas(int index) { if (regionMetasBuilder_ == null) { return regionMetas_.get(index); } else { return regionMetasBuilder_.getMessage(index); } } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder setRegionMetas( int index, org.tikv.kvproto.Metapb.Region value) { if (regionMetasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionMetasIsMutable(); regionMetas_.set(index, value); onChanged(); } else { regionMetasBuilder_.setMessage(index, value); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder setRegionMetas( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionMetasBuilder_ == null) { ensureRegionMetasIsMutable(); regionMetas_.set(index, builderForValue.build()); onChanged(); } else { regionMetasBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder addRegionMetas(org.tikv.kvproto.Metapb.Region value) { if (regionMetasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionMetasIsMutable(); regionMetas_.add(value); onChanged(); } else { regionMetasBuilder_.addMessage(value); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder addRegionMetas( int index, org.tikv.kvproto.Metapb.Region value) { if (regionMetasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionMetasIsMutable(); regionMetas_.add(index, value); onChanged(); } else { regionMetasBuilder_.addMessage(index, value); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder addRegionMetas( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionMetasBuilder_ == null) { ensureRegionMetasIsMutable(); regionMetas_.add(builderForValue.build()); onChanged(); } else { regionMetasBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder addRegionMetas( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionMetasBuilder_ == null) { ensureRegionMetasIsMutable(); regionMetas_.add(index, builderForValue.build()); onChanged(); } else { regionMetasBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder addAllRegionMetas( java.lang.Iterable values) { if (regionMetasBuilder_ == null) { ensureRegionMetasIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regionMetas_); onChanged(); } else { regionMetasBuilder_.addAllMessages(values); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder clearRegionMetas() { if (regionMetasBuilder_ == null) { regionMetas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { regionMetasBuilder_.clear(); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public Builder removeRegionMetas(int index) { if (regionMetasBuilder_ == null) { ensureRegionMetasIsMutable(); regionMetas_.remove(index); onChanged(); } else { regionMetasBuilder_.remove(index); } return this; } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionMetasBuilder( int index) { return getRegionMetasFieldBuilder().getBuilder(index); } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionMetasOrBuilder( int index) { if (regionMetasBuilder_ == null) { return regionMetas_.get(index); } else { return regionMetasBuilder_.getMessageOrBuilder(index); } } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public java.util.List getRegionMetasOrBuilderList() { if (regionMetasBuilder_ != null) { return regionMetasBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regionMetas_); } } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionMetasBuilder() { return getRegionMetasFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionMetasBuilder( int index) { return getRegionMetasFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * Keep for backword compatibability.
       * 
* * repeated .metapb.Region region_metas = 2; */ public java.util.List getRegionMetasBuilderList() { return getRegionMetasFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionMetasFieldBuilder() { if (regionMetasBuilder_ == null) { regionMetasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( regionMetas_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); regionMetas_ = null; } return regionMetasBuilder_; } private java.util.List leaders_ = java.util.Collections.emptyList(); private void ensureLeadersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { leaders_ = new java.util.ArrayList(leaders_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leadersBuilder_; /** * repeated .metapb.Peer leaders = 3; */ public java.util.List getLeadersList() { if (leadersBuilder_ == null) { return java.util.Collections.unmodifiableList(leaders_); } else { return leadersBuilder_.getMessageList(); } } /** * repeated .metapb.Peer leaders = 3; */ public int getLeadersCount() { if (leadersBuilder_ == null) { return leaders_.size(); } else { return leadersBuilder_.getCount(); } } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.Peer getLeaders(int index) { if (leadersBuilder_ == null) { return leaders_.get(index); } else { return leadersBuilder_.getMessage(index); } } /** * repeated .metapb.Peer leaders = 3; */ public Builder setLeaders( int index, org.tikv.kvproto.Metapb.Peer value) { if (leadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeadersIsMutable(); leaders_.set(index, value); onChanged(); } else { leadersBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder setLeaders( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leadersBuilder_ == null) { ensureLeadersIsMutable(); leaders_.set(index, builderForValue.build()); onChanged(); } else { leadersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder addLeaders(org.tikv.kvproto.Metapb.Peer value) { if (leadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeadersIsMutable(); leaders_.add(value); onChanged(); } else { leadersBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder addLeaders( int index, org.tikv.kvproto.Metapb.Peer value) { if (leadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeadersIsMutable(); leaders_.add(index, value); onChanged(); } else { leadersBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder addLeaders( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leadersBuilder_ == null) { ensureLeadersIsMutable(); leaders_.add(builderForValue.build()); onChanged(); } else { leadersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder addLeaders( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leadersBuilder_ == null) { ensureLeadersIsMutable(); leaders_.add(index, builderForValue.build()); onChanged(); } else { leadersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder addAllLeaders( java.lang.Iterable values) { if (leadersBuilder_ == null) { ensureLeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, leaders_); onChanged(); } else { leadersBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder clearLeaders() { if (leadersBuilder_ == null) { leaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { leadersBuilder_.clear(); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public Builder removeLeaders(int index) { if (leadersBuilder_ == null) { ensureLeadersIsMutable(); leaders_.remove(index); onChanged(); } else { leadersBuilder_.remove(index); } return this; } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeadersBuilder( int index) { return getLeadersFieldBuilder().getBuilder(index); } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeadersOrBuilder( int index) { if (leadersBuilder_ == null) { return leaders_.get(index); } else { return leadersBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Peer leaders = 3; */ public java.util.List getLeadersOrBuilderList() { if (leadersBuilder_ != null) { return leadersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(leaders_); } } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder addLeadersBuilder() { return getLeadersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer leaders = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder addLeadersBuilder( int index) { return getLeadersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer leaders = 3; */ public java.util.List getLeadersBuilderList() { return getLeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeadersFieldBuilder() { if (leadersBuilder_ == null) { leadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( leaders_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); leaders_ = null; } return leadersBuilder_; } 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.Pdpb.Region, org.tikv.kvproto.Pdpb.Region.Builder, org.tikv.kvproto.Pdpb.RegionOrBuilder> regionsBuilder_; /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Pdpb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Pdpb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder addRegions(org.tikv.kvproto.Pdpb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Pdpb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder addRegions( org.tikv.kvproto.Pdpb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Pdpb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.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; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.Region.getDefaultInstance()); } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public org.tikv.kvproto.Pdpb.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.Region.getDefaultInstance()); } /** *
       * Extended region info with down/pending peers.
       * 
* * repeated .pdpb.Region regions = 4; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.Region, org.tikv.kvproto.Pdpb.Region.Builder, org.tikv.kvproto.Pdpb.RegionOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.Region, org.tikv.kvproto.Pdpb.Region.Builder, org.tikv.kvproto.Pdpb.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:pdpb.ScanRegionsResponse) } // @@protoc_insertion_point(class_scope:pdpb.ScanRegionsResponse) private static final org.tikv.kvproto.Pdpb.ScanRegionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ScanRegionsResponse(); } public static org.tikv.kvproto.Pdpb.ScanRegionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanRegionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanRegionsResponse(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.Pdpb.ScanRegionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetClusterConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetClusterConfigRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.GetClusterConfigRequest} */ public static final class GetClusterConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetClusterConfigRequest) GetClusterConfigRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetClusterConfigRequest.newBuilder() to construct. private GetClusterConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetClusterConfigRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetClusterConfigRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_GetClusterConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetClusterConfigRequest.class, org.tikv.kvproto.Pdpb.GetClusterConfigRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.GetClusterConfigRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetClusterConfigRequest other = (org.tikv.kvproto.Pdpb.GetClusterConfigRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest 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.Pdpb.GetClusterConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest 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.Pdpb.GetClusterConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest 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.Pdpb.GetClusterConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest 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.Pdpb.GetClusterConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest 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.Pdpb.GetClusterConfigRequest 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 pdpb.GetClusterConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetClusterConfigRequest) org.tikv.kvproto.Pdpb.GetClusterConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetClusterConfigRequest.class, org.tikv.kvproto.Pdpb.GetClusterConfigRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetClusterConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetClusterConfigRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetClusterConfigRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetClusterConfigRequest build() { org.tikv.kvproto.Pdpb.GetClusterConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetClusterConfigRequest buildPartial() { org.tikv.kvproto.Pdpb.GetClusterConfigRequest result = new org.tikv.kvproto.Pdpb.GetClusterConfigRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.GetClusterConfigRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetClusterConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetClusterConfigRequest other) { if (other == org.tikv.kvproto.Pdpb.GetClusterConfigRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.GetClusterConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetClusterConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.GetClusterConfigRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetClusterConfigRequest) private static final org.tikv.kvproto.Pdpb.GetClusterConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetClusterConfigRequest(); } public static org.tikv.kvproto.Pdpb.GetClusterConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetClusterConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetClusterConfigRequest(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.Pdpb.GetClusterConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetClusterConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetClusterConfigResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Cluster cluster = 2; */ boolean hasCluster(); /** * .metapb.Cluster cluster = 2; */ org.tikv.kvproto.Metapb.Cluster getCluster(); /** * .metapb.Cluster cluster = 2; */ org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder(); } /** * Protobuf type {@code pdpb.GetClusterConfigResponse} */ public static final class GetClusterConfigResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetClusterConfigResponse) GetClusterConfigResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetClusterConfigResponse.newBuilder() to construct. private GetClusterConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetClusterConfigResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetClusterConfigResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Cluster.Builder subBuilder = null; if (cluster_ != null) { subBuilder = cluster_.toBuilder(); } cluster_ = input.readMessage(org.tikv.kvproto.Metapb.Cluster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cluster_); cluster_ = 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.Pdpb.internal_static_pdpb_GetClusterConfigResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetClusterConfigResponse.class, org.tikv.kvproto.Pdpb.GetClusterConfigResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int CLUSTER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Cluster cluster_; /** * .metapb.Cluster cluster = 2; */ public boolean hasCluster() { return cluster_ != null; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster getCluster() { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder() { return getCluster(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (cluster_ != null) { output.writeMessage(2, getCluster()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCluster()); } 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.Pdpb.GetClusterConfigResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetClusterConfigResponse other = (org.tikv.kvproto.Pdpb.GetClusterConfigResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasCluster() == other.hasCluster()); if (hasCluster()) { result = result && getCluster() .equals(other.getCluster()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse 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.Pdpb.GetClusterConfigResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse 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.Pdpb.GetClusterConfigResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse 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.Pdpb.GetClusterConfigResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse 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.Pdpb.GetClusterConfigResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse 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.Pdpb.GetClusterConfigResponse 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 pdpb.GetClusterConfigResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetClusterConfigResponse) org.tikv.kvproto.Pdpb.GetClusterConfigResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetClusterConfigResponse.class, org.tikv.kvproto.Pdpb.GetClusterConfigResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetClusterConfigResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetClusterConfigResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetClusterConfigResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetClusterConfigResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetClusterConfigResponse build() { org.tikv.kvproto.Pdpb.GetClusterConfigResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetClusterConfigResponse buildPartial() { org.tikv.kvproto.Pdpb.GetClusterConfigResponse result = new org.tikv.kvproto.Pdpb.GetClusterConfigResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.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.Pdpb.GetClusterConfigResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetClusterConfigResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetClusterConfigResponse other) { if (other == org.tikv.kvproto.Pdpb.GetClusterConfigResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } 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.Pdpb.GetClusterConfigResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetClusterConfigResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Cluster cluster_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder> clusterBuilder_; /** * .metapb.Cluster cluster = 2; */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** * .metapb.Cluster cluster = 2; */ public Builder setCluster(org.tikv.kvproto.Metapb.Cluster value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder setCluster( org.tikv.kvproto.Metapb.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder mergeCluster(org.tikv.kvproto.Metapb.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = org.tikv.kvproto.Metapb.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } } /** * .metapb.Cluster cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } 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:pdpb.GetClusterConfigResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetClusterConfigResponse) private static final org.tikv.kvproto.Pdpb.GetClusterConfigResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetClusterConfigResponse(); } public static org.tikv.kvproto.Pdpb.GetClusterConfigResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetClusterConfigResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetClusterConfigResponse(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.Pdpb.GetClusterConfigResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutClusterConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.PutClusterConfigRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Cluster cluster = 2; */ boolean hasCluster(); /** * .metapb.Cluster cluster = 2; */ org.tikv.kvproto.Metapb.Cluster getCluster(); /** * .metapb.Cluster cluster = 2; */ org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder(); } /** * Protobuf type {@code pdpb.PutClusterConfigRequest} */ public static final class PutClusterConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.PutClusterConfigRequest) PutClusterConfigRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PutClusterConfigRequest.newBuilder() to construct. private PutClusterConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutClusterConfigRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutClusterConfigRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Cluster.Builder subBuilder = null; if (cluster_ != null) { subBuilder = cluster_.toBuilder(); } cluster_ = input.readMessage(org.tikv.kvproto.Metapb.Cluster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cluster_); cluster_ = 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.Pdpb.internal_static_pdpb_PutClusterConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutClusterConfigRequest.class, org.tikv.kvproto.Pdpb.PutClusterConfigRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int CLUSTER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Cluster cluster_; /** * .metapb.Cluster cluster = 2; */ public boolean hasCluster() { return cluster_ != null; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster getCluster() { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder() { return getCluster(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (cluster_ != null) { output.writeMessage(2, getCluster()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCluster()); } 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.Pdpb.PutClusterConfigRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.PutClusterConfigRequest other = (org.tikv.kvproto.Pdpb.PutClusterConfigRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasCluster() == other.hasCluster()); if (hasCluster()) { result = result && getCluster() .equals(other.getCluster()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest 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.Pdpb.PutClusterConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest 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.Pdpb.PutClusterConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest 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.Pdpb.PutClusterConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest 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.Pdpb.PutClusterConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest 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.Pdpb.PutClusterConfigRequest 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 pdpb.PutClusterConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.PutClusterConfigRequest) org.tikv.kvproto.Pdpb.PutClusterConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutClusterConfigRequest.class, org.tikv.kvproto.Pdpb.PutClusterConfigRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.PutClusterConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigRequest_descriptor; } public org.tikv.kvproto.Pdpb.PutClusterConfigRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.PutClusterConfigRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.PutClusterConfigRequest build() { org.tikv.kvproto.Pdpb.PutClusterConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.PutClusterConfigRequest buildPartial() { org.tikv.kvproto.Pdpb.PutClusterConfigRequest result = new org.tikv.kvproto.Pdpb.PutClusterConfigRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.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.Pdpb.PutClusterConfigRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.PutClusterConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.PutClusterConfigRequest other) { if (other == org.tikv.kvproto.Pdpb.PutClusterConfigRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } 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.Pdpb.PutClusterConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.PutClusterConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Cluster cluster_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder> clusterBuilder_; /** * .metapb.Cluster cluster = 2; */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** * .metapb.Cluster cluster = 2; */ public Builder setCluster(org.tikv.kvproto.Metapb.Cluster value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder setCluster( org.tikv.kvproto.Metapb.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder mergeCluster(org.tikv.kvproto.Metapb.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = org.tikv.kvproto.Metapb.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** * .metapb.Cluster cluster = 2; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.Cluster.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** * .metapb.Cluster cluster = 2; */ public org.tikv.kvproto.Metapb.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? org.tikv.kvproto.Metapb.Cluster.getDefaultInstance() : cluster_; } } /** * .metapb.Cluster cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Cluster, org.tikv.kvproto.Metapb.Cluster.Builder, org.tikv.kvproto.Metapb.ClusterOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } 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:pdpb.PutClusterConfigRequest) } // @@protoc_insertion_point(class_scope:pdpb.PutClusterConfigRequest) private static final org.tikv.kvproto.Pdpb.PutClusterConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.PutClusterConfigRequest(); } public static org.tikv.kvproto.Pdpb.PutClusterConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutClusterConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutClusterConfigRequest(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.Pdpb.PutClusterConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutClusterConfigResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.PutClusterConfigResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.PutClusterConfigResponse} */ public static final class PutClusterConfigResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.PutClusterConfigResponse) PutClusterConfigResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PutClusterConfigResponse.newBuilder() to construct. private PutClusterConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutClusterConfigResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutClusterConfigResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_PutClusterConfigResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutClusterConfigResponse.class, org.tikv.kvproto.Pdpb.PutClusterConfigResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.PutClusterConfigResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.PutClusterConfigResponse other = (org.tikv.kvproto.Pdpb.PutClusterConfigResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse 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.Pdpb.PutClusterConfigResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse 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.Pdpb.PutClusterConfigResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse 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.Pdpb.PutClusterConfigResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse 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.Pdpb.PutClusterConfigResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse 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.Pdpb.PutClusterConfigResponse 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 pdpb.PutClusterConfigResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.PutClusterConfigResponse) org.tikv.kvproto.Pdpb.PutClusterConfigResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PutClusterConfigResponse.class, org.tikv.kvproto.Pdpb.PutClusterConfigResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.PutClusterConfigResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PutClusterConfigResponse_descriptor; } public org.tikv.kvproto.Pdpb.PutClusterConfigResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.PutClusterConfigResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.PutClusterConfigResponse build() { org.tikv.kvproto.Pdpb.PutClusterConfigResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.PutClusterConfigResponse buildPartial() { org.tikv.kvproto.Pdpb.PutClusterConfigResponse result = new org.tikv.kvproto.Pdpb.PutClusterConfigResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.PutClusterConfigResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.PutClusterConfigResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.PutClusterConfigResponse other) { if (other == org.tikv.kvproto.Pdpb.PutClusterConfigResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.PutClusterConfigResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.PutClusterConfigResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.PutClusterConfigResponse) } // @@protoc_insertion_point(class_scope:pdpb.PutClusterConfigResponse) private static final org.tikv.kvproto.Pdpb.PutClusterConfigResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.PutClusterConfigResponse(); } public static org.tikv.kvproto.Pdpb.PutClusterConfigResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutClusterConfigResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutClusterConfigResponse(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.Pdpb.PutClusterConfigResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.Member) com.google.protobuf.MessageOrBuilder { /** *
     * name is the name of the PD member.
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * name is the name of the PD member.
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * member_id is the unique id of the PD member.
     * 
* * uint64 member_id = 2; */ long getMemberId(); /** * repeated string peer_urls = 3; */ java.util.List getPeerUrlsList(); /** * repeated string peer_urls = 3; */ int getPeerUrlsCount(); /** * repeated string peer_urls = 3; */ java.lang.String getPeerUrls(int index); /** * repeated string peer_urls = 3; */ com.google.protobuf.ByteString getPeerUrlsBytes(int index); /** * repeated string client_urls = 4; */ java.util.List getClientUrlsList(); /** * repeated string client_urls = 4; */ int getClientUrlsCount(); /** * repeated string client_urls = 4; */ java.lang.String getClientUrls(int index); /** * repeated string client_urls = 4; */ com.google.protobuf.ByteString getClientUrlsBytes(int index); /** * int32 leader_priority = 5; */ int getLeaderPriority(); /** * string deploy_path = 6; */ java.lang.String getDeployPath(); /** * string deploy_path = 6; */ com.google.protobuf.ByteString getDeployPathBytes(); /** * string binary_version = 7; */ java.lang.String getBinaryVersion(); /** * string binary_version = 7; */ com.google.protobuf.ByteString getBinaryVersionBytes(); /** * string git_hash = 8; */ java.lang.String getGitHash(); /** * string git_hash = 8; */ com.google.protobuf.ByteString getGitHashBytes(); /** * string dc_location = 9; */ java.lang.String getDcLocation(); /** * string dc_location = 9; */ com.google.protobuf.ByteString getDcLocationBytes(); } /** * Protobuf type {@code pdpb.Member} */ public static final class Member extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.Member) MemberOrBuilder { private static final long serialVersionUID = 0L; // Use Member.newBuilder() to construct. private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Member() { name_ = ""; memberId_ = 0L; peerUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; clientUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; leaderPriority_ = 0; deployPath_ = ""; binaryVersion_ = ""; gitHash_ = ""; dcLocation_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Member( 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(); name_ = s; break; } case 16: { memberId_ = input.readUInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { peerUrls_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } peerUrls_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clientUrls_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } clientUrls_.add(s); break; } case 40: { leaderPriority_ = input.readInt32(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); deployPath_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); binaryVersion_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); gitHash_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); dcLocation_ = 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_ & 0x00000004) == 0x00000004)) { peerUrls_ = peerUrls_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clientUrls_ = clientUrls_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Member.class, org.tikv.kvproto.Pdpb.Member.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name is the name of the PD member.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * name is the name of the PD member.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MEMBER_ID_FIELD_NUMBER = 2; private long memberId_; /** *
     * member_id is the unique id of the PD member.
     * 
* * uint64 member_id = 2; */ public long getMemberId() { return memberId_; } public static final int PEER_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList peerUrls_; /** * repeated string peer_urls = 3; */ public com.google.protobuf.ProtocolStringList getPeerUrlsList() { return peerUrls_; } /** * repeated string peer_urls = 3; */ public int getPeerUrlsCount() { return peerUrls_.size(); } /** * repeated string peer_urls = 3; */ public java.lang.String getPeerUrls(int index) { return peerUrls_.get(index); } /** * repeated string peer_urls = 3; */ public com.google.protobuf.ByteString getPeerUrlsBytes(int index) { return peerUrls_.getByteString(index); } public static final int CLIENT_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList clientUrls_; /** * repeated string client_urls = 4; */ public com.google.protobuf.ProtocolStringList getClientUrlsList() { return clientUrls_; } /** * repeated string client_urls = 4; */ public int getClientUrlsCount() { return clientUrls_.size(); } /** * repeated string client_urls = 4; */ public java.lang.String getClientUrls(int index) { return clientUrls_.get(index); } /** * repeated string client_urls = 4; */ public com.google.protobuf.ByteString getClientUrlsBytes(int index) { return clientUrls_.getByteString(index); } public static final int LEADER_PRIORITY_FIELD_NUMBER = 5; private int leaderPriority_; /** * int32 leader_priority = 5; */ public int getLeaderPriority() { return leaderPriority_; } public static final int DEPLOY_PATH_FIELD_NUMBER = 6; private volatile java.lang.Object deployPath_; /** * string deploy_path = 6; */ public java.lang.String getDeployPath() { java.lang.Object ref = deployPath_; 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(); deployPath_ = s; return s; } } /** * string deploy_path = 6; */ public com.google.protobuf.ByteString getDeployPathBytes() { java.lang.Object ref = deployPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BINARY_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object binaryVersion_; /** * string binary_version = 7; */ public java.lang.String getBinaryVersion() { java.lang.Object ref = binaryVersion_; 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(); binaryVersion_ = s; return s; } } /** * string binary_version = 7; */ public com.google.protobuf.ByteString getBinaryVersionBytes() { java.lang.Object ref = binaryVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); binaryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GIT_HASH_FIELD_NUMBER = 8; private volatile java.lang.Object gitHash_; /** * string git_hash = 8; */ public java.lang.String getGitHash() { java.lang.Object ref = gitHash_; 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(); gitHash_ = s; return s; } } /** * string git_hash = 8; */ public com.google.protobuf.ByteString getGitHashBytes() { java.lang.Object ref = gitHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gitHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DC_LOCATION_FIELD_NUMBER = 9; private volatile java.lang.Object dcLocation_; /** * string dc_location = 9; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; 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(); dcLocation_ = s; return s; } } /** * string dc_location = 9; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (memberId_ != 0L) { output.writeUInt64(2, memberId_); } for (int i = 0; i < peerUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, peerUrls_.getRaw(i)); } for (int i = 0; i < clientUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientUrls_.getRaw(i)); } if (leaderPriority_ != 0) { output.writeInt32(5, leaderPriority_); } if (!getDeployPathBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deployPath_); } if (!getBinaryVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, binaryVersion_); } if (!getGitHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gitHash_); } if (!getDcLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dcLocation_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (memberId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, memberId_); } { int dataSize = 0; for (int i = 0; i < peerUrls_.size(); i++) { dataSize += computeStringSizeNoTag(peerUrls_.getRaw(i)); } size += dataSize; size += 1 * getPeerUrlsList().size(); } { int dataSize = 0; for (int i = 0; i < clientUrls_.size(); i++) { dataSize += computeStringSizeNoTag(clientUrls_.getRaw(i)); } size += dataSize; size += 1 * getClientUrlsList().size(); } if (leaderPriority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, leaderPriority_); } if (!getDeployPathBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deployPath_); } if (!getBinaryVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, binaryVersion_); } if (!getGitHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gitHash_); } if (!getDcLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dcLocation_); } 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.Pdpb.Member)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.Member other = (org.tikv.kvproto.Pdpb.Member) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getMemberId() == other.getMemberId()); result = result && getPeerUrlsList() .equals(other.getPeerUrlsList()); result = result && getClientUrlsList() .equals(other.getClientUrlsList()); result = result && (getLeaderPriority() == other.getLeaderPriority()); result = result && getDeployPath() .equals(other.getDeployPath()); result = result && getBinaryVersion() .equals(other.getBinaryVersion()); result = result && getGitHash() .equals(other.getGitHash()); result = result && getDcLocation() .equals(other.getDcLocation()); 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemberId()); if (getPeerUrlsCount() > 0) { hash = (37 * hash) + PEER_URLS_FIELD_NUMBER; hash = (53 * hash) + getPeerUrlsList().hashCode(); } if (getClientUrlsCount() > 0) { hash = (37 * hash) + CLIENT_URLS_FIELD_NUMBER; hash = (53 * hash) + getClientUrlsList().hashCode(); } hash = (37 * hash) + LEADER_PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getLeaderPriority(); hash = (37 * hash) + DEPLOY_PATH_FIELD_NUMBER; hash = (53 * hash) + getDeployPath().hashCode(); hash = (37 * hash) + BINARY_VERSION_FIELD_NUMBER; hash = (53 * hash) + getBinaryVersion().hashCode(); hash = (37 * hash) + GIT_HASH_FIELD_NUMBER; hash = (53 * hash) + getGitHash().hashCode(); hash = (37 * hash) + DC_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDcLocation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.Member parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Member 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.Pdpb.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Member 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.Pdpb.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Member parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Member 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.Pdpb.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Member 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.Pdpb.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Member 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.Pdpb.Member 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 pdpb.Member} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.Member) org.tikv.kvproto.Pdpb.MemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Member.class, org.tikv.kvproto.Pdpb.Member.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.Member.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(); name_ = ""; memberId_ = 0L; peerUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); clientUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); leaderPriority_ = 0; deployPath_ = ""; binaryVersion_ = ""; gitHash_ = ""; dcLocation_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Member_descriptor; } public org.tikv.kvproto.Pdpb.Member getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.Member.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.Member build() { org.tikv.kvproto.Pdpb.Member result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.Member buildPartial() { org.tikv.kvproto.Pdpb.Member result = new org.tikv.kvproto.Pdpb.Member(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.memberId_ = memberId_; if (((bitField0_ & 0x00000004) == 0x00000004)) { peerUrls_ = peerUrls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.peerUrls_ = peerUrls_; if (((bitField0_ & 0x00000008) == 0x00000008)) { clientUrls_ = clientUrls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.clientUrls_ = clientUrls_; result.leaderPriority_ = leaderPriority_; result.deployPath_ = deployPath_; result.binaryVersion_ = binaryVersion_; result.gitHash_ = gitHash_; result.dcLocation_ = dcLocation_; 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.Pdpb.Member) { return mergeFrom((org.tikv.kvproto.Pdpb.Member)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.Member other) { if (other == org.tikv.kvproto.Pdpb.Member.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getMemberId() != 0L) { setMemberId(other.getMemberId()); } if (!other.peerUrls_.isEmpty()) { if (peerUrls_.isEmpty()) { peerUrls_ = other.peerUrls_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePeerUrlsIsMutable(); peerUrls_.addAll(other.peerUrls_); } onChanged(); } if (!other.clientUrls_.isEmpty()) { if (clientUrls_.isEmpty()) { clientUrls_ = other.clientUrls_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureClientUrlsIsMutable(); clientUrls_.addAll(other.clientUrls_); } onChanged(); } if (other.getLeaderPriority() != 0) { setLeaderPriority(other.getLeaderPriority()); } if (!other.getDeployPath().isEmpty()) { deployPath_ = other.deployPath_; onChanged(); } if (!other.getBinaryVersion().isEmpty()) { binaryVersion_ = other.binaryVersion_; onChanged(); } if (!other.getGitHash().isEmpty()) { gitHash_ = other.gitHash_; onChanged(); } if (!other.getDcLocation().isEmpty()) { dcLocation_ = other.dcLocation_; 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.Pdpb.Member parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.Member) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * name is the name of the PD member.
       * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name is the name of the PD member.
       * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name is the name of the PD member.
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name is the name of the PD member.
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name is the name of the PD member.
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private long memberId_ ; /** *
       * member_id is the unique id of the PD member.
       * 
* * uint64 member_id = 2; */ public long getMemberId() { return memberId_; } /** *
       * member_id is the unique id of the PD member.
       * 
* * uint64 member_id = 2; */ public Builder setMemberId(long value) { memberId_ = value; onChanged(); return this; } /** *
       * member_id is the unique id of the PD member.
       * 
* * uint64 member_id = 2; */ public Builder clearMemberId() { memberId_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList peerUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePeerUrlsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { peerUrls_ = new com.google.protobuf.LazyStringArrayList(peerUrls_); bitField0_ |= 0x00000004; } } /** * repeated string peer_urls = 3; */ public com.google.protobuf.ProtocolStringList getPeerUrlsList() { return peerUrls_.getUnmodifiableView(); } /** * repeated string peer_urls = 3; */ public int getPeerUrlsCount() { return peerUrls_.size(); } /** * repeated string peer_urls = 3; */ public java.lang.String getPeerUrls(int index) { return peerUrls_.get(index); } /** * repeated string peer_urls = 3; */ public com.google.protobuf.ByteString getPeerUrlsBytes(int index) { return peerUrls_.getByteString(index); } /** * repeated string peer_urls = 3; */ public Builder setPeerUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerUrlsIsMutable(); peerUrls_.set(index, value); onChanged(); return this; } /** * repeated string peer_urls = 3; */ public Builder addPeerUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePeerUrlsIsMutable(); peerUrls_.add(value); onChanged(); return this; } /** * repeated string peer_urls = 3; */ public Builder addAllPeerUrls( java.lang.Iterable values) { ensurePeerUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peerUrls_); onChanged(); return this; } /** * repeated string peer_urls = 3; */ public Builder clearPeerUrls() { peerUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string peer_urls = 3; */ public Builder addPeerUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePeerUrlsIsMutable(); peerUrls_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList clientUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClientUrlsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { clientUrls_ = new com.google.protobuf.LazyStringArrayList(clientUrls_); bitField0_ |= 0x00000008; } } /** * repeated string client_urls = 4; */ public com.google.protobuf.ProtocolStringList getClientUrlsList() { return clientUrls_.getUnmodifiableView(); } /** * repeated string client_urls = 4; */ public int getClientUrlsCount() { return clientUrls_.size(); } /** * repeated string client_urls = 4; */ public java.lang.String getClientUrls(int index) { return clientUrls_.get(index); } /** * repeated string client_urls = 4; */ public com.google.protobuf.ByteString getClientUrlsBytes(int index) { return clientUrls_.getByteString(index); } /** * repeated string client_urls = 4; */ public Builder setClientUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientUrlsIsMutable(); clientUrls_.set(index, value); onChanged(); return this; } /** * repeated string client_urls = 4; */ public Builder addClientUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientUrlsIsMutable(); clientUrls_.add(value); onChanged(); return this; } /** * repeated string client_urls = 4; */ public Builder addAllClientUrls( java.lang.Iterable values) { ensureClientUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clientUrls_); onChanged(); return this; } /** * repeated string client_urls = 4; */ public Builder clearClientUrls() { clientUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string client_urls = 4; */ public Builder addClientUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureClientUrlsIsMutable(); clientUrls_.add(value); onChanged(); return this; } private int leaderPriority_ ; /** * int32 leader_priority = 5; */ public int getLeaderPriority() { return leaderPriority_; } /** * int32 leader_priority = 5; */ public Builder setLeaderPriority(int value) { leaderPriority_ = value; onChanged(); return this; } /** * int32 leader_priority = 5; */ public Builder clearLeaderPriority() { leaderPriority_ = 0; onChanged(); return this; } private java.lang.Object deployPath_ = ""; /** * string deploy_path = 6; */ public java.lang.String getDeployPath() { java.lang.Object ref = deployPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string deploy_path = 6; */ public com.google.protobuf.ByteString getDeployPathBytes() { java.lang.Object ref = deployPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string deploy_path = 6; */ public Builder setDeployPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deployPath_ = value; onChanged(); return this; } /** * string deploy_path = 6; */ public Builder clearDeployPath() { deployPath_ = getDefaultInstance().getDeployPath(); onChanged(); return this; } /** * string deploy_path = 6; */ public Builder setDeployPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deployPath_ = value; onChanged(); return this; } private java.lang.Object binaryVersion_ = ""; /** * string binary_version = 7; */ public java.lang.String getBinaryVersion() { java.lang.Object ref = binaryVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); binaryVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string binary_version = 7; */ public com.google.protobuf.ByteString getBinaryVersionBytes() { java.lang.Object ref = binaryVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); binaryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string binary_version = 7; */ public Builder setBinaryVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } binaryVersion_ = value; onChanged(); return this; } /** * string binary_version = 7; */ public Builder clearBinaryVersion() { binaryVersion_ = getDefaultInstance().getBinaryVersion(); onChanged(); return this; } /** * string binary_version = 7; */ public Builder setBinaryVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); binaryVersion_ = value; onChanged(); return this; } private java.lang.Object gitHash_ = ""; /** * string git_hash = 8; */ public java.lang.String getGitHash() { java.lang.Object ref = gitHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitHash_ = s; return s; } else { return (java.lang.String) ref; } } /** * string git_hash = 8; */ public com.google.protobuf.ByteString getGitHashBytes() { java.lang.Object ref = gitHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gitHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string git_hash = 8; */ public Builder setGitHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gitHash_ = value; onChanged(); return this; } /** * string git_hash = 8; */ public Builder clearGitHash() { gitHash_ = getDefaultInstance().getGitHash(); onChanged(); return this; } /** * string git_hash = 8; */ public Builder setGitHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gitHash_ = value; onChanged(); return this; } private java.lang.Object dcLocation_ = ""; /** * string dc_location = 9; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dcLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dc_location = 9; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string dc_location = 9; */ public Builder setDcLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dcLocation_ = value; onChanged(); return this; } /** * string dc_location = 9; */ public Builder clearDcLocation() { dcLocation_ = getDefaultInstance().getDcLocation(); onChanged(); return this; } /** * string dc_location = 9; */ public Builder setDcLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dcLocation_ = 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:pdpb.Member) } // @@protoc_insertion_point(class_scope:pdpb.Member) private static final org.tikv.kvproto.Pdpb.Member DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.Member(); } public static org.tikv.kvproto.Pdpb.Member getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Member parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Member(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.Pdpb.Member getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetMembersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetMembersRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.GetMembersRequest} */ public static final class GetMembersRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetMembersRequest) GetMembersRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetMembersRequest.newBuilder() to construct. private GetMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetMembersRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetMembersRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_GetMembersRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetMembersRequest.class, org.tikv.kvproto.Pdpb.GetMembersRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.GetMembersRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetMembersRequest other = (org.tikv.kvproto.Pdpb.GetMembersRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetMembersRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersRequest 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.Pdpb.GetMembersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersRequest 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.Pdpb.GetMembersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetMembersRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersRequest 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.Pdpb.GetMembersRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersRequest 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.Pdpb.GetMembersRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersRequest 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.Pdpb.GetMembersRequest 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 pdpb.GetMembersRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetMembersRequest) org.tikv.kvproto.Pdpb.GetMembersRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetMembersRequest.class, org.tikv.kvproto.Pdpb.GetMembersRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetMembersRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetMembersRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetMembersRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetMembersRequest build() { org.tikv.kvproto.Pdpb.GetMembersRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetMembersRequest buildPartial() { org.tikv.kvproto.Pdpb.GetMembersRequest result = new org.tikv.kvproto.Pdpb.GetMembersRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.GetMembersRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetMembersRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetMembersRequest other) { if (other == org.tikv.kvproto.Pdpb.GetMembersRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.GetMembersRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetMembersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.GetMembersRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetMembersRequest) private static final org.tikv.kvproto.Pdpb.GetMembersRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetMembersRequest(); } public static org.tikv.kvproto.Pdpb.GetMembersRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetMembersRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetMembersRequest(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.Pdpb.GetMembersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetMembersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetMembersResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .pdpb.Member members = 2; */ java.util.List getMembersList(); /** * repeated .pdpb.Member members = 2; */ org.tikv.kvproto.Pdpb.Member getMembers(int index); /** * repeated .pdpb.Member members = 2; */ int getMembersCount(); /** * repeated .pdpb.Member members = 2; */ java.util.List getMembersOrBuilderList(); /** * repeated .pdpb.Member members = 2; */ org.tikv.kvproto.Pdpb.MemberOrBuilder getMembersOrBuilder( int index); /** * .pdpb.Member leader = 3; */ boolean hasLeader(); /** * .pdpb.Member leader = 3; */ org.tikv.kvproto.Pdpb.Member getLeader(); /** * .pdpb.Member leader = 3; */ org.tikv.kvproto.Pdpb.MemberOrBuilder getLeaderOrBuilder(); /** * .pdpb.Member etcd_leader = 4; */ boolean hasEtcdLeader(); /** * .pdpb.Member etcd_leader = 4; */ org.tikv.kvproto.Pdpb.Member getEtcdLeader(); /** * .pdpb.Member etcd_leader = 4; */ org.tikv.kvproto.Pdpb.MemberOrBuilder getEtcdLeaderOrBuilder(); /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ int getTsoAllocatorLeadersCount(); /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ boolean containsTsoAllocatorLeaders( java.lang.String key); /** * Use {@link #getTsoAllocatorLeadersMap()} instead. */ @java.lang.Deprecated java.util.Map getTsoAllocatorLeaders(); /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ java.util.Map getTsoAllocatorLeadersMap(); /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrDefault( java.lang.String key, org.tikv.kvproto.Pdpb.Member defaultValue); /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrThrow( java.lang.String key); } /** * Protobuf type {@code pdpb.GetMembersResponse} */ public static final class GetMembersResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetMembersResponse) GetMembersResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetMembersResponse.newBuilder() to construct. private GetMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetMembersResponse() { members_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetMembersResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add( input.readMessage(org.tikv.kvproto.Pdpb.Member.parser(), extensionRegistry)); break; } case 26: { org.tikv.kvproto.Pdpb.Member.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Pdpb.Member.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.Pdpb.Member.Builder subBuilder = null; if (etcdLeader_ != null) { subBuilder = etcdLeader_.toBuilder(); } etcdLeader_ = input.readMessage(org.tikv.kvproto.Pdpb.Member.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(etcdLeader_); etcdLeader_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { tsoAllocatorLeaders_ = com.google.protobuf.MapField.newMapField( TsoAllocatorLeadersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry tsoAllocatorLeaders__ = input.readMessage( TsoAllocatorLeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); tsoAllocatorLeaders_.getMutableMap().put( tsoAllocatorLeaders__.getKey(), tsoAllocatorLeaders__.getValue()); 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)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTsoAllocatorLeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetMembersResponse.class, org.tikv.kvproto.Pdpb.GetMembersResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBERS_FIELD_NUMBER = 2; private java.util.List members_; /** * repeated .pdpb.Member members = 2; */ public java.util.List getMembersList() { return members_; } /** * repeated .pdpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { return members_; } /** * repeated .pdpb.Member members = 2; */ public int getMembersCount() { return members_.size(); } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.Member getMembers(int index) { return members_.get(index); } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } public static final int LEADER_FIELD_NUMBER = 3; private org.tikv.kvproto.Pdpb.Member leader_; /** * .pdpb.Member leader = 3; */ public boolean hasLeader() { return leader_ != null; } /** * .pdpb.Member leader = 3; */ public org.tikv.kvproto.Pdpb.Member getLeader() { return leader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : leader_; } /** * .pdpb.Member leader = 3; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getLeaderOrBuilder() { return getLeader(); } public static final int ETCD_LEADER_FIELD_NUMBER = 4; private org.tikv.kvproto.Pdpb.Member etcdLeader_; /** * .pdpb.Member etcd_leader = 4; */ public boolean hasEtcdLeader() { return etcdLeader_ != null; } /** * .pdpb.Member etcd_leader = 4; */ public org.tikv.kvproto.Pdpb.Member getEtcdLeader() { return etcdLeader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : etcdLeader_; } /** * .pdpb.Member etcd_leader = 4; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getEtcdLeaderOrBuilder() { return getEtcdLeader(); } public static final int TSO_ALLOCATOR_LEADERS_FIELD_NUMBER = 5; private static final class TsoAllocatorLeadersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.tikv.kvproto.Pdpb.Member> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.tikv.kvproto.Pdpb.Member.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.tikv.kvproto.Pdpb.Member> tsoAllocatorLeaders_; private com.google.protobuf.MapField internalGetTsoAllocatorLeaders() { if (tsoAllocatorLeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( TsoAllocatorLeadersDefaultEntryHolder.defaultEntry); } return tsoAllocatorLeaders_; } public int getTsoAllocatorLeadersCount() { return internalGetTsoAllocatorLeaders().getMap().size(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public boolean containsTsoAllocatorLeaders( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTsoAllocatorLeaders().getMap().containsKey(key); } /** * Use {@link #getTsoAllocatorLeadersMap()} instead. */ @java.lang.Deprecated public java.util.Map getTsoAllocatorLeaders() { return getTsoAllocatorLeadersMap(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public java.util.Map getTsoAllocatorLeadersMap() { return internalGetTsoAllocatorLeaders().getMap(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrDefault( java.lang.String key, org.tikv.kvproto.Pdpb.Member defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTsoAllocatorLeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTsoAllocatorLeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(2, members_.get(i)); } if (leader_ != null) { output.writeMessage(3, getLeader()); } if (etcdLeader_ != null) { output.writeMessage(4, getEtcdLeader()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTsoAllocatorLeaders(), TsoAllocatorLeadersDefaultEntryHolder.defaultEntry, 5); unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, members_.get(i)); } if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLeader()); } if (etcdLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEtcdLeader()); } for (java.util.Map.Entry entry : internalGetTsoAllocatorLeaders().getMap().entrySet()) { com.google.protobuf.MapEntry tsoAllocatorLeaders__ = TsoAllocatorLeadersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, tsoAllocatorLeaders__); } 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.Pdpb.GetMembersResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetMembersResponse other = (org.tikv.kvproto.Pdpb.GetMembersResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getMembersList() .equals(other.getMembersList()); result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } result = result && (hasEtcdLeader() == other.hasEtcdLeader()); if (hasEtcdLeader()) { result = result && getEtcdLeader() .equals(other.getEtcdLeader()); } result = result && internalGetTsoAllocatorLeaders().equals( other.internalGetTsoAllocatorLeaders()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } if (hasEtcdLeader()) { hash = (37 * hash) + ETCD_LEADER_FIELD_NUMBER; hash = (53 * hash) + getEtcdLeader().hashCode(); } if (!internalGetTsoAllocatorLeaders().getMap().isEmpty()) { hash = (37 * hash) + TSO_ALLOCATOR_LEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetTsoAllocatorLeaders().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetMembersResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersResponse 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.Pdpb.GetMembersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersResponse 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.Pdpb.GetMembersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetMembersResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetMembersResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersResponse 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.Pdpb.GetMembersResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersResponse 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.Pdpb.GetMembersResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetMembersResponse 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.Pdpb.GetMembersResponse 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 pdpb.GetMembersResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetMembersResponse) org.tikv.kvproto.Pdpb.GetMembersResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTsoAllocatorLeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableTsoAllocatorLeaders(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetMembersResponse.class, org.tikv.kvproto.Pdpb.GetMembersResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetMembersResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMembersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { membersBuilder_.clear(); } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } if (etcdLeaderBuilder_ == null) { etcdLeader_ = null; } else { etcdLeader_ = null; etcdLeaderBuilder_ = null; } internalGetMutableTsoAllocatorLeaders().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetMembersResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetMembersResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetMembersResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetMembersResponse build() { org.tikv.kvproto.Pdpb.GetMembersResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetMembersResponse buildPartial() { org.tikv.kvproto.Pdpb.GetMembersResponse result = new org.tikv.kvproto.Pdpb.GetMembersResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.build(); } if (etcdLeaderBuilder_ == null) { result.etcdLeader_ = etcdLeader_; } else { result.etcdLeader_ = etcdLeaderBuilder_.build(); } result.tsoAllocatorLeaders_ = internalGetTsoAllocatorLeaders(); result.tsoAllocatorLeaders_.makeImmutable(); 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.Pdpb.GetMembersResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetMembersResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetMembersResponse other) { if (other == org.tikv.kvproto.Pdpb.GetMembersResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } if (other.hasLeader()) { mergeLeader(other.getLeader()); } if (other.hasEtcdLeader()) { mergeEtcdLeader(other.getEtcdLeader()); } internalGetMutableTsoAllocatorLeaders().mergeFrom( other.internalGetTsoAllocatorLeaders()); 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.Pdpb.GetMembersResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetMembersResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> membersBuilder_; /** * repeated .pdpb.Member members = 2; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** * repeated .pdpb.Member members = 2; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** * repeated .pdpb.Member members = 2; */ public Builder setMembers( int index, org.tikv.kvproto.Pdpb.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder setMembers( int index, org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder addMembers(org.tikv.kvproto.Pdpb.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder addMembers( int index, org.tikv.kvproto.Pdpb.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder addMembers( org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder addMembers( int index, org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { membersBuilder_.clear(); } return this; } /** * repeated .pdpb.Member members = 2; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** * repeated .pdpb.Member members = 2; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.Member.getDefaultInstance()); } /** * repeated .pdpb.Member members = 2; */ public org.tikv.kvproto.Pdpb.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.Member.getDefaultInstance()); } /** * repeated .pdpb.Member members = 2; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder>( members_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } private org.tikv.kvproto.Pdpb.Member leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> leaderBuilder_; /** * .pdpb.Member leader = 3; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .pdpb.Member leader = 3; */ public org.tikv.kvproto.Pdpb.Member getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .pdpb.Member leader = 3; */ public Builder setLeader(org.tikv.kvproto.Pdpb.Member value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .pdpb.Member leader = 3; */ public Builder setLeader( org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Member leader = 3; */ public Builder mergeLeader(org.tikv.kvproto.Pdpb.Member value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Pdpb.Member.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Member leader = 3; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .pdpb.Member leader = 3; */ public org.tikv.kvproto.Pdpb.Member.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .pdpb.Member leader = 3; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : leader_; } } /** * .pdpb.Member leader = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } private org.tikv.kvproto.Pdpb.Member etcdLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> etcdLeaderBuilder_; /** * .pdpb.Member etcd_leader = 4; */ public boolean hasEtcdLeader() { return etcdLeaderBuilder_ != null || etcdLeader_ != null; } /** * .pdpb.Member etcd_leader = 4; */ public org.tikv.kvproto.Pdpb.Member getEtcdLeader() { if (etcdLeaderBuilder_ == null) { return etcdLeader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : etcdLeader_; } else { return etcdLeaderBuilder_.getMessage(); } } /** * .pdpb.Member etcd_leader = 4; */ public Builder setEtcdLeader(org.tikv.kvproto.Pdpb.Member value) { if (etcdLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } etcdLeader_ = value; onChanged(); } else { etcdLeaderBuilder_.setMessage(value); } return this; } /** * .pdpb.Member etcd_leader = 4; */ public Builder setEtcdLeader( org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (etcdLeaderBuilder_ == null) { etcdLeader_ = builderForValue.build(); onChanged(); } else { etcdLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Member etcd_leader = 4; */ public Builder mergeEtcdLeader(org.tikv.kvproto.Pdpb.Member value) { if (etcdLeaderBuilder_ == null) { if (etcdLeader_ != null) { etcdLeader_ = org.tikv.kvproto.Pdpb.Member.newBuilder(etcdLeader_).mergeFrom(value).buildPartial(); } else { etcdLeader_ = value; } onChanged(); } else { etcdLeaderBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Member etcd_leader = 4; */ public Builder clearEtcdLeader() { if (etcdLeaderBuilder_ == null) { etcdLeader_ = null; onChanged(); } else { etcdLeader_ = null; etcdLeaderBuilder_ = null; } return this; } /** * .pdpb.Member etcd_leader = 4; */ public org.tikv.kvproto.Pdpb.Member.Builder getEtcdLeaderBuilder() { onChanged(); return getEtcdLeaderFieldBuilder().getBuilder(); } /** * .pdpb.Member etcd_leader = 4; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getEtcdLeaderOrBuilder() { if (etcdLeaderBuilder_ != null) { return etcdLeaderBuilder_.getMessageOrBuilder(); } else { return etcdLeader_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : etcdLeader_; } } /** * .pdpb.Member etcd_leader = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> getEtcdLeaderFieldBuilder() { if (etcdLeaderBuilder_ == null) { etcdLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder>( getEtcdLeader(), getParentForChildren(), isClean()); etcdLeader_ = null; } return etcdLeaderBuilder_; } private com.google.protobuf.MapField< java.lang.String, org.tikv.kvproto.Pdpb.Member> tsoAllocatorLeaders_; private com.google.protobuf.MapField internalGetTsoAllocatorLeaders() { if (tsoAllocatorLeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( TsoAllocatorLeadersDefaultEntryHolder.defaultEntry); } return tsoAllocatorLeaders_; } private com.google.protobuf.MapField internalGetMutableTsoAllocatorLeaders() { onChanged();; if (tsoAllocatorLeaders_ == null) { tsoAllocatorLeaders_ = com.google.protobuf.MapField.newMapField( TsoAllocatorLeadersDefaultEntryHolder.defaultEntry); } if (!tsoAllocatorLeaders_.isMutable()) { tsoAllocatorLeaders_ = tsoAllocatorLeaders_.copy(); } return tsoAllocatorLeaders_; } public int getTsoAllocatorLeadersCount() { return internalGetTsoAllocatorLeaders().getMap().size(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public boolean containsTsoAllocatorLeaders( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTsoAllocatorLeaders().getMap().containsKey(key); } /** * Use {@link #getTsoAllocatorLeadersMap()} instead. */ @java.lang.Deprecated public java.util.Map getTsoAllocatorLeaders() { return getTsoAllocatorLeadersMap(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public java.util.Map getTsoAllocatorLeadersMap() { return internalGetTsoAllocatorLeaders().getMap(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrDefault( java.lang.String key, org.tikv.kvproto.Pdpb.Member defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTsoAllocatorLeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public org.tikv.kvproto.Pdpb.Member getTsoAllocatorLeadersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetTsoAllocatorLeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTsoAllocatorLeaders() { internalGetMutableTsoAllocatorLeaders().getMutableMap() .clear(); return this; } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public Builder removeTsoAllocatorLeaders( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableTsoAllocatorLeaders().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTsoAllocatorLeaders() { return internalGetMutableTsoAllocatorLeaders().getMutableMap(); } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public Builder putTsoAllocatorLeaders( java.lang.String key, org.tikv.kvproto.Pdpb.Member value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableTsoAllocatorLeaders().getMutableMap() .put(key, value); return this; } /** * map<string, .pdpb.Member> tso_allocator_leaders = 5; */ public Builder putAllTsoAllocatorLeaders( java.util.Map values) { internalGetMutableTsoAllocatorLeaders().getMutableMap() .putAll(values); 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:pdpb.GetMembersResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetMembersResponse) private static final org.tikv.kvproto.Pdpb.GetMembersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetMembersResponse(); } public static org.tikv.kvproto.Pdpb.GetMembersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetMembersResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetMembersResponse(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.Pdpb.GetMembersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.PeerStats) com.google.protobuf.MessageOrBuilder { /** * .metapb.Peer peer = 1; */ boolean hasPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); /** * uint64 down_seconds = 2; */ long getDownSeconds(); } /** * Protobuf type {@code pdpb.PeerStats} */ public static final class PeerStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.PeerStats) PeerStatsOrBuilder { private static final long serialVersionUID = 0L; // Use PeerStats.newBuilder() to construct. private PeerStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerStats() { downSeconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PeerStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = subBuilder.buildPartial(); } break; } case 16: { downSeconds_ = 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.Pdpb.internal_static_pdpb_PeerStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PeerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PeerStats.class, org.tikv.kvproto.Pdpb.PeerStats.Builder.class); } public static final int PEER_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } public static final int DOWN_SECONDS_FIELD_NUMBER = 2; private long downSeconds_; /** * uint64 down_seconds = 2; */ public long getDownSeconds() { return downSeconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peer_ != null) { output.writeMessage(1, getPeer()); } if (downSeconds_ != 0L) { output.writeUInt64(2, downSeconds_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPeer()); } if (downSeconds_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, downSeconds_); } 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.Pdpb.PeerStats)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.PeerStats other = (org.tikv.kvproto.Pdpb.PeerStats) obj; boolean result = true; result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } result = result && (getDownSeconds() == other.getDownSeconds()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (37 * hash) + DOWN_SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDownSeconds()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.PeerStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PeerStats 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.Pdpb.PeerStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PeerStats 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.Pdpb.PeerStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.PeerStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.PeerStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PeerStats 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.Pdpb.PeerStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PeerStats 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.Pdpb.PeerStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.PeerStats 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.Pdpb.PeerStats 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 pdpb.PeerStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.PeerStats) org.tikv.kvproto.Pdpb.PeerStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PeerStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PeerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.PeerStats.class, org.tikv.kvproto.Pdpb.PeerStats.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.PeerStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } downSeconds_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_PeerStats_descriptor; } public org.tikv.kvproto.Pdpb.PeerStats getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.PeerStats build() { org.tikv.kvproto.Pdpb.PeerStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.PeerStats buildPartial() { org.tikv.kvproto.Pdpb.PeerStats result = new org.tikv.kvproto.Pdpb.PeerStats(this); if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.build(); } result.downSeconds_ = downSeconds_; 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.Pdpb.PeerStats) { return mergeFrom((org.tikv.kvproto.Pdpb.PeerStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.PeerStats other) { if (other == org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()) return this; if (other.hasPeer()) { mergePeer(other.getPeer()); } if (other.getDownSeconds() != 0L) { setDownSeconds(other.getDownSeconds()); } 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.Pdpb.PeerStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.PeerStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 1; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 1; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } private long downSeconds_ ; /** * uint64 down_seconds = 2; */ public long getDownSeconds() { return downSeconds_; } /** * uint64 down_seconds = 2; */ public Builder setDownSeconds(long value) { downSeconds_ = value; onChanged(); return this; } /** * uint64 down_seconds = 2; */ public Builder clearDownSeconds() { downSeconds_ = 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:pdpb.PeerStats) } // @@protoc_insertion_point(class_scope:pdpb.PeerStats) private static final org.tikv.kvproto.Pdpb.PeerStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.PeerStats(); } public static org.tikv.kvproto.Pdpb.PeerStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PeerStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerStats(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.Pdpb.PeerStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionHeartbeatRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.RegionHeartbeatRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Region region = 2; */ boolean hasRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ boolean hasLeader(); /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ java.util.List getDownPeersList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ int getDownPeersCount(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ java.util.List getDownPeersOrBuilderList(); /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ java.util.List getPendingPeersList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ org.tikv.kvproto.Metapb.Peer getPendingPeers(int index); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ int getPendingPeersCount(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ java.util.List getPendingPeersOrBuilderList(); /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index); /** *
     * Bytes read/written during this period.
     * 
* * uint64 bytes_written = 6; */ long getBytesWritten(); /** * uint64 bytes_read = 7; */ long getBytesRead(); /** *
     * Keys read/written during this period.
     * 
* * uint64 keys_written = 8; */ long getKeysWritten(); /** * uint64 keys_read = 9; */ long getKeysRead(); /** *
     * Approximate region size.
     * 
* * uint64 approximate_size = 10; */ long getApproximateSize(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ boolean hasInterval(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ org.tikv.kvproto.Pdpb.TimeInterval getInterval(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder(); /** *
     * Approximate number of keys.
     * 
* * uint64 approximate_keys = 13; */ long getApproximateKeys(); /** *
     * Term is the term of raft group.
     * 
* * uint64 term = 14; */ long getTerm(); /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ boolean hasReplicationStatus(); /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ replication_modepb.ReplicationModepb.RegionReplicationStatus getReplicationStatus(); /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder getReplicationStatusOrBuilder(); } /** * Protobuf type {@code pdpb.RegionHeartbeatRequest} */ public static final class RegionHeartbeatRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.RegionHeartbeatRequest) RegionHeartbeatRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RegionHeartbeatRequest.newBuilder() to construct. private RegionHeartbeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionHeartbeatRequest() { downPeers_ = java.util.Collections.emptyList(); pendingPeers_ = java.util.Collections.emptyList(); bytesWritten_ = 0L; bytesRead_ = 0L; keysWritten_ = 0L; keysRead_ = 0L; approximateSize_ = 0L; approximateKeys_ = 0L; term_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionHeartbeatRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } downPeers_.add( input.readMessage(org.tikv.kvproto.Pdpb.PeerStats.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } pendingPeers_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry)); break; } case 48: { bytesWritten_ = input.readUInt64(); break; } case 56: { bytesRead_ = input.readUInt64(); break; } case 64: { keysWritten_ = input.readUInt64(); break; } case 72: { keysRead_ = input.readUInt64(); break; } case 80: { approximateSize_ = input.readUInt64(); break; } case 98: { org.tikv.kvproto.Pdpb.TimeInterval.Builder subBuilder = null; if (interval_ != null) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(org.tikv.kvproto.Pdpb.TimeInterval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = subBuilder.buildPartial(); } break; } case 104: { approximateKeys_ = input.readUInt64(); break; } case 112: { term_ = input.readUInt64(); break; } case 122: { replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder subBuilder = null; if (replicationStatus_ != null) { subBuilder = replicationStatus_.toBuilder(); } replicationStatus_ = input.readMessage(replication_modepb.ReplicationModepb.RegionReplicationStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationStatus_); replicationStatus_ = 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_ & 0x00000008) == 0x00000008)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.class, org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int LEADER_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Peer leader_; /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ public boolean hasLeader() { return leader_ != null; } /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** *
     * Leader Peer sending the heartbeat.
     * 
* * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } public static final int DOWN_PEERS_FIELD_NUMBER = 4; private java.util.List downPeers_; /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public java.util.List getDownPeersList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public java.util.List getDownPeersOrBuilderList() { return downPeers_; } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public int getDownPeersCount() { return downPeers_.size(); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { return downPeers_.get(index); } /** *
     * Leader considers that these peers are down.
     * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { return downPeers_.get(index); } public static final int PENDING_PEERS_FIELD_NUMBER = 5; private java.util.List pendingPeers_; /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ public java.util.List getPendingPeersList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ public java.util.List getPendingPeersOrBuilderList() { return pendingPeers_; } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ public int getPendingPeersCount() { return pendingPeers_.size(); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { return pendingPeers_.get(index); } /** *
     * Pending peers are the peers that the leader can't consider as
     * working followers.
     * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { return pendingPeers_.get(index); } public static final int BYTES_WRITTEN_FIELD_NUMBER = 6; private long bytesWritten_; /** *
     * Bytes read/written during this period.
     * 
* * uint64 bytes_written = 6; */ public long getBytesWritten() { return bytesWritten_; } public static final int BYTES_READ_FIELD_NUMBER = 7; private long bytesRead_; /** * uint64 bytes_read = 7; */ public long getBytesRead() { return bytesRead_; } public static final int KEYS_WRITTEN_FIELD_NUMBER = 8; private long keysWritten_; /** *
     * Keys read/written during this period.
     * 
* * uint64 keys_written = 8; */ public long getKeysWritten() { return keysWritten_; } public static final int KEYS_READ_FIELD_NUMBER = 9; private long keysRead_; /** * uint64 keys_read = 9; */ public long getKeysRead() { return keysRead_; } public static final int APPROXIMATE_SIZE_FIELD_NUMBER = 10; private long approximateSize_; /** *
     * Approximate region size.
     * 
* * uint64 approximate_size = 10; */ public long getApproximateSize() { return approximateSize_; } public static final int INTERVAL_FIELD_NUMBER = 12; private org.tikv.kvproto.Pdpb.TimeInterval interval_; /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ public boolean hasInterval() { return interval_ != null; } /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ public org.tikv.kvproto.Pdpb.TimeInterval getInterval() { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 12; */ public org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder() { return getInterval(); } public static final int APPROXIMATE_KEYS_FIELD_NUMBER = 13; private long approximateKeys_; /** *
     * Approximate number of keys.
     * 
* * uint64 approximate_keys = 13; */ public long getApproximateKeys() { return approximateKeys_; } public static final int TERM_FIELD_NUMBER = 14; private long term_; /** *
     * Term is the term of raft group.
     * 
* * uint64 term = 14; */ public long getTerm() { return term_; } public static final int REPLICATION_STATUS_FIELD_NUMBER = 15; private replication_modepb.ReplicationModepb.RegionReplicationStatus replicationStatus_; /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public replication_modepb.ReplicationModepb.RegionReplicationStatus getReplicationStatus() { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.RegionReplicationStatus.getDefaultInstance() : replicationStatus_; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder getReplicationStatusOrBuilder() { return getReplicationStatus(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (region_ != null) { output.writeMessage(2, getRegion()); } if (leader_ != null) { output.writeMessage(3, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { output.writeMessage(4, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { output.writeMessage(5, pendingPeers_.get(i)); } if (bytesWritten_ != 0L) { output.writeUInt64(6, bytesWritten_); } if (bytesRead_ != 0L) { output.writeUInt64(7, bytesRead_); } if (keysWritten_ != 0L) { output.writeUInt64(8, keysWritten_); } if (keysRead_ != 0L) { output.writeUInt64(9, keysRead_); } if (approximateSize_ != 0L) { output.writeUInt64(10, approximateSize_); } if (interval_ != null) { output.writeMessage(12, getInterval()); } if (approximateKeys_ != 0L) { output.writeUInt64(13, approximateKeys_); } if (term_ != 0L) { output.writeUInt64(14, term_); } if (replicationStatus_ != null) { output.writeMessage(15, getReplicationStatus()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegion()); } if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLeader()); } for (int i = 0; i < downPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, downPeers_.get(i)); } for (int i = 0; i < pendingPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, pendingPeers_.get(i)); } if (bytesWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, bytesWritten_); } if (bytesRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, bytesRead_); } if (keysWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, keysWritten_); } if (keysRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, keysRead_); } if (approximateSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, approximateSize_); } if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getInterval()); } if (approximateKeys_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(13, approximateKeys_); } if (term_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, term_); } if (replicationStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getReplicationStatus()); } 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.Pdpb.RegionHeartbeatRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.RegionHeartbeatRequest other = (org.tikv.kvproto.Pdpb.RegionHeartbeatRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } result = result && getDownPeersList() .equals(other.getDownPeersList()); result = result && getPendingPeersList() .equals(other.getPendingPeersList()); result = result && (getBytesWritten() == other.getBytesWritten()); result = result && (getBytesRead() == other.getBytesRead()); result = result && (getKeysWritten() == other.getKeysWritten()); result = result && (getKeysRead() == other.getKeysRead()); result = result && (getApproximateSize() == other.getApproximateSize()); result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval() .equals(other.getInterval()); } result = result && (getApproximateKeys() == other.getApproximateKeys()); result = result && (getTerm() == other.getTerm()); result = result && (hasReplicationStatus() == other.hasReplicationStatus()); if (hasReplicationStatus()) { result = result && getReplicationStatus() .equals(other.getReplicationStatus()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } if (getDownPeersCount() > 0) { hash = (37 * hash) + DOWN_PEERS_FIELD_NUMBER; hash = (53 * hash) + getDownPeersList().hashCode(); } if (getPendingPeersCount() > 0) { hash = (37 * hash) + PENDING_PEERS_FIELD_NUMBER; hash = (53 * hash) + getPendingPeersList().hashCode(); } hash = (37 * hash) + BYTES_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesWritten()); hash = (37 * hash) + BYTES_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesRead()); hash = (37 * hash) + KEYS_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysWritten()); hash = (37 * hash) + KEYS_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysRead()); hash = (37 * hash) + APPROXIMATE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getApproximateSize()); if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } hash = (37 * hash) + APPROXIMATE_KEYS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getApproximateKeys()); hash = (37 * hash) + TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTerm()); if (hasReplicationStatus()) { hash = (37 * hash) + REPLICATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getReplicationStatus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest 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.Pdpb.RegionHeartbeatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest 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.Pdpb.RegionHeartbeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest 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.Pdpb.RegionHeartbeatRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest 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.Pdpb.RegionHeartbeatRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest 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.Pdpb.RegionHeartbeatRequest 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 pdpb.RegionHeartbeatRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.RegionHeartbeatRequest) org.tikv.kvproto.Pdpb.RegionHeartbeatRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.class, org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDownPeersFieldBuilder(); getPendingPeersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { downPeersBuilder_.clear(); } if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { pendingPeersBuilder_.clear(); } bytesWritten_ = 0L; bytesRead_ = 0L; keysWritten_ = 0L; keysRead_ = 0L; approximateSize_ = 0L; if (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } approximateKeys_ = 0L; term_ = 0L; if (replicationStatusBuilder_ == null) { replicationStatus_ = null; } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatRequest_descriptor; } public org.tikv.kvproto.Pdpb.RegionHeartbeatRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.RegionHeartbeatRequest build() { org.tikv.kvproto.Pdpb.RegionHeartbeatRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.RegionHeartbeatRequest buildPartial() { org.tikv.kvproto.Pdpb.RegionHeartbeatRequest result = new org.tikv.kvproto.Pdpb.RegionHeartbeatRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.build(); } if (downPeersBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = java.util.Collections.unmodifiableList(downPeers_); bitField0_ = (bitField0_ & ~0x00000008); } result.downPeers_ = downPeers_; } else { result.downPeers_ = downPeersBuilder_.build(); } if (pendingPeersBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = java.util.Collections.unmodifiableList(pendingPeers_); bitField0_ = (bitField0_ & ~0x00000010); } result.pendingPeers_ = pendingPeers_; } else { result.pendingPeers_ = pendingPeersBuilder_.build(); } result.bytesWritten_ = bytesWritten_; result.bytesRead_ = bytesRead_; result.keysWritten_ = keysWritten_; result.keysRead_ = keysRead_; result.approximateSize_ = approximateSize_; if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } result.approximateKeys_ = approximateKeys_; result.term_ = term_; if (replicationStatusBuilder_ == null) { result.replicationStatus_ = replicationStatus_; } else { result.replicationStatus_ = replicationStatusBuilder_.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.Pdpb.RegionHeartbeatRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.RegionHeartbeatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.RegionHeartbeatRequest other) { if (other == org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasLeader()) { mergeLeader(other.getLeader()); } if (downPeersBuilder_ == null) { if (!other.downPeers_.isEmpty()) { if (downPeers_.isEmpty()) { downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDownPeersIsMutable(); downPeers_.addAll(other.downPeers_); } onChanged(); } } else { if (!other.downPeers_.isEmpty()) { if (downPeersBuilder_.isEmpty()) { downPeersBuilder_.dispose(); downPeersBuilder_ = null; downPeers_ = other.downPeers_; bitField0_ = (bitField0_ & ~0x00000008); downPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDownPeersFieldBuilder() : null; } else { downPeersBuilder_.addAllMessages(other.downPeers_); } } } if (pendingPeersBuilder_ == null) { if (!other.pendingPeers_.isEmpty()) { if (pendingPeers_.isEmpty()) { pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePendingPeersIsMutable(); pendingPeers_.addAll(other.pendingPeers_); } onChanged(); } } else { if (!other.pendingPeers_.isEmpty()) { if (pendingPeersBuilder_.isEmpty()) { pendingPeersBuilder_.dispose(); pendingPeersBuilder_ = null; pendingPeers_ = other.pendingPeers_; bitField0_ = (bitField0_ & ~0x00000010); pendingPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPendingPeersFieldBuilder() : null; } else { pendingPeersBuilder_.addAllMessages(other.pendingPeers_); } } } if (other.getBytesWritten() != 0L) { setBytesWritten(other.getBytesWritten()); } if (other.getBytesRead() != 0L) { setBytesRead(other.getBytesRead()); } if (other.getKeysWritten() != 0L) { setKeysWritten(other.getKeysWritten()); } if (other.getKeysRead() != 0L) { setKeysRead(other.getKeysRead()); } if (other.getApproximateSize() != 0L) { setApproximateSize(other.getApproximateSize()); } if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.getApproximateKeys() != 0L) { setApproximateKeys(other.getApproximateKeys()); } if (other.getTerm() != 0L) { setTerm(other.getTerm()); } if (other.hasReplicationStatus()) { mergeReplicationStatus(other.getReplicationStatus()); } 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.Pdpb.RegionHeartbeatRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.RegionHeartbeatRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 2; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 2; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 2; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 2; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** *
       * Leader Peer sending the heartbeat.
       * 
* * .metapb.Peer leader = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } private java.util.List downPeers_ = java.util.Collections.emptyList(); private void ensureDownPeersIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { downPeers_ = new java.util.ArrayList(downPeers_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> downPeersBuilder_; /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public java.util.List getDownPeersList() { if (downPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(downPeers_); } else { return downPeersBuilder_.getMessageList(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public int getDownPeersCount() { if (downPeersBuilder_ == null) { return downPeers_.size(); } else { return downPeersBuilder_.getCount(); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStats getDownPeers(int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessage(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.set(index, value); onChanged(); } else { downPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder setDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.set(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder addDownPeers(org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(value); onChanged(); } else { downPeersBuilder_.addMessage(value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats value) { if (downPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDownPeersIsMutable(); downPeers_.add(index, value); onChanged(); } else { downPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder addDownPeers( org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder addDownPeers( int index, org.tikv.kvproto.Pdpb.PeerStats.Builder builderForValue) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.add(index, builderForValue.build()); onChanged(); } else { downPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder addAllDownPeers( java.lang.Iterable values) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, downPeers_); onChanged(); } else { downPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder clearDownPeers() { if (downPeersBuilder_ == null) { downPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { downPeersBuilder_.clear(); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public Builder removeDownPeers(int index) { if (downPeersBuilder_ == null) { ensureDownPeersIsMutable(); downPeers_.remove(index); onChanged(); } else { downPeersBuilder_.remove(index); } return this; } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder getDownPeersBuilder( int index) { return getDownPeersFieldBuilder().getBuilder(index); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStatsOrBuilder getDownPeersOrBuilder( int index) { if (downPeersBuilder_ == null) { return downPeers_.get(index); } else { return downPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public java.util.List getDownPeersOrBuilderList() { if (downPeersBuilder_ != null) { return downPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(downPeers_); } } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder() { return getDownPeersFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public org.tikv.kvproto.Pdpb.PeerStats.Builder addDownPeersBuilder( int index) { return getDownPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.PeerStats.getDefaultInstance()); } /** *
       * Leader considers that these peers are down.
       * 
* * repeated .pdpb.PeerStats down_peers = 4; */ public java.util.List getDownPeersBuilderList() { return getDownPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder> getDownPeersFieldBuilder() { if (downPeersBuilder_ == null) { downPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.PeerStats, org.tikv.kvproto.Pdpb.PeerStats.Builder, org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>( downPeers_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); downPeers_ = null; } return downPeersBuilder_; } private java.util.List pendingPeers_ = java.util.Collections.emptyList(); private void ensurePendingPeersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { pendingPeers_ = new java.util.ArrayList(pendingPeers_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> pendingPeersBuilder_; /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public java.util.List getPendingPeersList() { if (pendingPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(pendingPeers_); } else { return pendingPeersBuilder_.getMessageList(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public int getPendingPeersCount() { if (pendingPeersBuilder_ == null) { return pendingPeers_.size(); } else { return pendingPeersBuilder_.getCount(); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.Peer getPendingPeers(int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessage(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.set(index, value); onChanged(); } else { pendingPeersBuilder_.setMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder setPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.set(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder addPendingPeers(org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(value); onChanged(); } else { pendingPeersBuilder_.addMessage(value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (pendingPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingPeersIsMutable(); pendingPeers_.add(index, value); onChanged(); } else { pendingPeersBuilder_.addMessage(index, value); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder addPendingPeers( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder addPendingPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.add(index, builderForValue.build()); onChanged(); } else { pendingPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder addAllPendingPeers( java.lang.Iterable values) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pendingPeers_); onChanged(); } else { pendingPeersBuilder_.addAllMessages(values); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder clearPendingPeers() { if (pendingPeersBuilder_ == null) { pendingPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { pendingPeersBuilder_.clear(); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public Builder removePendingPeers(int index) { if (pendingPeersBuilder_ == null) { ensurePendingPeersIsMutable(); pendingPeers_.remove(index); onChanged(); } else { pendingPeersBuilder_.remove(index); } return this; } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder getPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().getBuilder(index); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPendingPeersOrBuilder( int index) { if (pendingPeersBuilder_ == null) { return pendingPeers_.get(index); } else { return pendingPeersBuilder_.getMessageOrBuilder(index); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public java.util.List getPendingPeersOrBuilderList() { if (pendingPeersBuilder_ != null) { return pendingPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pendingPeers_); } } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder() { return getPendingPeersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder addPendingPeersBuilder( int index) { return getPendingPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** *
       * Pending peers are the peers that the leader can't consider as
       * working followers.
       * 
* * repeated .metapb.Peer pending_peers = 5; */ public java.util.List getPendingPeersBuilderList() { return getPendingPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPendingPeersFieldBuilder() { if (pendingPeersBuilder_ == null) { pendingPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( pendingPeers_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); pendingPeers_ = null; } return pendingPeersBuilder_; } private long bytesWritten_ ; /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 6; */ public long getBytesWritten() { return bytesWritten_; } /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 6; */ public Builder setBytesWritten(long value) { bytesWritten_ = value; onChanged(); return this; } /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 6; */ public Builder clearBytesWritten() { bytesWritten_ = 0L; onChanged(); return this; } private long bytesRead_ ; /** * uint64 bytes_read = 7; */ public long getBytesRead() { return bytesRead_; } /** * uint64 bytes_read = 7; */ public Builder setBytesRead(long value) { bytesRead_ = value; onChanged(); return this; } /** * uint64 bytes_read = 7; */ public Builder clearBytesRead() { bytesRead_ = 0L; onChanged(); return this; } private long keysWritten_ ; /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 8; */ public long getKeysWritten() { return keysWritten_; } /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 8; */ public Builder setKeysWritten(long value) { keysWritten_ = value; onChanged(); return this; } /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 8; */ public Builder clearKeysWritten() { keysWritten_ = 0L; onChanged(); return this; } private long keysRead_ ; /** * uint64 keys_read = 9; */ public long getKeysRead() { return keysRead_; } /** * uint64 keys_read = 9; */ public Builder setKeysRead(long value) { keysRead_ = value; onChanged(); return this; } /** * uint64 keys_read = 9; */ public Builder clearKeysRead() { keysRead_ = 0L; onChanged(); return this; } private long approximateSize_ ; /** *
       * Approximate region size.
       * 
* * uint64 approximate_size = 10; */ public long getApproximateSize() { return approximateSize_; } /** *
       * Approximate region size.
       * 
* * uint64 approximate_size = 10; */ public Builder setApproximateSize(long value) { approximateSize_ = value; onChanged(); return this; } /** *
       * Approximate region size.
       * 
* * uint64 approximate_size = 10; */ public Builder clearApproximateSize() { approximateSize_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Pdpb.TimeInterval interval_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder> intervalBuilder_; /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public org.tikv.kvproto.Pdpb.TimeInterval getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public Builder setInterval(org.tikv.kvproto.Pdpb.TimeInterval value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public Builder setInterval( org.tikv.kvproto.Pdpb.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public Builder mergeInterval(org.tikv.kvproto.Pdpb.TimeInterval value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = org.tikv.kvproto.Pdpb.TimeInterval.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public org.tikv.kvproto.Pdpb.TimeInterval.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ public org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } private long approximateKeys_ ; /** *
       * Approximate number of keys.
       * 
* * uint64 approximate_keys = 13; */ public long getApproximateKeys() { return approximateKeys_; } /** *
       * Approximate number of keys.
       * 
* * uint64 approximate_keys = 13; */ public Builder setApproximateKeys(long value) { approximateKeys_ = value; onChanged(); return this; } /** *
       * Approximate number of keys.
       * 
* * uint64 approximate_keys = 13; */ public Builder clearApproximateKeys() { approximateKeys_ = 0L; onChanged(); return this; } private long term_ ; /** *
       * Term is the term of raft group.
       * 
* * uint64 term = 14; */ public long getTerm() { return term_; } /** *
       * Term is the term of raft group.
       * 
* * uint64 term = 14; */ public Builder setTerm(long value) { term_ = value; onChanged(); return this; } /** *
       * Term is the term of raft group.
       * 
* * uint64 term = 14; */ public Builder clearTerm() { term_ = 0L; onChanged(); return this; } private replication_modepb.ReplicationModepb.RegionReplicationStatus replicationStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.RegionReplicationStatus, replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder, replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder> replicationStatusBuilder_; /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public replication_modepb.ReplicationModepb.RegionReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.RegionReplicationStatus.getDefaultInstance() : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public Builder setReplicationStatus(replication_modepb.ReplicationModepb.RegionReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationStatus_ = value; onChanged(); } else { replicationStatusBuilder_.setMessage(value); } return this; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public Builder setReplicationStatus( replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder builderForValue) { if (replicationStatusBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); } else { replicationStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public Builder mergeReplicationStatus(replication_modepb.ReplicationModepb.RegionReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = replication_modepb.ReplicationModepb.RegionReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } onChanged(); } else { replicationStatusBuilder_.mergeFrom(value); } return this; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public Builder clearReplicationStatus() { if (replicationStatusBuilder_ == null) { replicationStatus_ = null; onChanged(); } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder getReplicationStatusBuilder() { onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ public replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.RegionReplicationStatus.getDefaultInstance() : replicationStatus_; } } /** * .replication_modepb.RegionReplicationStatus replication_status = 15; */ private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.RegionReplicationStatus, replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder, replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.RegionReplicationStatus, replication_modepb.ReplicationModepb.RegionReplicationStatus.Builder, replication_modepb.ReplicationModepb.RegionReplicationStatusOrBuilder>( getReplicationStatus(), getParentForChildren(), isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; } 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:pdpb.RegionHeartbeatRequest) } // @@protoc_insertion_point(class_scope:pdpb.RegionHeartbeatRequest) private static final org.tikv.kvproto.Pdpb.RegionHeartbeatRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.RegionHeartbeatRequest(); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionHeartbeatRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionHeartbeatRequest(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.Pdpb.RegionHeartbeatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ChangePeer) com.google.protobuf.MessageOrBuilder { /** * .metapb.Peer peer = 1; */ boolean hasPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); /** * .eraftpb.ConfChangeType change_type = 2; */ int getChangeTypeValue(); /** * .eraftpb.ConfChangeType change_type = 2; */ eraftpb.Eraftpb.ConfChangeType getChangeType(); } /** * Protobuf type {@code pdpb.ChangePeer} */ public static final class ChangePeer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ChangePeer) ChangePeerOrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeer.newBuilder() to construct. private ChangePeer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeer() { changeType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = subBuilder.buildPartial(); } break; } case 16: { int rawValue = input.readEnum(); changeType_ = 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.Pdpb.internal_static_pdpb_ChangePeer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ChangePeer.class, org.tikv.kvproto.Pdpb.ChangePeer.Builder.class); } public static final int PEER_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } public static final int CHANGE_TYPE_FIELD_NUMBER = 2; private int changeType_; /** * .eraftpb.ConfChangeType change_type = 2; */ public int getChangeTypeValue() { return changeType_; } /** * .eraftpb.ConfChangeType change_type = 2; */ public eraftpb.Eraftpb.ConfChangeType getChangeType() { eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_); return result == null ? eraftpb.Eraftpb.ConfChangeType.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 (peer_ != null) { output.writeMessage(1, getPeer()); } if (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) { output.writeEnum(2, changeType_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPeer()); } if (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, changeType_); } 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.Pdpb.ChangePeer)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ChangePeer other = (org.tikv.kvproto.Pdpb.ChangePeer) obj; boolean result = true; result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } result = result && changeType_ == other.changeType_; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + changeType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ChangePeer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeer 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.Pdpb.ChangePeer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeer 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.Pdpb.ChangePeer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ChangePeer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeer 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.Pdpb.ChangePeer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeer 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.Pdpb.ChangePeer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeer 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.Pdpb.ChangePeer 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 pdpb.ChangePeer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ChangePeer) org.tikv.kvproto.Pdpb.ChangePeerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ChangePeer.class, org.tikv.kvproto.Pdpb.ChangePeer.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ChangePeer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } changeType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeer_descriptor; } public org.tikv.kvproto.Pdpb.ChangePeer getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ChangePeer build() { org.tikv.kvproto.Pdpb.ChangePeer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ChangePeer buildPartial() { org.tikv.kvproto.Pdpb.ChangePeer result = new org.tikv.kvproto.Pdpb.ChangePeer(this); if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.build(); } result.changeType_ = changeType_; 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.Pdpb.ChangePeer) { return mergeFrom((org.tikv.kvproto.Pdpb.ChangePeer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ChangePeer other) { if (other == org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance()) return this; if (other.hasPeer()) { mergePeer(other.getPeer()); } if (other.changeType_ != 0) { setChangeTypeValue(other.getChangeTypeValue()); } 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.Pdpb.ChangePeer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ChangePeer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 1; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 1; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } private int changeType_ = 0; /** * .eraftpb.ConfChangeType change_type = 2; */ public int getChangeTypeValue() { return changeType_; } /** * .eraftpb.ConfChangeType change_type = 2; */ public Builder setChangeTypeValue(int value) { changeType_ = value; onChanged(); return this; } /** * .eraftpb.ConfChangeType change_type = 2; */ public eraftpb.Eraftpb.ConfChangeType getChangeType() { eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_); return result == null ? eraftpb.Eraftpb.ConfChangeType.UNRECOGNIZED : result; } /** * .eraftpb.ConfChangeType change_type = 2; */ public Builder setChangeType(eraftpb.Eraftpb.ConfChangeType value) { if (value == null) { throw new NullPointerException(); } changeType_ = value.getNumber(); onChanged(); return this; } /** * .eraftpb.ConfChangeType change_type = 2; */ public Builder clearChangeType() { changeType_ = 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:pdpb.ChangePeer) } // @@protoc_insertion_point(class_scope:pdpb.ChangePeer) private static final org.tikv.kvproto.Pdpb.ChangePeer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ChangePeer(); } public static org.tikv.kvproto.Pdpb.ChangePeer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeer(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.Pdpb.ChangePeer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerV2OrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ChangePeerV2) com.google.protobuf.MessageOrBuilder { /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ java.util.List getChangesList(); /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ org.tikv.kvproto.Pdpb.ChangePeer getChanges(int index); /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ int getChangesCount(); /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ java.util.List getChangesOrBuilderList(); /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangesOrBuilder( int index); } /** * Protobuf type {@code pdpb.ChangePeerV2} */ public static final class ChangePeerV2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ChangePeerV2) ChangePeerV2OrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeerV2.newBuilder() to construct. private ChangePeerV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeerV2() { changes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeerV2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { changes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } changes_.add( input.readMessage(org.tikv.kvproto.Pdpb.ChangePeer.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { changes_ = java.util.Collections.unmodifiableList(changes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeerV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeerV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ChangePeerV2.class, org.tikv.kvproto.Pdpb.ChangePeerV2.Builder.class); } public static final int CHANGES_FIELD_NUMBER = 1; private java.util.List changes_; /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ public java.util.List getChangesList() { return changes_; } /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ public java.util.List getChangesOrBuilderList() { return changes_; } /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ public int getChangesCount() { return changes_.size(); } /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeer getChanges(int index) { return changes_.get(index); } /** *
     * If changes is empty, it means that to exit joint state.
     * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangesOrBuilder( int index) { return changes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < changes_.size(); i++) { output.writeMessage(1, changes_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < changes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, changes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.ChangePeerV2)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ChangePeerV2 other = (org.tikv.kvproto.Pdpb.ChangePeerV2) obj; boolean result = true; result = result && getChangesList() .equals(other.getChangesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getChangesCount() > 0) { hash = (37 * hash) + CHANGES_FIELD_NUMBER; hash = (53 * hash) + getChangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ChangePeerV2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 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.Pdpb.ChangePeerV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 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.Pdpb.ChangePeerV2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 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.Pdpb.ChangePeerV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 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.Pdpb.ChangePeerV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 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.Pdpb.ChangePeerV2 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 pdpb.ChangePeerV2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ChangePeerV2) org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeerV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeerV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ChangePeerV2.class, org.tikv.kvproto.Pdpb.ChangePeerV2.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ChangePeerV2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChangesFieldBuilder(); } } public Builder clear() { super.clear(); if (changesBuilder_ == null) { changes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { changesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ChangePeerV2_descriptor; } public org.tikv.kvproto.Pdpb.ChangePeerV2 getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ChangePeerV2.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ChangePeerV2 build() { org.tikv.kvproto.Pdpb.ChangePeerV2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ChangePeerV2 buildPartial() { org.tikv.kvproto.Pdpb.ChangePeerV2 result = new org.tikv.kvproto.Pdpb.ChangePeerV2(this); int from_bitField0_ = bitField0_; if (changesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { changes_ = java.util.Collections.unmodifiableList(changes_); bitField0_ = (bitField0_ & ~0x00000001); } result.changes_ = changes_; } else { result.changes_ = changesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.ChangePeerV2) { return mergeFrom((org.tikv.kvproto.Pdpb.ChangePeerV2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ChangePeerV2 other) { if (other == org.tikv.kvproto.Pdpb.ChangePeerV2.getDefaultInstance()) return this; if (changesBuilder_ == null) { if (!other.changes_.isEmpty()) { if (changes_.isEmpty()) { changes_ = other.changes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChangesIsMutable(); changes_.addAll(other.changes_); } onChanged(); } } else { if (!other.changes_.isEmpty()) { if (changesBuilder_.isEmpty()) { changesBuilder_.dispose(); changesBuilder_ = null; changes_ = other.changes_; bitField0_ = (bitField0_ & ~0x00000001); changesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChangesFieldBuilder() : null; } else { changesBuilder_.addAllMessages(other.changes_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.ChangePeerV2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ChangePeerV2) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List changes_ = java.util.Collections.emptyList(); private void ensureChangesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { changes_ = new java.util.ArrayList(changes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder> changesBuilder_; /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public java.util.List getChangesList() { if (changesBuilder_ == null) { return java.util.Collections.unmodifiableList(changes_); } else { return changesBuilder_.getMessageList(); } } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public int getChangesCount() { if (changesBuilder_ == null) { return changes_.size(); } else { return changesBuilder_.getCount(); } } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeer getChanges(int index) { if (changesBuilder_ == null) { return changes_.get(index); } else { return changesBuilder_.getMessage(index); } } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder setChanges( int index, org.tikv.kvproto.Pdpb.ChangePeer value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.set(index, value); onChanged(); } else { changesBuilder_.setMessage(index, value); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder setChanges( int index, org.tikv.kvproto.Pdpb.ChangePeer.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.set(index, builderForValue.build()); onChanged(); } else { changesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder addChanges(org.tikv.kvproto.Pdpb.ChangePeer value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.add(value); onChanged(); } else { changesBuilder_.addMessage(value); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder addChanges( int index, org.tikv.kvproto.Pdpb.ChangePeer value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.add(index, value); onChanged(); } else { changesBuilder_.addMessage(index, value); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder addChanges( org.tikv.kvproto.Pdpb.ChangePeer.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.add(builderForValue.build()); onChanged(); } else { changesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder addChanges( int index, org.tikv.kvproto.Pdpb.ChangePeer.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.add(index, builderForValue.build()); onChanged(); } else { changesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder addAllChanges( java.lang.Iterable values) { if (changesBuilder_ == null) { ensureChangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, changes_); onChanged(); } else { changesBuilder_.addAllMessages(values); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder clearChanges() { if (changesBuilder_ == null) { changes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { changesBuilder_.clear(); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public Builder removeChanges(int index) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.remove(index); onChanged(); } else { changesBuilder_.remove(index); } return this; } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeer.Builder getChangesBuilder( int index) { return getChangesFieldBuilder().getBuilder(index); } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangesOrBuilder( int index) { if (changesBuilder_ == null) { return changes_.get(index); } else { return changesBuilder_.getMessageOrBuilder(index); } } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public java.util.List getChangesOrBuilderList() { if (changesBuilder_ != null) { return changesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(changes_); } } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeer.Builder addChangesBuilder() { return getChangesFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance()); } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public org.tikv.kvproto.Pdpb.ChangePeer.Builder addChangesBuilder( int index) { return getChangesFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance()); } /** *
       * If changes is empty, it means that to exit joint state.
       * 
* * repeated .pdpb.ChangePeer changes = 1; */ public java.util.List getChangesBuilderList() { return getChangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder> getChangesFieldBuilder() { if (changesBuilder_ == null) { changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder>( changes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); changes_ = null; } return changesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.ChangePeerV2) } // @@protoc_insertion_point(class_scope:pdpb.ChangePeerV2) private static final org.tikv.kvproto.Pdpb.ChangePeerV2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ChangePeerV2(); } public static org.tikv.kvproto.Pdpb.ChangePeerV2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeerV2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeerV2(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.Pdpb.ChangePeerV2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferLeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.TransferLeader) com.google.protobuf.MessageOrBuilder { /** * .metapb.Peer peer = 1; */ boolean hasPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); } /** * Protobuf type {@code pdpb.TransferLeader} */ public static final class TransferLeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.TransferLeader) TransferLeaderOrBuilder { private static final long serialVersionUID = 0L; // Use TransferLeader.newBuilder() to construct. private TransferLeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferLeader() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferLeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TransferLeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TransferLeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TransferLeader.class, org.tikv.kvproto.Pdpb.TransferLeader.Builder.class); } public static final int PEER_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peer_ != null) { output.writeMessage(1, getPeer()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPeer()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.TransferLeader)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.TransferLeader other = (org.tikv.kvproto.Pdpb.TransferLeader) obj; boolean result = true; result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.TransferLeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TransferLeader 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.Pdpb.TransferLeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TransferLeader 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.Pdpb.TransferLeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TransferLeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.TransferLeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TransferLeader 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.Pdpb.TransferLeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TransferLeader 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.Pdpb.TransferLeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TransferLeader 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.Pdpb.TransferLeader 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 pdpb.TransferLeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.TransferLeader) org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TransferLeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TransferLeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TransferLeader.class, org.tikv.kvproto.Pdpb.TransferLeader.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.TransferLeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TransferLeader_descriptor; } public org.tikv.kvproto.Pdpb.TransferLeader getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.TransferLeader.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.TransferLeader build() { org.tikv.kvproto.Pdpb.TransferLeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.TransferLeader buildPartial() { org.tikv.kvproto.Pdpb.TransferLeader result = new org.tikv.kvproto.Pdpb.TransferLeader(this); if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.TransferLeader) { return mergeFrom((org.tikv.kvproto.Pdpb.TransferLeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.TransferLeader other) { if (other == org.tikv.kvproto.Pdpb.TransferLeader.getDefaultInstance()) return this; if (other.hasPeer()) { mergePeer(other.getPeer()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.TransferLeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.TransferLeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 1; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 1; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.TransferLeader) } // @@protoc_insertion_point(class_scope:pdpb.TransferLeader) private static final org.tikv.kvproto.Pdpb.TransferLeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.TransferLeader(); } public static org.tikv.kvproto.Pdpb.TransferLeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransferLeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferLeader(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.Pdpb.TransferLeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MergeOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.Merge) com.google.protobuf.MessageOrBuilder { /** * .metapb.Region target = 1; */ boolean hasTarget(); /** * .metapb.Region target = 1; */ org.tikv.kvproto.Metapb.Region getTarget(); /** * .metapb.Region target = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder(); } /** * Protobuf type {@code pdpb.Merge} */ public static final class Merge extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.Merge) MergeOrBuilder { private static final long serialVersionUID = 0L; // Use Merge.newBuilder() to construct. private Merge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Merge() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Merge( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (target_ != null) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Merge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Merge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Merge.class, org.tikv.kvproto.Pdpb.Merge.Builder.class); } public static final int TARGET_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Region target_; /** * .metapb.Region target = 1; */ public boolean hasTarget() { return target_ != null; } /** * .metapb.Region target = 1; */ public org.tikv.kvproto.Metapb.Region getTarget() { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } /** * .metapb.Region target = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() { return getTarget(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (target_ != null) { output.writeMessage(1, getTarget()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTarget()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.Merge)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.Merge other = (org.tikv.kvproto.Pdpb.Merge) obj; boolean result = true; result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.Merge parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Merge 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.Pdpb.Merge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Merge 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.Pdpb.Merge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.Merge parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.Merge parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Merge 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.Pdpb.Merge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Merge 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.Pdpb.Merge parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.Merge 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.Pdpb.Merge 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 pdpb.Merge} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.Merge) org.tikv.kvproto.Pdpb.MergeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Merge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Merge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.Merge.class, org.tikv.kvproto.Pdpb.Merge.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.Merge.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 (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_Merge_descriptor; } public org.tikv.kvproto.Pdpb.Merge getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.Merge.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.Merge build() { org.tikv.kvproto.Pdpb.Merge result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.Merge buildPartial() { org.tikv.kvproto.Pdpb.Merge result = new org.tikv.kvproto.Pdpb.Merge(this); if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.Merge) { return mergeFrom((org.tikv.kvproto.Pdpb.Merge)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.Merge other) { if (other == org.tikv.kvproto.Pdpb.Merge.getDefaultInstance()) return this; if (other.hasTarget()) { mergeTarget(other.getTarget()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.Merge parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.Merge) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Region target_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> targetBuilder_; /** * .metapb.Region target = 1; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * .metapb.Region target = 1; */ public org.tikv.kvproto.Metapb.Region getTarget() { if (targetBuilder_ == null) { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** * .metapb.Region target = 1; */ public Builder setTarget(org.tikv.kvproto.Metapb.Region value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } return this; } /** * .metapb.Region target = 1; */ public Builder setTarget( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region target = 1; */ public Builder mergeTarget(org.tikv.kvproto.Metapb.Region value) { if (targetBuilder_ == null) { if (target_ != null) { target_ = org.tikv.kvproto.Metapb.Region.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region target = 1; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * .metapb.Region target = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * .metapb.Region target = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } } /** * .metapb.Region target = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.Merge) } // @@protoc_insertion_point(class_scope:pdpb.Merge) private static final org.tikv.kvproto.Pdpb.Merge DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.Merge(); } public static org.tikv.kvproto.Pdpb.Merge getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Merge parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Merge(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.Pdpb.Merge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SplitRegion) com.google.protobuf.MessageOrBuilder { /** * .pdpb.CheckPolicy policy = 1; */ int getPolicyValue(); /** * .pdpb.CheckPolicy policy = 1; */ org.tikv.kvproto.Pdpb.CheckPolicy getPolicy(); /** * 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); } /** * Protobuf type {@code pdpb.SplitRegion} */ public static final class SplitRegion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SplitRegion) SplitRegionOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRegion.newBuilder() to construct. private SplitRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRegion() { policy_ = 0; keys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRegion( 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(); policy_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } 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_ & 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.Pdpb.internal_static_pdpb_SplitRegion_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegion.class, org.tikv.kvproto.Pdpb.SplitRegion.Builder.class); } private int bitField0_; public static final int POLICY_FIELD_NUMBER = 1; private int policy_; /** * .pdpb.CheckPolicy policy = 1; */ public int getPolicyValue() { return policy_; } /** * .pdpb.CheckPolicy policy = 1; */ public org.tikv.kvproto.Pdpb.CheckPolicy getPolicy() { org.tikv.kvproto.Pdpb.CheckPolicy result = org.tikv.kvproto.Pdpb.CheckPolicy.valueOf(policy_); return result == null ? org.tikv.kvproto.Pdpb.CheckPolicy.UNRECOGNIZED : result; } 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); } 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 (policy_ != org.tikv.kvproto.Pdpb.CheckPolicy.SCAN.getNumber()) { output.writeEnum(1, policy_); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(2, keys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (policy_ != org.tikv.kvproto.Pdpb.CheckPolicy.SCAN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, policy_); } { 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.Pdpb.SplitRegion)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SplitRegion other = (org.tikv.kvproto.Pdpb.SplitRegion) obj; boolean result = true; result = result && policy_ == other.policy_; 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(); hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + policy_; 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.Pdpb.SplitRegion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegion 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.Pdpb.SplitRegion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegion 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.Pdpb.SplitRegion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SplitRegion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegion 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.Pdpb.SplitRegion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegion 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.Pdpb.SplitRegion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegion 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.Pdpb.SplitRegion 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 pdpb.SplitRegion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SplitRegion) org.tikv.kvproto.Pdpb.SplitRegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegion_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegion.class, org.tikv.kvproto.Pdpb.SplitRegion.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SplitRegion.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(); policy_ = 0; keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegion_descriptor; } public org.tikv.kvproto.Pdpb.SplitRegion getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SplitRegion.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SplitRegion build() { org.tikv.kvproto.Pdpb.SplitRegion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SplitRegion buildPartial() { org.tikv.kvproto.Pdpb.SplitRegion result = new org.tikv.kvproto.Pdpb.SplitRegion(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.policy_ = policy_; if (((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000002); } 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.Pdpb.SplitRegion) { return mergeFrom((org.tikv.kvproto.Pdpb.SplitRegion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SplitRegion other) { if (other == org.tikv.kvproto.Pdpb.SplitRegion.getDefaultInstance()) return this; if (other.policy_ != 0) { setPolicyValue(other.getPolicyValue()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000002); } 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.Pdpb.SplitRegion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SplitRegion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int policy_ = 0; /** * .pdpb.CheckPolicy policy = 1; */ public int getPolicyValue() { return policy_; } /** * .pdpb.CheckPolicy policy = 1; */ public Builder setPolicyValue(int value) { policy_ = value; onChanged(); return this; } /** * .pdpb.CheckPolicy policy = 1; */ public org.tikv.kvproto.Pdpb.CheckPolicy getPolicy() { org.tikv.kvproto.Pdpb.CheckPolicy result = org.tikv.kvproto.Pdpb.CheckPolicy.valueOf(policy_); return result == null ? org.tikv.kvproto.Pdpb.CheckPolicy.UNRECOGNIZED : result; } /** * .pdpb.CheckPolicy policy = 1; */ public Builder setPolicy(org.tikv.kvproto.Pdpb.CheckPolicy value) { if (value == null) { throw new NullPointerException(); } policy_ = value.getNumber(); onChanged(); return this; } /** * .pdpb.CheckPolicy policy = 1; */ public Builder clearPolicy() { policy_ = 0; onChanged(); return this; } 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; } 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:pdpb.SplitRegion) } // @@protoc_insertion_point(class_scope:pdpb.SplitRegion) private static final org.tikv.kvproto.Pdpb.SplitRegion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SplitRegion(); } public static org.tikv.kvproto.Pdpb.SplitRegion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRegion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRegion(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.Pdpb.SplitRegion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionHeartbeatResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.RegionHeartbeatResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ boolean hasChangePeer(); /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ org.tikv.kvproto.Pdpb.ChangePeer getChangePeer(); /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangePeerOrBuilder(); /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ boolean hasTransferLeader(); /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ org.tikv.kvproto.Pdpb.TransferLeader getTransferLeader(); /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder getTransferLeaderOrBuilder(); /** *
     * ID of the region
     * 
* * uint64 region_id = 4; */ long getRegionId(); /** * .metapb.RegionEpoch region_epoch = 5; */ boolean hasRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 5; */ org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 5; */ org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder(); /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ boolean hasTargetPeer(); /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ org.tikv.kvproto.Metapb.Peer getTargetPeer(); /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ org.tikv.kvproto.Metapb.PeerOrBuilder getTargetPeerOrBuilder(); /** * .pdpb.Merge merge = 7; */ boolean hasMerge(); /** * .pdpb.Merge merge = 7; */ org.tikv.kvproto.Pdpb.Merge getMerge(); /** * .pdpb.Merge merge = 7; */ org.tikv.kvproto.Pdpb.MergeOrBuilder getMergeOrBuilder(); /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ boolean hasSplitRegion(); /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ org.tikv.kvproto.Pdpb.SplitRegion getSplitRegion(); /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ org.tikv.kvproto.Pdpb.SplitRegionOrBuilder getSplitRegionOrBuilder(); /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ boolean hasChangePeerV2(); /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ org.tikv.kvproto.Pdpb.ChangePeerV2 getChangePeerV2(); /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder getChangePeerV2OrBuilder(); } /** * Protobuf type {@code pdpb.RegionHeartbeatResponse} */ public static final class RegionHeartbeatResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.RegionHeartbeatResponse) RegionHeartbeatResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RegionHeartbeatResponse.newBuilder() to construct. private RegionHeartbeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionHeartbeatResponse() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionHeartbeatResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Pdpb.ChangePeer.Builder subBuilder = null; if (changePeer_ != null) { subBuilder = changePeer_.toBuilder(); } changePeer_ = input.readMessage(org.tikv.kvproto.Pdpb.ChangePeer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeer_); changePeer_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Pdpb.TransferLeader.Builder subBuilder = null; if (transferLeader_ != null) { subBuilder = transferLeader_.toBuilder(); } transferLeader_ = input.readMessage(org.tikv.kvproto.Pdpb.TransferLeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transferLeader_); transferLeader_ = subBuilder.buildPartial(); } break; } case 32: { regionId_ = input.readUInt64(); break; } case 42: { org.tikv.kvproto.Metapb.RegionEpoch.Builder subBuilder = null; if (regionEpoch_ != null) { subBuilder = regionEpoch_.toBuilder(); } regionEpoch_ = input.readMessage(org.tikv.kvproto.Metapb.RegionEpoch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionEpoch_); regionEpoch_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (targetPeer_ != null) { subBuilder = targetPeer_.toBuilder(); } targetPeer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(targetPeer_); targetPeer_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.Pdpb.Merge.Builder subBuilder = null; if (merge_ != null) { subBuilder = merge_.toBuilder(); } merge_ = input.readMessage(org.tikv.kvproto.Pdpb.Merge.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(merge_); merge_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.Pdpb.SplitRegion.Builder subBuilder = null; if (splitRegion_ != null) { subBuilder = splitRegion_.toBuilder(); } splitRegion_ = input.readMessage(org.tikv.kvproto.Pdpb.SplitRegion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(splitRegion_); splitRegion_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.Pdpb.ChangePeerV2.Builder subBuilder = null; if (changePeerV2_ != null) { subBuilder = changePeerV2_.toBuilder(); } changePeerV2_ = input.readMessage(org.tikv.kvproto.Pdpb.ChangePeerV2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeerV2_); changePeerV2_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.class, org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int CHANGE_PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.ChangePeer changePeer_; /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ public boolean hasChangePeer() { return changePeer_ != null; } /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ public org.tikv.kvproto.Pdpb.ChangePeer getChangePeer() { return changePeer_ == null ? org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance() : changePeer_; } /** *
     * Notice, Pd only allows handling reported epoch >= current pd's.
     * Leader peer reports region status with RegionHeartbeatRequest
     * to pd regularly, pd will determine whether this region
     * should do ChangePeer or not.
     * E,g, max peer number is 3, region A, first only peer 1 in A.
     * 1. Pd region state -> Peers (1), ConfVer (1).
     * 2. Leader peer 1 reports region state to pd, pd finds the
     * peer number is < 3, so first changes its current region
     * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
     * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
     * pd updates its state -> Peers (1, 2), ConfVer (2).
     * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
     * finished, pd stills responses ChangePeer Adding 2, of course, we must
     * guarantee the second ChangePeer can't be applied in TiKV.
     * 
* * .pdpb.ChangePeer change_peer = 2; */ public org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangePeerOrBuilder() { return getChangePeer(); } public static final int TRANSFER_LEADER_FIELD_NUMBER = 3; private org.tikv.kvproto.Pdpb.TransferLeader transferLeader_; /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public boolean hasTransferLeader() { return transferLeader_ != null; } /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public org.tikv.kvproto.Pdpb.TransferLeader getTransferLeader() { return transferLeader_ == null ? org.tikv.kvproto.Pdpb.TransferLeader.getDefaultInstance() : transferLeader_; } /** *
     * Pd can return transfer_leader to let TiKV does leader transfer itself.
     * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder getTransferLeaderOrBuilder() { return getTransferLeader(); } public static final int REGION_ID_FIELD_NUMBER = 4; private long regionId_; /** *
     * ID of the region
     * 
* * uint64 region_id = 4; */ public long getRegionId() { return regionId_; } public static final int REGION_EPOCH_FIELD_NUMBER = 5; private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_; /** * .metapb.RegionEpoch region_epoch = 5; */ public boolean hasRegionEpoch() { return regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { return getRegionEpoch(); } public static final int TARGET_PEER_FIELD_NUMBER = 6; private org.tikv.kvproto.Metapb.Peer targetPeer_; /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ public boolean hasTargetPeer() { return targetPeer_ != null; } /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ public org.tikv.kvproto.Metapb.Peer getTargetPeer() { return targetPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : targetPeer_; } /** *
     * Leader of the region at the moment of the corresponding request was made.
     * 
* * .metapb.Peer target_peer = 6; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getTargetPeerOrBuilder() { return getTargetPeer(); } public static final int MERGE_FIELD_NUMBER = 7; private org.tikv.kvproto.Pdpb.Merge merge_; /** * .pdpb.Merge merge = 7; */ public boolean hasMerge() { return merge_ != null; } /** * .pdpb.Merge merge = 7; */ public org.tikv.kvproto.Pdpb.Merge getMerge() { return merge_ == null ? org.tikv.kvproto.Pdpb.Merge.getDefaultInstance() : merge_; } /** * .pdpb.Merge merge = 7; */ public org.tikv.kvproto.Pdpb.MergeOrBuilder getMergeOrBuilder() { return getMerge(); } public static final int SPLIT_REGION_FIELD_NUMBER = 8; private org.tikv.kvproto.Pdpb.SplitRegion splitRegion_; /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ public boolean hasSplitRegion() { return splitRegion_ != null; } /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ public org.tikv.kvproto.Pdpb.SplitRegion getSplitRegion() { return splitRegion_ == null ? org.tikv.kvproto.Pdpb.SplitRegion.getDefaultInstance() : splitRegion_; } /** *
     * PD sends split_region to let TiKV split a region into two regions.
     * 
* * .pdpb.SplitRegion split_region = 8; */ public org.tikv.kvproto.Pdpb.SplitRegionOrBuilder getSplitRegionOrBuilder() { return getSplitRegion(); } public static final int CHANGE_PEER_V2_FIELD_NUMBER = 9; private org.tikv.kvproto.Pdpb.ChangePeerV2 changePeerV2_; /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public boolean hasChangePeerV2() { return changePeerV2_ != null; } /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public org.tikv.kvproto.Pdpb.ChangePeerV2 getChangePeerV2() { return changePeerV2_ == null ? org.tikv.kvproto.Pdpb.ChangePeerV2.getDefaultInstance() : changePeerV2_; } /** *
     * Multiple change peer operations atomically.
     * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
     *       (not in the same RegionHeartbeatResponse).
     *       Now, PD use ChangePeerV2 only for replacing peers.
     * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder getChangePeerV2OrBuilder() { return getChangePeerV2(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (changePeer_ != null) { output.writeMessage(2, getChangePeer()); } if (transferLeader_ != null) { output.writeMessage(3, getTransferLeader()); } if (regionId_ != 0L) { output.writeUInt64(4, regionId_); } if (regionEpoch_ != null) { output.writeMessage(5, getRegionEpoch()); } if (targetPeer_ != null) { output.writeMessage(6, getTargetPeer()); } if (merge_ != null) { output.writeMessage(7, getMerge()); } if (splitRegion_ != null) { output.writeMessage(8, getSplitRegion()); } if (changePeerV2_ != null) { output.writeMessage(9, getChangePeerV2()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (changePeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChangePeer()); } if (transferLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTransferLeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, regionId_); } if (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRegionEpoch()); } if (targetPeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTargetPeer()); } if (merge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMerge()); } if (splitRegion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getSplitRegion()); } if (changePeerV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getChangePeerV2()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.RegionHeartbeatResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.RegionHeartbeatResponse other = (org.tikv.kvproto.Pdpb.RegionHeartbeatResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasChangePeer() == other.hasChangePeer()); if (hasChangePeer()) { result = result && getChangePeer() .equals(other.getChangePeer()); } result = result && (hasTransferLeader() == other.hasTransferLeader()); if (hasTransferLeader()) { result = result && getTransferLeader() .equals(other.getTransferLeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } result = result && (hasTargetPeer() == other.hasTargetPeer()); if (hasTargetPeer()) { result = result && getTargetPeer() .equals(other.getTargetPeer()); } result = result && (hasMerge() == other.hasMerge()); if (hasMerge()) { result = result && getMerge() .equals(other.getMerge()); } result = result && (hasSplitRegion() == other.hasSplitRegion()); if (hasSplitRegion()) { result = result && getSplitRegion() .equals(other.getSplitRegion()); } result = result && (hasChangePeerV2() == other.hasChangePeerV2()); if (hasChangePeerV2()) { result = result && getChangePeerV2() .equals(other.getChangePeerV2()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasChangePeer()) { hash = (37 * hash) + CHANGE_PEER_FIELD_NUMBER; hash = (53 * hash) + getChangePeer().hashCode(); } if (hasTransferLeader()) { hash = (37 * hash) + TRANSFER_LEADER_FIELD_NUMBER; hash = (53 * hash) + getTransferLeader().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 (hasTargetPeer()) { hash = (37 * hash) + TARGET_PEER_FIELD_NUMBER; hash = (53 * hash) + getTargetPeer().hashCode(); } if (hasMerge()) { hash = (37 * hash) + MERGE_FIELD_NUMBER; hash = (53 * hash) + getMerge().hashCode(); } if (hasSplitRegion()) { hash = (37 * hash) + SPLIT_REGION_FIELD_NUMBER; hash = (53 * hash) + getSplitRegion().hashCode(); } if (hasChangePeerV2()) { hash = (37 * hash) + CHANGE_PEER_V2_FIELD_NUMBER; hash = (53 * hash) + getChangePeerV2().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse 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.Pdpb.RegionHeartbeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse 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.Pdpb.RegionHeartbeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse 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.Pdpb.RegionHeartbeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse 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.Pdpb.RegionHeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse 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.Pdpb.RegionHeartbeatResponse 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 pdpb.RegionHeartbeatResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.RegionHeartbeatResponse) org.tikv.kvproto.Pdpb.RegionHeartbeatResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.class, org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (changePeerBuilder_ == null) { changePeer_ = null; } else { changePeer_ = null; changePeerBuilder_ = null; } if (transferLeaderBuilder_ == null) { transferLeader_ = null; } else { transferLeader_ = null; transferLeaderBuilder_ = null; } regionId_ = 0L; if (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } if (targetPeerBuilder_ == null) { targetPeer_ = null; } else { targetPeer_ = null; targetPeerBuilder_ = null; } if (mergeBuilder_ == null) { merge_ = null; } else { merge_ = null; mergeBuilder_ = null; } if (splitRegionBuilder_ == null) { splitRegion_ = null; } else { splitRegion_ = null; splitRegionBuilder_ = null; } if (changePeerV2Builder_ == null) { changePeerV2_ = null; } else { changePeerV2_ = null; changePeerV2Builder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionHeartbeatResponse_descriptor; } public org.tikv.kvproto.Pdpb.RegionHeartbeatResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.RegionHeartbeatResponse build() { org.tikv.kvproto.Pdpb.RegionHeartbeatResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.RegionHeartbeatResponse buildPartial() { org.tikv.kvproto.Pdpb.RegionHeartbeatResponse result = new org.tikv.kvproto.Pdpb.RegionHeartbeatResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (changePeerBuilder_ == null) { result.changePeer_ = changePeer_; } else { result.changePeer_ = changePeerBuilder_.build(); } if (transferLeaderBuilder_ == null) { result.transferLeader_ = transferLeader_; } else { result.transferLeader_ = transferLeaderBuilder_.build(); } result.regionId_ = regionId_; if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.build(); } if (targetPeerBuilder_ == null) { result.targetPeer_ = targetPeer_; } else { result.targetPeer_ = targetPeerBuilder_.build(); } if (mergeBuilder_ == null) { result.merge_ = merge_; } else { result.merge_ = mergeBuilder_.build(); } if (splitRegionBuilder_ == null) { result.splitRegion_ = splitRegion_; } else { result.splitRegion_ = splitRegionBuilder_.build(); } if (changePeerV2Builder_ == null) { result.changePeerV2_ = changePeerV2_; } else { result.changePeerV2_ = changePeerV2Builder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.RegionHeartbeatResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.RegionHeartbeatResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.RegionHeartbeatResponse other) { if (other == org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasChangePeer()) { mergeChangePeer(other.getChangePeer()); } if (other.hasTransferLeader()) { mergeTransferLeader(other.getTransferLeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } if (other.hasTargetPeer()) { mergeTargetPeer(other.getTargetPeer()); } if (other.hasMerge()) { mergeMerge(other.getMerge()); } if (other.hasSplitRegion()) { mergeSplitRegion(other.getSplitRegion()); } if (other.hasChangePeerV2()) { mergeChangePeerV2(other.getChangePeerV2()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.RegionHeartbeatResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.RegionHeartbeatResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Pdpb.ChangePeer changePeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder> changePeerBuilder_; /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public boolean hasChangePeer() { return changePeerBuilder_ != null || changePeer_ != null; } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public org.tikv.kvproto.Pdpb.ChangePeer getChangePeer() { if (changePeerBuilder_ == null) { return changePeer_ == null ? org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance() : changePeer_; } else { return changePeerBuilder_.getMessage(); } } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public Builder setChangePeer(org.tikv.kvproto.Pdpb.ChangePeer value) { if (changePeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } changePeer_ = value; onChanged(); } else { changePeerBuilder_.setMessage(value); } return this; } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public Builder setChangePeer( org.tikv.kvproto.Pdpb.ChangePeer.Builder builderForValue) { if (changePeerBuilder_ == null) { changePeer_ = builderForValue.build(); onChanged(); } else { changePeerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public Builder mergeChangePeer(org.tikv.kvproto.Pdpb.ChangePeer value) { if (changePeerBuilder_ == null) { if (changePeer_ != null) { changePeer_ = org.tikv.kvproto.Pdpb.ChangePeer.newBuilder(changePeer_).mergeFrom(value).buildPartial(); } else { changePeer_ = value; } onChanged(); } else { changePeerBuilder_.mergeFrom(value); } return this; } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public Builder clearChangePeer() { if (changePeerBuilder_ == null) { changePeer_ = null; onChanged(); } else { changePeer_ = null; changePeerBuilder_ = null; } return this; } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public org.tikv.kvproto.Pdpb.ChangePeer.Builder getChangePeerBuilder() { onChanged(); return getChangePeerFieldBuilder().getBuilder(); } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ public org.tikv.kvproto.Pdpb.ChangePeerOrBuilder getChangePeerOrBuilder() { if (changePeerBuilder_ != null) { return changePeerBuilder_.getMessageOrBuilder(); } else { return changePeer_ == null ? org.tikv.kvproto.Pdpb.ChangePeer.getDefaultInstance() : changePeer_; } } /** *
       * Notice, Pd only allows handling reported epoch >= current pd's.
       * Leader peer reports region status with RegionHeartbeatRequest
       * to pd regularly, pd will determine whether this region
       * should do ChangePeer or not.
       * E,g, max peer number is 3, region A, first only peer 1 in A.
       * 1. Pd region state -> Peers (1), ConfVer (1).
       * 2. Leader peer 1 reports region state to pd, pd finds the
       * peer number is < 3, so first changes its current region
       * state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2.
       * 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2),
       * pd updates its state -> Peers (1, 2), ConfVer (2).
       * 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange
       * finished, pd stills responses ChangePeer Adding 2, of course, we must
       * guarantee the second ChangePeer can't be applied in TiKV.
       * 
* * .pdpb.ChangePeer change_peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder> getChangePeerFieldBuilder() { if (changePeerBuilder_ == null) { changePeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeer, org.tikv.kvproto.Pdpb.ChangePeer.Builder, org.tikv.kvproto.Pdpb.ChangePeerOrBuilder>( getChangePeer(), getParentForChildren(), isClean()); changePeer_ = null; } return changePeerBuilder_; } private org.tikv.kvproto.Pdpb.TransferLeader transferLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TransferLeader, org.tikv.kvproto.Pdpb.TransferLeader.Builder, org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder> transferLeaderBuilder_; /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public boolean hasTransferLeader() { return transferLeaderBuilder_ != null || transferLeader_ != null; } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public org.tikv.kvproto.Pdpb.TransferLeader getTransferLeader() { if (transferLeaderBuilder_ == null) { return transferLeader_ == null ? org.tikv.kvproto.Pdpb.TransferLeader.getDefaultInstance() : transferLeader_; } else { return transferLeaderBuilder_.getMessage(); } } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public Builder setTransferLeader(org.tikv.kvproto.Pdpb.TransferLeader value) { if (transferLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transferLeader_ = value; onChanged(); } else { transferLeaderBuilder_.setMessage(value); } return this; } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public Builder setTransferLeader( org.tikv.kvproto.Pdpb.TransferLeader.Builder builderForValue) { if (transferLeaderBuilder_ == null) { transferLeader_ = builderForValue.build(); onChanged(); } else { transferLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public Builder mergeTransferLeader(org.tikv.kvproto.Pdpb.TransferLeader value) { if (transferLeaderBuilder_ == null) { if (transferLeader_ != null) { transferLeader_ = org.tikv.kvproto.Pdpb.TransferLeader.newBuilder(transferLeader_).mergeFrom(value).buildPartial(); } else { transferLeader_ = value; } onChanged(); } else { transferLeaderBuilder_.mergeFrom(value); } return this; } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public Builder clearTransferLeader() { if (transferLeaderBuilder_ == null) { transferLeader_ = null; onChanged(); } else { transferLeader_ = null; transferLeaderBuilder_ = null; } return this; } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public org.tikv.kvproto.Pdpb.TransferLeader.Builder getTransferLeaderBuilder() { onChanged(); return getTransferLeaderFieldBuilder().getBuilder(); } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ public org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder getTransferLeaderOrBuilder() { if (transferLeaderBuilder_ != null) { return transferLeaderBuilder_.getMessageOrBuilder(); } else { return transferLeader_ == null ? org.tikv.kvproto.Pdpb.TransferLeader.getDefaultInstance() : transferLeader_; } } /** *
       * Pd can return transfer_leader to let TiKV does leader transfer itself.
       * 
* * .pdpb.TransferLeader transfer_leader = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TransferLeader, org.tikv.kvproto.Pdpb.TransferLeader.Builder, org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder> getTransferLeaderFieldBuilder() { if (transferLeaderBuilder_ == null) { transferLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TransferLeader, org.tikv.kvproto.Pdpb.TransferLeader.Builder, org.tikv.kvproto.Pdpb.TransferLeaderOrBuilder>( getTransferLeader(), getParentForChildren(), isClean()); transferLeader_ = null; } return transferLeaderBuilder_; } private long regionId_ ; /** *
       * ID of the region
       * 
* * uint64 region_id = 4; */ public long getRegionId() { return regionId_; } /** *
       * ID of the region
       * 
* * uint64 region_id = 4; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * ID of the region
       * 
* * uint64 region_id = 4; */ 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 = 5; */ public boolean hasRegionEpoch() { return regionEpochBuilder_ != null || regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { if (regionEpochBuilder_ == null) { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } else { return regionEpochBuilder_.getMessage(); } } /** * .metapb.RegionEpoch region_epoch = 5; */ public Builder setRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionEpoch_ = value; onChanged(); } else { regionEpochBuilder_.setMessage(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 5; */ public Builder setRegionEpoch( org.tikv.kvproto.Metapb.RegionEpoch.Builder builderForValue) { if (regionEpochBuilder_ == null) { regionEpoch_ = builderForValue.build(); onChanged(); } else { regionEpochBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.RegionEpoch region_epoch = 5; */ public Builder mergeRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (regionEpoch_ != null) { regionEpoch_ = org.tikv.kvproto.Metapb.RegionEpoch.newBuilder(regionEpoch_).mergeFrom(value).buildPartial(); } else { regionEpoch_ = value; } onChanged(); } else { regionEpochBuilder_.mergeFrom(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 5; */ public Builder clearRegionEpoch() { if (regionEpochBuilder_ == null) { regionEpoch_ = null; onChanged(); } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() { onChanged(); return getRegionEpochFieldBuilder().getBuilder(); } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { if (regionEpochBuilder_ != null) { return regionEpochBuilder_.getMessageOrBuilder(); } else { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } } /** * .metapb.RegionEpoch region_epoch = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> getRegionEpochFieldBuilder() { if (regionEpochBuilder_ == null) { regionEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>( getRegionEpoch(), getParentForChildren(), isClean()); regionEpoch_ = null; } return regionEpochBuilder_; } private org.tikv.kvproto.Metapb.Peer targetPeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> targetPeerBuilder_; /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public boolean hasTargetPeer() { return targetPeerBuilder_ != null || targetPeer_ != null; } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public org.tikv.kvproto.Metapb.Peer getTargetPeer() { if (targetPeerBuilder_ == null) { return targetPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : targetPeer_; } else { return targetPeerBuilder_.getMessage(); } } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public Builder setTargetPeer(org.tikv.kvproto.Metapb.Peer value) { if (targetPeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetPeer_ = value; onChanged(); } else { targetPeerBuilder_.setMessage(value); } return this; } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public Builder setTargetPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (targetPeerBuilder_ == null) { targetPeer_ = builderForValue.build(); onChanged(); } else { targetPeerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public Builder mergeTargetPeer(org.tikv.kvproto.Metapb.Peer value) { if (targetPeerBuilder_ == null) { if (targetPeer_ != null) { targetPeer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(targetPeer_).mergeFrom(value).buildPartial(); } else { targetPeer_ = value; } onChanged(); } else { targetPeerBuilder_.mergeFrom(value); } return this; } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public Builder clearTargetPeer() { if (targetPeerBuilder_ == null) { targetPeer_ = null; onChanged(); } else { targetPeer_ = null; targetPeerBuilder_ = null; } return this; } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public org.tikv.kvproto.Metapb.Peer.Builder getTargetPeerBuilder() { onChanged(); return getTargetPeerFieldBuilder().getBuilder(); } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getTargetPeerOrBuilder() { if (targetPeerBuilder_ != null) { return targetPeerBuilder_.getMessageOrBuilder(); } else { return targetPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : targetPeer_; } } /** *
       * Leader of the region at the moment of the corresponding request was made.
       * 
* * .metapb.Peer target_peer = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getTargetPeerFieldBuilder() { if (targetPeerBuilder_ == null) { targetPeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getTargetPeer(), getParentForChildren(), isClean()); targetPeer_ = null; } return targetPeerBuilder_; } private org.tikv.kvproto.Pdpb.Merge merge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Merge, org.tikv.kvproto.Pdpb.Merge.Builder, org.tikv.kvproto.Pdpb.MergeOrBuilder> mergeBuilder_; /** * .pdpb.Merge merge = 7; */ public boolean hasMerge() { return mergeBuilder_ != null || merge_ != null; } /** * .pdpb.Merge merge = 7; */ public org.tikv.kvproto.Pdpb.Merge getMerge() { if (mergeBuilder_ == null) { return merge_ == null ? org.tikv.kvproto.Pdpb.Merge.getDefaultInstance() : merge_; } else { return mergeBuilder_.getMessage(); } } /** * .pdpb.Merge merge = 7; */ public Builder setMerge(org.tikv.kvproto.Pdpb.Merge value) { if (mergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } merge_ = value; onChanged(); } else { mergeBuilder_.setMessage(value); } return this; } /** * .pdpb.Merge merge = 7; */ public Builder setMerge( org.tikv.kvproto.Pdpb.Merge.Builder builderForValue) { if (mergeBuilder_ == null) { merge_ = builderForValue.build(); onChanged(); } else { mergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Merge merge = 7; */ public Builder mergeMerge(org.tikv.kvproto.Pdpb.Merge value) { if (mergeBuilder_ == null) { if (merge_ != null) { merge_ = org.tikv.kvproto.Pdpb.Merge.newBuilder(merge_).mergeFrom(value).buildPartial(); } else { merge_ = value; } onChanged(); } else { mergeBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Merge merge = 7; */ public Builder clearMerge() { if (mergeBuilder_ == null) { merge_ = null; onChanged(); } else { merge_ = null; mergeBuilder_ = null; } return this; } /** * .pdpb.Merge merge = 7; */ public org.tikv.kvproto.Pdpb.Merge.Builder getMergeBuilder() { onChanged(); return getMergeFieldBuilder().getBuilder(); } /** * .pdpb.Merge merge = 7; */ public org.tikv.kvproto.Pdpb.MergeOrBuilder getMergeOrBuilder() { if (mergeBuilder_ != null) { return mergeBuilder_.getMessageOrBuilder(); } else { return merge_ == null ? org.tikv.kvproto.Pdpb.Merge.getDefaultInstance() : merge_; } } /** * .pdpb.Merge merge = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Merge, org.tikv.kvproto.Pdpb.Merge.Builder, org.tikv.kvproto.Pdpb.MergeOrBuilder> getMergeFieldBuilder() { if (mergeBuilder_ == null) { mergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Merge, org.tikv.kvproto.Pdpb.Merge.Builder, org.tikv.kvproto.Pdpb.MergeOrBuilder>( getMerge(), getParentForChildren(), isClean()); merge_ = null; } return mergeBuilder_; } private org.tikv.kvproto.Pdpb.SplitRegion splitRegion_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitRegion, org.tikv.kvproto.Pdpb.SplitRegion.Builder, org.tikv.kvproto.Pdpb.SplitRegionOrBuilder> splitRegionBuilder_; /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public boolean hasSplitRegion() { return splitRegionBuilder_ != null || splitRegion_ != null; } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public org.tikv.kvproto.Pdpb.SplitRegion getSplitRegion() { if (splitRegionBuilder_ == null) { return splitRegion_ == null ? org.tikv.kvproto.Pdpb.SplitRegion.getDefaultInstance() : splitRegion_; } else { return splitRegionBuilder_.getMessage(); } } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public Builder setSplitRegion(org.tikv.kvproto.Pdpb.SplitRegion value) { if (splitRegionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } splitRegion_ = value; onChanged(); } else { splitRegionBuilder_.setMessage(value); } return this; } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public Builder setSplitRegion( org.tikv.kvproto.Pdpb.SplitRegion.Builder builderForValue) { if (splitRegionBuilder_ == null) { splitRegion_ = builderForValue.build(); onChanged(); } else { splitRegionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public Builder mergeSplitRegion(org.tikv.kvproto.Pdpb.SplitRegion value) { if (splitRegionBuilder_ == null) { if (splitRegion_ != null) { splitRegion_ = org.tikv.kvproto.Pdpb.SplitRegion.newBuilder(splitRegion_).mergeFrom(value).buildPartial(); } else { splitRegion_ = value; } onChanged(); } else { splitRegionBuilder_.mergeFrom(value); } return this; } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public Builder clearSplitRegion() { if (splitRegionBuilder_ == null) { splitRegion_ = null; onChanged(); } else { splitRegion_ = null; splitRegionBuilder_ = null; } return this; } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public org.tikv.kvproto.Pdpb.SplitRegion.Builder getSplitRegionBuilder() { onChanged(); return getSplitRegionFieldBuilder().getBuilder(); } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ public org.tikv.kvproto.Pdpb.SplitRegionOrBuilder getSplitRegionOrBuilder() { if (splitRegionBuilder_ != null) { return splitRegionBuilder_.getMessageOrBuilder(); } else { return splitRegion_ == null ? org.tikv.kvproto.Pdpb.SplitRegion.getDefaultInstance() : splitRegion_; } } /** *
       * PD sends split_region to let TiKV split a region into two regions.
       * 
* * .pdpb.SplitRegion split_region = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitRegion, org.tikv.kvproto.Pdpb.SplitRegion.Builder, org.tikv.kvproto.Pdpb.SplitRegionOrBuilder> getSplitRegionFieldBuilder() { if (splitRegionBuilder_ == null) { splitRegionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitRegion, org.tikv.kvproto.Pdpb.SplitRegion.Builder, org.tikv.kvproto.Pdpb.SplitRegionOrBuilder>( getSplitRegion(), getParentForChildren(), isClean()); splitRegion_ = null; } return splitRegionBuilder_; } private org.tikv.kvproto.Pdpb.ChangePeerV2 changePeerV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeerV2, org.tikv.kvproto.Pdpb.ChangePeerV2.Builder, org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder> changePeerV2Builder_; /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public boolean hasChangePeerV2() { return changePeerV2Builder_ != null || changePeerV2_ != null; } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public org.tikv.kvproto.Pdpb.ChangePeerV2 getChangePeerV2() { if (changePeerV2Builder_ == null) { return changePeerV2_ == null ? org.tikv.kvproto.Pdpb.ChangePeerV2.getDefaultInstance() : changePeerV2_; } else { return changePeerV2Builder_.getMessage(); } } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public Builder setChangePeerV2(org.tikv.kvproto.Pdpb.ChangePeerV2 value) { if (changePeerV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } changePeerV2_ = value; onChanged(); } else { changePeerV2Builder_.setMessage(value); } return this; } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public Builder setChangePeerV2( org.tikv.kvproto.Pdpb.ChangePeerV2.Builder builderForValue) { if (changePeerV2Builder_ == null) { changePeerV2_ = builderForValue.build(); onChanged(); } else { changePeerV2Builder_.setMessage(builderForValue.build()); } return this; } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public Builder mergeChangePeerV2(org.tikv.kvproto.Pdpb.ChangePeerV2 value) { if (changePeerV2Builder_ == null) { if (changePeerV2_ != null) { changePeerV2_ = org.tikv.kvproto.Pdpb.ChangePeerV2.newBuilder(changePeerV2_).mergeFrom(value).buildPartial(); } else { changePeerV2_ = value; } onChanged(); } else { changePeerV2Builder_.mergeFrom(value); } return this; } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public Builder clearChangePeerV2() { if (changePeerV2Builder_ == null) { changePeerV2_ = null; onChanged(); } else { changePeerV2_ = null; changePeerV2Builder_ = null; } return this; } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public org.tikv.kvproto.Pdpb.ChangePeerV2.Builder getChangePeerV2Builder() { onChanged(); return getChangePeerV2FieldBuilder().getBuilder(); } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ public org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder getChangePeerV2OrBuilder() { if (changePeerV2Builder_ != null) { return changePeerV2Builder_.getMessageOrBuilder(); } else { return changePeerV2_ == null ? org.tikv.kvproto.Pdpb.ChangePeerV2.getDefaultInstance() : changePeerV2_; } } /** *
       * Multiple change peer operations atomically.
       * Note: PD can use both ChangePeer and ChangePeerV2 at the same time
       *       (not in the same RegionHeartbeatResponse).
       *       Now, PD use ChangePeerV2 only for replacing peers.
       * 
* * .pdpb.ChangePeerV2 change_peer_v2 = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeerV2, org.tikv.kvproto.Pdpb.ChangePeerV2.Builder, org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder> getChangePeerV2FieldBuilder() { if (changePeerV2Builder_ == null) { changePeerV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ChangePeerV2, org.tikv.kvproto.Pdpb.ChangePeerV2.Builder, org.tikv.kvproto.Pdpb.ChangePeerV2OrBuilder>( getChangePeerV2(), getParentForChildren(), isClean()); changePeerV2_ = null; } return changePeerV2Builder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.RegionHeartbeatResponse) } // @@protoc_insertion_point(class_scope:pdpb.RegionHeartbeatResponse) private static final org.tikv.kvproto.Pdpb.RegionHeartbeatResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.RegionHeartbeatResponse(); } public static org.tikv.kvproto.Pdpb.RegionHeartbeatResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionHeartbeatResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionHeartbeatResponse(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.Pdpb.RegionHeartbeatResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AskSplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AskSplitRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Region region = 2; */ boolean hasRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); } /** * Protobuf type {@code pdpb.AskSplitRequest} */ public static final class AskSplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AskSplitRequest) AskSplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AskSplitRequest.newBuilder() to construct. private AskSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AskSplitRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AskSplitRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } } } } 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.Pdpb.internal_static_pdpb_AskSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskSplitRequest.class, org.tikv.kvproto.Pdpb.AskSplitRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (region_ != null) { output.writeMessage(2, getRegion()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.AskSplitRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AskSplitRequest other = (org.tikv.kvproto.Pdpb.AskSplitRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AskSplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitRequest 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.Pdpb.AskSplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitRequest 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.Pdpb.AskSplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AskSplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitRequest 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.Pdpb.AskSplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitRequest 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.Pdpb.AskSplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitRequest 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.Pdpb.AskSplitRequest 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 pdpb.AskSplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AskSplitRequest) org.tikv.kvproto.Pdpb.AskSplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskSplitRequest.class, org.tikv.kvproto.Pdpb.AskSplitRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AskSplitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitRequest_descriptor; } public org.tikv.kvproto.Pdpb.AskSplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AskSplitRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AskSplitRequest build() { org.tikv.kvproto.Pdpb.AskSplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AskSplitRequest buildPartial() { org.tikv.kvproto.Pdpb.AskSplitRequest result = new org.tikv.kvproto.Pdpb.AskSplitRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.AskSplitRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.AskSplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AskSplitRequest other) { if (other == org.tikv.kvproto.Pdpb.AskSplitRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.AskSplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AskSplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 2; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 2; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 2; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 2; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } 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:pdpb.AskSplitRequest) } // @@protoc_insertion_point(class_scope:pdpb.AskSplitRequest) private static final org.tikv.kvproto.Pdpb.AskSplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AskSplitRequest(); } public static org.tikv.kvproto.Pdpb.AskSplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AskSplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AskSplitRequest(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.Pdpb.AskSplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AskSplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AskSplitResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * We split the region into two, first uses the origin
     * parent region id, and the second uses the new_region_id.
     * We must guarantee that the new_region_id is global unique.
     * 
* * uint64 new_region_id = 2; */ long getNewRegionId(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ java.util.List getNewPeerIdsList(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ int getNewPeerIdsCount(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ long getNewPeerIds(int index); } /** * Protobuf type {@code pdpb.AskSplitResponse} */ public static final class AskSplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AskSplitResponse) AskSplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AskSplitResponse.newBuilder() to construct. private AskSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AskSplitResponse() { newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AskSplitResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { newRegionId_ = input.readUInt64(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } newPeerIds_.add(input.readUInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { newPeerIds_.add(input.readUInt64()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskSplitResponse.class, org.tikv.kvproto.Pdpb.AskSplitResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int NEW_REGION_ID_FIELD_NUMBER = 2; private long newRegionId_; /** *
     * We split the region into two, first uses the origin
     * parent region id, and the second uses the new_region_id.
     * We must guarantee that the new_region_id is global unique.
     * 
* * uint64 new_region_id = 2; */ public long getNewRegionId() { return newRegionId_; } public static final int NEW_PEER_IDS_FIELD_NUMBER = 3; private java.util.List newPeerIds_; /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public java.util.List getNewPeerIdsList() { return newPeerIds_; } /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } private int newPeerIdsMemoizedSerializedSize = -1; 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (newRegionId_ != 0L) { output.writeUInt64(2, newRegionId_); } if (getNewPeerIdsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(newPeerIdsMemoizedSerializedSize); } for (int i = 0; i < newPeerIds_.size(); i++) { output.writeUInt64NoTag(newPeerIds_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (newRegionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, newRegionId_); } { int dataSize = 0; for (int i = 0; i < newPeerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(newPeerIds_.get(i)); } size += dataSize; if (!getNewPeerIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } newPeerIdsMemoizedSerializedSize = dataSize; } 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.Pdpb.AskSplitResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AskSplitResponse other = (org.tikv.kvproto.Pdpb.AskSplitResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getNewRegionId() == other.getNewRegionId()); result = result && getNewPeerIdsList() .equals(other.getNewPeerIdsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + NEW_REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewRegionId()); if (getNewPeerIdsCount() > 0) { hash = (37 * hash) + NEW_PEER_IDS_FIELD_NUMBER; hash = (53 * hash) + getNewPeerIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AskSplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitResponse 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.Pdpb.AskSplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitResponse 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.Pdpb.AskSplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskSplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AskSplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitResponse 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.Pdpb.AskSplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitResponse 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.Pdpb.AskSplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskSplitResponse 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.Pdpb.AskSplitResponse 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 pdpb.AskSplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AskSplitResponse) org.tikv.kvproto.Pdpb.AskSplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskSplitResponse.class, org.tikv.kvproto.Pdpb.AskSplitResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AskSplitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskSplitResponse_descriptor; } public org.tikv.kvproto.Pdpb.AskSplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AskSplitResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AskSplitResponse build() { org.tikv.kvproto.Pdpb.AskSplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AskSplitResponse buildPartial() { org.tikv.kvproto.Pdpb.AskSplitResponse result = new org.tikv.kvproto.Pdpb.AskSplitResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.newRegionId_ = newRegionId_; if (((bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); bitField0_ = (bitField0_ & ~0x00000004); } result.newPeerIds_ = newPeerIds_; 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.Pdpb.AskSplitResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.AskSplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AskSplitResponse other) { if (other == org.tikv.kvproto.Pdpb.AskSplitResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getNewRegionId() != 0L) { setNewRegionId(other.getNewRegionId()); } if (!other.newPeerIds_.isEmpty()) { if (newPeerIds_.isEmpty()) { newPeerIds_ = other.newPeerIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureNewPeerIdsIsMutable(); newPeerIds_.addAll(other.newPeerIds_); } onChanged(); } 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.Pdpb.AskSplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AskSplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long newRegionId_ ; /** *
       * We split the region into two, first uses the origin
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public long getNewRegionId() { return newRegionId_; } /** *
       * We split the region into two, first uses the origin
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public Builder setNewRegionId(long value) { newRegionId_ = value; onChanged(); return this; } /** *
       * We split the region into two, first uses the origin
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public Builder clearNewRegionId() { newRegionId_ = 0L; onChanged(); return this; } private java.util.List newPeerIds_ = java.util.Collections.emptyList(); private void ensureNewPeerIdsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = new java.util.ArrayList(newPeerIds_); bitField0_ |= 0x00000004; } } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public java.util.List getNewPeerIdsList() { return java.util.Collections.unmodifiableList(newPeerIds_); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder setNewPeerIds( int index, long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.set(index, value); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder addNewPeerIds(long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.add(value); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder addAllNewPeerIds( java.lang.Iterable values) { ensureNewPeerIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, newPeerIds_); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder clearNewPeerIds() { newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } 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:pdpb.AskSplitResponse) } // @@protoc_insertion_point(class_scope:pdpb.AskSplitResponse) private static final org.tikv.kvproto.Pdpb.AskSplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AskSplitResponse(); } public static org.tikv.kvproto.Pdpb.AskSplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AskSplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AskSplitResponse(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.Pdpb.AskSplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportSplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ReportSplitRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Region left = 2; */ boolean hasLeft(); /** * .metapb.Region left = 2; */ org.tikv.kvproto.Metapb.Region getLeft(); /** * .metapb.Region left = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder(); /** * .metapb.Region right = 3; */ boolean hasRight(); /** * .metapb.Region right = 3; */ org.tikv.kvproto.Metapb.Region getRight(); /** * .metapb.Region right = 3; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder(); } /** * Protobuf type {@code pdpb.ReportSplitRequest} */ public static final class ReportSplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ReportSplitRequest) ReportSplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReportSplitRequest.newBuilder() to construct. private ReportSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportSplitRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportSplitRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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; } } } } 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.Pdpb.internal_static_pdpb_ReportSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportSplitRequest.class, org.tikv.kvproto.Pdpb.ReportSplitRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int LEFT_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region left_; /** * .metapb.Region left = 2; */ public boolean hasLeft() { return left_ != null; } /** * .metapb.Region left = 2; */ public org.tikv.kvproto.Metapb.Region getLeft() { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } /** * .metapb.Region left = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { return getLeft(); } public static final int RIGHT_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Region right_; /** * .metapb.Region right = 3; */ public boolean hasRight() { return right_ != null; } /** * .metapb.Region right = 3; */ public org.tikv.kvproto.Metapb.Region getRight() { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } /** * .metapb.Region right = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { return getRight(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (left_ != null) { output.writeMessage(2, getLeft()); } if (right_ != null) { output.writeMessage(3, getRight()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (left_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeft()); } if (right_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRight()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Pdpb.ReportSplitRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ReportSplitRequest other = (org.tikv.kvproto.Pdpb.ReportSplitRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasLeft() == other.hasLeft()); if (hasLeft()) { result = result && getLeft() .equals(other.getLeft()); } result = result && (hasRight() == other.hasRight()); if (hasRight()) { result = result && getRight() .equals(other.getRight()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ReportSplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest 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.Pdpb.ReportSplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest 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.Pdpb.ReportSplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest 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.Pdpb.ReportSplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest 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.Pdpb.ReportSplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest 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.Pdpb.ReportSplitRequest 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 pdpb.ReportSplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ReportSplitRequest) org.tikv.kvproto.Pdpb.ReportSplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportSplitRequest.class, org.tikv.kvproto.Pdpb.ReportSplitRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ReportSplitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (leftBuilder_ == null) { left_ = null; } else { left_ = null; leftBuilder_ = null; } if (rightBuilder_ == null) { right_ = null; } else { right_ = null; rightBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitRequest_descriptor; } public org.tikv.kvproto.Pdpb.ReportSplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ReportSplitRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ReportSplitRequest build() { org.tikv.kvproto.Pdpb.ReportSplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ReportSplitRequest buildPartial() { org.tikv.kvproto.Pdpb.ReportSplitRequest result = new org.tikv.kvproto.Pdpb.ReportSplitRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (leftBuilder_ == null) { result.left_ = left_; } else { result.left_ = leftBuilder_.build(); } if (rightBuilder_ == null) { result.right_ = right_; } else { result.right_ = rightBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.ReportSplitRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.ReportSplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ReportSplitRequest other) { if (other == org.tikv.kvproto.Pdpb.ReportSplitRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.ReportSplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ReportSplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Region left_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> leftBuilder_; /** * .metapb.Region left = 2; */ public boolean hasLeft() { return leftBuilder_ != null || left_ != null; } /** * .metapb.Region left = 2; */ public org.tikv.kvproto.Metapb.Region getLeft() { if (leftBuilder_ == null) { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** * .metapb.Region left = 2; */ public Builder setLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; onChanged(); } else { leftBuilder_.setMessage(value); } return this; } /** * .metapb.Region left = 2; */ public Builder setLeft( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); onChanged(); } else { leftBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region left = 2; */ public Builder mergeLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (left_ != null) { left_ = org.tikv.kvproto.Metapb.Region.newBuilder(left_).mergeFrom(value).buildPartial(); } else { left_ = value; } onChanged(); } else { leftBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region left = 2; */ public Builder clearLeft() { if (leftBuilder_ == null) { left_ = null; onChanged(); } else { left_ = null; leftBuilder_ = null; } return this; } /** * .metapb.Region left = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getLeftBuilder() { onChanged(); return getLeftFieldBuilder().getBuilder(); } /** * .metapb.Region left = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } } /** * .metapb.Region left = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private org.tikv.kvproto.Metapb.Region right_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> rightBuilder_; /** * .metapb.Region right = 3; */ public boolean hasRight() { return rightBuilder_ != null || right_ != null; } /** * .metapb.Region right = 3; */ public org.tikv.kvproto.Metapb.Region getRight() { if (rightBuilder_ == null) { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** * .metapb.Region right = 3; */ public Builder setRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; onChanged(); } else { rightBuilder_.setMessage(value); } return this; } /** * .metapb.Region right = 3; */ public Builder setRight( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); onChanged(); } else { rightBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region right = 3; */ public Builder mergeRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (right_ != null) { right_ = org.tikv.kvproto.Metapb.Region.newBuilder(right_).mergeFrom(value).buildPartial(); } else { right_ = value; } onChanged(); } else { rightBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region right = 3; */ public Builder clearRight() { if (rightBuilder_ == null) { right_ = null; onChanged(); } else { right_ = null; rightBuilder_ = null; } return this; } /** * .metapb.Region right = 3; */ public org.tikv.kvproto.Metapb.Region.Builder getRightBuilder() { onChanged(); return getRightFieldBuilder().getBuilder(); } /** * .metapb.Region right = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } } /** * .metapb.Region right = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:pdpb.ReportSplitRequest) } // @@protoc_insertion_point(class_scope:pdpb.ReportSplitRequest) private static final org.tikv.kvproto.Pdpb.ReportSplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ReportSplitRequest(); } public static org.tikv.kvproto.Pdpb.ReportSplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportSplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportSplitRequest(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.Pdpb.ReportSplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportSplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ReportSplitResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.ReportSplitResponse} */ public static final class ReportSplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ReportSplitResponse) ReportSplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReportSplitResponse.newBuilder() to construct. private ReportSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportSplitResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportSplitResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_ReportSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportSplitResponse.class, org.tikv.kvproto.Pdpb.ReportSplitResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.ReportSplitResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ReportSplitResponse other = (org.tikv.kvproto.Pdpb.ReportSplitResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ReportSplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse 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.Pdpb.ReportSplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse 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.Pdpb.ReportSplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse 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.Pdpb.ReportSplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse 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.Pdpb.ReportSplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse 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.Pdpb.ReportSplitResponse 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 pdpb.ReportSplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ReportSplitResponse) org.tikv.kvproto.Pdpb.ReportSplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportSplitResponse.class, org.tikv.kvproto.Pdpb.ReportSplitResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ReportSplitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportSplitResponse_descriptor; } public org.tikv.kvproto.Pdpb.ReportSplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ReportSplitResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ReportSplitResponse build() { org.tikv.kvproto.Pdpb.ReportSplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ReportSplitResponse buildPartial() { org.tikv.kvproto.Pdpb.ReportSplitResponse result = new org.tikv.kvproto.Pdpb.ReportSplitResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.ReportSplitResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.ReportSplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ReportSplitResponse other) { if (other == org.tikv.kvproto.Pdpb.ReportSplitResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.ReportSplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ReportSplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.ReportSplitResponse) } // @@protoc_insertion_point(class_scope:pdpb.ReportSplitResponse) private static final org.tikv.kvproto.Pdpb.ReportSplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ReportSplitResponse(); } public static org.tikv.kvproto.Pdpb.ReportSplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportSplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportSplitResponse(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.Pdpb.ReportSplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AskBatchSplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AskBatchSplitRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .metapb.Region region = 2; */ boolean hasRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * uint32 split_count = 3; */ int getSplitCount(); } /** * Protobuf type {@code pdpb.AskBatchSplitRequest} */ public static final class AskBatchSplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AskBatchSplitRequest) AskBatchSplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AskBatchSplitRequest.newBuilder() to construct. private AskBatchSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AskBatchSplitRequest() { splitCount_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AskBatchSplitRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 24: { splitCount_ = 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.Pdpb.internal_static_pdpb_AskBatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskBatchSplitRequest.class, org.tikv.kvproto.Pdpb.AskBatchSplitRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int SPLIT_COUNT_FIELD_NUMBER = 3; private int splitCount_; /** * uint32 split_count = 3; */ public int getSplitCount() { return splitCount_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (region_ != null) { output.writeMessage(2, getRegion()); } if (splitCount_ != 0) { output.writeUInt32(3, splitCount_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegion()); } if (splitCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, splitCount_); } 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.Pdpb.AskBatchSplitRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AskBatchSplitRequest other = (org.tikv.kvproto.Pdpb.AskBatchSplitRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (getSplitCount() == other.getSplitCount()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } hash = (37 * hash) + SPLIT_COUNT_FIELD_NUMBER; hash = (53 * hash) + getSplitCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest 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.Pdpb.AskBatchSplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest 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.Pdpb.AskBatchSplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest 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.Pdpb.AskBatchSplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest 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.Pdpb.AskBatchSplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest 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.Pdpb.AskBatchSplitRequest 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 pdpb.AskBatchSplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AskBatchSplitRequest) org.tikv.kvproto.Pdpb.AskBatchSplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskBatchSplitRequest.class, org.tikv.kvproto.Pdpb.AskBatchSplitRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AskBatchSplitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } splitCount_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitRequest_descriptor; } public org.tikv.kvproto.Pdpb.AskBatchSplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AskBatchSplitRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AskBatchSplitRequest build() { org.tikv.kvproto.Pdpb.AskBatchSplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AskBatchSplitRequest buildPartial() { org.tikv.kvproto.Pdpb.AskBatchSplitRequest result = new org.tikv.kvproto.Pdpb.AskBatchSplitRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } result.splitCount_ = splitCount_; 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.Pdpb.AskBatchSplitRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.AskBatchSplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AskBatchSplitRequest other) { if (other == org.tikv.kvproto.Pdpb.AskBatchSplitRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.getSplitCount() != 0) { setSplitCount(other.getSplitCount()); } 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.Pdpb.AskBatchSplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AskBatchSplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 2; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 2; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 2; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 2; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private int splitCount_ ; /** * uint32 split_count = 3; */ public int getSplitCount() { return splitCount_; } /** * uint32 split_count = 3; */ public Builder setSplitCount(int value) { splitCount_ = value; onChanged(); return this; } /** * uint32 split_count = 3; */ public Builder clearSplitCount() { splitCount_ = 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:pdpb.AskBatchSplitRequest) } // @@protoc_insertion_point(class_scope:pdpb.AskBatchSplitRequest) private static final org.tikv.kvproto.Pdpb.AskBatchSplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AskBatchSplitRequest(); } public static org.tikv.kvproto.Pdpb.AskBatchSplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AskBatchSplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AskBatchSplitRequest(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.Pdpb.AskBatchSplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitIDOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SplitID) com.google.protobuf.MessageOrBuilder { /** * uint64 new_region_id = 1; */ long getNewRegionId(); /** * repeated uint64 new_peer_ids = 2; */ java.util.List getNewPeerIdsList(); /** * repeated uint64 new_peer_ids = 2; */ int getNewPeerIdsCount(); /** * repeated uint64 new_peer_ids = 2; */ long getNewPeerIds(int index); } /** * Protobuf type {@code pdpb.SplitID} */ public static final class SplitID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SplitID) SplitIDOrBuilder { private static final long serialVersionUID = 0L; // Use SplitID.newBuilder() to construct. private SplitID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitID() { newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitID( 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: { newRegionId_ = input.readUInt64(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } newPeerIds_.add(input.readUInt64()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { newPeerIds_.add(input.readUInt64()); } 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)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitID.class, org.tikv.kvproto.Pdpb.SplitID.Builder.class); } private int bitField0_; public static final int NEW_REGION_ID_FIELD_NUMBER = 1; private long newRegionId_; /** * uint64 new_region_id = 1; */ public long getNewRegionId() { return newRegionId_; } public static final int NEW_PEER_IDS_FIELD_NUMBER = 2; private java.util.List newPeerIds_; /** * repeated uint64 new_peer_ids = 2; */ public java.util.List getNewPeerIdsList() { return newPeerIds_; } /** * repeated uint64 new_peer_ids = 2; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** * repeated uint64 new_peer_ids = 2; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } private int newPeerIdsMemoizedSerializedSize = -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 (newRegionId_ != 0L) { output.writeUInt64(1, newRegionId_); } if (getNewPeerIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(newPeerIdsMemoizedSerializedSize); } for (int i = 0; i < newPeerIds_.size(); i++) { output.writeUInt64NoTag(newPeerIds_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (newRegionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, newRegionId_); } { int dataSize = 0; for (int i = 0; i < newPeerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(newPeerIds_.get(i)); } size += dataSize; if (!getNewPeerIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } newPeerIdsMemoizedSerializedSize = dataSize; } 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.Pdpb.SplitID)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SplitID other = (org.tikv.kvproto.Pdpb.SplitID) obj; boolean result = true; result = result && (getNewRegionId() == other.getNewRegionId()); result = result && getNewPeerIdsList() .equals(other.getNewPeerIdsList()); 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) + NEW_REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewRegionId()); if (getNewPeerIdsCount() > 0) { hash = (37 * hash) + NEW_PEER_IDS_FIELD_NUMBER; hash = (53 * hash) + getNewPeerIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SplitID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitID 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.Pdpb.SplitID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitID 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.Pdpb.SplitID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SplitID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitID 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.Pdpb.SplitID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitID 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.Pdpb.SplitID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitID 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.Pdpb.SplitID 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 pdpb.SplitID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SplitID) org.tikv.kvproto.Pdpb.SplitIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitID_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitID_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitID.class, org.tikv.kvproto.Pdpb.SplitID.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SplitID.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(); newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitID_descriptor; } public org.tikv.kvproto.Pdpb.SplitID getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SplitID.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SplitID build() { org.tikv.kvproto.Pdpb.SplitID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SplitID buildPartial() { org.tikv.kvproto.Pdpb.SplitID result = new org.tikv.kvproto.Pdpb.SplitID(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.newRegionId_ = newRegionId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); bitField0_ = (bitField0_ & ~0x00000002); } result.newPeerIds_ = newPeerIds_; 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.Pdpb.SplitID) { return mergeFrom((org.tikv.kvproto.Pdpb.SplitID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SplitID other) { if (other == org.tikv.kvproto.Pdpb.SplitID.getDefaultInstance()) return this; if (other.getNewRegionId() != 0L) { setNewRegionId(other.getNewRegionId()); } if (!other.newPeerIds_.isEmpty()) { if (newPeerIds_.isEmpty()) { newPeerIds_ = other.newPeerIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNewPeerIdsIsMutable(); newPeerIds_.addAll(other.newPeerIds_); } 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.Pdpb.SplitID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SplitID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long newRegionId_ ; /** * uint64 new_region_id = 1; */ public long getNewRegionId() { return newRegionId_; } /** * uint64 new_region_id = 1; */ public Builder setNewRegionId(long value) { newRegionId_ = value; onChanged(); return this; } /** * uint64 new_region_id = 1; */ public Builder clearNewRegionId() { newRegionId_ = 0L; onChanged(); return this; } private java.util.List newPeerIds_ = java.util.Collections.emptyList(); private void ensureNewPeerIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { newPeerIds_ = new java.util.ArrayList(newPeerIds_); bitField0_ |= 0x00000002; } } /** * repeated uint64 new_peer_ids = 2; */ public java.util.List getNewPeerIdsList() { return java.util.Collections.unmodifiableList(newPeerIds_); } /** * repeated uint64 new_peer_ids = 2; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** * repeated uint64 new_peer_ids = 2; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } /** * repeated uint64 new_peer_ids = 2; */ public Builder setNewPeerIds( int index, long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.set(index, value); onChanged(); return this; } /** * repeated uint64 new_peer_ids = 2; */ public Builder addNewPeerIds(long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.add(value); onChanged(); return this; } /** * repeated uint64 new_peer_ids = 2; */ public Builder addAllNewPeerIds( java.lang.Iterable values) { ensureNewPeerIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, newPeerIds_); onChanged(); return this; } /** * repeated uint64 new_peer_ids = 2; */ public Builder clearNewPeerIds() { newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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:pdpb.SplitID) } // @@protoc_insertion_point(class_scope:pdpb.SplitID) private static final org.tikv.kvproto.Pdpb.SplitID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SplitID(); } public static org.tikv.kvproto.Pdpb.SplitID getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitID(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.Pdpb.SplitID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AskBatchSplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.AskBatchSplitResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .pdpb.SplitID ids = 2; */ java.util.List getIdsList(); /** * repeated .pdpb.SplitID ids = 2; */ org.tikv.kvproto.Pdpb.SplitID getIds(int index); /** * repeated .pdpb.SplitID ids = 2; */ int getIdsCount(); /** * repeated .pdpb.SplitID ids = 2; */ java.util.List getIdsOrBuilderList(); /** * repeated .pdpb.SplitID ids = 2; */ org.tikv.kvproto.Pdpb.SplitIDOrBuilder getIdsOrBuilder( int index); } /** * Protobuf type {@code pdpb.AskBatchSplitResponse} */ public static final class AskBatchSplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.AskBatchSplitResponse) AskBatchSplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AskBatchSplitResponse.newBuilder() to construct. private AskBatchSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AskBatchSplitResponse() { ids_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AskBatchSplitResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ids_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ids_.add( input.readMessage(org.tikv.kvproto.Pdpb.SplitID.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)) { ids_ = java.util.Collections.unmodifiableList(ids_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskBatchSplitResponse.class, org.tikv.kvproto.Pdpb.AskBatchSplitResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int IDS_FIELD_NUMBER = 2; private java.util.List ids_; /** * repeated .pdpb.SplitID ids = 2; */ public java.util.List getIdsList() { return ids_; } /** * repeated .pdpb.SplitID ids = 2; */ public java.util.List getIdsOrBuilderList() { return ids_; } /** * repeated .pdpb.SplitID ids = 2; */ public int getIdsCount() { return ids_.size(); } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitID getIds(int index) { return ids_.get(index); } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitIDOrBuilder getIdsOrBuilder( int index) { return ids_.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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < ids_.size(); i++) { output.writeMessage(2, ids_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < ids_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, ids_.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.Pdpb.AskBatchSplitResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.AskBatchSplitResponse other = (org.tikv.kvproto.Pdpb.AskBatchSplitResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getIdsList() .equals(other.getIdsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getIdsCount() > 0) { hash = (37 * hash) + IDS_FIELD_NUMBER; hash = (53 * hash) + getIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse 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.Pdpb.AskBatchSplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse 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.Pdpb.AskBatchSplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse 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.Pdpb.AskBatchSplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse 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.Pdpb.AskBatchSplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse 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.Pdpb.AskBatchSplitResponse 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 pdpb.AskBatchSplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.AskBatchSplitResponse) org.tikv.kvproto.Pdpb.AskBatchSplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.AskBatchSplitResponse.class, org.tikv.kvproto.Pdpb.AskBatchSplitResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.AskBatchSplitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIdsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { idsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_AskBatchSplitResponse_descriptor; } public org.tikv.kvproto.Pdpb.AskBatchSplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.AskBatchSplitResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.AskBatchSplitResponse build() { org.tikv.kvproto.Pdpb.AskBatchSplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.AskBatchSplitResponse buildPartial() { org.tikv.kvproto.Pdpb.AskBatchSplitResponse result = new org.tikv.kvproto.Pdpb.AskBatchSplitResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (idsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ids_ = java.util.Collections.unmodifiableList(ids_); bitField0_ = (bitField0_ & ~0x00000002); } result.ids_ = ids_; } else { result.ids_ = idsBuilder_.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.Pdpb.AskBatchSplitResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.AskBatchSplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.AskBatchSplitResponse other) { if (other == org.tikv.kvproto.Pdpb.AskBatchSplitResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (idsBuilder_ == null) { if (!other.ids_.isEmpty()) { if (ids_.isEmpty()) { ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIdsIsMutable(); ids_.addAll(other.ids_); } onChanged(); } } else { if (!other.ids_.isEmpty()) { if (idsBuilder_.isEmpty()) { idsBuilder_.dispose(); idsBuilder_ = null; ids_ = other.ids_; bitField0_ = (bitField0_ & ~0x00000002); idsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIdsFieldBuilder() : null; } else { idsBuilder_.addAllMessages(other.ids_); } } } 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.Pdpb.AskBatchSplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.AskBatchSplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List ids_ = java.util.Collections.emptyList(); private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ids_ = new java.util.ArrayList(ids_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitID, org.tikv.kvproto.Pdpb.SplitID.Builder, org.tikv.kvproto.Pdpb.SplitIDOrBuilder> idsBuilder_; /** * repeated .pdpb.SplitID ids = 2; */ public java.util.List getIdsList() { if (idsBuilder_ == null) { return java.util.Collections.unmodifiableList(ids_); } else { return idsBuilder_.getMessageList(); } } /** * repeated .pdpb.SplitID ids = 2; */ public int getIdsCount() { if (idsBuilder_ == null) { return ids_.size(); } else { return idsBuilder_.getCount(); } } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitID getIds(int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessage(index); } } /** * repeated .pdpb.SplitID ids = 2; */ public Builder setIds( int index, org.tikv.kvproto.Pdpb.SplitID value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.set(index, value); onChanged(); } else { idsBuilder_.setMessage(index, value); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder setIds( int index, org.tikv.kvproto.Pdpb.SplitID.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.set(index, builderForValue.build()); onChanged(); } else { idsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder addIds(org.tikv.kvproto.Pdpb.SplitID value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(value); onChanged(); } else { idsBuilder_.addMessage(value); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder addIds( int index, org.tikv.kvproto.Pdpb.SplitID value) { if (idsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIdsIsMutable(); ids_.add(index, value); onChanged(); } else { idsBuilder_.addMessage(index, value); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder addIds( org.tikv.kvproto.Pdpb.SplitID.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.add(builderForValue.build()); onChanged(); } else { idsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder addIds( int index, org.tikv.kvproto.Pdpb.SplitID.Builder builderForValue) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.add(index, builderForValue.build()); onChanged(); } else { idsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder addAllIds( java.lang.Iterable values) { if (idsBuilder_ == null) { ensureIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ids_); onChanged(); } else { idsBuilder_.addAllMessages(values); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder clearIds() { if (idsBuilder_ == null) { ids_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { idsBuilder_.clear(); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public Builder removeIds(int index) { if (idsBuilder_ == null) { ensureIdsIsMutable(); ids_.remove(index); onChanged(); } else { idsBuilder_.remove(index); } return this; } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitID.Builder getIdsBuilder( int index) { return getIdsFieldBuilder().getBuilder(index); } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitIDOrBuilder getIdsOrBuilder( int index) { if (idsBuilder_ == null) { return ids_.get(index); } else { return idsBuilder_.getMessageOrBuilder(index); } } /** * repeated .pdpb.SplitID ids = 2; */ public java.util.List getIdsOrBuilderList() { if (idsBuilder_ != null) { return idsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ids_); } } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitID.Builder addIdsBuilder() { return getIdsFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.SplitID.getDefaultInstance()); } /** * repeated .pdpb.SplitID ids = 2; */ public org.tikv.kvproto.Pdpb.SplitID.Builder addIdsBuilder( int index) { return getIdsFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.SplitID.getDefaultInstance()); } /** * repeated .pdpb.SplitID ids = 2; */ public java.util.List getIdsBuilderList() { return getIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitID, org.tikv.kvproto.Pdpb.SplitID.Builder, org.tikv.kvproto.Pdpb.SplitIDOrBuilder> getIdsFieldBuilder() { if (idsBuilder_ == null) { idsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.SplitID, org.tikv.kvproto.Pdpb.SplitID.Builder, org.tikv.kvproto.Pdpb.SplitIDOrBuilder>( ids_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ids_ = null; } return idsBuilder_; } 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:pdpb.AskBatchSplitResponse) } // @@protoc_insertion_point(class_scope:pdpb.AskBatchSplitResponse) private static final org.tikv.kvproto.Pdpb.AskBatchSplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.AskBatchSplitResponse(); } public static org.tikv.kvproto.Pdpb.AskBatchSplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AskBatchSplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AskBatchSplitResponse(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.Pdpb.AskBatchSplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportBatchSplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ReportBatchSplitRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .metapb.Region regions = 2; */ java.util.List getRegionsList(); /** * repeated .metapb.Region regions = 2; */ org.tikv.kvproto.Metapb.Region getRegions(int index); /** * repeated .metapb.Region regions = 2; */ int getRegionsCount(); /** * repeated .metapb.Region regions = 2; */ java.util.List getRegionsOrBuilderList(); /** * repeated .metapb.Region regions = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index); } /** * Protobuf type {@code pdpb.ReportBatchSplitRequest} */ public static final class ReportBatchSplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ReportBatchSplitRequest) ReportBatchSplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReportBatchSplitRequest.newBuilder() to construct. private ReportBatchSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportBatchSplitRequest() { regions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportBatchSplitRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } 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_ & 0x00000002) == 0x00000002)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.class, org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGIONS_FIELD_NUMBER = 2; private java.util.List regions_; /** * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsList() { return regions_; } /** * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** * repeated .metapb.Region regions = 2; */ public int getRegionsCount() { return regions_.size(); } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { return regions_.get(index); } /** * repeated .metapb.Region regions = 2; */ 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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < regions_.size(); i++) { output.writeMessage(2, regions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, 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.Pdpb.ReportBatchSplitRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ReportBatchSplitRequest other = (org.tikv.kvproto.Pdpb.ReportBatchSplitRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().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.Pdpb.ReportBatchSplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest 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.Pdpb.ReportBatchSplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest 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.Pdpb.ReportBatchSplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest 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.Pdpb.ReportBatchSplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest 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.Pdpb.ReportBatchSplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest 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.Pdpb.ReportBatchSplitRequest 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 pdpb.ReportBatchSplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ReportBatchSplitRequest) org.tikv.kvproto.Pdpb.ReportBatchSplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.class, org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.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 (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { regionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitRequest_descriptor; } public org.tikv.kvproto.Pdpb.ReportBatchSplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ReportBatchSplitRequest build() { org.tikv.kvproto.Pdpb.ReportBatchSplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ReportBatchSplitRequest buildPartial() { org.tikv.kvproto.Pdpb.ReportBatchSplitRequest result = new org.tikv.kvproto.Pdpb.ReportBatchSplitRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000002); } 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.Pdpb.ReportBatchSplitRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.ReportBatchSplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ReportBatchSplitRequest other) { if (other == org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000002); 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.Pdpb.ReportBatchSplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ReportBatchSplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionsBuilder_; /** * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** * repeated .metapb.Region regions = 2; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** * repeated .metapb.Region regions = 2; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder addRegions(org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder addRegions( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** * repeated .metapb.Region regions = 2; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** * repeated .metapb.Region regions = 2; */ 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_ & 0x00000002) == 0x00000002), 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:pdpb.ReportBatchSplitRequest) } // @@protoc_insertion_point(class_scope:pdpb.ReportBatchSplitRequest) private static final org.tikv.kvproto.Pdpb.ReportBatchSplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ReportBatchSplitRequest(); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportBatchSplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportBatchSplitRequest(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.Pdpb.ReportBatchSplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportBatchSplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ReportBatchSplitResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.ReportBatchSplitResponse} */ public static final class ReportBatchSplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ReportBatchSplitResponse) ReportBatchSplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReportBatchSplitResponse.newBuilder() to construct. private ReportBatchSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReportBatchSplitResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportBatchSplitResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_ReportBatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.class, org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.ReportBatchSplitResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ReportBatchSplitResponse other = (org.tikv.kvproto.Pdpb.ReportBatchSplitResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse 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.Pdpb.ReportBatchSplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse 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.Pdpb.ReportBatchSplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse 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.Pdpb.ReportBatchSplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse 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.Pdpb.ReportBatchSplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse 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.Pdpb.ReportBatchSplitResponse 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 pdpb.ReportBatchSplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ReportBatchSplitResponse) org.tikv.kvproto.Pdpb.ReportBatchSplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.class, org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ReportBatchSplitResponse_descriptor; } public org.tikv.kvproto.Pdpb.ReportBatchSplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ReportBatchSplitResponse build() { org.tikv.kvproto.Pdpb.ReportBatchSplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ReportBatchSplitResponse buildPartial() { org.tikv.kvproto.Pdpb.ReportBatchSplitResponse result = new org.tikv.kvproto.Pdpb.ReportBatchSplitResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.ReportBatchSplitResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.ReportBatchSplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ReportBatchSplitResponse other) { if (other == org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.ReportBatchSplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ReportBatchSplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.ReportBatchSplitResponse) } // @@protoc_insertion_point(class_scope:pdpb.ReportBatchSplitResponse) private static final org.tikv.kvproto.Pdpb.ReportBatchSplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ReportBatchSplitResponse(); } public static org.tikv.kvproto.Pdpb.ReportBatchSplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportBatchSplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportBatchSplitResponse(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.Pdpb.ReportBatchSplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeIntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.TimeInterval) com.google.protobuf.MessageOrBuilder { /** *
     * The unix timestamp in seconds of the start of this period.
     * 
* * uint64 start_timestamp = 1; */ long getStartTimestamp(); /** *
     * The unix timestamp in seconds of the end of this period.
     * 
* * uint64 end_timestamp = 2; */ long getEndTimestamp(); } /** * Protobuf type {@code pdpb.TimeInterval} */ public static final class TimeInterval extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.TimeInterval) TimeIntervalOrBuilder { private static final long serialVersionUID = 0L; // Use TimeInterval.newBuilder() to construct. private TimeInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeInterval() { startTimestamp_ = 0L; endTimestamp_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeInterval( 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: { startTimestamp_ = input.readUInt64(); break; } case 16: { endTimestamp_ = 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.Pdpb.internal_static_pdpb_TimeInterval_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TimeInterval_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TimeInterval.class, org.tikv.kvproto.Pdpb.TimeInterval.Builder.class); } public static final int START_TIMESTAMP_FIELD_NUMBER = 1; private long startTimestamp_; /** *
     * The unix timestamp in seconds of the start of this period.
     * 
* * uint64 start_timestamp = 1; */ public long getStartTimestamp() { return startTimestamp_; } public static final int END_TIMESTAMP_FIELD_NUMBER = 2; private long endTimestamp_; /** *
     * The unix timestamp in seconds of the end of this period.
     * 
* * uint64 end_timestamp = 2; */ public long getEndTimestamp() { return endTimestamp_; } 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 (startTimestamp_ != 0L) { output.writeUInt64(1, startTimestamp_); } if (endTimestamp_ != 0L) { output.writeUInt64(2, endTimestamp_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTimestamp_); } if (endTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, endTimestamp_); } 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.Pdpb.TimeInterval)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.TimeInterval other = (org.tikv.kvproto.Pdpb.TimeInterval) obj; boolean result = true; result = result && (getStartTimestamp() == other.getStartTimestamp()); result = result && (getEndTimestamp() == other.getEndTimestamp()); 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_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTimestamp()); hash = (37 * hash) + END_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndTimestamp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.TimeInterval parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TimeInterval 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.Pdpb.TimeInterval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TimeInterval 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.Pdpb.TimeInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.TimeInterval parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.TimeInterval parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TimeInterval 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.Pdpb.TimeInterval parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TimeInterval 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.Pdpb.TimeInterval parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.TimeInterval 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.Pdpb.TimeInterval 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 pdpb.TimeInterval} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.TimeInterval) org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TimeInterval_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TimeInterval_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.TimeInterval.class, org.tikv.kvproto.Pdpb.TimeInterval.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.TimeInterval.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(); startTimestamp_ = 0L; endTimestamp_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_TimeInterval_descriptor; } public org.tikv.kvproto.Pdpb.TimeInterval getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.TimeInterval build() { org.tikv.kvproto.Pdpb.TimeInterval result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.TimeInterval buildPartial() { org.tikv.kvproto.Pdpb.TimeInterval result = new org.tikv.kvproto.Pdpb.TimeInterval(this); result.startTimestamp_ = startTimestamp_; result.endTimestamp_ = endTimestamp_; 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.Pdpb.TimeInterval) { return mergeFrom((org.tikv.kvproto.Pdpb.TimeInterval)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.TimeInterval other) { if (other == org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance()) return this; if (other.getStartTimestamp() != 0L) { setStartTimestamp(other.getStartTimestamp()); } if (other.getEndTimestamp() != 0L) { setEndTimestamp(other.getEndTimestamp()); } 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.Pdpb.TimeInterval parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.TimeInterval) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTimestamp_ ; /** *
       * The unix timestamp in seconds of the start of this period.
       * 
* * uint64 start_timestamp = 1; */ public long getStartTimestamp() { return startTimestamp_; } /** *
       * The unix timestamp in seconds of the start of this period.
       * 
* * uint64 start_timestamp = 1; */ public Builder setStartTimestamp(long value) { startTimestamp_ = value; onChanged(); return this; } /** *
       * The unix timestamp in seconds of the start of this period.
       * 
* * uint64 start_timestamp = 1; */ public Builder clearStartTimestamp() { startTimestamp_ = 0L; onChanged(); return this; } private long endTimestamp_ ; /** *
       * The unix timestamp in seconds of the end of this period.
       * 
* * uint64 end_timestamp = 2; */ public long getEndTimestamp() { return endTimestamp_; } /** *
       * The unix timestamp in seconds of the end of this period.
       * 
* * uint64 end_timestamp = 2; */ public Builder setEndTimestamp(long value) { endTimestamp_ = value; onChanged(); return this; } /** *
       * The unix timestamp in seconds of the end of this period.
       * 
* * uint64 end_timestamp = 2; */ public Builder clearEndTimestamp() { endTimestamp_ = 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:pdpb.TimeInterval) } // @@protoc_insertion_point(class_scope:pdpb.TimeInterval) private static final org.tikv.kvproto.Pdpb.TimeInterval DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.TimeInterval(); } public static org.tikv.kvproto.Pdpb.TimeInterval getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TimeInterval parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeInterval(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.Pdpb.TimeInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordPairOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.RecordPair) com.google.protobuf.MessageOrBuilder { /** * string key = 1; */ java.lang.String getKey(); /** * string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * uint64 value = 2; */ long getValue(); } /** * Protobuf type {@code pdpb.RecordPair} */ public static final class RecordPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.RecordPair) RecordPairOrBuilder { private static final long serialVersionUID = 0L; // Use RecordPair.newBuilder() to construct. private RecordPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordPair() { key_ = ""; value_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordPair( 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(); key_ = s; break; } case 16: { value_ = 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.Pdpb.internal_static_pdpb_RecordPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RecordPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RecordPair.class, org.tikv.kvproto.Pdpb.RecordPair.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private long value_; /** * uint64 value = 2; */ public long 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 (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (value_ != 0L) { output.writeUInt64(2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(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.Pdpb.RecordPair)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.RecordPair other = (org.tikv.kvproto.Pdpb.RecordPair) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && (getValue() == other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.RecordPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RecordPair 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.Pdpb.RecordPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RecordPair 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.Pdpb.RecordPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RecordPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.RecordPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RecordPair 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.Pdpb.RecordPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RecordPair 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.Pdpb.RecordPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RecordPair 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.Pdpb.RecordPair 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 pdpb.RecordPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.RecordPair) org.tikv.kvproto.Pdpb.RecordPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RecordPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RecordPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RecordPair.class, org.tikv.kvproto.Pdpb.RecordPair.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.RecordPair.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_ = ""; value_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RecordPair_descriptor; } public org.tikv.kvproto.Pdpb.RecordPair getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.RecordPair build() { org.tikv.kvproto.Pdpb.RecordPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.RecordPair buildPartial() { org.tikv.kvproto.Pdpb.RecordPair result = new org.tikv.kvproto.Pdpb.RecordPair(this); result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.RecordPair) { return mergeFrom((org.tikv.kvproto.Pdpb.RecordPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.RecordPair other) { if (other == org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.getValue() != 0L) { 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.Pdpb.RecordPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.RecordPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private long value_ ; /** * uint64 value = 2; */ public long getValue() { return value_; } /** * uint64 value = 2; */ public Builder setValue(long value) { value_ = value; onChanged(); return this; } /** * uint64 value = 2; */ public Builder clearValue() { value_ = 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:pdpb.RecordPair) } // @@protoc_insertion_point(class_scope:pdpb.RecordPair) private static final org.tikv.kvproto.Pdpb.RecordPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.RecordPair(); } public static org.tikv.kvproto.Pdpb.RecordPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RecordPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordPair(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.Pdpb.RecordPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoreStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.StoreStats) com.google.protobuf.MessageOrBuilder { /** * uint64 store_id = 1; */ long getStoreId(); /** *
     * Capacity for the store.
     * 
* * uint64 capacity = 2; */ long getCapacity(); /** *
     * Available size for the store.
     * 
* * uint64 available = 3; */ long getAvailable(); /** *
     * Total region count in this store.
     * 
* * uint32 region_count = 4; */ int getRegionCount(); /** *
     * Current sending snapshot count.
     * 
* * uint32 sending_snap_count = 5; */ int getSendingSnapCount(); /** *
     * Current receiving snapshot count.
     * 
* * uint32 receiving_snap_count = 6; */ int getReceivingSnapCount(); /** *
     * When the store is started (unix timestamp in seconds).
     * 
* * uint32 start_time = 7; */ int getStartTime(); /** *
     * How many region is applying snapshot.
     * 
* * uint32 applying_snap_count = 8; */ int getApplyingSnapCount(); /** *
     * If the store is busy
     * 
* * bool is_busy = 9; */ boolean getIsBusy(); /** *
     * Actually used space by db
     * 
* * uint64 used_size = 10; */ long getUsedSize(); /** *
     * Bytes written for the store during this period.
     * 
* * uint64 bytes_written = 11; */ long getBytesWritten(); /** *
     * Keys written for the store during this period.
     * 
* * uint64 keys_written = 12; */ long getKeysWritten(); /** *
     * Bytes read for the store during this period.
     * 
* * uint64 bytes_read = 13; */ long getBytesRead(); /** *
     * Keys read for the store during this period.
     * 
* * uint64 keys_read = 14; */ long getKeysRead(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ boolean hasInterval(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ org.tikv.kvproto.Pdpb.TimeInterval getInterval(); /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder(); /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ java.util.List getCpuUsagesList(); /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ org.tikv.kvproto.Pdpb.RecordPair getCpuUsages(int index); /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ int getCpuUsagesCount(); /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ java.util.List getCpuUsagesOrBuilderList(); /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ org.tikv.kvproto.Pdpb.RecordPairOrBuilder getCpuUsagesOrBuilder( int index); /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ java.util.List getReadIoRatesList(); /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ org.tikv.kvproto.Pdpb.RecordPair getReadIoRates(int index); /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ int getReadIoRatesCount(); /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ java.util.List getReadIoRatesOrBuilderList(); /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ org.tikv.kvproto.Pdpb.RecordPairOrBuilder getReadIoRatesOrBuilder( int index); /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ java.util.List getWriteIoRatesList(); /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ org.tikv.kvproto.Pdpb.RecordPair getWriteIoRates(int index); /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ int getWriteIoRatesCount(); /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ java.util.List getWriteIoRatesOrBuilderList(); /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ org.tikv.kvproto.Pdpb.RecordPairOrBuilder getWriteIoRatesOrBuilder( int index); /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ java.util.List getOpLatenciesList(); /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ org.tikv.kvproto.Pdpb.RecordPair getOpLatencies(int index); /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ int getOpLatenciesCount(); /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ java.util.List getOpLatenciesOrBuilderList(); /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ org.tikv.kvproto.Pdpb.RecordPairOrBuilder getOpLatenciesOrBuilder( int index); } /** * Protobuf type {@code pdpb.StoreStats} */ public static final class StoreStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.StoreStats) StoreStatsOrBuilder { private static final long serialVersionUID = 0L; // Use StoreStats.newBuilder() to construct. private StoreStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreStats() { storeId_ = 0L; capacity_ = 0L; available_ = 0L; regionCount_ = 0; sendingSnapCount_ = 0; receivingSnapCount_ = 0; startTime_ = 0; applyingSnapCount_ = 0; isBusy_ = false; usedSize_ = 0L; bytesWritten_ = 0L; keysWritten_ = 0L; bytesRead_ = 0L; keysRead_ = 0L; cpuUsages_ = java.util.Collections.emptyList(); readIoRates_ = java.util.Collections.emptyList(); writeIoRates_ = java.util.Collections.emptyList(); opLatencies_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreStats( 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: { storeId_ = input.readUInt64(); break; } case 16: { capacity_ = input.readUInt64(); break; } case 24: { available_ = input.readUInt64(); break; } case 32: { regionCount_ = input.readUInt32(); break; } case 40: { sendingSnapCount_ = input.readUInt32(); break; } case 48: { receivingSnapCount_ = input.readUInt32(); break; } case 56: { startTime_ = input.readUInt32(); break; } case 64: { applyingSnapCount_ = input.readUInt32(); break; } case 72: { isBusy_ = input.readBool(); break; } case 80: { usedSize_ = input.readUInt64(); break; } case 88: { bytesWritten_ = input.readUInt64(); break; } case 96: { keysWritten_ = input.readUInt64(); break; } case 104: { bytesRead_ = input.readUInt64(); break; } case 112: { keysRead_ = input.readUInt64(); break; } case 122: { org.tikv.kvproto.Pdpb.TimeInterval.Builder subBuilder = null; if (interval_ != null) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(org.tikv.kvproto.Pdpb.TimeInterval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = subBuilder.buildPartial(); } break; } case 130: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { cpuUsages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } cpuUsages_.add( input.readMessage(org.tikv.kvproto.Pdpb.RecordPair.parser(), extensionRegistry)); break; } case 138: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { readIoRates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } readIoRates_.add( input.readMessage(org.tikv.kvproto.Pdpb.RecordPair.parser(), extensionRegistry)); break; } case 146: { if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { writeIoRates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00020000; } writeIoRates_.add( input.readMessage(org.tikv.kvproto.Pdpb.RecordPair.parser(), extensionRegistry)); break; } case 154: { if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { opLatencies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } opLatencies_.add( input.readMessage(org.tikv.kvproto.Pdpb.RecordPair.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_ & 0x00008000) == 0x00008000)) { cpuUsages_ = java.util.Collections.unmodifiableList(cpuUsages_); } if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { readIoRates_ = java.util.Collections.unmodifiableList(readIoRates_); } if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { writeIoRates_ = java.util.Collections.unmodifiableList(writeIoRates_); } if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { opLatencies_ = java.util.Collections.unmodifiableList(opLatencies_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreStats.class, org.tikv.kvproto.Pdpb.StoreStats.Builder.class); } private int bitField0_; public static final int STORE_ID_FIELD_NUMBER = 1; private long storeId_; /** * uint64 store_id = 1; */ public long getStoreId() { return storeId_; } public static final int CAPACITY_FIELD_NUMBER = 2; private long capacity_; /** *
     * Capacity for the store.
     * 
* * uint64 capacity = 2; */ public long getCapacity() { return capacity_; } public static final int AVAILABLE_FIELD_NUMBER = 3; private long available_; /** *
     * Available size for the store.
     * 
* * uint64 available = 3; */ public long getAvailable() { return available_; } public static final int REGION_COUNT_FIELD_NUMBER = 4; private int regionCount_; /** *
     * Total region count in this store.
     * 
* * uint32 region_count = 4; */ public int getRegionCount() { return regionCount_; } public static final int SENDING_SNAP_COUNT_FIELD_NUMBER = 5; private int sendingSnapCount_; /** *
     * Current sending snapshot count.
     * 
* * uint32 sending_snap_count = 5; */ public int getSendingSnapCount() { return sendingSnapCount_; } public static final int RECEIVING_SNAP_COUNT_FIELD_NUMBER = 6; private int receivingSnapCount_; /** *
     * Current receiving snapshot count.
     * 
* * uint32 receiving_snap_count = 6; */ public int getReceivingSnapCount() { return receivingSnapCount_; } public static final int START_TIME_FIELD_NUMBER = 7; private int startTime_; /** *
     * When the store is started (unix timestamp in seconds).
     * 
* * uint32 start_time = 7; */ public int getStartTime() { return startTime_; } public static final int APPLYING_SNAP_COUNT_FIELD_NUMBER = 8; private int applyingSnapCount_; /** *
     * How many region is applying snapshot.
     * 
* * uint32 applying_snap_count = 8; */ public int getApplyingSnapCount() { return applyingSnapCount_; } public static final int IS_BUSY_FIELD_NUMBER = 9; private boolean isBusy_; /** *
     * If the store is busy
     * 
* * bool is_busy = 9; */ public boolean getIsBusy() { return isBusy_; } public static final int USED_SIZE_FIELD_NUMBER = 10; private long usedSize_; /** *
     * Actually used space by db
     * 
* * uint64 used_size = 10; */ public long getUsedSize() { return usedSize_; } public static final int BYTES_WRITTEN_FIELD_NUMBER = 11; private long bytesWritten_; /** *
     * Bytes written for the store during this period.
     * 
* * uint64 bytes_written = 11; */ public long getBytesWritten() { return bytesWritten_; } public static final int KEYS_WRITTEN_FIELD_NUMBER = 12; private long keysWritten_; /** *
     * Keys written for the store during this period.
     * 
* * uint64 keys_written = 12; */ public long getKeysWritten() { return keysWritten_; } public static final int BYTES_READ_FIELD_NUMBER = 13; private long bytesRead_; /** *
     * Bytes read for the store during this period.
     * 
* * uint64 bytes_read = 13; */ public long getBytesRead() { return bytesRead_; } public static final int KEYS_READ_FIELD_NUMBER = 14; private long keysRead_; /** *
     * Keys read for the store during this period.
     * 
* * uint64 keys_read = 14; */ public long getKeysRead() { return keysRead_; } public static final int INTERVAL_FIELD_NUMBER = 15; private org.tikv.kvproto.Pdpb.TimeInterval interval_; /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ public boolean hasInterval() { return interval_ != null; } /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ public org.tikv.kvproto.Pdpb.TimeInterval getInterval() { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } /** *
     * Actually reported time interval
     * 
* * .pdpb.TimeInterval interval = 15; */ public org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder() { return getInterval(); } public static final int CPU_USAGES_FIELD_NUMBER = 16; private java.util.List cpuUsages_; /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public java.util.List getCpuUsagesList() { return cpuUsages_; } /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public java.util.List getCpuUsagesOrBuilderList() { return cpuUsages_; } /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public int getCpuUsagesCount() { return cpuUsages_.size(); } /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPair getCpuUsages(int index) { return cpuUsages_.get(index); } /** *
     * Threads' CPU usages in the store
     * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getCpuUsagesOrBuilder( int index) { return cpuUsages_.get(index); } public static final int READ_IO_RATES_FIELD_NUMBER = 17; private java.util.List readIoRates_; /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public java.util.List getReadIoRatesList() { return readIoRates_; } /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public java.util.List getReadIoRatesOrBuilderList() { return readIoRates_; } /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public int getReadIoRatesCount() { return readIoRates_.size(); } /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPair getReadIoRates(int index) { return readIoRates_.get(index); } /** *
     * Threads' read disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getReadIoRatesOrBuilder( int index) { return readIoRates_.get(index); } public static final int WRITE_IO_RATES_FIELD_NUMBER = 18; private java.util.List writeIoRates_; /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public java.util.List getWriteIoRatesList() { return writeIoRates_; } /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public java.util.List getWriteIoRatesOrBuilderList() { return writeIoRates_; } /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public int getWriteIoRatesCount() { return writeIoRates_.size(); } /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPair getWriteIoRates(int index) { return writeIoRates_.get(index); } /** *
     * Threads' write disk I/O rates in the store
     * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getWriteIoRatesOrBuilder( int index) { return writeIoRates_.get(index); } public static final int OP_LATENCIES_FIELD_NUMBER = 19; private java.util.List opLatencies_; /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public java.util.List getOpLatenciesList() { return opLatencies_; } /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public java.util.List getOpLatenciesOrBuilderList() { return opLatencies_; } /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public int getOpLatenciesCount() { return opLatencies_.size(); } /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPair getOpLatencies(int index) { return opLatencies_.get(index); } /** *
     * Operations' latencies in the store
     * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getOpLatenciesOrBuilder( int index) { return opLatencies_.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 (storeId_ != 0L) { output.writeUInt64(1, storeId_); } if (capacity_ != 0L) { output.writeUInt64(2, capacity_); } if (available_ != 0L) { output.writeUInt64(3, available_); } if (regionCount_ != 0) { output.writeUInt32(4, regionCount_); } if (sendingSnapCount_ != 0) { output.writeUInt32(5, sendingSnapCount_); } if (receivingSnapCount_ != 0) { output.writeUInt32(6, receivingSnapCount_); } if (startTime_ != 0) { output.writeUInt32(7, startTime_); } if (applyingSnapCount_ != 0) { output.writeUInt32(8, applyingSnapCount_); } if (isBusy_ != false) { output.writeBool(9, isBusy_); } if (usedSize_ != 0L) { output.writeUInt64(10, usedSize_); } if (bytesWritten_ != 0L) { output.writeUInt64(11, bytesWritten_); } if (keysWritten_ != 0L) { output.writeUInt64(12, keysWritten_); } if (bytesRead_ != 0L) { output.writeUInt64(13, bytesRead_); } if (keysRead_ != 0L) { output.writeUInt64(14, keysRead_); } if (interval_ != null) { output.writeMessage(15, getInterval()); } for (int i = 0; i < cpuUsages_.size(); i++) { output.writeMessage(16, cpuUsages_.get(i)); } for (int i = 0; i < readIoRates_.size(); i++) { output.writeMessage(17, readIoRates_.get(i)); } for (int i = 0; i < writeIoRates_.size(); i++) { output.writeMessage(18, writeIoRates_.get(i)); } for (int i = 0; i < opLatencies_.size(); i++) { output.writeMessage(19, opLatencies_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (storeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, storeId_); } if (capacity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, capacity_); } if (available_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, available_); } if (regionCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, regionCount_); } if (sendingSnapCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, sendingSnapCount_); } if (receivingSnapCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, receivingSnapCount_); } if (startTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, startTime_); } if (applyingSnapCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, applyingSnapCount_); } if (isBusy_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, isBusy_); } if (usedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, usedSize_); } if (bytesWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, bytesWritten_); } if (keysWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(12, keysWritten_); } if (bytesRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(13, bytesRead_); } if (keysRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, keysRead_); } if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getInterval()); } for (int i = 0; i < cpuUsages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, cpuUsages_.get(i)); } for (int i = 0; i < readIoRates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, readIoRates_.get(i)); } for (int i = 0; i < writeIoRates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, writeIoRates_.get(i)); } for (int i = 0; i < opLatencies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, opLatencies_.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.Pdpb.StoreStats)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.StoreStats other = (org.tikv.kvproto.Pdpb.StoreStats) obj; boolean result = true; result = result && (getStoreId() == other.getStoreId()); result = result && (getCapacity() == other.getCapacity()); result = result && (getAvailable() == other.getAvailable()); result = result && (getRegionCount() == other.getRegionCount()); result = result && (getSendingSnapCount() == other.getSendingSnapCount()); result = result && (getReceivingSnapCount() == other.getReceivingSnapCount()); result = result && (getStartTime() == other.getStartTime()); result = result && (getApplyingSnapCount() == other.getApplyingSnapCount()); result = result && (getIsBusy() == other.getIsBusy()); result = result && (getUsedSize() == other.getUsedSize()); result = result && (getBytesWritten() == other.getBytesWritten()); result = result && (getKeysWritten() == other.getKeysWritten()); result = result && (getBytesRead() == other.getBytesRead()); result = result && (getKeysRead() == other.getKeysRead()); result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval() .equals(other.getInterval()); } result = result && getCpuUsagesList() .equals(other.getCpuUsagesList()); result = result && getReadIoRatesList() .equals(other.getReadIoRatesList()); result = result && getWriteIoRatesList() .equals(other.getWriteIoRatesList()); result = result && getOpLatenciesList() .equals(other.getOpLatenciesList()); 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) + STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStoreId()); hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCapacity()); hash = (37 * hash) + AVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAvailable()); hash = (37 * hash) + REGION_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRegionCount(); hash = (37 * hash) + SENDING_SNAP_COUNT_FIELD_NUMBER; hash = (53 * hash) + getSendingSnapCount(); hash = (37 * hash) + RECEIVING_SNAP_COUNT_FIELD_NUMBER; hash = (53 * hash) + getReceivingSnapCount(); hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime(); hash = (37 * hash) + APPLYING_SNAP_COUNT_FIELD_NUMBER; hash = (53 * hash) + getApplyingSnapCount(); hash = (37 * hash) + IS_BUSY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsBusy()); hash = (37 * hash) + USED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsedSize()); hash = (37 * hash) + BYTES_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesWritten()); hash = (37 * hash) + KEYS_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysWritten()); hash = (37 * hash) + BYTES_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesRead()); hash = (37 * hash) + KEYS_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysRead()); if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } if (getCpuUsagesCount() > 0) { hash = (37 * hash) + CPU_USAGES_FIELD_NUMBER; hash = (53 * hash) + getCpuUsagesList().hashCode(); } if (getReadIoRatesCount() > 0) { hash = (37 * hash) + READ_IO_RATES_FIELD_NUMBER; hash = (53 * hash) + getReadIoRatesList().hashCode(); } if (getWriteIoRatesCount() > 0) { hash = (37 * hash) + WRITE_IO_RATES_FIELD_NUMBER; hash = (53 * hash) + getWriteIoRatesList().hashCode(); } if (getOpLatenciesCount() > 0) { hash = (37 * hash) + OP_LATENCIES_FIELD_NUMBER; hash = (53 * hash) + getOpLatenciesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.StoreStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreStats 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.Pdpb.StoreStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreStats 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.Pdpb.StoreStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.StoreStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreStats 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.Pdpb.StoreStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreStats 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.Pdpb.StoreStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreStats 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.Pdpb.StoreStats 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 pdpb.StoreStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.StoreStats) org.tikv.kvproto.Pdpb.StoreStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreStats_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreStats.class, org.tikv.kvproto.Pdpb.StoreStats.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.StoreStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCpuUsagesFieldBuilder(); getReadIoRatesFieldBuilder(); getWriteIoRatesFieldBuilder(); getOpLatenciesFieldBuilder(); } } public Builder clear() { super.clear(); storeId_ = 0L; capacity_ = 0L; available_ = 0L; regionCount_ = 0; sendingSnapCount_ = 0; receivingSnapCount_ = 0; startTime_ = 0; applyingSnapCount_ = 0; isBusy_ = false; usedSize_ = 0L; bytesWritten_ = 0L; keysWritten_ = 0L; bytesRead_ = 0L; keysRead_ = 0L; if (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } if (cpuUsagesBuilder_ == null) { cpuUsages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { cpuUsagesBuilder_.clear(); } if (readIoRatesBuilder_ == null) { readIoRates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); } else { readIoRatesBuilder_.clear(); } if (writeIoRatesBuilder_ == null) { writeIoRates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); } else { writeIoRatesBuilder_.clear(); } if (opLatenciesBuilder_ == null) { opLatencies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); } else { opLatenciesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreStats_descriptor; } public org.tikv.kvproto.Pdpb.StoreStats getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.StoreStats build() { org.tikv.kvproto.Pdpb.StoreStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.StoreStats buildPartial() { org.tikv.kvproto.Pdpb.StoreStats result = new org.tikv.kvproto.Pdpb.StoreStats(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.storeId_ = storeId_; result.capacity_ = capacity_; result.available_ = available_; result.regionCount_ = regionCount_; result.sendingSnapCount_ = sendingSnapCount_; result.receivingSnapCount_ = receivingSnapCount_; result.startTime_ = startTime_; result.applyingSnapCount_ = applyingSnapCount_; result.isBusy_ = isBusy_; result.usedSize_ = usedSize_; result.bytesWritten_ = bytesWritten_; result.keysWritten_ = keysWritten_; result.bytesRead_ = bytesRead_; result.keysRead_ = keysRead_; if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } if (cpuUsagesBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { cpuUsages_ = java.util.Collections.unmodifiableList(cpuUsages_); bitField0_ = (bitField0_ & ~0x00008000); } result.cpuUsages_ = cpuUsages_; } else { result.cpuUsages_ = cpuUsagesBuilder_.build(); } if (readIoRatesBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000)) { readIoRates_ = java.util.Collections.unmodifiableList(readIoRates_); bitField0_ = (bitField0_ & ~0x00010000); } result.readIoRates_ = readIoRates_; } else { result.readIoRates_ = readIoRatesBuilder_.build(); } if (writeIoRatesBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000)) { writeIoRates_ = java.util.Collections.unmodifiableList(writeIoRates_); bitField0_ = (bitField0_ & ~0x00020000); } result.writeIoRates_ = writeIoRates_; } else { result.writeIoRates_ = writeIoRatesBuilder_.build(); } if (opLatenciesBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000)) { opLatencies_ = java.util.Collections.unmodifiableList(opLatencies_); bitField0_ = (bitField0_ & ~0x00040000); } result.opLatencies_ = opLatencies_; } else { result.opLatencies_ = opLatenciesBuilder_.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.Pdpb.StoreStats) { return mergeFrom((org.tikv.kvproto.Pdpb.StoreStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.StoreStats other) { if (other == org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance()) return this; if (other.getStoreId() != 0L) { setStoreId(other.getStoreId()); } if (other.getCapacity() != 0L) { setCapacity(other.getCapacity()); } if (other.getAvailable() != 0L) { setAvailable(other.getAvailable()); } if (other.getRegionCount() != 0) { setRegionCount(other.getRegionCount()); } if (other.getSendingSnapCount() != 0) { setSendingSnapCount(other.getSendingSnapCount()); } if (other.getReceivingSnapCount() != 0) { setReceivingSnapCount(other.getReceivingSnapCount()); } if (other.getStartTime() != 0) { setStartTime(other.getStartTime()); } if (other.getApplyingSnapCount() != 0) { setApplyingSnapCount(other.getApplyingSnapCount()); } if (other.getIsBusy() != false) { setIsBusy(other.getIsBusy()); } if (other.getUsedSize() != 0L) { setUsedSize(other.getUsedSize()); } if (other.getBytesWritten() != 0L) { setBytesWritten(other.getBytesWritten()); } if (other.getKeysWritten() != 0L) { setKeysWritten(other.getKeysWritten()); } if (other.getBytesRead() != 0L) { setBytesRead(other.getBytesRead()); } if (other.getKeysRead() != 0L) { setKeysRead(other.getKeysRead()); } if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (cpuUsagesBuilder_ == null) { if (!other.cpuUsages_.isEmpty()) { if (cpuUsages_.isEmpty()) { cpuUsages_ = other.cpuUsages_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureCpuUsagesIsMutable(); cpuUsages_.addAll(other.cpuUsages_); } onChanged(); } } else { if (!other.cpuUsages_.isEmpty()) { if (cpuUsagesBuilder_.isEmpty()) { cpuUsagesBuilder_.dispose(); cpuUsagesBuilder_ = null; cpuUsages_ = other.cpuUsages_; bitField0_ = (bitField0_ & ~0x00008000); cpuUsagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCpuUsagesFieldBuilder() : null; } else { cpuUsagesBuilder_.addAllMessages(other.cpuUsages_); } } } if (readIoRatesBuilder_ == null) { if (!other.readIoRates_.isEmpty()) { if (readIoRates_.isEmpty()) { readIoRates_ = other.readIoRates_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureReadIoRatesIsMutable(); readIoRates_.addAll(other.readIoRates_); } onChanged(); } } else { if (!other.readIoRates_.isEmpty()) { if (readIoRatesBuilder_.isEmpty()) { readIoRatesBuilder_.dispose(); readIoRatesBuilder_ = null; readIoRates_ = other.readIoRates_; bitField0_ = (bitField0_ & ~0x00010000); readIoRatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReadIoRatesFieldBuilder() : null; } else { readIoRatesBuilder_.addAllMessages(other.readIoRates_); } } } if (writeIoRatesBuilder_ == null) { if (!other.writeIoRates_.isEmpty()) { if (writeIoRates_.isEmpty()) { writeIoRates_ = other.writeIoRates_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensureWriteIoRatesIsMutable(); writeIoRates_.addAll(other.writeIoRates_); } onChanged(); } } else { if (!other.writeIoRates_.isEmpty()) { if (writeIoRatesBuilder_.isEmpty()) { writeIoRatesBuilder_.dispose(); writeIoRatesBuilder_ = null; writeIoRates_ = other.writeIoRates_; bitField0_ = (bitField0_ & ~0x00020000); writeIoRatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWriteIoRatesFieldBuilder() : null; } else { writeIoRatesBuilder_.addAllMessages(other.writeIoRates_); } } } if (opLatenciesBuilder_ == null) { if (!other.opLatencies_.isEmpty()) { if (opLatencies_.isEmpty()) { opLatencies_ = other.opLatencies_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureOpLatenciesIsMutable(); opLatencies_.addAll(other.opLatencies_); } onChanged(); } } else { if (!other.opLatencies_.isEmpty()) { if (opLatenciesBuilder_.isEmpty()) { opLatenciesBuilder_.dispose(); opLatenciesBuilder_ = null; opLatencies_ = other.opLatencies_; bitField0_ = (bitField0_ & ~0x00040000); opLatenciesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpLatenciesFieldBuilder() : null; } else { opLatenciesBuilder_.addAllMessages(other.opLatencies_); } } } 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.Pdpb.StoreStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.StoreStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long storeId_ ; /** * uint64 store_id = 1; */ public long getStoreId() { return storeId_; } /** * uint64 store_id = 1; */ public Builder setStoreId(long value) { storeId_ = value; onChanged(); return this; } /** * uint64 store_id = 1; */ public Builder clearStoreId() { storeId_ = 0L; onChanged(); return this; } private long capacity_ ; /** *
       * Capacity for the store.
       * 
* * uint64 capacity = 2; */ public long getCapacity() { return capacity_; } /** *
       * Capacity for the store.
       * 
* * uint64 capacity = 2; */ public Builder setCapacity(long value) { capacity_ = value; onChanged(); return this; } /** *
       * Capacity for the store.
       * 
* * uint64 capacity = 2; */ public Builder clearCapacity() { capacity_ = 0L; onChanged(); return this; } private long available_ ; /** *
       * Available size for the store.
       * 
* * uint64 available = 3; */ public long getAvailable() { return available_; } /** *
       * Available size for the store.
       * 
* * uint64 available = 3; */ public Builder setAvailable(long value) { available_ = value; onChanged(); return this; } /** *
       * Available size for the store.
       * 
* * uint64 available = 3; */ public Builder clearAvailable() { available_ = 0L; onChanged(); return this; } private int regionCount_ ; /** *
       * Total region count in this store.
       * 
* * uint32 region_count = 4; */ public int getRegionCount() { return regionCount_; } /** *
       * Total region count in this store.
       * 
* * uint32 region_count = 4; */ public Builder setRegionCount(int value) { regionCount_ = value; onChanged(); return this; } /** *
       * Total region count in this store.
       * 
* * uint32 region_count = 4; */ public Builder clearRegionCount() { regionCount_ = 0; onChanged(); return this; } private int sendingSnapCount_ ; /** *
       * Current sending snapshot count.
       * 
* * uint32 sending_snap_count = 5; */ public int getSendingSnapCount() { return sendingSnapCount_; } /** *
       * Current sending snapshot count.
       * 
* * uint32 sending_snap_count = 5; */ public Builder setSendingSnapCount(int value) { sendingSnapCount_ = value; onChanged(); return this; } /** *
       * Current sending snapshot count.
       * 
* * uint32 sending_snap_count = 5; */ public Builder clearSendingSnapCount() { sendingSnapCount_ = 0; onChanged(); return this; } private int receivingSnapCount_ ; /** *
       * Current receiving snapshot count.
       * 
* * uint32 receiving_snap_count = 6; */ public int getReceivingSnapCount() { return receivingSnapCount_; } /** *
       * Current receiving snapshot count.
       * 
* * uint32 receiving_snap_count = 6; */ public Builder setReceivingSnapCount(int value) { receivingSnapCount_ = value; onChanged(); return this; } /** *
       * Current receiving snapshot count.
       * 
* * uint32 receiving_snap_count = 6; */ public Builder clearReceivingSnapCount() { receivingSnapCount_ = 0; onChanged(); return this; } private int startTime_ ; /** *
       * When the store is started (unix timestamp in seconds).
       * 
* * uint32 start_time = 7; */ public int getStartTime() { return startTime_; } /** *
       * When the store is started (unix timestamp in seconds).
       * 
* * uint32 start_time = 7; */ public Builder setStartTime(int value) { startTime_ = value; onChanged(); return this; } /** *
       * When the store is started (unix timestamp in seconds).
       * 
* * uint32 start_time = 7; */ public Builder clearStartTime() { startTime_ = 0; onChanged(); return this; } private int applyingSnapCount_ ; /** *
       * How many region is applying snapshot.
       * 
* * uint32 applying_snap_count = 8; */ public int getApplyingSnapCount() { return applyingSnapCount_; } /** *
       * How many region is applying snapshot.
       * 
* * uint32 applying_snap_count = 8; */ public Builder setApplyingSnapCount(int value) { applyingSnapCount_ = value; onChanged(); return this; } /** *
       * How many region is applying snapshot.
       * 
* * uint32 applying_snap_count = 8; */ public Builder clearApplyingSnapCount() { applyingSnapCount_ = 0; onChanged(); return this; } private boolean isBusy_ ; /** *
       * If the store is busy
       * 
* * bool is_busy = 9; */ public boolean getIsBusy() { return isBusy_; } /** *
       * If the store is busy
       * 
* * bool is_busy = 9; */ public Builder setIsBusy(boolean value) { isBusy_ = value; onChanged(); return this; } /** *
       * If the store is busy
       * 
* * bool is_busy = 9; */ public Builder clearIsBusy() { isBusy_ = false; onChanged(); return this; } private long usedSize_ ; /** *
       * Actually used space by db
       * 
* * uint64 used_size = 10; */ public long getUsedSize() { return usedSize_; } /** *
       * Actually used space by db
       * 
* * uint64 used_size = 10; */ public Builder setUsedSize(long value) { usedSize_ = value; onChanged(); return this; } /** *
       * Actually used space by db
       * 
* * uint64 used_size = 10; */ public Builder clearUsedSize() { usedSize_ = 0L; onChanged(); return this; } private long bytesWritten_ ; /** *
       * Bytes written for the store during this period.
       * 
* * uint64 bytes_written = 11; */ public long getBytesWritten() { return bytesWritten_; } /** *
       * Bytes written for the store during this period.
       * 
* * uint64 bytes_written = 11; */ public Builder setBytesWritten(long value) { bytesWritten_ = value; onChanged(); return this; } /** *
       * Bytes written for the store during this period.
       * 
* * uint64 bytes_written = 11; */ public Builder clearBytesWritten() { bytesWritten_ = 0L; onChanged(); return this; } private long keysWritten_ ; /** *
       * Keys written for the store during this period.
       * 
* * uint64 keys_written = 12; */ public long getKeysWritten() { return keysWritten_; } /** *
       * Keys written for the store during this period.
       * 
* * uint64 keys_written = 12; */ public Builder setKeysWritten(long value) { keysWritten_ = value; onChanged(); return this; } /** *
       * Keys written for the store during this period.
       * 
* * uint64 keys_written = 12; */ public Builder clearKeysWritten() { keysWritten_ = 0L; onChanged(); return this; } private long bytesRead_ ; /** *
       * Bytes read for the store during this period.
       * 
* * uint64 bytes_read = 13; */ public long getBytesRead() { return bytesRead_; } /** *
       * Bytes read for the store during this period.
       * 
* * uint64 bytes_read = 13; */ public Builder setBytesRead(long value) { bytesRead_ = value; onChanged(); return this; } /** *
       * Bytes read for the store during this period.
       * 
* * uint64 bytes_read = 13; */ public Builder clearBytesRead() { bytesRead_ = 0L; onChanged(); return this; } private long keysRead_ ; /** *
       * Keys read for the store during this period.
       * 
* * uint64 keys_read = 14; */ public long getKeysRead() { return keysRead_; } /** *
       * Keys read for the store during this period.
       * 
* * uint64 keys_read = 14; */ public Builder setKeysRead(long value) { keysRead_ = value; onChanged(); return this; } /** *
       * Keys read for the store during this period.
       * 
* * uint64 keys_read = 14; */ public Builder clearKeysRead() { keysRead_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Pdpb.TimeInterval interval_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder> intervalBuilder_; /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public org.tikv.kvproto.Pdpb.TimeInterval getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public Builder setInterval(org.tikv.kvproto.Pdpb.TimeInterval value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public Builder setInterval( org.tikv.kvproto.Pdpb.TimeInterval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public Builder mergeInterval(org.tikv.kvproto.Pdpb.TimeInterval value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = org.tikv.kvproto.Pdpb.TimeInterval.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public org.tikv.kvproto.Pdpb.TimeInterval.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ public org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? org.tikv.kvproto.Pdpb.TimeInterval.getDefaultInstance() : interval_; } } /** *
       * Actually reported time interval
       * 
* * .pdpb.TimeInterval interval = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.TimeInterval, org.tikv.kvproto.Pdpb.TimeInterval.Builder, org.tikv.kvproto.Pdpb.TimeIntervalOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } private java.util.List cpuUsages_ = java.util.Collections.emptyList(); private void ensureCpuUsagesIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { cpuUsages_ = new java.util.ArrayList(cpuUsages_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> cpuUsagesBuilder_; /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public java.util.List getCpuUsagesList() { if (cpuUsagesBuilder_ == null) { return java.util.Collections.unmodifiableList(cpuUsages_); } else { return cpuUsagesBuilder_.getMessageList(); } } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public int getCpuUsagesCount() { if (cpuUsagesBuilder_ == null) { return cpuUsages_.size(); } else { return cpuUsagesBuilder_.getCount(); } } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPair getCpuUsages(int index) { if (cpuUsagesBuilder_ == null) { return cpuUsages_.get(index); } else { return cpuUsagesBuilder_.getMessage(index); } } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder setCpuUsages( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (cpuUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCpuUsagesIsMutable(); cpuUsages_.set(index, value); onChanged(); } else { cpuUsagesBuilder_.setMessage(index, value); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder setCpuUsages( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (cpuUsagesBuilder_ == null) { ensureCpuUsagesIsMutable(); cpuUsages_.set(index, builderForValue.build()); onChanged(); } else { cpuUsagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder addCpuUsages(org.tikv.kvproto.Pdpb.RecordPair value) { if (cpuUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCpuUsagesIsMutable(); cpuUsages_.add(value); onChanged(); } else { cpuUsagesBuilder_.addMessage(value); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder addCpuUsages( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (cpuUsagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCpuUsagesIsMutable(); cpuUsages_.add(index, value); onChanged(); } else { cpuUsagesBuilder_.addMessage(index, value); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder addCpuUsages( org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (cpuUsagesBuilder_ == null) { ensureCpuUsagesIsMutable(); cpuUsages_.add(builderForValue.build()); onChanged(); } else { cpuUsagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder addCpuUsages( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (cpuUsagesBuilder_ == null) { ensureCpuUsagesIsMutable(); cpuUsages_.add(index, builderForValue.build()); onChanged(); } else { cpuUsagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder addAllCpuUsages( java.lang.Iterable values) { if (cpuUsagesBuilder_ == null) { ensureCpuUsagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cpuUsages_); onChanged(); } else { cpuUsagesBuilder_.addAllMessages(values); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder clearCpuUsages() { if (cpuUsagesBuilder_ == null) { cpuUsages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { cpuUsagesBuilder_.clear(); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public Builder removeCpuUsages(int index) { if (cpuUsagesBuilder_ == null) { ensureCpuUsagesIsMutable(); cpuUsages_.remove(index); onChanged(); } else { cpuUsagesBuilder_.remove(index); } return this; } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder getCpuUsagesBuilder( int index) { return getCpuUsagesFieldBuilder().getBuilder(index); } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getCpuUsagesOrBuilder( int index) { if (cpuUsagesBuilder_ == null) { return cpuUsages_.get(index); } else { return cpuUsagesBuilder_.getMessageOrBuilder(index); } } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public java.util.List getCpuUsagesOrBuilderList() { if (cpuUsagesBuilder_ != null) { return cpuUsagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cpuUsages_); } } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addCpuUsagesBuilder() { return getCpuUsagesFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addCpuUsagesBuilder( int index) { return getCpuUsagesFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' CPU usages in the store
       * 
* * repeated .pdpb.RecordPair cpu_usages = 16; */ public java.util.List getCpuUsagesBuilderList() { return getCpuUsagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> getCpuUsagesFieldBuilder() { if (cpuUsagesBuilder_ == null) { cpuUsagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder>( cpuUsages_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); cpuUsages_ = null; } return cpuUsagesBuilder_; } private java.util.List readIoRates_ = java.util.Collections.emptyList(); private void ensureReadIoRatesIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { readIoRates_ = new java.util.ArrayList(readIoRates_); bitField0_ |= 0x00010000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> readIoRatesBuilder_; /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public java.util.List getReadIoRatesList() { if (readIoRatesBuilder_ == null) { return java.util.Collections.unmodifiableList(readIoRates_); } else { return readIoRatesBuilder_.getMessageList(); } } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public int getReadIoRatesCount() { if (readIoRatesBuilder_ == null) { return readIoRates_.size(); } else { return readIoRatesBuilder_.getCount(); } } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPair getReadIoRates(int index) { if (readIoRatesBuilder_ == null) { return readIoRates_.get(index); } else { return readIoRatesBuilder_.getMessage(index); } } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder setReadIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (readIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadIoRatesIsMutable(); readIoRates_.set(index, value); onChanged(); } else { readIoRatesBuilder_.setMessage(index, value); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder setReadIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (readIoRatesBuilder_ == null) { ensureReadIoRatesIsMutable(); readIoRates_.set(index, builderForValue.build()); onChanged(); } else { readIoRatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder addReadIoRates(org.tikv.kvproto.Pdpb.RecordPair value) { if (readIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadIoRatesIsMutable(); readIoRates_.add(value); onChanged(); } else { readIoRatesBuilder_.addMessage(value); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder addReadIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (readIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadIoRatesIsMutable(); readIoRates_.add(index, value); onChanged(); } else { readIoRatesBuilder_.addMessage(index, value); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder addReadIoRates( org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (readIoRatesBuilder_ == null) { ensureReadIoRatesIsMutable(); readIoRates_.add(builderForValue.build()); onChanged(); } else { readIoRatesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder addReadIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (readIoRatesBuilder_ == null) { ensureReadIoRatesIsMutable(); readIoRates_.add(index, builderForValue.build()); onChanged(); } else { readIoRatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder addAllReadIoRates( java.lang.Iterable values) { if (readIoRatesBuilder_ == null) { ensureReadIoRatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, readIoRates_); onChanged(); } else { readIoRatesBuilder_.addAllMessages(values); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder clearReadIoRates() { if (readIoRatesBuilder_ == null) { readIoRates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { readIoRatesBuilder_.clear(); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public Builder removeReadIoRates(int index) { if (readIoRatesBuilder_ == null) { ensureReadIoRatesIsMutable(); readIoRates_.remove(index); onChanged(); } else { readIoRatesBuilder_.remove(index); } return this; } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder getReadIoRatesBuilder( int index) { return getReadIoRatesFieldBuilder().getBuilder(index); } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getReadIoRatesOrBuilder( int index) { if (readIoRatesBuilder_ == null) { return readIoRates_.get(index); } else { return readIoRatesBuilder_.getMessageOrBuilder(index); } } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public java.util.List getReadIoRatesOrBuilderList() { if (readIoRatesBuilder_ != null) { return readIoRatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(readIoRates_); } } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addReadIoRatesBuilder() { return getReadIoRatesFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addReadIoRatesBuilder( int index) { return getReadIoRatesFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' read disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair read_io_rates = 17; */ public java.util.List getReadIoRatesBuilderList() { return getReadIoRatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> getReadIoRatesFieldBuilder() { if (readIoRatesBuilder_ == null) { readIoRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder>( readIoRates_, ((bitField0_ & 0x00010000) == 0x00010000), getParentForChildren(), isClean()); readIoRates_ = null; } return readIoRatesBuilder_; } private java.util.List writeIoRates_ = java.util.Collections.emptyList(); private void ensureWriteIoRatesIsMutable() { if (!((bitField0_ & 0x00020000) == 0x00020000)) { writeIoRates_ = new java.util.ArrayList(writeIoRates_); bitField0_ |= 0x00020000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> writeIoRatesBuilder_; /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public java.util.List getWriteIoRatesList() { if (writeIoRatesBuilder_ == null) { return java.util.Collections.unmodifiableList(writeIoRates_); } else { return writeIoRatesBuilder_.getMessageList(); } } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public int getWriteIoRatesCount() { if (writeIoRatesBuilder_ == null) { return writeIoRates_.size(); } else { return writeIoRatesBuilder_.getCount(); } } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPair getWriteIoRates(int index) { if (writeIoRatesBuilder_ == null) { return writeIoRates_.get(index); } else { return writeIoRatesBuilder_.getMessage(index); } } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder setWriteIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (writeIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteIoRatesIsMutable(); writeIoRates_.set(index, value); onChanged(); } else { writeIoRatesBuilder_.setMessage(index, value); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder setWriteIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (writeIoRatesBuilder_ == null) { ensureWriteIoRatesIsMutable(); writeIoRates_.set(index, builderForValue.build()); onChanged(); } else { writeIoRatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder addWriteIoRates(org.tikv.kvproto.Pdpb.RecordPair value) { if (writeIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteIoRatesIsMutable(); writeIoRates_.add(value); onChanged(); } else { writeIoRatesBuilder_.addMessage(value); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder addWriteIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (writeIoRatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteIoRatesIsMutable(); writeIoRates_.add(index, value); onChanged(); } else { writeIoRatesBuilder_.addMessage(index, value); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder addWriteIoRates( org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (writeIoRatesBuilder_ == null) { ensureWriteIoRatesIsMutable(); writeIoRates_.add(builderForValue.build()); onChanged(); } else { writeIoRatesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder addWriteIoRates( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (writeIoRatesBuilder_ == null) { ensureWriteIoRatesIsMutable(); writeIoRates_.add(index, builderForValue.build()); onChanged(); } else { writeIoRatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder addAllWriteIoRates( java.lang.Iterable values) { if (writeIoRatesBuilder_ == null) { ensureWriteIoRatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, writeIoRates_); onChanged(); } else { writeIoRatesBuilder_.addAllMessages(values); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder clearWriteIoRates() { if (writeIoRatesBuilder_ == null) { writeIoRates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { writeIoRatesBuilder_.clear(); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public Builder removeWriteIoRates(int index) { if (writeIoRatesBuilder_ == null) { ensureWriteIoRatesIsMutable(); writeIoRates_.remove(index); onChanged(); } else { writeIoRatesBuilder_.remove(index); } return this; } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder getWriteIoRatesBuilder( int index) { return getWriteIoRatesFieldBuilder().getBuilder(index); } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getWriteIoRatesOrBuilder( int index) { if (writeIoRatesBuilder_ == null) { return writeIoRates_.get(index); } else { return writeIoRatesBuilder_.getMessageOrBuilder(index); } } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public java.util.List getWriteIoRatesOrBuilderList() { if (writeIoRatesBuilder_ != null) { return writeIoRatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(writeIoRates_); } } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addWriteIoRatesBuilder() { return getWriteIoRatesFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addWriteIoRatesBuilder( int index) { return getWriteIoRatesFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Threads' write disk I/O rates in the store
       * 
* * repeated .pdpb.RecordPair write_io_rates = 18; */ public java.util.List getWriteIoRatesBuilderList() { return getWriteIoRatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> getWriteIoRatesFieldBuilder() { if (writeIoRatesBuilder_ == null) { writeIoRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder>( writeIoRates_, ((bitField0_ & 0x00020000) == 0x00020000), getParentForChildren(), isClean()); writeIoRates_ = null; } return writeIoRatesBuilder_; } private java.util.List opLatencies_ = java.util.Collections.emptyList(); private void ensureOpLatenciesIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { opLatencies_ = new java.util.ArrayList(opLatencies_); bitField0_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> opLatenciesBuilder_; /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public java.util.List getOpLatenciesList() { if (opLatenciesBuilder_ == null) { return java.util.Collections.unmodifiableList(opLatencies_); } else { return opLatenciesBuilder_.getMessageList(); } } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public int getOpLatenciesCount() { if (opLatenciesBuilder_ == null) { return opLatencies_.size(); } else { return opLatenciesBuilder_.getCount(); } } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPair getOpLatencies(int index) { if (opLatenciesBuilder_ == null) { return opLatencies_.get(index); } else { return opLatenciesBuilder_.getMessage(index); } } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder setOpLatencies( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (opLatenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpLatenciesIsMutable(); opLatencies_.set(index, value); onChanged(); } else { opLatenciesBuilder_.setMessage(index, value); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder setOpLatencies( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (opLatenciesBuilder_ == null) { ensureOpLatenciesIsMutable(); opLatencies_.set(index, builderForValue.build()); onChanged(); } else { opLatenciesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder addOpLatencies(org.tikv.kvproto.Pdpb.RecordPair value) { if (opLatenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpLatenciesIsMutable(); opLatencies_.add(value); onChanged(); } else { opLatenciesBuilder_.addMessage(value); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder addOpLatencies( int index, org.tikv.kvproto.Pdpb.RecordPair value) { if (opLatenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOpLatenciesIsMutable(); opLatencies_.add(index, value); onChanged(); } else { opLatenciesBuilder_.addMessage(index, value); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder addOpLatencies( org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (opLatenciesBuilder_ == null) { ensureOpLatenciesIsMutable(); opLatencies_.add(builderForValue.build()); onChanged(); } else { opLatenciesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder addOpLatencies( int index, org.tikv.kvproto.Pdpb.RecordPair.Builder builderForValue) { if (opLatenciesBuilder_ == null) { ensureOpLatenciesIsMutable(); opLatencies_.add(index, builderForValue.build()); onChanged(); } else { opLatenciesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder addAllOpLatencies( java.lang.Iterable values) { if (opLatenciesBuilder_ == null) { ensureOpLatenciesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, opLatencies_); onChanged(); } else { opLatenciesBuilder_.addAllMessages(values); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder clearOpLatencies() { if (opLatenciesBuilder_ == null) { opLatencies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { opLatenciesBuilder_.clear(); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public Builder removeOpLatencies(int index) { if (opLatenciesBuilder_ == null) { ensureOpLatenciesIsMutable(); opLatencies_.remove(index); onChanged(); } else { opLatenciesBuilder_.remove(index); } return this; } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder getOpLatenciesBuilder( int index) { return getOpLatenciesFieldBuilder().getBuilder(index); } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPairOrBuilder getOpLatenciesOrBuilder( int index) { if (opLatenciesBuilder_ == null) { return opLatencies_.get(index); } else { return opLatenciesBuilder_.getMessageOrBuilder(index); } } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public java.util.List getOpLatenciesOrBuilderList() { if (opLatenciesBuilder_ != null) { return opLatenciesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(opLatencies_); } } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addOpLatenciesBuilder() { return getOpLatenciesFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public org.tikv.kvproto.Pdpb.RecordPair.Builder addOpLatenciesBuilder( int index) { return getOpLatenciesFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.RecordPair.getDefaultInstance()); } /** *
       * Operations' latencies in the store
       * 
* * repeated .pdpb.RecordPair op_latencies = 19; */ public java.util.List getOpLatenciesBuilderList() { return getOpLatenciesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder> getOpLatenciesFieldBuilder() { if (opLatenciesBuilder_ == null) { opLatenciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RecordPair, org.tikv.kvproto.Pdpb.RecordPair.Builder, org.tikv.kvproto.Pdpb.RecordPairOrBuilder>( opLatencies_, ((bitField0_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); opLatencies_ = null; } return opLatenciesBuilder_; } 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:pdpb.StoreStats) } // @@protoc_insertion_point(class_scope:pdpb.StoreStats) private static final org.tikv.kvproto.Pdpb.StoreStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.StoreStats(); } public static org.tikv.kvproto.Pdpb.StoreStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StoreStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StoreStats(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.Pdpb.StoreStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoreHeartbeatRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.StoreHeartbeatRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .pdpb.StoreStats stats = 2; */ boolean hasStats(); /** * .pdpb.StoreStats stats = 2; */ org.tikv.kvproto.Pdpb.StoreStats getStats(); /** * .pdpb.StoreStats stats = 2; */ org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder(); } /** * Protobuf type {@code pdpb.StoreHeartbeatRequest} */ public static final class StoreHeartbeatRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.StoreHeartbeatRequest) StoreHeartbeatRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StoreHeartbeatRequest.newBuilder() to construct. private StoreHeartbeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreHeartbeatRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreHeartbeatRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Pdpb.StoreStats.Builder subBuilder = null; if (stats_ != null) { subBuilder = stats_.toBuilder(); } stats_ = input.readMessage(org.tikv.kvproto.Pdpb.StoreStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stats_); stats_ = 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.Pdpb.internal_static_pdpb_StoreHeartbeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.class, org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int STATS_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.StoreStats stats_; /** * .pdpb.StoreStats stats = 2; */ public boolean hasStats() { return stats_ != null; } /** * .pdpb.StoreStats stats = 2; */ public org.tikv.kvproto.Pdpb.StoreStats getStats() { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } /** * .pdpb.StoreStats stats = 2; */ public org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder() { return getStats(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (stats_ != null) { output.writeMessage(2, getStats()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (stats_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStats()); } 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.Pdpb.StoreHeartbeatRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.StoreHeartbeatRequest other = (org.tikv.kvproto.Pdpb.StoreHeartbeatRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasStats() == other.hasStats()); if (hasStats()) { result = result && getStats() .equals(other.getStats()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest 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.Pdpb.StoreHeartbeatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest 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.Pdpb.StoreHeartbeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest 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.Pdpb.StoreHeartbeatRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest 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.Pdpb.StoreHeartbeatRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest 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.Pdpb.StoreHeartbeatRequest 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 pdpb.StoreHeartbeatRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.StoreHeartbeatRequest) org.tikv.kvproto.Pdpb.StoreHeartbeatRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.class, org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (statsBuilder_ == null) { stats_ = null; } else { stats_ = null; statsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatRequest_descriptor; } public org.tikv.kvproto.Pdpb.StoreHeartbeatRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.StoreHeartbeatRequest build() { org.tikv.kvproto.Pdpb.StoreHeartbeatRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.StoreHeartbeatRequest buildPartial() { org.tikv.kvproto.Pdpb.StoreHeartbeatRequest result = new org.tikv.kvproto.Pdpb.StoreHeartbeatRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (statsBuilder_ == null) { result.stats_ = stats_; } else { result.stats_ = statsBuilder_.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.Pdpb.StoreHeartbeatRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.StoreHeartbeatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.StoreHeartbeatRequest other) { if (other == org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasStats()) { mergeStats(other.getStats()); } 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.Pdpb.StoreHeartbeatRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.StoreHeartbeatRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Pdpb.StoreStats stats_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder> statsBuilder_; /** * .pdpb.StoreStats stats = 2; */ public boolean hasStats() { return statsBuilder_ != null || stats_ != null; } /** * .pdpb.StoreStats stats = 2; */ public org.tikv.kvproto.Pdpb.StoreStats getStats() { if (statsBuilder_ == null) { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } else { return statsBuilder_.getMessage(); } } /** * .pdpb.StoreStats stats = 2; */ public Builder setStats(org.tikv.kvproto.Pdpb.StoreStats value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stats_ = value; onChanged(); } else { statsBuilder_.setMessage(value); } return this; } /** * .pdpb.StoreStats stats = 2; */ public Builder setStats( org.tikv.kvproto.Pdpb.StoreStats.Builder builderForValue) { if (statsBuilder_ == null) { stats_ = builderForValue.build(); onChanged(); } else { statsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.StoreStats stats = 2; */ public Builder mergeStats(org.tikv.kvproto.Pdpb.StoreStats value) { if (statsBuilder_ == null) { if (stats_ != null) { stats_ = org.tikv.kvproto.Pdpb.StoreStats.newBuilder(stats_).mergeFrom(value).buildPartial(); } else { stats_ = value; } onChanged(); } else { statsBuilder_.mergeFrom(value); } return this; } /** * .pdpb.StoreStats stats = 2; */ public Builder clearStats() { if (statsBuilder_ == null) { stats_ = null; onChanged(); } else { stats_ = null; statsBuilder_ = null; } return this; } /** * .pdpb.StoreStats stats = 2; */ public org.tikv.kvproto.Pdpb.StoreStats.Builder getStatsBuilder() { onChanged(); return getStatsFieldBuilder().getBuilder(); } /** * .pdpb.StoreStats stats = 2; */ public org.tikv.kvproto.Pdpb.StoreStatsOrBuilder getStatsOrBuilder() { if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { return stats_ == null ? org.tikv.kvproto.Pdpb.StoreStats.getDefaultInstance() : stats_; } } /** * .pdpb.StoreStats stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.StoreStats, org.tikv.kvproto.Pdpb.StoreStats.Builder, org.tikv.kvproto.Pdpb.StoreStatsOrBuilder>( getStats(), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; } 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:pdpb.StoreHeartbeatRequest) } // @@protoc_insertion_point(class_scope:pdpb.StoreHeartbeatRequest) private static final org.tikv.kvproto.Pdpb.StoreHeartbeatRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.StoreHeartbeatRequest(); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StoreHeartbeatRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StoreHeartbeatRequest(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.Pdpb.StoreHeartbeatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoreHeartbeatResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.StoreHeartbeatResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ boolean hasReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus(); /** * .replication_modepb.ReplicationStatus replication_status = 2; */ replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder(); /** * string cluster_version = 3; */ java.lang.String getClusterVersion(); /** * string cluster_version = 3; */ com.google.protobuf.ByteString getClusterVersionBytes(); } /** * Protobuf type {@code pdpb.StoreHeartbeatResponse} */ public static final class StoreHeartbeatResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.StoreHeartbeatResponse) StoreHeartbeatResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StoreHeartbeatResponse.newBuilder() to construct. private StoreHeartbeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreHeartbeatResponse() { clusterVersion_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreHeartbeatResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { replication_modepb.ReplicationModepb.ReplicationStatus.Builder subBuilder = null; if (replicationStatus_ != null) { subBuilder = replicationStatus_.toBuilder(); } replicationStatus_ = input.readMessage(replication_modepb.ReplicationModepb.ReplicationStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationStatus_); replicationStatus_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); clusterVersion_ = 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.Pdpb.internal_static_pdpb_StoreHeartbeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.class, org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REPLICATION_STATUS_FIELD_NUMBER = 2; private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { return getReplicationStatus(); } public static final int CLUSTER_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object clusterVersion_; /** * string cluster_version = 3; */ public java.lang.String getClusterVersion() { java.lang.Object ref = clusterVersion_; 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(); clusterVersion_ = s; return s; } } /** * string cluster_version = 3; */ public com.google.protobuf.ByteString getClusterVersionBytes() { java.lang.Object ref = clusterVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterVersion_ = 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (replicationStatus_ != null) { output.writeMessage(2, getReplicationStatus()); } if (!getClusterVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (replicationStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReplicationStatus()); } if (!getClusterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterVersion_); } 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.Pdpb.StoreHeartbeatResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.StoreHeartbeatResponse other = (org.tikv.kvproto.Pdpb.StoreHeartbeatResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasReplicationStatus() == other.hasReplicationStatus()); if (hasReplicationStatus()) { result = result && getReplicationStatus() .equals(other.getReplicationStatus()); } result = result && getClusterVersion() .equals(other.getClusterVersion()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasReplicationStatus()) { hash = (37 * hash) + REPLICATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getReplicationStatus().hashCode(); } hash = (37 * hash) + CLUSTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getClusterVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse 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.Pdpb.StoreHeartbeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse 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.Pdpb.StoreHeartbeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse 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.Pdpb.StoreHeartbeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse 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.Pdpb.StoreHeartbeatResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse 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.Pdpb.StoreHeartbeatResponse 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 pdpb.StoreHeartbeatResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.StoreHeartbeatResponse) org.tikv.kvproto.Pdpb.StoreHeartbeatResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.class, org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (replicationStatusBuilder_ == null) { replicationStatus_ = null; } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } clusterVersion_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_StoreHeartbeatResponse_descriptor; } public org.tikv.kvproto.Pdpb.StoreHeartbeatResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.StoreHeartbeatResponse build() { org.tikv.kvproto.Pdpb.StoreHeartbeatResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.StoreHeartbeatResponse buildPartial() { org.tikv.kvproto.Pdpb.StoreHeartbeatResponse result = new org.tikv.kvproto.Pdpb.StoreHeartbeatResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (replicationStatusBuilder_ == null) { result.replicationStatus_ = replicationStatus_; } else { result.replicationStatus_ = replicationStatusBuilder_.build(); } result.clusterVersion_ = clusterVersion_; 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.Pdpb.StoreHeartbeatResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.StoreHeartbeatResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.StoreHeartbeatResponse other) { if (other == org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasReplicationStatus()) { mergeReplicationStatus(other.getReplicationStatus()); } if (!other.getClusterVersion().isEmpty()) { clusterVersion_ = other.clusterVersion_; 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.Pdpb.StoreHeartbeatResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.StoreHeartbeatResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private replication_modepb.ReplicationModepb.ReplicationStatus replicationStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> replicationStatusBuilder_; /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public boolean hasReplicationStatus() { return replicationStatusBuilder_ != null || replicationStatus_ != null; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus getReplicationStatus() { if (replicationStatusBuilder_ == null) { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } else { return replicationStatusBuilder_.getMessage(); } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationStatus_ = value; onChanged(); } else { replicationStatusBuilder_.setMessage(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder setReplicationStatus( replication_modepb.ReplicationModepb.ReplicationStatus.Builder builderForValue) { if (replicationStatusBuilder_ == null) { replicationStatus_ = builderForValue.build(); onChanged(); } else { replicationStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder mergeReplicationStatus(replication_modepb.ReplicationModepb.ReplicationStatus value) { if (replicationStatusBuilder_ == null) { if (replicationStatus_ != null) { replicationStatus_ = replication_modepb.ReplicationModepb.ReplicationStatus.newBuilder(replicationStatus_).mergeFrom(value).buildPartial(); } else { replicationStatus_ = value; } onChanged(); } else { replicationStatusBuilder_.mergeFrom(value); } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public Builder clearReplicationStatus() { if (replicationStatusBuilder_ == null) { replicationStatus_ = null; onChanged(); } else { replicationStatus_ = null; replicationStatusBuilder_ = null; } return this; } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatus.Builder getReplicationStatusBuilder() { onChanged(); return getReplicationStatusFieldBuilder().getBuilder(); } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ public replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder getReplicationStatusOrBuilder() { if (replicationStatusBuilder_ != null) { return replicationStatusBuilder_.getMessageOrBuilder(); } else { return replicationStatus_ == null ? replication_modepb.ReplicationModepb.ReplicationStatus.getDefaultInstance() : replicationStatus_; } } /** * .replication_modepb.ReplicationStatus replication_status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder> getReplicationStatusFieldBuilder() { if (replicationStatusBuilder_ == null) { replicationStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< replication_modepb.ReplicationModepb.ReplicationStatus, replication_modepb.ReplicationModepb.ReplicationStatus.Builder, replication_modepb.ReplicationModepb.ReplicationStatusOrBuilder>( getReplicationStatus(), getParentForChildren(), isClean()); replicationStatus_ = null; } return replicationStatusBuilder_; } private java.lang.Object clusterVersion_ = ""; /** * string cluster_version = 3; */ public java.lang.String getClusterVersion() { java.lang.Object ref = clusterVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cluster_version = 3; */ public com.google.protobuf.ByteString getClusterVersionBytes() { java.lang.Object ref = clusterVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cluster_version = 3; */ public Builder setClusterVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterVersion_ = value; onChanged(); return this; } /** * string cluster_version = 3; */ public Builder clearClusterVersion() { clusterVersion_ = getDefaultInstance().getClusterVersion(); onChanged(); return this; } /** * string cluster_version = 3; */ public Builder setClusterVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterVersion_ = 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:pdpb.StoreHeartbeatResponse) } // @@protoc_insertion_point(class_scope:pdpb.StoreHeartbeatResponse) private static final org.tikv.kvproto.Pdpb.StoreHeartbeatResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.StoreHeartbeatResponse(); } public static org.tikv.kvproto.Pdpb.StoreHeartbeatResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StoreHeartbeatResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StoreHeartbeatResponse(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.Pdpb.StoreHeartbeatResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScatterRegionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ScatterRegionRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 region_id = 2 [deprecated = true]; */ @java.lang.Deprecated long getRegionId(); /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ boolean hasRegion(); /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ org.tikv.kvproto.Metapb.Region getRegion(); /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * .metapb.Peer leader = 4; */ boolean hasLeader(); /** * .metapb.Peer leader = 4; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** * .metapb.Peer leader = 4; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); /** *
     * If group is defined, the regions with the same group would be scattered as a whole group.
     * If not defined, the regions would be scattered in a cluster level.
     * 
* * string group = 5; */ java.lang.String getGroup(); /** *
     * If group is defined, the regions with the same group would be scattered as a whole group.
     * If not defined, the regions would be scattered in a cluster level.
     * 
* * string group = 5; */ com.google.protobuf.ByteString getGroupBytes(); /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ java.util.List getRegionsIdList(); /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ int getRegionsIdCount(); /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ long getRegionsId(int index); /** * uint64 retry_limit = 7; */ long getRetryLimit(); } /** * Protobuf type {@code pdpb.ScatterRegionRequest} */ public static final class ScatterRegionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ScatterRegionRequest) ScatterRegionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ScatterRegionRequest.newBuilder() to construct. private ScatterRegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScatterRegionRequest() { regionId_ = 0L; group_ = ""; regionsId_ = java.util.Collections.emptyList(); retryLimit_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScatterRegionRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { regionId_ = input.readUInt64(); break; } case 26: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); group_ = s; break; } case 48: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { regionsId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } regionsId_.add(input.readUInt64()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { regionsId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { regionsId_.add(input.readUInt64()); } input.popLimit(limit); break; } case 56: { retryLimit_ = 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_ & 0x00000020) == 0x00000020)) { regionsId_ = java.util.Collections.unmodifiableList(regionsId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScatterRegionRequest.class, org.tikv.kvproto.Pdpb.ScatterRegionRequest.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** * uint64 region_id = 2 [deprecated = true]; */ @java.lang.Deprecated public long getRegionId() { return regionId_; } public static final int REGION_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Region region_; /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ public boolean hasRegion() { return region_ != null; } /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** *
     * PD will use these region information if it can't find the region.
     * For example, the region is just split and hasn't report to PD yet.
     * 
* * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int LEADER_FIELD_NUMBER = 4; private org.tikv.kvproto.Metapb.Peer leader_; /** * .metapb.Peer leader = 4; */ public boolean hasLeader() { return leader_ != null; } /** * .metapb.Peer leader = 4; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** * .metapb.Peer leader = 4; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } public static final int GROUP_FIELD_NUMBER = 5; private volatile java.lang.Object group_; /** *
     * If group is defined, the regions with the same group would be scattered as a whole group.
     * If not defined, the regions would be scattered in a cluster level.
     * 
* * string group = 5; */ public java.lang.String getGroup() { java.lang.Object ref = group_; 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(); group_ = s; return s; } } /** *
     * If group is defined, the regions with the same group would be scattered as a whole group.
     * If not defined, the regions would be scattered in a cluster level.
     * 
* * string group = 5; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGIONS_ID_FIELD_NUMBER = 6; private java.util.List regionsId_; /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ public java.util.List getRegionsIdList() { return regionsId_; } /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ public int getRegionsIdCount() { return regionsId_.size(); } /** *
     * If regions_id is defined, the region_id would be ignored.
     * 
* * repeated uint64 regions_id = 6; */ public long getRegionsId(int index) { return regionsId_.get(index); } private int regionsIdMemoizedSerializedSize = -1; public static final int RETRY_LIMIT_FIELD_NUMBER = 7; private long retryLimit_; /** * uint64 retry_limit = 7; */ public long getRetryLimit() { return retryLimit_; } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } if (region_ != null) { output.writeMessage(3, getRegion()); } if (leader_ != null) { output.writeMessage(4, getLeader()); } if (!getGroupBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, group_); } if (getRegionsIdList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(regionsIdMemoizedSerializedSize); } for (int i = 0; i < regionsId_.size(); i++) { output.writeUInt64NoTag(regionsId_.get(i)); } if (retryLimit_ != 0L) { output.writeUInt64(7, retryLimit_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegion()); } if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLeader()); } if (!getGroupBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, group_); } { int dataSize = 0; for (int i = 0; i < regionsId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(regionsId_.get(i)); } size += dataSize; if (!getRegionsIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } regionsIdMemoizedSerializedSize = dataSize; } if (retryLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, retryLimit_); } 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.Pdpb.ScatterRegionRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ScatterRegionRequest other = (org.tikv.kvproto.Pdpb.ScatterRegionRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } result = result && getGroup() .equals(other.getGroup()); result = result && getRegionsIdList() .equals(other.getRegionsIdList()); result = result && (getRetryLimit() == other.getRetryLimit()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroup().hashCode(); if (getRegionsIdCount() > 0) { hash = (37 * hash) + REGIONS_ID_FIELD_NUMBER; hash = (53 * hash) + getRegionsIdList().hashCode(); } hash = (37 * hash) + RETRY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRetryLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest 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.Pdpb.ScatterRegionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest 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.Pdpb.ScatterRegionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest 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.Pdpb.ScatterRegionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest 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.Pdpb.ScatterRegionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest 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.Pdpb.ScatterRegionRequest 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 pdpb.ScatterRegionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ScatterRegionRequest) org.tikv.kvproto.Pdpb.ScatterRegionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScatterRegionRequest.class, org.tikv.kvproto.Pdpb.ScatterRegionRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ScatterRegionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionId_ = 0L; if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } group_ = ""; regionsId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); retryLimit_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionRequest_descriptor; } public org.tikv.kvproto.Pdpb.ScatterRegionRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ScatterRegionRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ScatterRegionRequest build() { org.tikv.kvproto.Pdpb.ScatterRegionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ScatterRegionRequest buildPartial() { org.tikv.kvproto.Pdpb.ScatterRegionRequest result = new org.tikv.kvproto.Pdpb.ScatterRegionRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionId_ = regionId_; if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.build(); } result.group_ = group_; if (((bitField0_ & 0x00000020) == 0x00000020)) { regionsId_ = java.util.Collections.unmodifiableList(regionsId_); bitField0_ = (bitField0_ & ~0x00000020); } result.regionsId_ = regionsId_; result.retryLimit_ = retryLimit_; 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.Pdpb.ScatterRegionRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.ScatterRegionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ScatterRegionRequest other) { if (other == org.tikv.kvproto.Pdpb.ScatterRegionRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasLeader()) { mergeLeader(other.getLeader()); } if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); } if (!other.regionsId_.isEmpty()) { if (regionsId_.isEmpty()) { regionsId_ = other.regionsId_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRegionsIdIsMutable(); regionsId_.addAll(other.regionsId_); } onChanged(); } if (other.getRetryLimit() != 0L) { setRetryLimit(other.getRetryLimit()); } 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.Pdpb.ScatterRegionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ScatterRegionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long regionId_ ; /** * uint64 region_id = 2 [deprecated = true]; */ @java.lang.Deprecated public long getRegionId() { return regionId_; } /** * uint64 region_id = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** *
       * PD will use these region information if it can't find the region.
       * For example, the region is just split and hasn't report to PD yet.
       * 
* * .metapb.Region region = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** * .metapb.Peer leader = 4; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .metapb.Peer leader = 4; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .metapb.Peer leader = 4; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .metapb.Peer leader = 4; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer leader = 4; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer leader = 4; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .metapb.Peer leader = 4; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .metapb.Peer leader = 4; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** * .metapb.Peer leader = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } private java.lang.Object group_ = ""; /** *
       * If group is defined, the regions with the same group would be scattered as a whole group.
       * If not defined, the regions would be scattered in a cluster level.
       * 
* * string group = 5; */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * If group is defined, the regions with the same group would be scattered as a whole group.
       * If not defined, the regions would be scattered in a cluster level.
       * 
* * string group = 5; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If group is defined, the regions with the same group would be scattered as a whole group.
       * If not defined, the regions would be scattered in a cluster level.
       * 
* * string group = 5; */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } group_ = value; onChanged(); return this; } /** *
       * If group is defined, the regions with the same group would be scattered as a whole group.
       * If not defined, the regions would be scattered in a cluster level.
       * 
* * string group = 5; */ public Builder clearGroup() { group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** *
       * If group is defined, the regions with the same group would be scattered as a whole group.
       * If not defined, the regions would be scattered in a cluster level.
       * 
* * string group = 5; */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); group_ = value; onChanged(); return this; } private java.util.List regionsId_ = java.util.Collections.emptyList(); private void ensureRegionsIdIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { regionsId_ = new java.util.ArrayList(regionsId_); bitField0_ |= 0x00000020; } } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public java.util.List getRegionsIdList() { return java.util.Collections.unmodifiableList(regionsId_); } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public int getRegionsIdCount() { return regionsId_.size(); } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public long getRegionsId(int index) { return regionsId_.get(index); } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public Builder setRegionsId( int index, long value) { ensureRegionsIdIsMutable(); regionsId_.set(index, value); onChanged(); return this; } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public Builder addRegionsId(long value) { ensureRegionsIdIsMutable(); regionsId_.add(value); onChanged(); return this; } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public Builder addAllRegionsId( java.lang.Iterable values) { ensureRegionsIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regionsId_); onChanged(); return this; } /** *
       * If regions_id is defined, the region_id would be ignored.
       * 
* * repeated uint64 regions_id = 6; */ public Builder clearRegionsId() { regionsId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private long retryLimit_ ; /** * uint64 retry_limit = 7; */ public long getRetryLimit() { return retryLimit_; } /** * uint64 retry_limit = 7; */ public Builder setRetryLimit(long value) { retryLimit_ = value; onChanged(); return this; } /** * uint64 retry_limit = 7; */ public Builder clearRetryLimit() { retryLimit_ = 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:pdpb.ScatterRegionRequest) } // @@protoc_insertion_point(class_scope:pdpb.ScatterRegionRequest) private static final org.tikv.kvproto.Pdpb.ScatterRegionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ScatterRegionRequest(); } public static org.tikv.kvproto.Pdpb.ScatterRegionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScatterRegionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScatterRegionRequest(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.Pdpb.ScatterRegionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScatterRegionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.ScatterRegionResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 finished_percentage = 2; */ long getFinishedPercentage(); } /** * Protobuf type {@code pdpb.ScatterRegionResponse} */ public static final class ScatterRegionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.ScatterRegionResponse) ScatterRegionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ScatterRegionResponse.newBuilder() to construct. private ScatterRegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScatterRegionResponse() { finishedPercentage_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScatterRegionResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { finishedPercentage_ = 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.Pdpb.internal_static_pdpb_ScatterRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScatterRegionResponse.class, org.tikv.kvproto.Pdpb.ScatterRegionResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int FINISHED_PERCENTAGE_FIELD_NUMBER = 2; private long finishedPercentage_; /** * uint64 finished_percentage = 2; */ public long getFinishedPercentage() { return finishedPercentage_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (finishedPercentage_ != 0L) { output.writeUInt64(2, finishedPercentage_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (finishedPercentage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, finishedPercentage_); } 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.Pdpb.ScatterRegionResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.ScatterRegionResponse other = (org.tikv.kvproto.Pdpb.ScatterRegionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getFinishedPercentage() == other.getFinishedPercentage()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + FINISHED_PERCENTAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFinishedPercentage()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse 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.Pdpb.ScatterRegionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse 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.Pdpb.ScatterRegionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse 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.Pdpb.ScatterRegionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse 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.Pdpb.ScatterRegionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse 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.Pdpb.ScatterRegionResponse 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 pdpb.ScatterRegionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.ScatterRegionResponse) org.tikv.kvproto.Pdpb.ScatterRegionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.ScatterRegionResponse.class, org.tikv.kvproto.Pdpb.ScatterRegionResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.ScatterRegionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } finishedPercentage_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_ScatterRegionResponse_descriptor; } public org.tikv.kvproto.Pdpb.ScatterRegionResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.ScatterRegionResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.ScatterRegionResponse build() { org.tikv.kvproto.Pdpb.ScatterRegionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.ScatterRegionResponse buildPartial() { org.tikv.kvproto.Pdpb.ScatterRegionResponse result = new org.tikv.kvproto.Pdpb.ScatterRegionResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.finishedPercentage_ = finishedPercentage_; 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.Pdpb.ScatterRegionResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.ScatterRegionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.ScatterRegionResponse other) { if (other == org.tikv.kvproto.Pdpb.ScatterRegionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getFinishedPercentage() != 0L) { setFinishedPercentage(other.getFinishedPercentage()); } 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.Pdpb.ScatterRegionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.ScatterRegionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long finishedPercentage_ ; /** * uint64 finished_percentage = 2; */ public long getFinishedPercentage() { return finishedPercentage_; } /** * uint64 finished_percentage = 2; */ public Builder setFinishedPercentage(long value) { finishedPercentage_ = value; onChanged(); return this; } /** * uint64 finished_percentage = 2; */ public Builder clearFinishedPercentage() { finishedPercentage_ = 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:pdpb.ScatterRegionResponse) } // @@protoc_insertion_point(class_scope:pdpb.ScatterRegionResponse) private static final org.tikv.kvproto.Pdpb.ScatterRegionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.ScatterRegionResponse(); } public static org.tikv.kvproto.Pdpb.ScatterRegionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScatterRegionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScatterRegionResponse(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.Pdpb.ScatterRegionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetGCSafePointRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetGCSafePointRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); } /** * Protobuf type {@code pdpb.GetGCSafePointRequest} */ public static final class GetGCSafePointRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetGCSafePointRequest) GetGCSafePointRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetGCSafePointRequest.newBuilder() to construct. private GetGCSafePointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetGCSafePointRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetGCSafePointRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_GetGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetGCSafePointRequest.class, org.tikv.kvproto.Pdpb.GetGCSafePointRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } 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.Pdpb.GetGCSafePointRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetGCSafePointRequest other = (org.tikv.kvproto.Pdpb.GetGCSafePointRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest 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.Pdpb.GetGCSafePointRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest 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.Pdpb.GetGCSafePointRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest 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.Pdpb.GetGCSafePointRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest 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.Pdpb.GetGCSafePointRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest 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.Pdpb.GetGCSafePointRequest 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 pdpb.GetGCSafePointRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetGCSafePointRequest) org.tikv.kvproto.Pdpb.GetGCSafePointRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetGCSafePointRequest.class, org.tikv.kvproto.Pdpb.GetGCSafePointRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetGCSafePointRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetGCSafePointRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetGCSafePointRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetGCSafePointRequest build() { org.tikv.kvproto.Pdpb.GetGCSafePointRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetGCSafePointRequest buildPartial() { org.tikv.kvproto.Pdpb.GetGCSafePointRequest result = new org.tikv.kvproto.Pdpb.GetGCSafePointRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.GetGCSafePointRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetGCSafePointRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetGCSafePointRequest other) { if (other == org.tikv.kvproto.Pdpb.GetGCSafePointRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.GetGCSafePointRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetGCSafePointRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.GetGCSafePointRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetGCSafePointRequest) private static final org.tikv.kvproto.Pdpb.GetGCSafePointRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetGCSafePointRequest(); } public static org.tikv.kvproto.Pdpb.GetGCSafePointRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetGCSafePointRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetGCSafePointRequest(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.Pdpb.GetGCSafePointRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetGCSafePointResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetGCSafePointResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 safe_point = 2; */ long getSafePoint(); } /** * Protobuf type {@code pdpb.GetGCSafePointResponse} */ public static final class GetGCSafePointResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetGCSafePointResponse) GetGCSafePointResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetGCSafePointResponse.newBuilder() to construct. private GetGCSafePointResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetGCSafePointResponse() { safePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetGCSafePointResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_GetGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetGCSafePointResponse.class, org.tikv.kvproto.Pdpb.GetGCSafePointResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (safePoint_ != 0L) { output.writeUInt64(2, safePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (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.Pdpb.GetGCSafePointResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetGCSafePointResponse other = (org.tikv.kvproto.Pdpb.GetGCSafePointResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().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.Pdpb.GetGCSafePointResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse 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.Pdpb.GetGCSafePointResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse 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.Pdpb.GetGCSafePointResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse 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.Pdpb.GetGCSafePointResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse 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.Pdpb.GetGCSafePointResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse 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.Pdpb.GetGCSafePointResponse 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 pdpb.GetGCSafePointResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetGCSafePointResponse) org.tikv.kvproto.Pdpb.GetGCSafePointResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetGCSafePointResponse.class, org.tikv.kvproto.Pdpb.GetGCSafePointResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetGCSafePointResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } safePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetGCSafePointResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetGCSafePointResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetGCSafePointResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetGCSafePointResponse build() { org.tikv.kvproto.Pdpb.GetGCSafePointResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetGCSafePointResponse buildPartial() { org.tikv.kvproto.Pdpb.GetGCSafePointResponse result = new org.tikv.kvproto.Pdpb.GetGCSafePointResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.GetGCSafePointResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetGCSafePointResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetGCSafePointResponse other) { if (other == org.tikv.kvproto.Pdpb.GetGCSafePointResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.GetGCSafePointResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetGCSafePointResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.GetGCSafePointResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetGCSafePointResponse) private static final org.tikv.kvproto.Pdpb.GetGCSafePointResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetGCSafePointResponse(); } public static org.tikv.kvproto.Pdpb.GetGCSafePointResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetGCSafePointResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetGCSafePointResponse(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.Pdpb.GetGCSafePointResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateGCSafePointRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.UpdateGCSafePointRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 safe_point = 2; */ long getSafePoint(); } /** * Protobuf type {@code pdpb.UpdateGCSafePointRequest} */ public static final class UpdateGCSafePointRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.UpdateGCSafePointRequest) UpdateGCSafePointRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateGCSafePointRequest.newBuilder() to construct. private UpdateGCSafePointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateGCSafePointRequest() { safePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateGCSafePointRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = 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.Pdpb.internal_static_pdpb_UpdateGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.class, org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (safePoint_ != 0L) { output.writeUInt64(2, safePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (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.Pdpb.UpdateGCSafePointRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest other = (org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().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.Pdpb.UpdateGCSafePointRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest 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.Pdpb.UpdateGCSafePointRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest 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.Pdpb.UpdateGCSafePointRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest 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.Pdpb.UpdateGCSafePointRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest 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.Pdpb.UpdateGCSafePointRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest 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.Pdpb.UpdateGCSafePointRequest 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 pdpb.UpdateGCSafePointRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.UpdateGCSafePointRequest) org.tikv.kvproto.Pdpb.UpdateGCSafePointRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.class, org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } safePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointRequest_descriptor; } public org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest build() { org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest buildPartial() { org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest result = new org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.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.Pdpb.UpdateGCSafePointRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest other) { if (other == org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } 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.Pdpb.UpdateGCSafePointRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } 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:pdpb.UpdateGCSafePointRequest) } // @@protoc_insertion_point(class_scope:pdpb.UpdateGCSafePointRequest) private static final org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest(); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateGCSafePointRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateGCSafePointRequest(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.Pdpb.UpdateGCSafePointRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateGCSafePointResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.UpdateGCSafePointResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 new_safe_point = 2; */ long getNewSafePoint(); } /** * Protobuf type {@code pdpb.UpdateGCSafePointResponse} */ public static final class UpdateGCSafePointResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.UpdateGCSafePointResponse) UpdateGCSafePointResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateGCSafePointResponse.newBuilder() to construct. private UpdateGCSafePointResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateGCSafePointResponse() { newSafePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateGCSafePointResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { newSafePoint_ = 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.Pdpb.internal_static_pdpb_UpdateGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.class, org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int NEW_SAFE_POINT_FIELD_NUMBER = 2; private long newSafePoint_; /** * uint64 new_safe_point = 2; */ public long getNewSafePoint() { return newSafePoint_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (newSafePoint_ != 0L) { output.writeUInt64(2, newSafePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (newSafePoint_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, newSafePoint_); } 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.Pdpb.UpdateGCSafePointResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse other = (org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getNewSafePoint() == other.getNewSafePoint()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + NEW_SAFE_POINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewSafePoint()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse 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.Pdpb.UpdateGCSafePointResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse 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.Pdpb.UpdateGCSafePointResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse 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.Pdpb.UpdateGCSafePointResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse 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.Pdpb.UpdateGCSafePointResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse 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.Pdpb.UpdateGCSafePointResponse 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 pdpb.UpdateGCSafePointResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.UpdateGCSafePointResponse) org.tikv.kvproto.Pdpb.UpdateGCSafePointResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.class, org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } newSafePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateGCSafePointResponse_descriptor; } public org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse build() { org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse buildPartial() { org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse result = new org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.newSafePoint_ = newSafePoint_; 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.Pdpb.UpdateGCSafePointResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse other) { if (other == org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getNewSafePoint() != 0L) { setNewSafePoint(other.getNewSafePoint()); } 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.Pdpb.UpdateGCSafePointResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long newSafePoint_ ; /** * uint64 new_safe_point = 2; */ public long getNewSafePoint() { return newSafePoint_; } /** * uint64 new_safe_point = 2; */ public Builder setNewSafePoint(long value) { newSafePoint_ = value; onChanged(); return this; } /** * uint64 new_safe_point = 2; */ public Builder clearNewSafePoint() { newSafePoint_ = 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:pdpb.UpdateGCSafePointResponse) } // @@protoc_insertion_point(class_scope:pdpb.UpdateGCSafePointResponse) private static final org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse(); } public static org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateGCSafePointResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateGCSafePointResponse(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.Pdpb.UpdateGCSafePointResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateServiceGCSafePointRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.UpdateServiceGCSafePointRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * bytes service_id = 2; */ com.google.protobuf.ByteString getServiceId(); /** * int64 TTL = 3; */ long getTTL(); /** * uint64 safe_point = 4; */ long getSafePoint(); } /** * Protobuf type {@code pdpb.UpdateServiceGCSafePointRequest} */ public static final class UpdateServiceGCSafePointRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.UpdateServiceGCSafePointRequest) UpdateServiceGCSafePointRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateServiceGCSafePointRequest.newBuilder() to construct. private UpdateServiceGCSafePointRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateServiceGCSafePointRequest() { serviceId_ = com.google.protobuf.ByteString.EMPTY; tTL_ = 0L; safePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateServiceGCSafePointRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { serviceId_ = input.readBytes(); break; } case 24: { tTL_ = input.readInt64(); break; } case 32: { 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.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.class, org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int SERVICE_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString serviceId_; /** * bytes service_id = 2; */ public com.google.protobuf.ByteString getServiceId() { return serviceId_; } public static final int TTL_FIELD_NUMBER = 3; private long tTL_; /** * int64 TTL = 3; */ public long getTTL() { return tTL_; } public static final int SAFE_POINT_FIELD_NUMBER = 4; private long safePoint_; /** * uint64 safe_point = 4; */ 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (!serviceId_.isEmpty()) { output.writeBytes(2, serviceId_); } if (tTL_ != 0L) { output.writeInt64(3, tTL_); } if (safePoint_ != 0L) { output.writeUInt64(4, safePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!serviceId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, serviceId_); } if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tTL_); } if (safePoint_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, 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.Pdpb.UpdateServiceGCSafePointRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest other = (org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getServiceId() .equals(other.getServiceId()); result = result && (getTTL() == other.getTTL()); 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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceId().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); 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.Pdpb.UpdateServiceGCSafePointRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest 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.Pdpb.UpdateServiceGCSafePointRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest 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.Pdpb.UpdateServiceGCSafePointRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest 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.Pdpb.UpdateServiceGCSafePointRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest 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.Pdpb.UpdateServiceGCSafePointRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest 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.Pdpb.UpdateServiceGCSafePointRequest 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 pdpb.UpdateServiceGCSafePointRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.UpdateServiceGCSafePointRequest) org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.class, org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } serviceId_ = com.google.protobuf.ByteString.EMPTY; tTL_ = 0L; safePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor; } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest build() { org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest buildPartial() { org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest result = new org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.serviceId_ = serviceId_; result.tTL_ = tTL_; 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.Pdpb.UpdateServiceGCSafePointRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest other) { if (other == org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getServiceId() != com.google.protobuf.ByteString.EMPTY) { setServiceId(other.getServiceId()); } if (other.getTTL() != 0L) { setTTL(other.getTTL()); } 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.Pdpb.UpdateServiceGCSafePointRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.ByteString serviceId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes service_id = 2; */ public com.google.protobuf.ByteString getServiceId() { return serviceId_; } /** * bytes service_id = 2; */ public Builder setServiceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } serviceId_ = value; onChanged(); return this; } /** * bytes service_id = 2; */ public Builder clearServiceId() { serviceId_ = getDefaultInstance().getServiceId(); onChanged(); return this; } private long tTL_ ; /** * int64 TTL = 3; */ public long getTTL() { return tTL_; } /** * int64 TTL = 3; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** * int64 TTL = 3; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } private long safePoint_ ; /** * uint64 safe_point = 4; */ public long getSafePoint() { return safePoint_; } /** * uint64 safe_point = 4; */ public Builder setSafePoint(long value) { safePoint_ = value; onChanged(); return this; } /** * uint64 safe_point = 4; */ 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:pdpb.UpdateServiceGCSafePointRequest) } // @@protoc_insertion_point(class_scope:pdpb.UpdateServiceGCSafePointRequest) private static final org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest(); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateServiceGCSafePointRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateServiceGCSafePointRequest(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.Pdpb.UpdateServiceGCSafePointRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateServiceGCSafePointResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.UpdateServiceGCSafePointResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * bytes service_id = 2; */ com.google.protobuf.ByteString getServiceId(); /** * int64 TTL = 3; */ long getTTL(); /** * uint64 min_safe_point = 4; */ long getMinSafePoint(); } /** * Protobuf type {@code pdpb.UpdateServiceGCSafePointResponse} */ public static final class UpdateServiceGCSafePointResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.UpdateServiceGCSafePointResponse) UpdateServiceGCSafePointResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateServiceGCSafePointResponse.newBuilder() to construct. private UpdateServiceGCSafePointResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateServiceGCSafePointResponse() { serviceId_ = com.google.protobuf.ByteString.EMPTY; tTL_ = 0L; minSafePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateServiceGCSafePointResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { serviceId_ = input.readBytes(); break; } case 24: { tTL_ = input.readInt64(); break; } case 32: { minSafePoint_ = 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.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.class, org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int SERVICE_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString serviceId_; /** * bytes service_id = 2; */ public com.google.protobuf.ByteString getServiceId() { return serviceId_; } public static final int TTL_FIELD_NUMBER = 3; private long tTL_; /** * int64 TTL = 3; */ public long getTTL() { return tTL_; } public static final int MIN_SAFE_POINT_FIELD_NUMBER = 4; private long minSafePoint_; /** * uint64 min_safe_point = 4; */ public long getMinSafePoint() { return minSafePoint_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!serviceId_.isEmpty()) { output.writeBytes(2, serviceId_); } if (tTL_ != 0L) { output.writeInt64(3, tTL_); } if (minSafePoint_ != 0L) { output.writeUInt64(4, minSafePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!serviceId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, serviceId_); } if (tTL_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, tTL_); } if (minSafePoint_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, minSafePoint_); } 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.Pdpb.UpdateServiceGCSafePointResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse other = (org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getServiceId() .equals(other.getServiceId()); result = result && (getTTL() == other.getTTL()); result = result && (getMinSafePoint() == other.getMinSafePoint()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceId().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTTL()); hash = (37 * hash) + MIN_SAFE_POINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinSafePoint()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse 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.Pdpb.UpdateServiceGCSafePointResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse 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.Pdpb.UpdateServiceGCSafePointResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse 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.Pdpb.UpdateServiceGCSafePointResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse 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.Pdpb.UpdateServiceGCSafePointResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse 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.Pdpb.UpdateServiceGCSafePointResponse 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 pdpb.UpdateServiceGCSafePointResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.UpdateServiceGCSafePointResponse) org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.class, org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } serviceId_ = com.google.protobuf.ByteString.EMPTY; tTL_ = 0L; minSafePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor; } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse build() { org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse buildPartial() { org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse result = new org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.serviceId_ = serviceId_; result.tTL_ = tTL_; result.minSafePoint_ = minSafePoint_; 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.Pdpb.UpdateServiceGCSafePointResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse other) { if (other == org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getServiceId() != com.google.protobuf.ByteString.EMPTY) { setServiceId(other.getServiceId()); } if (other.getTTL() != 0L) { setTTL(other.getTTL()); } if (other.getMinSafePoint() != 0L) { setMinSafePoint(other.getMinSafePoint()); } 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.Pdpb.UpdateServiceGCSafePointResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.google.protobuf.ByteString serviceId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes service_id = 2; */ public com.google.protobuf.ByteString getServiceId() { return serviceId_; } /** * bytes service_id = 2; */ public Builder setServiceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } serviceId_ = value; onChanged(); return this; } /** * bytes service_id = 2; */ public Builder clearServiceId() { serviceId_ = getDefaultInstance().getServiceId(); onChanged(); return this; } private long tTL_ ; /** * int64 TTL = 3; */ public long getTTL() { return tTL_; } /** * int64 TTL = 3; */ public Builder setTTL(long value) { tTL_ = value; onChanged(); return this; } /** * int64 TTL = 3; */ public Builder clearTTL() { tTL_ = 0L; onChanged(); return this; } private long minSafePoint_ ; /** * uint64 min_safe_point = 4; */ public long getMinSafePoint() { return minSafePoint_; } /** * uint64 min_safe_point = 4; */ public Builder setMinSafePoint(long value) { minSafePoint_ = value; onChanged(); return this; } /** * uint64 min_safe_point = 4; */ public Builder clearMinSafePoint() { minSafePoint_ = 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:pdpb.UpdateServiceGCSafePointResponse) } // @@protoc_insertion_point(class_scope:pdpb.UpdateServiceGCSafePointResponse) private static final org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse(); } public static org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UpdateServiceGCSafePointResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateServiceGCSafePointResponse(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.Pdpb.UpdateServiceGCSafePointResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionStatOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.RegionStat) com.google.protobuf.MessageOrBuilder { /** *
     * Bytes read/written during this period.
     * 
* * uint64 bytes_written = 1; */ long getBytesWritten(); /** * uint64 bytes_read = 2; */ long getBytesRead(); /** *
     * Keys read/written during this period.
     * 
* * uint64 keys_written = 3; */ long getKeysWritten(); /** * uint64 keys_read = 4; */ long getKeysRead(); } /** * Protobuf type {@code pdpb.RegionStat} */ public static final class RegionStat extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.RegionStat) RegionStatOrBuilder { private static final long serialVersionUID = 0L; // Use RegionStat.newBuilder() to construct. private RegionStat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionStat() { bytesWritten_ = 0L; bytesRead_ = 0L; keysWritten_ = 0L; keysRead_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionStat( 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: { bytesWritten_ = input.readUInt64(); break; } case 16: { bytesRead_ = input.readUInt64(); break; } case 24: { keysWritten_ = input.readUInt64(); break; } case 32: { keysRead_ = 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.Pdpb.internal_static_pdpb_RegionStat_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionStat_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionStat.class, org.tikv.kvproto.Pdpb.RegionStat.Builder.class); } public static final int BYTES_WRITTEN_FIELD_NUMBER = 1; private long bytesWritten_; /** *
     * Bytes read/written during this period.
     * 
* * uint64 bytes_written = 1; */ public long getBytesWritten() { return bytesWritten_; } public static final int BYTES_READ_FIELD_NUMBER = 2; private long bytesRead_; /** * uint64 bytes_read = 2; */ public long getBytesRead() { return bytesRead_; } public static final int KEYS_WRITTEN_FIELD_NUMBER = 3; private long keysWritten_; /** *
     * Keys read/written during this period.
     * 
* * uint64 keys_written = 3; */ public long getKeysWritten() { return keysWritten_; } public static final int KEYS_READ_FIELD_NUMBER = 4; private long keysRead_; /** * uint64 keys_read = 4; */ public long getKeysRead() { return keysRead_; } 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 (bytesWritten_ != 0L) { output.writeUInt64(1, bytesWritten_); } if (bytesRead_ != 0L) { output.writeUInt64(2, bytesRead_); } if (keysWritten_ != 0L) { output.writeUInt64(3, keysWritten_); } if (keysRead_ != 0L) { output.writeUInt64(4, keysRead_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (bytesWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, bytesWritten_); } if (bytesRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, bytesRead_); } if (keysWritten_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, keysWritten_); } if (keysRead_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, keysRead_); } 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.Pdpb.RegionStat)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.RegionStat other = (org.tikv.kvproto.Pdpb.RegionStat) obj; boolean result = true; result = result && (getBytesWritten() == other.getBytesWritten()); result = result && (getBytesRead() == other.getBytesRead()); result = result && (getKeysWritten() == other.getKeysWritten()); result = result && (getKeysRead() == other.getKeysRead()); 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) + BYTES_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesWritten()); hash = (37 * hash) + BYTES_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesRead()); hash = (37 * hash) + KEYS_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysWritten()); hash = (37 * hash) + KEYS_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeysRead()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.RegionStat parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionStat 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.Pdpb.RegionStat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionStat 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.Pdpb.RegionStat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.RegionStat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.RegionStat parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionStat 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.Pdpb.RegionStat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionStat 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.Pdpb.RegionStat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.RegionStat 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.Pdpb.RegionStat 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 pdpb.RegionStat} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.RegionStat) org.tikv.kvproto.Pdpb.RegionStatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionStat_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionStat_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.RegionStat.class, org.tikv.kvproto.Pdpb.RegionStat.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.RegionStat.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(); bytesWritten_ = 0L; bytesRead_ = 0L; keysWritten_ = 0L; keysRead_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_RegionStat_descriptor; } public org.tikv.kvproto.Pdpb.RegionStat getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.RegionStat.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.RegionStat build() { org.tikv.kvproto.Pdpb.RegionStat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.RegionStat buildPartial() { org.tikv.kvproto.Pdpb.RegionStat result = new org.tikv.kvproto.Pdpb.RegionStat(this); result.bytesWritten_ = bytesWritten_; result.bytesRead_ = bytesRead_; result.keysWritten_ = keysWritten_; result.keysRead_ = keysRead_; 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.Pdpb.RegionStat) { return mergeFrom((org.tikv.kvproto.Pdpb.RegionStat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.RegionStat other) { if (other == org.tikv.kvproto.Pdpb.RegionStat.getDefaultInstance()) return this; if (other.getBytesWritten() != 0L) { setBytesWritten(other.getBytesWritten()); } if (other.getBytesRead() != 0L) { setBytesRead(other.getBytesRead()); } if (other.getKeysWritten() != 0L) { setKeysWritten(other.getKeysWritten()); } if (other.getKeysRead() != 0L) { setKeysRead(other.getKeysRead()); } 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.Pdpb.RegionStat parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.RegionStat) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long bytesWritten_ ; /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 1; */ public long getBytesWritten() { return bytesWritten_; } /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 1; */ public Builder setBytesWritten(long value) { bytesWritten_ = value; onChanged(); return this; } /** *
       * Bytes read/written during this period.
       * 
* * uint64 bytes_written = 1; */ public Builder clearBytesWritten() { bytesWritten_ = 0L; onChanged(); return this; } private long bytesRead_ ; /** * uint64 bytes_read = 2; */ public long getBytesRead() { return bytesRead_; } /** * uint64 bytes_read = 2; */ public Builder setBytesRead(long value) { bytesRead_ = value; onChanged(); return this; } /** * uint64 bytes_read = 2; */ public Builder clearBytesRead() { bytesRead_ = 0L; onChanged(); return this; } private long keysWritten_ ; /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 3; */ public long getKeysWritten() { return keysWritten_; } /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 3; */ public Builder setKeysWritten(long value) { keysWritten_ = value; onChanged(); return this; } /** *
       * Keys read/written during this period.
       * 
* * uint64 keys_written = 3; */ public Builder clearKeysWritten() { keysWritten_ = 0L; onChanged(); return this; } private long keysRead_ ; /** * uint64 keys_read = 4; */ public long getKeysRead() { return keysRead_; } /** * uint64 keys_read = 4; */ public Builder setKeysRead(long value) { keysRead_ = value; onChanged(); return this; } /** * uint64 keys_read = 4; */ public Builder clearKeysRead() { keysRead_ = 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:pdpb.RegionStat) } // @@protoc_insertion_point(class_scope:pdpb.RegionStat) private static final org.tikv.kvproto.Pdpb.RegionStat DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.RegionStat(); } public static org.tikv.kvproto.Pdpb.RegionStat getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionStat parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionStat(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.Pdpb.RegionStat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SyncRegionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SyncRegionRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .pdpb.Member member = 2; */ boolean hasMember(); /** * .pdpb.Member member = 2; */ org.tikv.kvproto.Pdpb.Member getMember(); /** * .pdpb.Member member = 2; */ org.tikv.kvproto.Pdpb.MemberOrBuilder getMemberOrBuilder(); /** *
     * the follower PD will use the start index to locate historical changes
     * that require synchronization.
     * 
* * uint64 start_index = 3; */ long getStartIndex(); } /** * Protobuf type {@code pdpb.SyncRegionRequest} */ public static final class SyncRegionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SyncRegionRequest) SyncRegionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SyncRegionRequest.newBuilder() to construct. private SyncRegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SyncRegionRequest() { startIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SyncRegionRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Pdpb.Member.Builder subBuilder = null; if (member_ != null) { subBuilder = member_.toBuilder(); } member_ = input.readMessage(org.tikv.kvproto.Pdpb.Member.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(member_); member_ = subBuilder.buildPartial(); } break; } case 24: { startIndex_ = 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.Pdpb.internal_static_pdpb_SyncRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncRegionRequest.class, org.tikv.kvproto.Pdpb.SyncRegionRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MEMBER_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.Member member_; /** * .pdpb.Member member = 2; */ public boolean hasMember() { return member_ != null; } /** * .pdpb.Member member = 2; */ public org.tikv.kvproto.Pdpb.Member getMember() { return member_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : member_; } /** * .pdpb.Member member = 2; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getMemberOrBuilder() { return getMember(); } public static final int START_INDEX_FIELD_NUMBER = 3; private long startIndex_; /** *
     * the follower PD will use the start index to locate historical changes
     * that require synchronization.
     * 
* * uint64 start_index = 3; */ public long getStartIndex() { return startIndex_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (member_ != null) { output.writeMessage(2, getMember()); } if (startIndex_ != 0L) { output.writeUInt64(3, startIndex_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (member_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMember()); } if (startIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startIndex_); } 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.Pdpb.SyncRegionRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SyncRegionRequest other = (org.tikv.kvproto.Pdpb.SyncRegionRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasMember() == other.hasMember()); if (hasMember()) { result = result && getMember() .equals(other.getMember()); } result = result && (getStartIndex() == other.getStartIndex()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasMember()) { hash = (37 * hash) + MEMBER_FIELD_NUMBER; hash = (53 * hash) + getMember().hashCode(); } hash = (37 * hash) + START_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartIndex()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SyncRegionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest 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.Pdpb.SyncRegionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest 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.Pdpb.SyncRegionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest 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.Pdpb.SyncRegionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest 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.Pdpb.SyncRegionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest 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.Pdpb.SyncRegionRequest 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 pdpb.SyncRegionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SyncRegionRequest) org.tikv.kvproto.Pdpb.SyncRegionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncRegionRequest.class, org.tikv.kvproto.Pdpb.SyncRegionRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SyncRegionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (memberBuilder_ == null) { member_ = null; } else { member_ = null; memberBuilder_ = null; } startIndex_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionRequest_descriptor; } public org.tikv.kvproto.Pdpb.SyncRegionRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SyncRegionRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SyncRegionRequest build() { org.tikv.kvproto.Pdpb.SyncRegionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SyncRegionRequest buildPartial() { org.tikv.kvproto.Pdpb.SyncRegionRequest result = new org.tikv.kvproto.Pdpb.SyncRegionRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (memberBuilder_ == null) { result.member_ = member_; } else { result.member_ = memberBuilder_.build(); } result.startIndex_ = startIndex_; 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.Pdpb.SyncRegionRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.SyncRegionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SyncRegionRequest other) { if (other == org.tikv.kvproto.Pdpb.SyncRegionRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasMember()) { mergeMember(other.getMember()); } if (other.getStartIndex() != 0L) { setStartIndex(other.getStartIndex()); } 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.Pdpb.SyncRegionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SyncRegionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Pdpb.Member member_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> memberBuilder_; /** * .pdpb.Member member = 2; */ public boolean hasMember() { return memberBuilder_ != null || member_ != null; } /** * .pdpb.Member member = 2; */ public org.tikv.kvproto.Pdpb.Member getMember() { if (memberBuilder_ == null) { return member_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : member_; } else { return memberBuilder_.getMessage(); } } /** * .pdpb.Member member = 2; */ public Builder setMember(org.tikv.kvproto.Pdpb.Member value) { if (memberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } member_ = value; onChanged(); } else { memberBuilder_.setMessage(value); } return this; } /** * .pdpb.Member member = 2; */ public Builder setMember( org.tikv.kvproto.Pdpb.Member.Builder builderForValue) { if (memberBuilder_ == null) { member_ = builderForValue.build(); onChanged(); } else { memberBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Member member = 2; */ public Builder mergeMember(org.tikv.kvproto.Pdpb.Member value) { if (memberBuilder_ == null) { if (member_ != null) { member_ = org.tikv.kvproto.Pdpb.Member.newBuilder(member_).mergeFrom(value).buildPartial(); } else { member_ = value; } onChanged(); } else { memberBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Member member = 2; */ public Builder clearMember() { if (memberBuilder_ == null) { member_ = null; onChanged(); } else { member_ = null; memberBuilder_ = null; } return this; } /** * .pdpb.Member member = 2; */ public org.tikv.kvproto.Pdpb.Member.Builder getMemberBuilder() { onChanged(); return getMemberFieldBuilder().getBuilder(); } /** * .pdpb.Member member = 2; */ public org.tikv.kvproto.Pdpb.MemberOrBuilder getMemberOrBuilder() { if (memberBuilder_ != null) { return memberBuilder_.getMessageOrBuilder(); } else { return member_ == null ? org.tikv.kvproto.Pdpb.Member.getDefaultInstance() : member_; } } /** * .pdpb.Member member = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder> getMemberFieldBuilder() { if (memberBuilder_ == null) { memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Member, org.tikv.kvproto.Pdpb.Member.Builder, org.tikv.kvproto.Pdpb.MemberOrBuilder>( getMember(), getParentForChildren(), isClean()); member_ = null; } return memberBuilder_; } private long startIndex_ ; /** *
       * the follower PD will use the start index to locate historical changes
       * that require synchronization.
       * 
* * uint64 start_index = 3; */ public long getStartIndex() { return startIndex_; } /** *
       * the follower PD will use the start index to locate historical changes
       * that require synchronization.
       * 
* * uint64 start_index = 3; */ public Builder setStartIndex(long value) { startIndex_ = value; onChanged(); return this; } /** *
       * the follower PD will use the start index to locate historical changes
       * that require synchronization.
       * 
* * uint64 start_index = 3; */ public Builder clearStartIndex() { startIndex_ = 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:pdpb.SyncRegionRequest) } // @@protoc_insertion_point(class_scope:pdpb.SyncRegionRequest) private static final org.tikv.kvproto.Pdpb.SyncRegionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SyncRegionRequest(); } public static org.tikv.kvproto.Pdpb.SyncRegionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SyncRegionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SyncRegionRequest(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.Pdpb.SyncRegionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SyncRegionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SyncRegionResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ java.util.List getRegionsList(); /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ org.tikv.kvproto.Metapb.Region getRegions(int index); /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ int getRegionsCount(); /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ java.util.List getRegionsOrBuilderList(); /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index); /** * uint64 start_index = 3; */ long getStartIndex(); /** * repeated .pdpb.RegionStat region_stats = 4; */ java.util.List getRegionStatsList(); /** * repeated .pdpb.RegionStat region_stats = 4; */ org.tikv.kvproto.Pdpb.RegionStat getRegionStats(int index); /** * repeated .pdpb.RegionStat region_stats = 4; */ int getRegionStatsCount(); /** * repeated .pdpb.RegionStat region_stats = 4; */ java.util.List getRegionStatsOrBuilderList(); /** * repeated .pdpb.RegionStat region_stats = 4; */ org.tikv.kvproto.Pdpb.RegionStatOrBuilder getRegionStatsOrBuilder( int index); /** * repeated .metapb.Peer region_leaders = 5; */ java.util.List getRegionLeadersList(); /** * repeated .metapb.Peer region_leaders = 5; */ org.tikv.kvproto.Metapb.Peer getRegionLeaders(int index); /** * repeated .metapb.Peer region_leaders = 5; */ int getRegionLeadersCount(); /** * repeated .metapb.Peer region_leaders = 5; */ java.util.List getRegionLeadersOrBuilderList(); /** * repeated .metapb.Peer region_leaders = 5; */ org.tikv.kvproto.Metapb.PeerOrBuilder getRegionLeadersOrBuilder( int index); } /** * Protobuf type {@code pdpb.SyncRegionResponse} */ public static final class SyncRegionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SyncRegionResponse) SyncRegionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SyncRegionResponse.newBuilder() to construct. private SyncRegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SyncRegionResponse() { regions_ = java.util.Collections.emptyList(); startIndex_ = 0L; regionStats_ = java.util.Collections.emptyList(); regionLeaders_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SyncRegionResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } regions_.add( input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry)); break; } case 24: { startIndex_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regionStats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } regionStats_.add( input.readMessage(org.tikv.kvproto.Pdpb.RegionStat.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { regionLeaders_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } regionLeaders_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { regions_ = java.util.Collections.unmodifiableList(regions_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regionStats_ = java.util.Collections.unmodifiableList(regionStats_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { regionLeaders_ = java.util.Collections.unmodifiableList(regionLeaders_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncRegionResponse.class, org.tikv.kvproto.Pdpb.SyncRegionResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGIONS_FIELD_NUMBER = 2; private java.util.List regions_; /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsList() { return regions_; } /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ public int getRegionsCount() { return regions_.size(); } /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { return regions_.get(index); } /** *
     * the leader PD will send the repsonds include
     * changed regions records and the index of the first record.
     * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } public static final int START_INDEX_FIELD_NUMBER = 3; private long startIndex_; /** * uint64 start_index = 3; */ public long getStartIndex() { return startIndex_; } public static final int REGION_STATS_FIELD_NUMBER = 4; private java.util.List regionStats_; /** * repeated .pdpb.RegionStat region_stats = 4; */ public java.util.List getRegionStatsList() { return regionStats_; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public java.util.List getRegionStatsOrBuilderList() { return regionStats_; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public int getRegionStatsCount() { return regionStats_.size(); } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStat getRegionStats(int index) { return regionStats_.get(index); } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStatOrBuilder getRegionStatsOrBuilder( int index) { return regionStats_.get(index); } public static final int REGION_LEADERS_FIELD_NUMBER = 5; private java.util.List regionLeaders_; /** * repeated .metapb.Peer region_leaders = 5; */ public java.util.List getRegionLeadersList() { return regionLeaders_; } /** * repeated .metapb.Peer region_leaders = 5; */ public java.util.List getRegionLeadersOrBuilderList() { return regionLeaders_; } /** * repeated .metapb.Peer region_leaders = 5; */ public int getRegionLeadersCount() { return regionLeaders_.size(); } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.Peer getRegionLeaders(int index) { return regionLeaders_.get(index); } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getRegionLeadersOrBuilder( int index) { return regionLeaders_.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 (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < regions_.size(); i++) { output.writeMessage(2, regions_.get(i)); } if (startIndex_ != 0L) { output.writeUInt64(3, startIndex_); } for (int i = 0; i < regionStats_.size(); i++) { output.writeMessage(4, regionStats_.get(i)); } for (int i = 0; i < regionLeaders_.size(); i++) { output.writeMessage(5, regionLeaders_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, regions_.get(i)); } if (startIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startIndex_); } for (int i = 0; i < regionStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, regionStats_.get(i)); } for (int i = 0; i < regionLeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, regionLeaders_.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.Pdpb.SyncRegionResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SyncRegionResponse other = (org.tikv.kvproto.Pdpb.SyncRegionResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRegionsList() .equals(other.getRegionsList()); result = result && (getStartIndex() == other.getStartIndex()); result = result && getRegionStatsList() .equals(other.getRegionStatsList()); result = result && getRegionLeadersList() .equals(other.getRegionLeadersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (37 * hash) + START_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartIndex()); if (getRegionStatsCount() > 0) { hash = (37 * hash) + REGION_STATS_FIELD_NUMBER; hash = (53 * hash) + getRegionStatsList().hashCode(); } if (getRegionLeadersCount() > 0) { hash = (37 * hash) + REGION_LEADERS_FIELD_NUMBER; hash = (53 * hash) + getRegionLeadersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SyncRegionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse 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.Pdpb.SyncRegionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse 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.Pdpb.SyncRegionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse 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.Pdpb.SyncRegionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse 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.Pdpb.SyncRegionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse 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.Pdpb.SyncRegionResponse 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 pdpb.SyncRegionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SyncRegionResponse) org.tikv.kvproto.Pdpb.SyncRegionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncRegionResponse.class, org.tikv.kvproto.Pdpb.SyncRegionResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SyncRegionResponse.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(); getRegionStatsFieldBuilder(); getRegionLeadersFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { regionsBuilder_.clear(); } startIndex_ = 0L; if (regionStatsBuilder_ == null) { regionStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { regionStatsBuilder_.clear(); } if (regionLeadersBuilder_ == null) { regionLeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { regionLeadersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncRegionResponse_descriptor; } public org.tikv.kvproto.Pdpb.SyncRegionResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SyncRegionResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SyncRegionResponse build() { org.tikv.kvproto.Pdpb.SyncRegionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SyncRegionResponse buildPartial() { org.tikv.kvproto.Pdpb.SyncRegionResponse result = new org.tikv.kvproto.Pdpb.SyncRegionResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000002); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.build(); } result.startIndex_ = startIndex_; if (regionStatsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { regionStats_ = java.util.Collections.unmodifiableList(regionStats_); bitField0_ = (bitField0_ & ~0x00000008); } result.regionStats_ = regionStats_; } else { result.regionStats_ = regionStatsBuilder_.build(); } if (regionLeadersBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { regionLeaders_ = java.util.Collections.unmodifiableList(regionLeaders_); bitField0_ = (bitField0_ & ~0x00000010); } result.regionLeaders_ = regionLeaders_; } else { result.regionLeaders_ = regionLeadersBuilder_.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.Pdpb.SyncRegionResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.SyncRegionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SyncRegionResponse other) { if (other == org.tikv.kvproto.Pdpb.SyncRegionResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000002); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } if (other.getStartIndex() != 0L) { setStartIndex(other.getStartIndex()); } if (regionStatsBuilder_ == null) { if (!other.regionStats_.isEmpty()) { if (regionStats_.isEmpty()) { regionStats_ = other.regionStats_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRegionStatsIsMutable(); regionStats_.addAll(other.regionStats_); } onChanged(); } } else { if (!other.regionStats_.isEmpty()) { if (regionStatsBuilder_.isEmpty()) { regionStatsBuilder_.dispose(); regionStatsBuilder_ = null; regionStats_ = other.regionStats_; bitField0_ = (bitField0_ & ~0x00000008); regionStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionStatsFieldBuilder() : null; } else { regionStatsBuilder_.addAllMessages(other.regionStats_); } } } if (regionLeadersBuilder_ == null) { if (!other.regionLeaders_.isEmpty()) { if (regionLeaders_.isEmpty()) { regionLeaders_ = other.regionLeaders_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRegionLeadersIsMutable(); regionLeaders_.addAll(other.regionLeaders_); } onChanged(); } } else { if (!other.regionLeaders_.isEmpty()) { if (regionLeadersBuilder_.isEmpty()) { regionLeadersBuilder_.dispose(); regionLeadersBuilder_ = null; regionLeaders_ = other.regionLeaders_; bitField0_ = (bitField0_ & ~0x00000010); regionLeadersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionLeadersFieldBuilder() : null; } else { regionLeadersBuilder_.addAllMessages(other.regionLeaders_); } } } 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.Pdpb.SyncRegionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SyncRegionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionsBuilder_; /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * the leader PD will send the repsonds include
       * changed regions records and the index of the first record.
       * 
* * repeated .metapb.Region regions = 2; */ 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_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } private long startIndex_ ; /** * uint64 start_index = 3; */ public long getStartIndex() { return startIndex_; } /** * uint64 start_index = 3; */ public Builder setStartIndex(long value) { startIndex_ = value; onChanged(); return this; } /** * uint64 start_index = 3; */ public Builder clearStartIndex() { startIndex_ = 0L; onChanged(); return this; } private java.util.List regionStats_ = java.util.Collections.emptyList(); private void ensureRegionStatsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { regionStats_ = new java.util.ArrayList(regionStats_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RegionStat, org.tikv.kvproto.Pdpb.RegionStat.Builder, org.tikv.kvproto.Pdpb.RegionStatOrBuilder> regionStatsBuilder_; /** * repeated .pdpb.RegionStat region_stats = 4; */ public java.util.List getRegionStatsList() { if (regionStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(regionStats_); } else { return regionStatsBuilder_.getMessageList(); } } /** * repeated .pdpb.RegionStat region_stats = 4; */ public int getRegionStatsCount() { if (regionStatsBuilder_ == null) { return regionStats_.size(); } else { return regionStatsBuilder_.getCount(); } } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStat getRegionStats(int index) { if (regionStatsBuilder_ == null) { return regionStats_.get(index); } else { return regionStatsBuilder_.getMessage(index); } } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder setRegionStats( int index, org.tikv.kvproto.Pdpb.RegionStat value) { if (regionStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionStatsIsMutable(); regionStats_.set(index, value); onChanged(); } else { regionStatsBuilder_.setMessage(index, value); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder setRegionStats( int index, org.tikv.kvproto.Pdpb.RegionStat.Builder builderForValue) { if (regionStatsBuilder_ == null) { ensureRegionStatsIsMutable(); regionStats_.set(index, builderForValue.build()); onChanged(); } else { regionStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder addRegionStats(org.tikv.kvproto.Pdpb.RegionStat value) { if (regionStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionStatsIsMutable(); regionStats_.add(value); onChanged(); } else { regionStatsBuilder_.addMessage(value); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder addRegionStats( int index, org.tikv.kvproto.Pdpb.RegionStat value) { if (regionStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionStatsIsMutable(); regionStats_.add(index, value); onChanged(); } else { regionStatsBuilder_.addMessage(index, value); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder addRegionStats( org.tikv.kvproto.Pdpb.RegionStat.Builder builderForValue) { if (regionStatsBuilder_ == null) { ensureRegionStatsIsMutable(); regionStats_.add(builderForValue.build()); onChanged(); } else { regionStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder addRegionStats( int index, org.tikv.kvproto.Pdpb.RegionStat.Builder builderForValue) { if (regionStatsBuilder_ == null) { ensureRegionStatsIsMutable(); regionStats_.add(index, builderForValue.build()); onChanged(); } else { regionStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder addAllRegionStats( java.lang.Iterable values) { if (regionStatsBuilder_ == null) { ensureRegionStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regionStats_); onChanged(); } else { regionStatsBuilder_.addAllMessages(values); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder clearRegionStats() { if (regionStatsBuilder_ == null) { regionStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { regionStatsBuilder_.clear(); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public Builder removeRegionStats(int index) { if (regionStatsBuilder_ == null) { ensureRegionStatsIsMutable(); regionStats_.remove(index); onChanged(); } else { regionStatsBuilder_.remove(index); } return this; } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStat.Builder getRegionStatsBuilder( int index) { return getRegionStatsFieldBuilder().getBuilder(index); } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStatOrBuilder getRegionStatsOrBuilder( int index) { if (regionStatsBuilder_ == null) { return regionStats_.get(index); } else { return regionStatsBuilder_.getMessageOrBuilder(index); } } /** * repeated .pdpb.RegionStat region_stats = 4; */ public java.util.List getRegionStatsOrBuilderList() { if (regionStatsBuilder_ != null) { return regionStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regionStats_); } } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStat.Builder addRegionStatsBuilder() { return getRegionStatsFieldBuilder().addBuilder( org.tikv.kvproto.Pdpb.RegionStat.getDefaultInstance()); } /** * repeated .pdpb.RegionStat region_stats = 4; */ public org.tikv.kvproto.Pdpb.RegionStat.Builder addRegionStatsBuilder( int index) { return getRegionStatsFieldBuilder().addBuilder( index, org.tikv.kvproto.Pdpb.RegionStat.getDefaultInstance()); } /** * repeated .pdpb.RegionStat region_stats = 4; */ public java.util.List getRegionStatsBuilderList() { return getRegionStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RegionStat, org.tikv.kvproto.Pdpb.RegionStat.Builder, org.tikv.kvproto.Pdpb.RegionStatOrBuilder> getRegionStatsFieldBuilder() { if (regionStatsBuilder_ == null) { regionStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Pdpb.RegionStat, org.tikv.kvproto.Pdpb.RegionStat.Builder, org.tikv.kvproto.Pdpb.RegionStatOrBuilder>( regionStats_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); regionStats_ = null; } return regionStatsBuilder_; } private java.util.List regionLeaders_ = java.util.Collections.emptyList(); private void ensureRegionLeadersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { regionLeaders_ = new java.util.ArrayList(regionLeaders_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> regionLeadersBuilder_; /** * repeated .metapb.Peer region_leaders = 5; */ public java.util.List getRegionLeadersList() { if (regionLeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(regionLeaders_); } else { return regionLeadersBuilder_.getMessageList(); } } /** * repeated .metapb.Peer region_leaders = 5; */ public int getRegionLeadersCount() { if (regionLeadersBuilder_ == null) { return regionLeaders_.size(); } else { return regionLeadersBuilder_.getCount(); } } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.Peer getRegionLeaders(int index) { if (regionLeadersBuilder_ == null) { return regionLeaders_.get(index); } else { return regionLeadersBuilder_.getMessage(index); } } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder setRegionLeaders( int index, org.tikv.kvproto.Metapb.Peer value) { if (regionLeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionLeadersIsMutable(); regionLeaders_.set(index, value); onChanged(); } else { regionLeadersBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder setRegionLeaders( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (regionLeadersBuilder_ == null) { ensureRegionLeadersIsMutable(); regionLeaders_.set(index, builderForValue.build()); onChanged(); } else { regionLeadersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder addRegionLeaders(org.tikv.kvproto.Metapb.Peer value) { if (regionLeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionLeadersIsMutable(); regionLeaders_.add(value); onChanged(); } else { regionLeadersBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder addRegionLeaders( int index, org.tikv.kvproto.Metapb.Peer value) { if (regionLeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionLeadersIsMutable(); regionLeaders_.add(index, value); onChanged(); } else { regionLeadersBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder addRegionLeaders( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (regionLeadersBuilder_ == null) { ensureRegionLeadersIsMutable(); regionLeaders_.add(builderForValue.build()); onChanged(); } else { regionLeadersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder addRegionLeaders( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (regionLeadersBuilder_ == null) { ensureRegionLeadersIsMutable(); regionLeaders_.add(index, builderForValue.build()); onChanged(); } else { regionLeadersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder addAllRegionLeaders( java.lang.Iterable values) { if (regionLeadersBuilder_ == null) { ensureRegionLeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regionLeaders_); onChanged(); } else { regionLeadersBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder clearRegionLeaders() { if (regionLeadersBuilder_ == null) { regionLeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { regionLeadersBuilder_.clear(); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public Builder removeRegionLeaders(int index) { if (regionLeadersBuilder_ == null) { ensureRegionLeadersIsMutable(); regionLeaders_.remove(index); onChanged(); } else { regionLeadersBuilder_.remove(index); } return this; } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder getRegionLeadersBuilder( int index) { return getRegionLeadersFieldBuilder().getBuilder(index); } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getRegionLeadersOrBuilder( int index) { if (regionLeadersBuilder_ == null) { return regionLeaders_.get(index); } else { return regionLeadersBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Peer region_leaders = 5; */ public java.util.List getRegionLeadersOrBuilderList() { if (regionLeadersBuilder_ != null) { return regionLeadersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regionLeaders_); } } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder addRegionLeadersBuilder() { return getRegionLeadersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer region_leaders = 5; */ public org.tikv.kvproto.Metapb.Peer.Builder addRegionLeadersBuilder( int index) { return getRegionLeadersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer region_leaders = 5; */ public java.util.List getRegionLeadersBuilderList() { return getRegionLeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getRegionLeadersFieldBuilder() { if (regionLeadersBuilder_ == null) { regionLeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( regionLeaders_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); regionLeaders_ = null; } return regionLeadersBuilder_; } 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:pdpb.SyncRegionResponse) } // @@protoc_insertion_point(class_scope:pdpb.SyncRegionResponse) private static final org.tikv.kvproto.Pdpb.SyncRegionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SyncRegionResponse(); } public static org.tikv.kvproto.Pdpb.SyncRegionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SyncRegionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SyncRegionResponse(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.Pdpb.SyncRegionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetOperatorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetOperatorRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 region_id = 2; */ long getRegionId(); } /** * Protobuf type {@code pdpb.GetOperatorRequest} */ public static final class GetOperatorRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetOperatorRequest) GetOperatorRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetOperatorRequest.newBuilder() to construct. private GetOperatorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetOperatorRequest() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetOperatorRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetOperatorRequest.class, org.tikv.kvproto.Pdpb.GetOperatorRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } 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.Pdpb.GetOperatorRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetOperatorRequest other = (org.tikv.kvproto.Pdpb.GetOperatorRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetOperatorRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest 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.Pdpb.GetOperatorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest 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.Pdpb.GetOperatorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest 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.Pdpb.GetOperatorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest 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.Pdpb.GetOperatorRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest 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.Pdpb.GetOperatorRequest 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 pdpb.GetOperatorRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetOperatorRequest) org.tikv.kvproto.Pdpb.GetOperatorRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetOperatorRequest.class, org.tikv.kvproto.Pdpb.GetOperatorRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetOperatorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetOperatorRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetOperatorRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetOperatorRequest build() { org.tikv.kvproto.Pdpb.GetOperatorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetOperatorRequest buildPartial() { org.tikv.kvproto.Pdpb.GetOperatorRequest result = new org.tikv.kvproto.Pdpb.GetOperatorRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Pdpb.GetOperatorRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetOperatorRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetOperatorRequest other) { if (other == org.tikv.kvproto.Pdpb.GetOperatorRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Pdpb.GetOperatorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetOperatorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long regionId_ ; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } 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:pdpb.GetOperatorRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetOperatorRequest) private static final org.tikv.kvproto.Pdpb.GetOperatorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetOperatorRequest(); } public static org.tikv.kvproto.Pdpb.GetOperatorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetOperatorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetOperatorRequest(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.Pdpb.GetOperatorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetOperatorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetOperatorResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 region_id = 2; */ long getRegionId(); /** * bytes desc = 3; */ com.google.protobuf.ByteString getDesc(); /** * .pdpb.OperatorStatus status = 4; */ int getStatusValue(); /** * .pdpb.OperatorStatus status = 4; */ org.tikv.kvproto.Pdpb.OperatorStatus getStatus(); /** * bytes kind = 5; */ com.google.protobuf.ByteString getKind(); } /** * Protobuf type {@code pdpb.GetOperatorResponse} */ public static final class GetOperatorResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetOperatorResponse) GetOperatorResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetOperatorResponse.newBuilder() to construct. private GetOperatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetOperatorResponse() { regionId_ = 0L; desc_ = com.google.protobuf.ByteString.EMPTY; status_ = 0; kind_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetOperatorResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { regionId_ = input.readUInt64(); break; } case 26: { desc_ = input.readBytes(); break; } case 32: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 42: { kind_ = 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.Pdpb.internal_static_pdpb_GetOperatorResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetOperatorResponse.class, org.tikv.kvproto.Pdpb.GetOperatorResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } public static final int DESC_FIELD_NUMBER = 3; private com.google.protobuf.ByteString desc_; /** * bytes desc = 3; */ public com.google.protobuf.ByteString getDesc() { return desc_; } public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** * .pdpb.OperatorStatus status = 4; */ public int getStatusValue() { return status_; } /** * .pdpb.OperatorStatus status = 4; */ public org.tikv.kvproto.Pdpb.OperatorStatus getStatus() { org.tikv.kvproto.Pdpb.OperatorStatus result = org.tikv.kvproto.Pdpb.OperatorStatus.valueOf(status_); return result == null ? org.tikv.kvproto.Pdpb.OperatorStatus.UNRECOGNIZED : result; } public static final int KIND_FIELD_NUMBER = 5; private com.google.protobuf.ByteString kind_; /** * bytes kind = 5; */ public com.google.protobuf.ByteString getKind() { return kind_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } if (!desc_.isEmpty()) { output.writeBytes(3, desc_); } if (status_ != org.tikv.kvproto.Pdpb.OperatorStatus.SUCCESS.getNumber()) { output.writeEnum(4, status_); } if (!kind_.isEmpty()) { output.writeBytes(5, kind_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } if (!desc_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, desc_); } if (status_ != org.tikv.kvproto.Pdpb.OperatorStatus.SUCCESS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, status_); } if (!kind_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, kind_); } 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.Pdpb.GetOperatorResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetOperatorResponse other = (org.tikv.kvproto.Pdpb.GetOperatorResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && getDesc() .equals(other.getDesc()); result = result && status_ == other.status_; result = result && getKind() .equals(other.getKind()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (37 * hash) + DESC_FIELD_NUMBER; hash = (53 * hash) + getDesc().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetOperatorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse 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.Pdpb.GetOperatorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse 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.Pdpb.GetOperatorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse 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.Pdpb.GetOperatorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse 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.Pdpb.GetOperatorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse 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.Pdpb.GetOperatorResponse 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 pdpb.GetOperatorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetOperatorResponse) org.tikv.kvproto.Pdpb.GetOperatorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetOperatorResponse.class, org.tikv.kvproto.Pdpb.GetOperatorResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetOperatorResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionId_ = 0L; desc_ = com.google.protobuf.ByteString.EMPTY; status_ = 0; kind_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetOperatorResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetOperatorResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetOperatorResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetOperatorResponse build() { org.tikv.kvproto.Pdpb.GetOperatorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetOperatorResponse buildPartial() { org.tikv.kvproto.Pdpb.GetOperatorResponse result = new org.tikv.kvproto.Pdpb.GetOperatorResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionId_ = regionId_; result.desc_ = desc_; result.status_ = status_; result.kind_ = kind_; 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.Pdpb.GetOperatorResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetOperatorResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetOperatorResponse other) { if (other == org.tikv.kvproto.Pdpb.GetOperatorResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.getDesc() != com.google.protobuf.ByteString.EMPTY) { setDesc(other.getDesc()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.getKind() != com.google.protobuf.ByteString.EMPTY) { setKind(other.getKind()); } 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.Pdpb.GetOperatorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetOperatorResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long regionId_ ; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString desc_ = com.google.protobuf.ByteString.EMPTY; /** * bytes desc = 3; */ public com.google.protobuf.ByteString getDesc() { return desc_; } /** * bytes desc = 3; */ public Builder setDesc(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } desc_ = value; onChanged(); return this; } /** * bytes desc = 3; */ public Builder clearDesc() { desc_ = getDefaultInstance().getDesc(); onChanged(); return this; } private int status_ = 0; /** * .pdpb.OperatorStatus status = 4; */ public int getStatusValue() { return status_; } /** * .pdpb.OperatorStatus status = 4; */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .pdpb.OperatorStatus status = 4; */ public org.tikv.kvproto.Pdpb.OperatorStatus getStatus() { org.tikv.kvproto.Pdpb.OperatorStatus result = org.tikv.kvproto.Pdpb.OperatorStatus.valueOf(status_); return result == null ? org.tikv.kvproto.Pdpb.OperatorStatus.UNRECOGNIZED : result; } /** * .pdpb.OperatorStatus status = 4; */ public Builder setStatus(org.tikv.kvproto.Pdpb.OperatorStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .pdpb.OperatorStatus status = 4; */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString kind_ = com.google.protobuf.ByteString.EMPTY; /** * bytes kind = 5; */ public com.google.protobuf.ByteString getKind() { return kind_; } /** * bytes kind = 5; */ public Builder setKind(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); return this; } /** * bytes kind = 5; */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); 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:pdpb.GetOperatorResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetOperatorResponse) private static final org.tikv.kvproto.Pdpb.GetOperatorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetOperatorResponse(); } public static org.tikv.kvproto.Pdpb.GetOperatorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetOperatorResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetOperatorResponse(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.Pdpb.GetOperatorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SyncMaxTSRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SyncMaxTSRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * .pdpb.Timestamp max_ts = 2; */ boolean hasMaxTs(); /** * .pdpb.Timestamp max_ts = 2; */ org.tikv.kvproto.Pdpb.Timestamp getMaxTs(); /** * .pdpb.Timestamp max_ts = 2; */ org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder(); } /** * Protobuf type {@code pdpb.SyncMaxTSRequest} */ public static final class SyncMaxTSRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SyncMaxTSRequest) SyncMaxTSRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SyncMaxTSRequest.newBuilder() to construct. private SyncMaxTSRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SyncMaxTSRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SyncMaxTSRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Pdpb.Timestamp.Builder subBuilder = null; if (maxTs_ != null) { subBuilder = maxTs_.toBuilder(); } maxTs_ = input.readMessage(org.tikv.kvproto.Pdpb.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxTs_); maxTs_ = 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.Pdpb.internal_static_pdpb_SyncMaxTSRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncMaxTSRequest.class, org.tikv.kvproto.Pdpb.SyncMaxTSRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MAX_TS_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.Timestamp maxTs_; /** * .pdpb.Timestamp max_ts = 2; */ public boolean hasMaxTs() { return maxTs_ != null; } /** * .pdpb.Timestamp max_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxTs() { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } /** * .pdpb.Timestamp max_ts = 2; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder() { return getMaxTs(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (maxTs_ != null) { output.writeMessage(2, getMaxTs()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (maxTs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxTs()); } 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.Pdpb.SyncMaxTSRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SyncMaxTSRequest other = (org.tikv.kvproto.Pdpb.SyncMaxTSRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasMaxTs() == other.hasMaxTs()); if (hasMaxTs()) { result = result && getMaxTs() .equals(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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasMaxTs()) { hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + getMaxTs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest 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.Pdpb.SyncMaxTSRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest 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.Pdpb.SyncMaxTSRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest 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.Pdpb.SyncMaxTSRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest 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.Pdpb.SyncMaxTSRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest 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.Pdpb.SyncMaxTSRequest 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 pdpb.SyncMaxTSRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SyncMaxTSRequest) org.tikv.kvproto.Pdpb.SyncMaxTSRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncMaxTSRequest.class, org.tikv.kvproto.Pdpb.SyncMaxTSRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SyncMaxTSRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (maxTsBuilder_ == null) { maxTs_ = null; } else { maxTs_ = null; maxTsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSRequest_descriptor; } public org.tikv.kvproto.Pdpb.SyncMaxTSRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SyncMaxTSRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SyncMaxTSRequest build() { org.tikv.kvproto.Pdpb.SyncMaxTSRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SyncMaxTSRequest buildPartial() { org.tikv.kvproto.Pdpb.SyncMaxTSRequest result = new org.tikv.kvproto.Pdpb.SyncMaxTSRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (maxTsBuilder_ == null) { result.maxTs_ = maxTs_; } else { result.maxTs_ = maxTsBuilder_.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.Pdpb.SyncMaxTSRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.SyncMaxTSRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SyncMaxTSRequest other) { if (other == org.tikv.kvproto.Pdpb.SyncMaxTSRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasMaxTs()) { mergeMaxTs(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.Pdpb.SyncMaxTSRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SyncMaxTSRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Pdpb.Timestamp maxTs_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> maxTsBuilder_; /** * .pdpb.Timestamp max_ts = 2; */ public boolean hasMaxTs() { return maxTsBuilder_ != null || maxTs_ != null; } /** * .pdpb.Timestamp max_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxTs() { if (maxTsBuilder_ == null) { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } else { return maxTsBuilder_.getMessage(); } } /** * .pdpb.Timestamp max_ts = 2; */ public Builder setMaxTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxTsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxTs_ = value; onChanged(); } else { maxTsBuilder_.setMessage(value); } return this; } /** * .pdpb.Timestamp max_ts = 2; */ public Builder setMaxTs( org.tikv.kvproto.Pdpb.Timestamp.Builder builderForValue) { if (maxTsBuilder_ == null) { maxTs_ = builderForValue.build(); onChanged(); } else { maxTsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Timestamp max_ts = 2; */ public Builder mergeMaxTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxTsBuilder_ == null) { if (maxTs_ != null) { maxTs_ = org.tikv.kvproto.Pdpb.Timestamp.newBuilder(maxTs_).mergeFrom(value).buildPartial(); } else { maxTs_ = value; } onChanged(); } else { maxTsBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Timestamp max_ts = 2; */ public Builder clearMaxTs() { if (maxTsBuilder_ == null) { maxTs_ = null; onChanged(); } else { maxTs_ = null; maxTsBuilder_ = null; } return this; } /** * .pdpb.Timestamp max_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp.Builder getMaxTsBuilder() { onChanged(); return getMaxTsFieldBuilder().getBuilder(); } /** * .pdpb.Timestamp max_ts = 2; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder() { if (maxTsBuilder_ != null) { return maxTsBuilder_.getMessageOrBuilder(); } else { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } } /** * .pdpb.Timestamp max_ts = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> getMaxTsFieldBuilder() { if (maxTsBuilder_ == null) { maxTsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder>( getMaxTs(), getParentForChildren(), isClean()); maxTs_ = null; } return maxTsBuilder_; } 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:pdpb.SyncMaxTSRequest) } // @@protoc_insertion_point(class_scope:pdpb.SyncMaxTSRequest) private static final org.tikv.kvproto.Pdpb.SyncMaxTSRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SyncMaxTSRequest(); } public static org.tikv.kvproto.Pdpb.SyncMaxTSRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SyncMaxTSRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SyncMaxTSRequest(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.Pdpb.SyncMaxTSRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SyncMaxTSResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SyncMaxTSResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * .pdpb.Timestamp max_local_ts = 2; */ boolean hasMaxLocalTs(); /** * .pdpb.Timestamp max_local_ts = 2; */ org.tikv.kvproto.Pdpb.Timestamp getMaxLocalTs(); /** * .pdpb.Timestamp max_local_ts = 2; */ org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxLocalTsOrBuilder(); /** * repeated string dcs = 3; */ java.util.List getDcsList(); /** * repeated string dcs = 3; */ int getDcsCount(); /** * repeated string dcs = 3; */ java.lang.String getDcs(int index); /** * repeated string dcs = 3; */ com.google.protobuf.ByteString getDcsBytes(int index); } /** * Protobuf type {@code pdpb.SyncMaxTSResponse} */ public static final class SyncMaxTSResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SyncMaxTSResponse) SyncMaxTSResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SyncMaxTSResponse.newBuilder() to construct. private SyncMaxTSResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SyncMaxTSResponse() { dcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SyncMaxTSResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Pdpb.Timestamp.Builder subBuilder = null; if (maxLocalTs_ != null) { subBuilder = maxLocalTs_.toBuilder(); } maxLocalTs_ = input.readMessage(org.tikv.kvproto.Pdpb.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxLocalTs_); maxLocalTs_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { dcs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } dcs_.add(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_ & 0x00000004) == 0x00000004)) { dcs_ = dcs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncMaxTSResponse.class, org.tikv.kvproto.Pdpb.SyncMaxTSResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int MAX_LOCAL_TS_FIELD_NUMBER = 2; private org.tikv.kvproto.Pdpb.Timestamp maxLocalTs_; /** * .pdpb.Timestamp max_local_ts = 2; */ public boolean hasMaxLocalTs() { return maxLocalTs_ != null; } /** * .pdpb.Timestamp max_local_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxLocalTs() { return maxLocalTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxLocalTs_; } /** * .pdpb.Timestamp max_local_ts = 2; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxLocalTsOrBuilder() { return getMaxLocalTs(); } public static final int DCS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList dcs_; /** * repeated string dcs = 3; */ public com.google.protobuf.ProtocolStringList getDcsList() { return dcs_; } /** * repeated string dcs = 3; */ public int getDcsCount() { return dcs_.size(); } /** * repeated string dcs = 3; */ public java.lang.String getDcs(int index) { return dcs_.get(index); } /** * repeated string dcs = 3; */ public com.google.protobuf.ByteString getDcsBytes(int index) { return dcs_.getByteString(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 (header_ != null) { output.writeMessage(1, getHeader()); } if (maxLocalTs_ != null) { output.writeMessage(2, getMaxLocalTs()); } for (int i = 0; i < dcs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dcs_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (maxLocalTs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxLocalTs()); } { int dataSize = 0; for (int i = 0; i < dcs_.size(); i++) { dataSize += computeStringSizeNoTag(dcs_.getRaw(i)); } size += dataSize; size += 1 * getDcsList().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.Pdpb.SyncMaxTSResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SyncMaxTSResponse other = (org.tikv.kvproto.Pdpb.SyncMaxTSResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasMaxLocalTs() == other.hasMaxLocalTs()); if (hasMaxLocalTs()) { result = result && getMaxLocalTs() .equals(other.getMaxLocalTs()); } result = result && getDcsList() .equals(other.getDcsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasMaxLocalTs()) { hash = (37 * hash) + MAX_LOCAL_TS_FIELD_NUMBER; hash = (53 * hash) + getMaxLocalTs().hashCode(); } if (getDcsCount() > 0) { hash = (37 * hash) + DCS_FIELD_NUMBER; hash = (53 * hash) + getDcsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse 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.Pdpb.SyncMaxTSResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse 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.Pdpb.SyncMaxTSResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse 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.Pdpb.SyncMaxTSResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse 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.Pdpb.SyncMaxTSResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse 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.Pdpb.SyncMaxTSResponse 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 pdpb.SyncMaxTSResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SyncMaxTSResponse) org.tikv.kvproto.Pdpb.SyncMaxTSResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SyncMaxTSResponse.class, org.tikv.kvproto.Pdpb.SyncMaxTSResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SyncMaxTSResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (maxLocalTsBuilder_ == null) { maxLocalTs_ = null; } else { maxLocalTs_ = null; maxLocalTsBuilder_ = null; } dcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SyncMaxTSResponse_descriptor; } public org.tikv.kvproto.Pdpb.SyncMaxTSResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SyncMaxTSResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SyncMaxTSResponse build() { org.tikv.kvproto.Pdpb.SyncMaxTSResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SyncMaxTSResponse buildPartial() { org.tikv.kvproto.Pdpb.SyncMaxTSResponse result = new org.tikv.kvproto.Pdpb.SyncMaxTSResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (maxLocalTsBuilder_ == null) { result.maxLocalTs_ = maxLocalTs_; } else { result.maxLocalTs_ = maxLocalTsBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { dcs_ = dcs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.dcs_ = dcs_; 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.Pdpb.SyncMaxTSResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.SyncMaxTSResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SyncMaxTSResponse other) { if (other == org.tikv.kvproto.Pdpb.SyncMaxTSResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasMaxLocalTs()) { mergeMaxLocalTs(other.getMaxLocalTs()); } if (!other.dcs_.isEmpty()) { if (dcs_.isEmpty()) { dcs_ = other.dcs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDcsIsMutable(); dcs_.addAll(other.dcs_); } 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.Pdpb.SyncMaxTSResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SyncMaxTSResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private org.tikv.kvproto.Pdpb.Timestamp maxLocalTs_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> maxLocalTsBuilder_; /** * .pdpb.Timestamp max_local_ts = 2; */ public boolean hasMaxLocalTs() { return maxLocalTsBuilder_ != null || maxLocalTs_ != null; } /** * .pdpb.Timestamp max_local_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxLocalTs() { if (maxLocalTsBuilder_ == null) { return maxLocalTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxLocalTs_; } else { return maxLocalTsBuilder_.getMessage(); } } /** * .pdpb.Timestamp max_local_ts = 2; */ public Builder setMaxLocalTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxLocalTsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxLocalTs_ = value; onChanged(); } else { maxLocalTsBuilder_.setMessage(value); } return this; } /** * .pdpb.Timestamp max_local_ts = 2; */ public Builder setMaxLocalTs( org.tikv.kvproto.Pdpb.Timestamp.Builder builderForValue) { if (maxLocalTsBuilder_ == null) { maxLocalTs_ = builderForValue.build(); onChanged(); } else { maxLocalTsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.Timestamp max_local_ts = 2; */ public Builder mergeMaxLocalTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxLocalTsBuilder_ == null) { if (maxLocalTs_ != null) { maxLocalTs_ = org.tikv.kvproto.Pdpb.Timestamp.newBuilder(maxLocalTs_).mergeFrom(value).buildPartial(); } else { maxLocalTs_ = value; } onChanged(); } else { maxLocalTsBuilder_.mergeFrom(value); } return this; } /** * .pdpb.Timestamp max_local_ts = 2; */ public Builder clearMaxLocalTs() { if (maxLocalTsBuilder_ == null) { maxLocalTs_ = null; onChanged(); } else { maxLocalTs_ = null; maxLocalTsBuilder_ = null; } return this; } /** * .pdpb.Timestamp max_local_ts = 2; */ public org.tikv.kvproto.Pdpb.Timestamp.Builder getMaxLocalTsBuilder() { onChanged(); return getMaxLocalTsFieldBuilder().getBuilder(); } /** * .pdpb.Timestamp max_local_ts = 2; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxLocalTsOrBuilder() { if (maxLocalTsBuilder_ != null) { return maxLocalTsBuilder_.getMessageOrBuilder(); } else { return maxLocalTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxLocalTs_; } } /** * .pdpb.Timestamp max_local_ts = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> getMaxLocalTsFieldBuilder() { if (maxLocalTsBuilder_ == null) { maxLocalTsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder>( getMaxLocalTs(), getParentForChildren(), isClean()); maxLocalTs_ = null; } return maxLocalTsBuilder_; } private com.google.protobuf.LazyStringList dcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDcsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { dcs_ = new com.google.protobuf.LazyStringArrayList(dcs_); bitField0_ |= 0x00000004; } } /** * repeated string dcs = 3; */ public com.google.protobuf.ProtocolStringList getDcsList() { return dcs_.getUnmodifiableView(); } /** * repeated string dcs = 3; */ public int getDcsCount() { return dcs_.size(); } /** * repeated string dcs = 3; */ public java.lang.String getDcs(int index) { return dcs_.get(index); } /** * repeated string dcs = 3; */ public com.google.protobuf.ByteString getDcsBytes(int index) { return dcs_.getByteString(index); } /** * repeated string dcs = 3; */ public Builder setDcs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDcsIsMutable(); dcs_.set(index, value); onChanged(); return this; } /** * repeated string dcs = 3; */ public Builder addDcs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDcsIsMutable(); dcs_.add(value); onChanged(); return this; } /** * repeated string dcs = 3; */ public Builder addAllDcs( java.lang.Iterable values) { ensureDcsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dcs_); onChanged(); return this; } /** * repeated string dcs = 3; */ public Builder clearDcs() { dcs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string dcs = 3; */ public Builder addDcsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDcsIsMutable(); dcs_.add(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:pdpb.SyncMaxTSResponse) } // @@protoc_insertion_point(class_scope:pdpb.SyncMaxTSResponse) private static final org.tikv.kvproto.Pdpb.SyncMaxTSResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SyncMaxTSResponse(); } public static org.tikv.kvproto.Pdpb.SyncMaxTSResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SyncMaxTSResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SyncMaxTSResponse(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.Pdpb.SyncMaxTSResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRegionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SplitRegionsRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * repeated bytes split_keys = 2; */ java.util.List getSplitKeysList(); /** * repeated bytes split_keys = 2; */ int getSplitKeysCount(); /** * repeated bytes split_keys = 2; */ com.google.protobuf.ByteString getSplitKeys(int index); /** * uint64 retry_limit = 3; */ long getRetryLimit(); } /** * Protobuf type {@code pdpb.SplitRegionsRequest} */ public static final class SplitRegionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SplitRegionsRequest) SplitRegionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRegionsRequest.newBuilder() to construct. private SplitRegionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRegionsRequest() { splitKeys_ = java.util.Collections.emptyList(); retryLimit_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRegionsRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { splitKeys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } splitKeys_.add(input.readBytes()); break; } case 24: { retryLimit_ = 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)) { splitKeys_ = java.util.Collections.unmodifiableList(splitKeys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegionsRequest.class, org.tikv.kvproto.Pdpb.SplitRegionsRequest.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int SPLIT_KEYS_FIELD_NUMBER = 2; private java.util.List splitKeys_; /** * repeated bytes split_keys = 2; */ public java.util.List getSplitKeysList() { return splitKeys_; } /** * repeated bytes split_keys = 2; */ public int getSplitKeysCount() { return splitKeys_.size(); } /** * repeated bytes split_keys = 2; */ public com.google.protobuf.ByteString getSplitKeys(int index) { return splitKeys_.get(index); } public static final int RETRY_LIMIT_FIELD_NUMBER = 3; private long retryLimit_; /** * uint64 retry_limit = 3; */ public long getRetryLimit() { return retryLimit_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < splitKeys_.size(); i++) { output.writeBytes(2, splitKeys_.get(i)); } if (retryLimit_ != 0L) { output.writeUInt64(3, retryLimit_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } { 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(); } if (retryLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, retryLimit_); } 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.Pdpb.SplitRegionsRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SplitRegionsRequest other = (org.tikv.kvproto.Pdpb.SplitRegionsRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getSplitKeysList() .equals(other.getSplitKeysList()); result = result && (getRetryLimit() == other.getRetryLimit()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getSplitKeysCount() > 0) { hash = (37 * hash) + SPLIT_KEYS_FIELD_NUMBER; hash = (53 * hash) + getSplitKeysList().hashCode(); } hash = (37 * hash) + RETRY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRetryLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest 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.Pdpb.SplitRegionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest 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.Pdpb.SplitRegionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest 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.Pdpb.SplitRegionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest 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.Pdpb.SplitRegionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest 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.Pdpb.SplitRegionsRequest 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 pdpb.SplitRegionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SplitRegionsRequest) org.tikv.kvproto.Pdpb.SplitRegionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegionsRequest.class, org.tikv.kvproto.Pdpb.SplitRegionsRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SplitRegionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } splitKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); retryLimit_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsRequest_descriptor; } public org.tikv.kvproto.Pdpb.SplitRegionsRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SplitRegionsRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SplitRegionsRequest build() { org.tikv.kvproto.Pdpb.SplitRegionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SplitRegionsRequest buildPartial() { org.tikv.kvproto.Pdpb.SplitRegionsRequest result = new org.tikv.kvproto.Pdpb.SplitRegionsRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { splitKeys_ = java.util.Collections.unmodifiableList(splitKeys_); bitField0_ = (bitField0_ & ~0x00000002); } result.splitKeys_ = splitKeys_; result.retryLimit_ = retryLimit_; 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.Pdpb.SplitRegionsRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.SplitRegionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SplitRegionsRequest other) { if (other == org.tikv.kvproto.Pdpb.SplitRegionsRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.splitKeys_.isEmpty()) { if (splitKeys_.isEmpty()) { splitKeys_ = other.splitKeys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSplitKeysIsMutable(); splitKeys_.addAll(other.splitKeys_); } onChanged(); } if (other.getRetryLimit() != 0L) { setRetryLimit(other.getRetryLimit()); } 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.Pdpb.SplitRegionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SplitRegionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List splitKeys_ = java.util.Collections.emptyList(); private void ensureSplitKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { splitKeys_ = new java.util.ArrayList(splitKeys_); bitField0_ |= 0x00000002; } } /** * repeated bytes split_keys = 2; */ public java.util.List getSplitKeysList() { return java.util.Collections.unmodifiableList(splitKeys_); } /** * repeated bytes split_keys = 2; */ public int getSplitKeysCount() { return splitKeys_.size(); } /** * repeated bytes split_keys = 2; */ public com.google.protobuf.ByteString getSplitKeys(int index) { return splitKeys_.get(index); } /** * repeated bytes split_keys = 2; */ public Builder setSplitKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSplitKeysIsMutable(); splitKeys_.set(index, value); onChanged(); return this; } /** * repeated bytes split_keys = 2; */ public Builder addSplitKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSplitKeysIsMutable(); splitKeys_.add(value); onChanged(); return this; } /** * repeated bytes split_keys = 2; */ public Builder addAllSplitKeys( java.lang.Iterable values) { ensureSplitKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, splitKeys_); onChanged(); return this; } /** * repeated bytes split_keys = 2; */ public Builder clearSplitKeys() { splitKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private long retryLimit_ ; /** * uint64 retry_limit = 3; */ public long getRetryLimit() { return retryLimit_; } /** * uint64 retry_limit = 3; */ public Builder setRetryLimit(long value) { retryLimit_ = value; onChanged(); return this; } /** * uint64 retry_limit = 3; */ public Builder clearRetryLimit() { retryLimit_ = 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:pdpb.SplitRegionsRequest) } // @@protoc_insertion_point(class_scope:pdpb.SplitRegionsRequest) private static final org.tikv.kvproto.Pdpb.SplitRegionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SplitRegionsRequest(); } public static org.tikv.kvproto.Pdpb.SplitRegionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRegionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRegionsRequest(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.Pdpb.SplitRegionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRegionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.SplitRegionsResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** * uint64 finished_percentage = 2; */ long getFinishedPercentage(); /** * repeated uint64 regions_id = 3; */ java.util.List getRegionsIdList(); /** * repeated uint64 regions_id = 3; */ int getRegionsIdCount(); /** * repeated uint64 regions_id = 3; */ long getRegionsId(int index); } /** * Protobuf type {@code pdpb.SplitRegionsResponse} */ public static final class SplitRegionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.SplitRegionsResponse) SplitRegionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRegionsResponse.newBuilder() to construct. private SplitRegionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRegionsResponse() { finishedPercentage_ = 0L; regionsId_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRegionsResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { finishedPercentage_ = input.readUInt64(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { regionsId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } regionsId_.add(input.readUInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { regionsId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { regionsId_.add(input.readUInt64()); } 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_ & 0x00000004) == 0x00000004)) { regionsId_ = java.util.Collections.unmodifiableList(regionsId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegionsResponse.class, org.tikv.kvproto.Pdpb.SplitRegionsResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int FINISHED_PERCENTAGE_FIELD_NUMBER = 2; private long finishedPercentage_; /** * uint64 finished_percentage = 2; */ public long getFinishedPercentage() { return finishedPercentage_; } public static final int REGIONS_ID_FIELD_NUMBER = 3; private java.util.List regionsId_; /** * repeated uint64 regions_id = 3; */ public java.util.List getRegionsIdList() { return regionsId_; } /** * repeated uint64 regions_id = 3; */ public int getRegionsIdCount() { return regionsId_.size(); } /** * repeated uint64 regions_id = 3; */ public long getRegionsId(int index) { return regionsId_.get(index); } private int regionsIdMemoizedSerializedSize = -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 (header_ != null) { output.writeMessage(1, getHeader()); } if (finishedPercentage_ != 0L) { output.writeUInt64(2, finishedPercentage_); } if (getRegionsIdList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(regionsIdMemoizedSerializedSize); } for (int i = 0; i < regionsId_.size(); i++) { output.writeUInt64NoTag(regionsId_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (finishedPercentage_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, finishedPercentage_); } { int dataSize = 0; for (int i = 0; i < regionsId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(regionsId_.get(i)); } size += dataSize; if (!getRegionsIdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } regionsIdMemoizedSerializedSize = 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.Pdpb.SplitRegionsResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.SplitRegionsResponse other = (org.tikv.kvproto.Pdpb.SplitRegionsResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getFinishedPercentage() == other.getFinishedPercentage()); result = result && getRegionsIdList() .equals(other.getRegionsIdList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + FINISHED_PERCENTAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFinishedPercentage()); if (getRegionsIdCount() > 0) { hash = (37 * hash) + REGIONS_ID_FIELD_NUMBER; hash = (53 * hash) + getRegionsIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse 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.Pdpb.SplitRegionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse 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.Pdpb.SplitRegionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse 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.Pdpb.SplitRegionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse 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.Pdpb.SplitRegionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse 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.Pdpb.SplitRegionsResponse 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 pdpb.SplitRegionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.SplitRegionsResponse) org.tikv.kvproto.Pdpb.SplitRegionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.SplitRegionsResponse.class, org.tikv.kvproto.Pdpb.SplitRegionsResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.SplitRegionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } finishedPercentage_ = 0L; regionsId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_SplitRegionsResponse_descriptor; } public org.tikv.kvproto.Pdpb.SplitRegionsResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.SplitRegionsResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.SplitRegionsResponse build() { org.tikv.kvproto.Pdpb.SplitRegionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.SplitRegionsResponse buildPartial() { org.tikv.kvproto.Pdpb.SplitRegionsResponse result = new org.tikv.kvproto.Pdpb.SplitRegionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.finishedPercentage_ = finishedPercentage_; if (((bitField0_ & 0x00000004) == 0x00000004)) { regionsId_ = java.util.Collections.unmodifiableList(regionsId_); bitField0_ = (bitField0_ & ~0x00000004); } result.regionsId_ = regionsId_; 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.Pdpb.SplitRegionsResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.SplitRegionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.SplitRegionsResponse other) { if (other == org.tikv.kvproto.Pdpb.SplitRegionsResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getFinishedPercentage() != 0L) { setFinishedPercentage(other.getFinishedPercentage()); } if (!other.regionsId_.isEmpty()) { if (regionsId_.isEmpty()) { regionsId_ = other.regionsId_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRegionsIdIsMutable(); regionsId_.addAll(other.regionsId_); } 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.Pdpb.SplitRegionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.SplitRegionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long finishedPercentage_ ; /** * uint64 finished_percentage = 2; */ public long getFinishedPercentage() { return finishedPercentage_; } /** * uint64 finished_percentage = 2; */ public Builder setFinishedPercentage(long value) { finishedPercentage_ = value; onChanged(); return this; } /** * uint64 finished_percentage = 2; */ public Builder clearFinishedPercentage() { finishedPercentage_ = 0L; onChanged(); return this; } private java.util.List regionsId_ = java.util.Collections.emptyList(); private void ensureRegionsIdIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { regionsId_ = new java.util.ArrayList(regionsId_); bitField0_ |= 0x00000004; } } /** * repeated uint64 regions_id = 3; */ public java.util.List getRegionsIdList() { return java.util.Collections.unmodifiableList(regionsId_); } /** * repeated uint64 regions_id = 3; */ public int getRegionsIdCount() { return regionsId_.size(); } /** * repeated uint64 regions_id = 3; */ public long getRegionsId(int index) { return regionsId_.get(index); } /** * repeated uint64 regions_id = 3; */ public Builder setRegionsId( int index, long value) { ensureRegionsIdIsMutable(); regionsId_.set(index, value); onChanged(); return this; } /** * repeated uint64 regions_id = 3; */ public Builder addRegionsId(long value) { ensureRegionsIdIsMutable(); regionsId_.add(value); onChanged(); return this; } /** * repeated uint64 regions_id = 3; */ public Builder addAllRegionsId( java.lang.Iterable values) { ensureRegionsIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regionsId_); onChanged(); return this; } /** * repeated uint64 regions_id = 3; */ public Builder clearRegionsId() { regionsId_ = 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:pdpb.SplitRegionsResponse) } // @@protoc_insertion_point(class_scope:pdpb.SplitRegionsResponse) private static final org.tikv.kvproto.Pdpb.SplitRegionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.SplitRegionsResponse(); } public static org.tikv.kvproto.Pdpb.SplitRegionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRegionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRegionsResponse(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.Pdpb.SplitRegionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetDCLocationInfoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetDCLocationInfoRequest) com.google.protobuf.MessageOrBuilder { /** * .pdpb.RequestHeader header = 1; */ boolean hasHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeader getHeader(); /** * .pdpb.RequestHeader header = 1; */ org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder(); /** * string dc_location = 2; */ java.lang.String getDcLocation(); /** * string dc_location = 2; */ com.google.protobuf.ByteString getDcLocationBytes(); } /** * Protobuf type {@code pdpb.GetDCLocationInfoRequest} */ public static final class GetDCLocationInfoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetDCLocationInfoRequest) GetDCLocationInfoRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetDCLocationInfoRequest.newBuilder() to construct. private GetDCLocationInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetDCLocationInfoRequest() { dcLocation_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetDCLocationInfoRequest( 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.Pdpb.RequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.RequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); dcLocation_ = 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.Pdpb.internal_static_pdpb_GetDCLocationInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.class, org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.RequestHeader header_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int DC_LOCATION_FIELD_NUMBER = 2; private volatile java.lang.Object dcLocation_; /** * string dc_location = 2; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; 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(); dcLocation_ = s; return s; } } /** * string dc_location = 2; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = 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 (header_ != null) { output.writeMessage(1, getHeader()); } if (!getDcLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dcLocation_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!getDcLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dcLocation_); } 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.Pdpb.GetDCLocationInfoRequest)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest other = (org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getDcLocation() .equals(other.getDcLocation()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + DC_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDcLocation().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest 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.Pdpb.GetDCLocationInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest 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.Pdpb.GetDCLocationInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest 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.Pdpb.GetDCLocationInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest 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.Pdpb.GetDCLocationInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest 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.Pdpb.GetDCLocationInfoRequest 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 pdpb.GetDCLocationInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetDCLocationInfoRequest) org.tikv.kvproto.Pdpb.GetDCLocationInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.class, org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } dcLocation_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoRequest_descriptor; } public org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest build() { org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest buildPartial() { org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest result = new org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.dcLocation_ = dcLocation_; 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.Pdpb.GetDCLocationInfoRequest) { return mergeFrom((org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest other) { if (other == org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (!other.getDcLocation().isEmpty()) { dcLocation_ = other.dcLocation_; 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.Pdpb.GetDCLocationInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.RequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> headerBuilder_; /** * .pdpb.RequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.RequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.RequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.RequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.RequestHeader header = 1; */ public org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.RequestHeader.getDefaultInstance() : header_; } } /** * .pdpb.RequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.RequestHeader, org.tikv.kvproto.Pdpb.RequestHeader.Builder, org.tikv.kvproto.Pdpb.RequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.lang.Object dcLocation_ = ""; /** * string dc_location = 2; */ public java.lang.String getDcLocation() { java.lang.Object ref = dcLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dcLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dc_location = 2; */ public com.google.protobuf.ByteString getDcLocationBytes() { java.lang.Object ref = dcLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dcLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string dc_location = 2; */ public Builder setDcLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dcLocation_ = value; onChanged(); return this; } /** * string dc_location = 2; */ public Builder clearDcLocation() { dcLocation_ = getDefaultInstance().getDcLocation(); onChanged(); return this; } /** * string dc_location = 2; */ public Builder setDcLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dcLocation_ = 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:pdpb.GetDCLocationInfoRequest) } // @@protoc_insertion_point(class_scope:pdpb.GetDCLocationInfoRequest) private static final org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest(); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetDCLocationInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetDCLocationInfoRequest(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.Pdpb.GetDCLocationInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetDCLocationInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pdpb.GetDCLocationInfoResponse) com.google.protobuf.MessageOrBuilder { /** * .pdpb.ResponseHeader header = 1; */ boolean hasHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeader getHeader(); /** * .pdpb.ResponseHeader header = 1; */ org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** *
     * suffix sign
     * 
* * int32 suffix = 2; */ int getSuffix(); /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ boolean hasMaxTs(); /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ org.tikv.kvproto.Pdpb.Timestamp getMaxTs(); /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder(); } /** * Protobuf type {@code pdpb.GetDCLocationInfoResponse} */ public static final class GetDCLocationInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pdpb.GetDCLocationInfoResponse) GetDCLocationInfoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetDCLocationInfoResponse.newBuilder() to construct. private GetDCLocationInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetDCLocationInfoResponse() { suffix_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetDCLocationInfoResponse( 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.Pdpb.ResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Pdpb.ResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { suffix_ = input.readInt32(); break; } case 26: { org.tikv.kvproto.Pdpb.Timestamp.Builder subBuilder = null; if (maxTs_ != null) { subBuilder = maxTs_.toBuilder(); } maxTs_ = input.readMessage(org.tikv.kvproto.Pdpb.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxTs_); maxTs_ = 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.Pdpb.internal_static_pdpb_GetDCLocationInfoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.class, org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Pdpb.ResponseHeader header_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int SUFFIX_FIELD_NUMBER = 2; private int suffix_; /** *
     * suffix sign
     * 
* * int32 suffix = 2; */ public int getSuffix() { return suffix_; } public static final int MAX_TS_FIELD_NUMBER = 3; private org.tikv.kvproto.Pdpb.Timestamp maxTs_; /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ public boolean hasMaxTs() { return maxTs_ != null; } /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxTs() { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } /** *
     * max_ts will be included into this response if PD leader think the receiver needs,
     * which it's set when the number of the max suffix bits changes.
     * 
* * .pdpb.Timestamp max_ts = 3; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder() { return getMaxTs(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (suffix_ != 0) { output.writeInt32(2, suffix_); } if (maxTs_ != null) { output.writeMessage(3, getMaxTs()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (suffix_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, suffix_); } if (maxTs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxTs()); } 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.Pdpb.GetDCLocationInfoResponse)) { return super.equals(obj); } org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse other = (org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getSuffix() == other.getSuffix()); result = result && (hasMaxTs() == other.hasMaxTs()); if (hasMaxTs()) { result = result && getMaxTs() .equals(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 (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getSuffix(); if (hasMaxTs()) { hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + getMaxTs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse 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.Pdpb.GetDCLocationInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse 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.Pdpb.GetDCLocationInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse 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.Pdpb.GetDCLocationInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse 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.Pdpb.GetDCLocationInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse 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.Pdpb.GetDCLocationInfoResponse 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 pdpb.GetDCLocationInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pdpb.GetDCLocationInfoResponse) org.tikv.kvproto.Pdpb.GetDCLocationInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.class, org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.Builder.class); } // Construct using org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } suffix_ = 0; if (maxTsBuilder_ == null) { maxTs_ = null; } else { maxTs_ = null; maxTsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Pdpb.internal_static_pdpb_GetDCLocationInfoResponse_descriptor; } public org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse getDefaultInstanceForType() { return org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.getDefaultInstance(); } public org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse build() { org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse buildPartial() { org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse result = new org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.suffix_ = suffix_; if (maxTsBuilder_ == null) { result.maxTs_ = maxTs_; } else { result.maxTs_ = maxTsBuilder_.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.Pdpb.GetDCLocationInfoResponse) { return mergeFrom((org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse other) { if (other == org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getSuffix() != 0) { setSuffix(other.getSuffix()); } if (other.hasMaxTs()) { mergeMaxTs(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.Pdpb.GetDCLocationInfoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Pdpb.ResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> headerBuilder_; /** * .pdpb.ResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.Pdpb.ResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Pdpb.ResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Pdpb.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .pdpb.ResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .pdpb.ResponseHeader header = 1; */ public org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Pdpb.ResponseHeader.getDefaultInstance() : header_; } } /** * .pdpb.ResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.ResponseHeader, org.tikv.kvproto.Pdpb.ResponseHeader.Builder, org.tikv.kvproto.Pdpb.ResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int suffix_ ; /** *
       * suffix sign
       * 
* * int32 suffix = 2; */ public int getSuffix() { return suffix_; } /** *
       * suffix sign
       * 
* * int32 suffix = 2; */ public Builder setSuffix(int value) { suffix_ = value; onChanged(); return this; } /** *
       * suffix sign
       * 
* * int32 suffix = 2; */ public Builder clearSuffix() { suffix_ = 0; onChanged(); return this; } private org.tikv.kvproto.Pdpb.Timestamp maxTs_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> maxTsBuilder_; /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public boolean hasMaxTs() { return maxTsBuilder_ != null || maxTs_ != null; } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public org.tikv.kvproto.Pdpb.Timestamp getMaxTs() { if (maxTsBuilder_ == null) { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } else { return maxTsBuilder_.getMessage(); } } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public Builder setMaxTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxTsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxTs_ = value; onChanged(); } else { maxTsBuilder_.setMessage(value); } return this; } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public Builder setMaxTs( org.tikv.kvproto.Pdpb.Timestamp.Builder builderForValue) { if (maxTsBuilder_ == null) { maxTs_ = builderForValue.build(); onChanged(); } else { maxTsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public Builder mergeMaxTs(org.tikv.kvproto.Pdpb.Timestamp value) { if (maxTsBuilder_ == null) { if (maxTs_ != null) { maxTs_ = org.tikv.kvproto.Pdpb.Timestamp.newBuilder(maxTs_).mergeFrom(value).buildPartial(); } else { maxTs_ = value; } onChanged(); } else { maxTsBuilder_.mergeFrom(value); } return this; } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public Builder clearMaxTs() { if (maxTsBuilder_ == null) { maxTs_ = null; onChanged(); } else { maxTs_ = null; maxTsBuilder_ = null; } return this; } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public org.tikv.kvproto.Pdpb.Timestamp.Builder getMaxTsBuilder() { onChanged(); return getMaxTsFieldBuilder().getBuilder(); } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ public org.tikv.kvproto.Pdpb.TimestampOrBuilder getMaxTsOrBuilder() { if (maxTsBuilder_ != null) { return maxTsBuilder_.getMessageOrBuilder(); } else { return maxTs_ == null ? org.tikv.kvproto.Pdpb.Timestamp.getDefaultInstance() : maxTs_; } } /** *
       * max_ts will be included into this response if PD leader think the receiver needs,
       * which it's set when the number of the max suffix bits changes.
       * 
* * .pdpb.Timestamp max_ts = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder> getMaxTsFieldBuilder() { if (maxTsBuilder_ == null) { maxTsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Pdpb.Timestamp, org.tikv.kvproto.Pdpb.Timestamp.Builder, org.tikv.kvproto.Pdpb.TimestampOrBuilder>( getMaxTs(), getParentForChildren(), isClean()); maxTs_ = null; } return maxTsBuilder_; } 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:pdpb.GetDCLocationInfoResponse) } // @@protoc_insertion_point(class_scope:pdpb.GetDCLocationInfoResponse) private static final org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse(); } public static org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetDCLocationInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetDCLocationInfoResponse(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.Pdpb.GetDCLocationInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_RequestHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_RequestHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ResponseHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ResponseHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_TsoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_TsoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_Timestamp_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_Timestamp_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_TsoResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_TsoResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_BootstrapRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_BootstrapRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_BootstrapResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_BootstrapResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_IsBootstrappedRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_IsBootstrappedRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_IsBootstrappedResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_IsBootstrappedResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AllocIDRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AllocIDRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AllocIDResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AllocIDResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetStoreRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetStoreRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetStoreResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetStoreResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_PutStoreRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_PutStoreRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_PutStoreResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_PutStoreResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetAllStoresRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetAllStoresRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetAllStoresResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetAllStoresResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetRegionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetRegionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetRegionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetRegionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetRegionByIDRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetRegionByIDRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ScanRegionsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ScanRegionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_Region_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_Region_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ScanRegionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ScanRegionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetClusterConfigRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetClusterConfigRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetClusterConfigResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetClusterConfigResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_PutClusterConfigRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_PutClusterConfigRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_PutClusterConfigResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_PutClusterConfigResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_Member_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_Member_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetMembersRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetMembersRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetMembersResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetMembersResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_PeerStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_PeerStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_RegionHeartbeatRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_RegionHeartbeatRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ChangePeer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ChangePeer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ChangePeerV2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ChangePeerV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_TransferLeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_TransferLeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_Merge_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_Merge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SplitRegion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SplitRegion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_RegionHeartbeatResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_RegionHeartbeatResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AskSplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AskSplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AskSplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AskSplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ReportSplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ReportSplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ReportSplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ReportSplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AskBatchSplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AskBatchSplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SplitID_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SplitID_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_AskBatchSplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_AskBatchSplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ReportBatchSplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ReportBatchSplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ReportBatchSplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ReportBatchSplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_TimeInterval_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_TimeInterval_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_RecordPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_RecordPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_StoreStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_StoreStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_StoreHeartbeatRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_StoreHeartbeatRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_StoreHeartbeatResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_StoreHeartbeatResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ScatterRegionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ScatterRegionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_ScatterRegionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_ScatterRegionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetGCSafePointRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetGCSafePointRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetGCSafePointResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetGCSafePointResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_UpdateGCSafePointRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_UpdateGCSafePointRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_UpdateGCSafePointResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_UpdateGCSafePointResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_UpdateServiceGCSafePointRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_UpdateServiceGCSafePointResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_RegionStat_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_RegionStat_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SyncRegionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SyncRegionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SyncRegionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SyncRegionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetOperatorRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetOperatorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetOperatorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetOperatorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SyncMaxTSRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SyncMaxTSRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SyncMaxTSResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SyncMaxTSResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SplitRegionsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SplitRegionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_SplitRegionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_SplitRegionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetDCLocationInfoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetDCLocationInfoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_pdpb_GetDCLocationInfoResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_pdpb_GetDCLocationInfoResponse_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\npdpb.proto\022\004pdpb\032\014metapb.proto\032\reraftp" + "b.proto\032\030replication_modepb.proto\032\024gogop" + "roto/gogo.proto\032\017rustproto.proto\"6\n\rRequ" + "estHeader\022\022\n\ncluster_id\030\001 \001(\004\022\021\n\tsender_" + "id\030\002 \001(\004\"@\n\016ResponseHeader\022\022\n\ncluster_id" + "\030\001 \001(\004\022\032\n\005error\030\002 \001(\0132\013.pdpb.Error\"7\n\005Er" + "ror\022\035\n\004type\030\001 \001(\0162\017.pdpb.ErrorType\022\017\n\007me" + "ssage\030\002 \001(\t\"U\n\nTsoRequest\022#\n\006header\030\001 \001(" + "\0132\023.pdpb.RequestHeader\022\r\n\005count\030\002 \001(\r\022\023\n" + "\013dc_location\030\003 \001(\t\"C\n\tTimestamp\022\020\n\010physi" + "cal\030\001 \001(\003\022\017\n\007logical\030\002 \001(\003\022\023\n\013suffix_bit" + "s\030\003 \001(\r\"f\n\013TsoResponse\022$\n\006header\030\001 \001(\0132\024" + ".pdpb.ResponseHeader\022\r\n\005count\030\002 \001(\r\022\"\n\tt" + "imestamp\030\003 \001(\0132\017.pdpb.Timestamp\"u\n\020Boots" + "trapRequest\022#\n\006header\030\001 \001(\0132\023.pdpb.Reque" + "stHeader\022\034\n\005store\030\002 \001(\0132\r.metapb.Store\022\036" + "\n\006region\030\003 \001(\0132\016.metapb.Region\"|\n\021Bootst" + "rapResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respo" + "nseHeader\022A\n\022replication_status\030\002 \001(\0132%." + "replication_modepb.ReplicationStatus\"<\n\025" + "IsBootstrappedRequest\022#\n\006header\030\001 \001(\0132\023." + "pdpb.RequestHeader\"T\n\026IsBootstrappedResp" + "onse\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHead" + "er\022\024\n\014bootstrapped\030\002 \001(\010\"5\n\016AllocIDReque" + "st\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\"" + "C\n\017AllocIDResponse\022$\n\006header\030\001 \001(\0132\024.pdp" + "b.ResponseHeader\022\n\n\002id\030\002 \001(\004\"H\n\017GetStore" + "Request\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHe" + "ader\022\020\n\010store_id\030\002 \001(\004\"w\n\020GetStoreRespon" + "se\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHeader" + "\022\034\n\005store\030\002 \001(\0132\r.metapb.Store\022\037\n\005stats\030" + "\003 \001(\0132\020.pdpb.StoreStats\"T\n\017PutStoreReque" + "st\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022" + "\034\n\005store\030\002 \001(\0132\r.metapb.Store\"{\n\020PutStor" + "eResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respons" + "eHeader\022A\n\022replication_status\030\002 \001(\0132%.re" + "plication_modepb.ReplicationStatus\"\\\n\023Ge" + "tAllStoresRequest\022#\n\006header\030\001 \001(\0132\023.pdpb" + ".RequestHeader\022 \n\030exclude_tombstone_stor" + "es\030\002 \001(\010\"[\n\024GetAllStoresResponse\022$\n\006head" + "er\030\001 \001(\0132\024.pdpb.ResponseHeader\022\035\n\006stores" + "\030\002 \003(\0132\r.metapb.Store\"K\n\020GetRegionReques" + "t\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022\022" + "\n\nregion_key\030\002 \001(\014\"\307\001\n\021GetRegionResponse" + "\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHeader\022\036" + "\n\006region\030\002 \001(\0132\016.metapb.Region\022\034\n\006leader" + "\030\003 \001(\0132\014.metapb.Peer\022#\n\ndown_peers\030\005 \003(\013" + "2\017.pdpb.PeerStats\022#\n\rpending_peers\030\006 \003(\013" + "2\014.metapb.PeerJ\004\010\004\020\005\"N\n\024GetRegionByIDReq" + "uest\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeade" + "r\022\021\n\tregion_id\030\002 \001(\004\"l\n\022ScanRegionsReque" + "st\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022" + "\021\n\tstart_key\030\002 \001(\014\022\r\n\005limit\030\003 \001(\005\022\017\n\007end" + "_key\030\004 \001(\014\"\220\001\n\006Region\022\036\n\006region\030\001 \001(\0132\016." + "metapb.Region\022\034\n\006leader\030\002 \001(\0132\014.metapb.P" + "eer\022#\n\ndown_peers\030\003 \003(\0132\017.pdpb.PeerStats" + "\022#\n\rpending_peers\030\004 \003(\0132\014.metapb.Peer\"\237\001" + "\n\023ScanRegionsResponse\022$\n\006header\030\001 \001(\0132\024." + "pdpb.ResponseHeader\022$\n\014region_metas\030\002 \003(" + "\0132\016.metapb.Region\022\035\n\007leaders\030\003 \003(\0132\014.met" + "apb.Peer\022\035\n\007regions\030\004 \003(\0132\014.pdpb.Region\"" + ">\n\027GetClusterConfigRequest\022#\n\006header\030\001 \001" + "(\0132\023.pdpb.RequestHeader\"b\n\030GetClusterCon" + "figResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respo" + "nseHeader\022 \n\007cluster\030\002 \001(\0132\017.metapb.Clus" + "ter\"`\n\027PutClusterConfigRequest\022#\n\006header" + "\030\001 \001(\0132\023.pdpb.RequestHeader\022 \n\007cluster\030\002" + " \001(\0132\017.metapb.Cluster\"@\n\030PutClusterConfi" + "gResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respons" + "eHeader\"\276\001\n\006Member\022\014\n\004name\030\001 \001(\t\022\021\n\tmemb" + "er_id\030\002 \001(\004\022\021\n\tpeer_urls\030\003 \003(\t\022\023\n\013client" + "_urls\030\004 \003(\t\022\027\n\017leader_priority\030\005 \001(\005\022\023\n\013" + "deploy_path\030\006 \001(\t\022\026\n\016binary_version\030\007 \001(" + "\t\022\020\n\010git_hash\030\010 \001(\t\022\023\n\013dc_location\030\t \001(\t" + "\"8\n\021GetMembersRequest\022#\n\006header\030\001 \001(\0132\023." + "pdpb.RequestHeader\"\266\002\n\022GetMembersRespons" + "e\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHeader\022" + "\035\n\007members\030\002 \003(\0132\014.pdpb.Member\022\034\n\006leader" + "\030\003 \001(\0132\014.pdpb.Member\022!\n\013etcd_leader\030\004 \001(" + "\0132\014.pdpb.Member\022P\n\025tso_allocator_leaders" + "\030\005 \003(\01321.pdpb.GetMembersResponse.TsoAllo" + "catorLeadersEntry\032H\n\030TsoAllocatorLeaders" + "Entry\022\013\n\003key\030\001 \001(\t\022\033\n\005value\030\002 \001(\0132\014.pdpb" + ".Member:\0028\001\"=\n\tPeerStats\022\032\n\004peer\030\001 \001(\0132\014" + ".metapb.Peer\022\024\n\014down_seconds\030\002 \001(\004\"\320\003\n\026R" + "egionHeartbeatRequest\022#\n\006header\030\001 \001(\0132\023." + "pdpb.RequestHeader\022\036\n\006region\030\002 \001(\0132\016.met" + "apb.Region\022\034\n\006leader\030\003 \001(\0132\014.metapb.Peer" + "\022#\n\ndown_peers\030\004 \003(\0132\017.pdpb.PeerStats\022#\n" + "\rpending_peers\030\005 \003(\0132\014.metapb.Peer\022\025\n\rby" + "tes_written\030\006 \001(\004\022\022\n\nbytes_read\030\007 \001(\004\022\024\n" + "\014keys_written\030\010 \001(\004\022\021\n\tkeys_read\030\t \001(\004\022\030" + "\n\020approximate_size\030\n \001(\004\022$\n\010interval\030\014 \001" + "(\0132\022.pdpb.TimeInterval\022\030\n\020approximate_ke" + "ys\030\r \001(\004\022\014\n\004term\030\016 \001(\004\022G\n\022replication_st" + "atus\030\017 \001(\0132+.replication_modepb.RegionRe" + "plicationStatusJ\004\010\013\020\014\"V\n\nChangePeer\022\032\n\004p" + "eer\030\001 \001(\0132\014.metapb.Peer\022,\n\013change_type\030\002" + " \001(\0162\027.eraftpb.ConfChangeType\"1\n\014ChangeP" + "eerV2\022!\n\007changes\030\001 \003(\0132\020.pdpb.ChangePeer" + "\",\n\016TransferLeader\022\032\n\004peer\030\001 \001(\0132\014.metap" + "b.Peer\"\'\n\005Merge\022\036\n\006target\030\001 \001(\0132\016.metapb" + ".Region\">\n\013SplitRegion\022!\n\006policy\030\001 \001(\0162\021" + ".pdpb.CheckPolicy\022\014\n\004keys\030\002 \003(\014\"\347\002\n\027Regi" + "onHeartbeatResponse\022$\n\006header\030\001 \001(\0132\024.pd" + "pb.ResponseHeader\022%\n\013change_peer\030\002 \001(\0132\020" + ".pdpb.ChangePeer\022-\n\017transfer_leader\030\003 \001(" + "\0132\024.pdpb.TransferLeader\022\021\n\tregion_id\030\004 \001" + "(\004\022)\n\014region_epoch\030\005 \001(\0132\023.metapb.Region" + "Epoch\022!\n\013target_peer\030\006 \001(\0132\014.metapb.Peer" + "\022\032\n\005merge\030\007 \001(\0132\013.pdpb.Merge\022\'\n\014split_re" + "gion\030\010 \001(\0132\021.pdpb.SplitRegion\022*\n\016change_" + "peer_v2\030\t \001(\0132\022.pdpb.ChangePeerV2\"V\n\017Ask" + "SplitRequest\022#\n\006header\030\001 \001(\0132\023.pdpb.Requ" + "estHeader\022\036\n\006region\030\002 \001(\0132\016.metapb.Regio" + "n\"e\n\020AskSplitResponse\022$\n\006header\030\001 \001(\0132\024." + "pdpb.ResponseHeader\022\025\n\rnew_region_id\030\002 \001" + "(\004\022\024\n\014new_peer_ids\030\003 \003(\004\"v\n\022ReportSplitR" + "equest\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHea" + "der\022\034\n\004left\030\002 \001(\0132\016.metapb.Region\022\035\n\005rig" + "ht\030\003 \001(\0132\016.metapb.Region\";\n\023ReportSplitR" + "esponse\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseH" + "eader\"p\n\024AskBatchSplitRequest\022#\n\006header\030" + "\001 \001(\0132\023.pdpb.RequestHeader\022\036\n\006region\030\002 \001" + "(\0132\016.metapb.Region\022\023\n\013split_count\030\003 \001(\r\"" + "6\n\007SplitID\022\025\n\rnew_region_id\030\001 \001(\004\022\024\n\014new" + "_peer_ids\030\002 \003(\004\"Y\n\025AskBatchSplitResponse" + "\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHeader\022\032" + "\n\003ids\030\002 \003(\0132\r.pdpb.SplitID\"_\n\027ReportBatc" + "hSplitRequest\022#\n\006header\030\001 \001(\0132\023.pdpb.Req" + "uestHeader\022\037\n\007regions\030\002 \003(\0132\016.metapb.Reg" + "ion\"@\n\030ReportBatchSplitResponse\022$\n\006heade" + "r\030\001 \001(\0132\024.pdpb.ResponseHeader\">\n\014TimeInt" + "erval\022\027\n\017start_timestamp\030\001 \001(\004\022\025\n\rend_ti" + "mestamp\030\002 \001(\004\"(\n\nRecordPair\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\004\"\203\004\n\nStoreStats\022\020\n\010store_" + "id\030\001 \001(\004\022\020\n\010capacity\030\002 \001(\004\022\021\n\tavailable\030" + "\003 \001(\004\022\024\n\014region_count\030\004 \001(\r\022\032\n\022sending_s" + "nap_count\030\005 \001(\r\022\034\n\024receiving_snap_count\030" + "\006 \001(\r\022\022\n\nstart_time\030\007 \001(\r\022\033\n\023applying_sn" + "ap_count\030\010 \001(\r\022\017\n\007is_busy\030\t \001(\010\022\021\n\tused_" + "size\030\n \001(\004\022\025\n\rbytes_written\030\013 \001(\004\022\024\n\014key" + "s_written\030\014 \001(\004\022\022\n\nbytes_read\030\r \001(\004\022\021\n\tk" + "eys_read\030\016 \001(\004\022$\n\010interval\030\017 \001(\0132\022.pdpb." + "TimeInterval\022$\n\ncpu_usages\030\020 \003(\0132\020.pdpb." + "RecordPair\022\'\n\rread_io_rates\030\021 \003(\0132\020.pdpb" + ".RecordPair\022(\n\016write_io_rates\030\022 \003(\0132\020.pd" + "pb.RecordPair\022&\n\014op_latencies\030\023 \003(\0132\020.pd" + "pb.RecordPair\"]\n\025StoreHeartbeatRequest\022#" + "\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022\037\n\005s" + "tats\030\002 \001(\0132\020.pdpb.StoreStats\"\232\001\n\026StoreHe" + "artbeatResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.R" + "esponseHeader\022A\n\022replication_status\030\002 \001(" + "\0132%.replication_modepb.ReplicationStatus" + "\022\027\n\017cluster_version\030\003 \001(\t\"\310\001\n\024ScatterReg" + "ionRequest\022#\n\006header\030\001 \001(\0132\023.pdpb.Reques" + "tHeader\022\025\n\tregion_id\030\002 \001(\004B\002\030\001\022\036\n\006region" + "\030\003 \001(\0132\016.metapb.Region\022\034\n\006leader\030\004 \001(\0132\014" + ".metapb.Peer\022\r\n\005group\030\005 \001(\t\022\022\n\nregions_i" + "d\030\006 \003(\004\022\023\n\013retry_limit\030\007 \001(\004\"Z\n\025ScatterR" + "egionResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Res" + "ponseHeader\022\033\n\023finished_percentage\030\002 \001(\004" + "\"<\n\025GetGCSafePointRequest\022#\n\006header\030\001 \001(" + "\0132\023.pdpb.RequestHeader\"R\n\026GetGCSafePoint" + "Response\022$\n\006header\030\001 \001(\0132\024.pdpb.Response" + "Header\022\022\n\nsafe_point\030\002 \001(\004\"S\n\030UpdateGCSa" + "fePointRequest\022#\n\006header\030\001 \001(\0132\023.pdpb.Re" + "questHeader\022\022\n\nsafe_point\030\002 \001(\004\"Y\n\031Updat" + "eGCSafePointResponse\022$\n\006header\030\001 \001(\0132\024.p" + "dpb.ResponseHeader\022\026\n\016new_safe_point\030\002 \001" + "(\004\"{\n\037UpdateServiceGCSafePointRequest\022#\n" + "\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022\022\n\nse" + "rvice_id\030\002 \001(\014\022\013\n\003TTL\030\003 \001(\003\022\022\n\nsafe_poin" + "t\030\004 \001(\004\"\201\001\n UpdateServiceGCSafePointResp" + "onse\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHead" + "er\022\022\n\nservice_id\030\002 \001(\014\022\013\n\003TTL\030\003 \001(\003\022\026\n\016m" + "in_safe_point\030\004 \001(\004\"`\n\nRegionStat\022\025\n\rbyt" + "es_written\030\001 \001(\004\022\022\n\nbytes_read\030\002 \001(\004\022\024\n\014" + "keys_written\030\003 \001(\004\022\021\n\tkeys_read\030\004 \001(\004\"k\n" + "\021SyncRegionRequest\022#\n\006header\030\001 \001(\0132\023.pdp" + "b.RequestHeader\022\034\n\006member\030\002 \001(\0132\014.pdpb.M" + "ember\022\023\n\013start_index\030\003 \001(\004\"\276\001\n\022SyncRegio" + "nResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respons" + "eHeader\022\037\n\007regions\030\002 \003(\0132\016.metapb.Region" + "\022\023\n\013start_index\030\003 \001(\004\022&\n\014region_stats\030\004 " + "\003(\0132\020.pdpb.RegionStat\022$\n\016region_leaders\030" + "\005 \003(\0132\014.metapb.Peer\"L\n\022GetOperatorReques" + "t\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHeader\022\021" + "\n\tregion_id\030\002 \001(\004\"\220\001\n\023GetOperatorRespons" + "e\022$\n\006header\030\001 \001(\0132\024.pdpb.ResponseHeader\022" + "\021\n\tregion_id\030\002 \001(\004\022\014\n\004desc\030\003 \001(\014\022$\n\006stat" + "us\030\004 \001(\0162\024.pdpb.OperatorStatus\022\014\n\004kind\030\005" + " \001(\014\"X\n\020SyncMaxTSRequest\022#\n\006header\030\001 \001(\013" + "2\023.pdpb.RequestHeader\022\037\n\006max_ts\030\002 \001(\0132\017." + "pdpb.Timestamp\"m\n\021SyncMaxTSResponse\022$\n\006h" + "eader\030\001 \001(\0132\024.pdpb.ResponseHeader\022%\n\014max" + "_local_ts\030\002 \001(\0132\017.pdpb.Timestamp\022\013\n\003dcs\030" + "\003 \003(\t\"c\n\023SplitRegionsRequest\022#\n\006header\030\001" + " \001(\0132\023.pdpb.RequestHeader\022\022\n\nsplit_keys\030" + "\002 \003(\014\022\023\n\013retry_limit\030\003 \001(\004\"m\n\024SplitRegio" + "nsResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Respon" + "seHeader\022\033\n\023finished_percentage\030\002 \001(\004\022\022\n" + "\nregions_id\030\003 \003(\004\"T\n\030GetDCLocationInfoRe" + "quest\022#\n\006header\030\001 \001(\0132\023.pdpb.RequestHead" + "er\022\023\n\013dc_location\030\002 \001(\t\"r\n\031GetDCLocation" + "InfoResponse\022$\n\006header\030\001 \001(\0132\024.pdpb.Resp" + "onseHeader\022\016\n\006suffix\030\002 \001(\005\022\037\n\006max_ts\030\003 \001" + "(\0132\017.pdpb.Timestamp*\225\001\n\tErrorType\022\006\n\002OK\020" + "\000\022\013\n\007UNKNOWN\020\001\022\024\n\020NOT_BOOTSTRAPPED\020\002\022\023\n\017" + "STORE_TOMBSTONE\020\003\022\030\n\024ALREADY_BOOTSTRAPPE" + "D\020\004\022\030\n\024INCOMPATIBLE_VERSION\020\005\022\024\n\020REGION_" + "NOT_FOUND\020\006*4\n\013CheckPolicy\022\010\n\004SCAN\020\000\022\017\n\013" + "APPROXIMATE\020\001\022\n\n\006USEKEY\020\002*P\n\016OperatorSta" + "tus\022\013\n\007SUCCESS\020\000\022\013\n\007TIMEOUT\020\001\022\n\n\006CANCEL\020" + "\002\022\013\n\007REPLACE\020\003\022\013\n\007RUNNING\020\0042\337\020\n\002PD\022A\n\nGe" + "tMembers\022\027.pdpb.GetMembersRequest\032\030.pdpb" + ".GetMembersResponse\"\000\0220\n\003Tso\022\020.pdpb.TsoR" + "equest\032\021.pdpb.TsoResponse\"\000(\0010\001\022>\n\tBoots" + "trap\022\026.pdpb.BootstrapRequest\032\027.pdpb.Boot" + "strapResponse\"\000\022M\n\016IsBootstrapped\022\033.pdpb" + ".IsBootstrappedRequest\032\034.pdpb.IsBootstra" + "ppedResponse\"\000\0228\n\007AllocID\022\024.pdpb.AllocID" + "Request\032\025.pdpb.AllocIDResponse\"\000\022;\n\010GetS" + "tore\022\025.pdpb.GetStoreRequest\032\026.pdpb.GetSt" + "oreResponse\"\000\022;\n\010PutStore\022\025.pdpb.PutStor" + "eRequest\032\026.pdpb.PutStoreResponse\"\000\022G\n\014Ge" + "tAllStores\022\031.pdpb.GetAllStoresRequest\032\032." + "pdpb.GetAllStoresResponse\"\000\022M\n\016StoreHear" + "tbeat\022\033.pdpb.StoreHeartbeatRequest\032\034.pdp" + "b.StoreHeartbeatResponse\"\000\022T\n\017RegionHear" + "tbeat\022\034.pdpb.RegionHeartbeatRequest\032\035.pd" + "pb.RegionHeartbeatResponse\"\000(\0010\001\022>\n\tGetR" + "egion\022\026.pdpb.GetRegionRequest\032\027.pdpb.Get" + "RegionResponse\"\000\022B\n\rGetPrevRegion\022\026.pdpb" + ".GetRegionRequest\032\027.pdpb.GetRegionRespon" + "se\"\000\022F\n\rGetRegionByID\022\032.pdpb.GetRegionBy" + "IDRequest\032\027.pdpb.GetRegionResponse\"\000\022D\n\013" + "ScanRegions\022\030.pdpb.ScanRegionsRequest\032\031." + "pdpb.ScanRegionsResponse\"\000\022>\n\010AskSplit\022\025" + ".pdpb.AskSplitRequest\032\026.pdpb.AskSplitRes" + "ponse\"\003\210\002\001\022G\n\013ReportSplit\022\030.pdpb.ReportS" + "plitRequest\032\031.pdpb.ReportSplitResponse\"\003" + "\210\002\001\022J\n\rAskBatchSplit\022\032.pdpb.AskBatchSpli" + "tRequest\032\033.pdpb.AskBatchSplitResponse\"\000\022" + "S\n\020ReportBatchSplit\022\035.pdpb.ReportBatchSp" + "litRequest\032\036.pdpb.ReportBatchSplitRespon" + "se\"\000\022S\n\020GetClusterConfig\022\035.pdpb.GetClust" + "erConfigRequest\032\036.pdpb.GetClusterConfigR" + "esponse\"\000\022S\n\020PutClusterConfig\022\035.pdpb.Put" + "ClusterConfigRequest\032\036.pdpb.PutClusterCo" + "nfigResponse\"\000\022J\n\rScatterRegion\022\032.pdpb.S" + "catterRegionRequest\032\033.pdpb.ScatterRegion" + "Response\"\000\022M\n\016GetGCSafePoint\022\033.pdpb.GetG" + "CSafePointRequest\032\034.pdpb.GetGCSafePointR" + "esponse\"\000\022V\n\021UpdateGCSafePoint\022\036.pdpb.Up" + "dateGCSafePointRequest\032\037.pdpb.UpdateGCSa" + "fePointResponse\"\000\022k\n\030UpdateServiceGCSafe" + "Point\022%.pdpb.UpdateServiceGCSafePointReq" + "uest\032&.pdpb.UpdateServiceGCSafePointResp" + "onse\"\000\022F\n\013SyncRegions\022\027.pdpb.SyncRegionR" + "equest\032\030.pdpb.SyncRegionResponse\"\000(\0010\001\022D" + "\n\013GetOperator\022\030.pdpb.GetOperatorRequest\032" + "\031.pdpb.GetOperatorResponse\"\000\022>\n\tSyncMaxT" + "S\022\026.pdpb.SyncMaxTSRequest\032\027.pdpb.SyncMax" + "TSResponse\"\000\022G\n\014SplitRegions\022\031.pdpb.Spli" + "tRegionsRequest\032\032.pdpb.SplitRegionsRespo" + "nse\"\000\022V\n\021GetDCLocationInfo\022\036.pdpb.GetDCL" + "ocationInfoRequest\032\037.pdpb.GetDCLocationI" + "nfoResponse\"\000B\"\n\020org.tikv.kvproto\340\342\036\001\310\342\036" + "\001\320\342\036\001\330\250\010\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.Metapb.getDescriptor(), eraftpb.Eraftpb.getDescriptor(), replication_modepb.ReplicationModepb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_pdpb_RequestHeader_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_pdpb_RequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_RequestHeader_descriptor, new java.lang.String[] { "ClusterId", "SenderId", }); internal_static_pdpb_ResponseHeader_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_pdpb_ResponseHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ResponseHeader_descriptor, new java.lang.String[] { "ClusterId", "Error", }); internal_static_pdpb_Error_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_pdpb_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_Error_descriptor, new java.lang.String[] { "Type", "Message", }); internal_static_pdpb_TsoRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_pdpb_TsoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_TsoRequest_descriptor, new java.lang.String[] { "Header", "Count", "DcLocation", }); internal_static_pdpb_Timestamp_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_pdpb_Timestamp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_Timestamp_descriptor, new java.lang.String[] { "Physical", "Logical", "SuffixBits", }); internal_static_pdpb_TsoResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_pdpb_TsoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_TsoResponse_descriptor, new java.lang.String[] { "Header", "Count", "Timestamp", }); internal_static_pdpb_BootstrapRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_pdpb_BootstrapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_BootstrapRequest_descriptor, new java.lang.String[] { "Header", "Store", "Region", }); internal_static_pdpb_BootstrapResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_pdpb_BootstrapResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_BootstrapResponse_descriptor, new java.lang.String[] { "Header", "ReplicationStatus", }); internal_static_pdpb_IsBootstrappedRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_pdpb_IsBootstrappedRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_IsBootstrappedRequest_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_IsBootstrappedResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_pdpb_IsBootstrappedResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_IsBootstrappedResponse_descriptor, new java.lang.String[] { "Header", "Bootstrapped", }); internal_static_pdpb_AllocIDRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_pdpb_AllocIDRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AllocIDRequest_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_AllocIDResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_pdpb_AllocIDResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AllocIDResponse_descriptor, new java.lang.String[] { "Header", "Id", }); internal_static_pdpb_GetStoreRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_pdpb_GetStoreRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetStoreRequest_descriptor, new java.lang.String[] { "Header", "StoreId", }); internal_static_pdpb_GetStoreResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_pdpb_GetStoreResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetStoreResponse_descriptor, new java.lang.String[] { "Header", "Store", "Stats", }); internal_static_pdpb_PutStoreRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_pdpb_PutStoreRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_PutStoreRequest_descriptor, new java.lang.String[] { "Header", "Store", }); internal_static_pdpb_PutStoreResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_pdpb_PutStoreResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_PutStoreResponse_descriptor, new java.lang.String[] { "Header", "ReplicationStatus", }); internal_static_pdpb_GetAllStoresRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_pdpb_GetAllStoresRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetAllStoresRequest_descriptor, new java.lang.String[] { "Header", "ExcludeTombstoneStores", }); internal_static_pdpb_GetAllStoresResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_pdpb_GetAllStoresResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetAllStoresResponse_descriptor, new java.lang.String[] { "Header", "Stores", }); internal_static_pdpb_GetRegionRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_pdpb_GetRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetRegionRequest_descriptor, new java.lang.String[] { "Header", "RegionKey", }); internal_static_pdpb_GetRegionResponse_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_pdpb_GetRegionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetRegionResponse_descriptor, new java.lang.String[] { "Header", "Region", "Leader", "DownPeers", "PendingPeers", }); internal_static_pdpb_GetRegionByIDRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_pdpb_GetRegionByIDRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetRegionByIDRequest_descriptor, new java.lang.String[] { "Header", "RegionId", }); internal_static_pdpb_ScanRegionsRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_pdpb_ScanRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ScanRegionsRequest_descriptor, new java.lang.String[] { "Header", "StartKey", "Limit", "EndKey", }); internal_static_pdpb_Region_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_pdpb_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_Region_descriptor, new java.lang.String[] { "Region", "Leader", "DownPeers", "PendingPeers", }); internal_static_pdpb_ScanRegionsResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_pdpb_ScanRegionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ScanRegionsResponse_descriptor, new java.lang.String[] { "Header", "RegionMetas", "Leaders", "Regions", }); internal_static_pdpb_GetClusterConfigRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_pdpb_GetClusterConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetClusterConfigRequest_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_GetClusterConfigResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_pdpb_GetClusterConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetClusterConfigResponse_descriptor, new java.lang.String[] { "Header", "Cluster", }); internal_static_pdpb_PutClusterConfigRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_pdpb_PutClusterConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_PutClusterConfigRequest_descriptor, new java.lang.String[] { "Header", "Cluster", }); internal_static_pdpb_PutClusterConfigResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_pdpb_PutClusterConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_PutClusterConfigResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_Member_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_pdpb_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_Member_descriptor, new java.lang.String[] { "Name", "MemberId", "PeerUrls", "ClientUrls", "LeaderPriority", "DeployPath", "BinaryVersion", "GitHash", "DcLocation", }); internal_static_pdpb_GetMembersRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_pdpb_GetMembersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetMembersRequest_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_GetMembersResponse_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_pdpb_GetMembersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetMembersResponse_descriptor, new java.lang.String[] { "Header", "Members", "Leader", "EtcdLeader", "TsoAllocatorLeaders", }); internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_descriptor = internal_static_pdpb_GetMembersResponse_descriptor.getNestedTypes().get(0); internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetMembersResponse_TsoAllocatorLeadersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_pdpb_PeerStats_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_pdpb_PeerStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_PeerStats_descriptor, new java.lang.String[] { "Peer", "DownSeconds", }); internal_static_pdpb_RegionHeartbeatRequest_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_pdpb_RegionHeartbeatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_RegionHeartbeatRequest_descriptor, new java.lang.String[] { "Header", "Region", "Leader", "DownPeers", "PendingPeers", "BytesWritten", "BytesRead", "KeysWritten", "KeysRead", "ApproximateSize", "Interval", "ApproximateKeys", "Term", "ReplicationStatus", }); internal_static_pdpb_ChangePeer_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_pdpb_ChangePeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ChangePeer_descriptor, new java.lang.String[] { "Peer", "ChangeType", }); internal_static_pdpb_ChangePeerV2_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_pdpb_ChangePeerV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ChangePeerV2_descriptor, new java.lang.String[] { "Changes", }); internal_static_pdpb_TransferLeader_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_pdpb_TransferLeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_TransferLeader_descriptor, new java.lang.String[] { "Peer", }); internal_static_pdpb_Merge_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_pdpb_Merge_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_Merge_descriptor, new java.lang.String[] { "Target", }); internal_static_pdpb_SplitRegion_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_pdpb_SplitRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SplitRegion_descriptor, new java.lang.String[] { "Policy", "Keys", }); internal_static_pdpb_RegionHeartbeatResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_pdpb_RegionHeartbeatResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_RegionHeartbeatResponse_descriptor, new java.lang.String[] { "Header", "ChangePeer", "TransferLeader", "RegionId", "RegionEpoch", "TargetPeer", "Merge", "SplitRegion", "ChangePeerV2", }); internal_static_pdpb_AskSplitRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_pdpb_AskSplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AskSplitRequest_descriptor, new java.lang.String[] { "Header", "Region", }); internal_static_pdpb_AskSplitResponse_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_pdpb_AskSplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AskSplitResponse_descriptor, new java.lang.String[] { "Header", "NewRegionId", "NewPeerIds", }); internal_static_pdpb_ReportSplitRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_pdpb_ReportSplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ReportSplitRequest_descriptor, new java.lang.String[] { "Header", "Left", "Right", }); internal_static_pdpb_ReportSplitResponse_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_pdpb_ReportSplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ReportSplitResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_AskBatchSplitRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_pdpb_AskBatchSplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AskBatchSplitRequest_descriptor, new java.lang.String[] { "Header", "Region", "SplitCount", }); internal_static_pdpb_SplitID_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_pdpb_SplitID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SplitID_descriptor, new java.lang.String[] { "NewRegionId", "NewPeerIds", }); internal_static_pdpb_AskBatchSplitResponse_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_pdpb_AskBatchSplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_AskBatchSplitResponse_descriptor, new java.lang.String[] { "Header", "Ids", }); internal_static_pdpb_ReportBatchSplitRequest_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_pdpb_ReportBatchSplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ReportBatchSplitRequest_descriptor, new java.lang.String[] { "Header", "Regions", }); internal_static_pdpb_ReportBatchSplitResponse_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_pdpb_ReportBatchSplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ReportBatchSplitResponse_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_TimeInterval_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_pdpb_TimeInterval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_TimeInterval_descriptor, new java.lang.String[] { "StartTimestamp", "EndTimestamp", }); internal_static_pdpb_RecordPair_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_pdpb_RecordPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_RecordPair_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_pdpb_StoreStats_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_pdpb_StoreStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_StoreStats_descriptor, new java.lang.String[] { "StoreId", "Capacity", "Available", "RegionCount", "SendingSnapCount", "ReceivingSnapCount", "StartTime", "ApplyingSnapCount", "IsBusy", "UsedSize", "BytesWritten", "KeysWritten", "BytesRead", "KeysRead", "Interval", "CpuUsages", "ReadIoRates", "WriteIoRates", "OpLatencies", }); internal_static_pdpb_StoreHeartbeatRequest_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_pdpb_StoreHeartbeatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_StoreHeartbeatRequest_descriptor, new java.lang.String[] { "Header", "Stats", }); internal_static_pdpb_StoreHeartbeatResponse_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_pdpb_StoreHeartbeatResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_StoreHeartbeatResponse_descriptor, new java.lang.String[] { "Header", "ReplicationStatus", "ClusterVersion", }); internal_static_pdpb_ScatterRegionRequest_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_pdpb_ScatterRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ScatterRegionRequest_descriptor, new java.lang.String[] { "Header", "RegionId", "Region", "Leader", "Group", "RegionsId", "RetryLimit", }); internal_static_pdpb_ScatterRegionResponse_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_pdpb_ScatterRegionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_ScatterRegionResponse_descriptor, new java.lang.String[] { "Header", "FinishedPercentage", }); internal_static_pdpb_GetGCSafePointRequest_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_pdpb_GetGCSafePointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetGCSafePointRequest_descriptor, new java.lang.String[] { "Header", }); internal_static_pdpb_GetGCSafePointResponse_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_pdpb_GetGCSafePointResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetGCSafePointResponse_descriptor, new java.lang.String[] { "Header", "SafePoint", }); internal_static_pdpb_UpdateGCSafePointRequest_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_pdpb_UpdateGCSafePointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_UpdateGCSafePointRequest_descriptor, new java.lang.String[] { "Header", "SafePoint", }); internal_static_pdpb_UpdateGCSafePointResponse_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_pdpb_UpdateGCSafePointResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_UpdateGCSafePointResponse_descriptor, new java.lang.String[] { "Header", "NewSafePoint", }); internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_pdpb_UpdateServiceGCSafePointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_UpdateServiceGCSafePointRequest_descriptor, new java.lang.String[] { "Header", "ServiceId", "TTL", "SafePoint", }); internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_pdpb_UpdateServiceGCSafePointResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_UpdateServiceGCSafePointResponse_descriptor, new java.lang.String[] { "Header", "ServiceId", "TTL", "MinSafePoint", }); internal_static_pdpb_RegionStat_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_pdpb_RegionStat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_RegionStat_descriptor, new java.lang.String[] { "BytesWritten", "BytesRead", "KeysWritten", "KeysRead", }); internal_static_pdpb_SyncRegionRequest_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_pdpb_SyncRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SyncRegionRequest_descriptor, new java.lang.String[] { "Header", "Member", "StartIndex", }); internal_static_pdpb_SyncRegionResponse_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_pdpb_SyncRegionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SyncRegionResponse_descriptor, new java.lang.String[] { "Header", "Regions", "StartIndex", "RegionStats", "RegionLeaders", }); internal_static_pdpb_GetOperatorRequest_descriptor = getDescriptor().getMessageTypes().get(64); internal_static_pdpb_GetOperatorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetOperatorRequest_descriptor, new java.lang.String[] { "Header", "RegionId", }); internal_static_pdpb_GetOperatorResponse_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_pdpb_GetOperatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetOperatorResponse_descriptor, new java.lang.String[] { "Header", "RegionId", "Desc", "Status", "Kind", }); internal_static_pdpb_SyncMaxTSRequest_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_pdpb_SyncMaxTSRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SyncMaxTSRequest_descriptor, new java.lang.String[] { "Header", "MaxTs", }); internal_static_pdpb_SyncMaxTSResponse_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_pdpb_SyncMaxTSResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SyncMaxTSResponse_descriptor, new java.lang.String[] { "Header", "MaxLocalTs", "Dcs", }); internal_static_pdpb_SplitRegionsRequest_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_pdpb_SplitRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SplitRegionsRequest_descriptor, new java.lang.String[] { "Header", "SplitKeys", "RetryLimit", }); internal_static_pdpb_SplitRegionsResponse_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_pdpb_SplitRegionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_SplitRegionsResponse_descriptor, new java.lang.String[] { "Header", "FinishedPercentage", "RegionsId", }); internal_static_pdpb_GetDCLocationInfoRequest_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_pdpb_GetDCLocationInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetDCLocationInfoRequest_descriptor, new java.lang.String[] { "Header", "DcLocation", }); internal_static_pdpb_GetDCLocationInfoResponse_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_pdpb_GetDCLocationInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_pdpb_GetDCLocationInfoResponse_descriptor, new java.lang.String[] { "Header", "Suffix", "MaxTs", }); 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(); eraftpb.Eraftpb.getDescriptor(); replication_modepb.ReplicationModepb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy