Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.tikv.kvproto.Pdpb Maven / Gradle / Ivy
// 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 extends org.tikv.kvproto.Metapb.StoreOrBuilder>
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 extends org.tikv.kvproto.Metapb.StoreOrBuilder>
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 extends org.tikv.kvproto.Metapb.Store> 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 extends org.tikv.kvproto.Metapb.StoreOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStats> 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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.Peer> 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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.PeerStats> 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 extends org.tikv.kvproto.Pdpb.PeerStatsOrBuilder>
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 extends org.tikv.kvproto.Metapb.Peer> 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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Metapb.RegionOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.RegionOrBuilder>
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 extends org.tikv.kvproto.Metapb.RegionOrBuilder>
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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.RegionOrBuilder>
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 extends org.tikv.kvproto.Metapb.Region> 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 extends org.tikv.kvproto.Metapb.RegionOrBuilder>
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 extends org.tikv.kvproto.Metapb.Peer> 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 extends org.tikv.kvproto.Metapb.PeerOrBuilder>
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 extends org.tikv.kvproto.Pdpb.Region> 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 extends org.tikv.kvproto.Pdpb.RegionOrBuilder>
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 extends org.tikv.kvproto.Pdpb.MemberOrBuilder>
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 extends org.tikv.kvproto.Pdpb.MemberOrBuilder>
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 extends org.tikv.kvproto.Pdpb.Member> 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 extends org.tikv.kvproto.Pdpb.MemberOrBuilder>
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;
}
/**
*