enginepb.Enginepb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: enginepb.proto
package enginepb;
public final class Enginepb {
private Enginepb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface CommandRequestHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandRequestHeader)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 region_id = 1;
*/
long getRegionId();
/**
* uint64 index = 2;
*/
long getIndex();
/**
* uint64 term = 3;
*/
long getTerm();
/**
*
* Flush in-memory data to disk.
*
*
* bool sync_log = 4;
*/
boolean getSyncLog();
/**
*
* Destroy the region.
*
*
* bool destroy = 5;
*/
boolean getDestroy();
/**
*
* Additional information for the request.
*
*
* bytes context = 6;
*/
com.google.protobuf.ByteString getContext();
}
/**
* Protobuf type {@code enginepb.CommandRequestHeader}
*/
public static final class CommandRequestHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandRequestHeader)
CommandRequestHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandRequestHeader.newBuilder() to construct.
private CommandRequestHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandRequestHeader() {
regionId_ = 0L;
index_ = 0L;
term_ = 0L;
syncLog_ = false;
destroy_ = false;
context_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandRequestHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
regionId_ = input.readUInt64();
break;
}
case 16: {
index_ = input.readUInt64();
break;
}
case 24: {
term_ = input.readUInt64();
break;
}
case 32: {
syncLog_ = input.readBool();
break;
}
case 40: {
destroy_ = input.readBool();
break;
}
case 50: {
context_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequestHeader.class, enginepb.Enginepb.CommandRequestHeader.Builder.class);
}
public static final int REGION_ID_FIELD_NUMBER = 1;
private long regionId_;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
public static final int INDEX_FIELD_NUMBER = 2;
private long index_;
/**
* uint64 index = 2;
*/
public long getIndex() {
return index_;
}
public static final int TERM_FIELD_NUMBER = 3;
private long term_;
/**
* uint64 term = 3;
*/
public long getTerm() {
return term_;
}
public static final int SYNC_LOG_FIELD_NUMBER = 4;
private boolean syncLog_;
/**
*
* Flush in-memory data to disk.
*
*
* bool sync_log = 4;
*/
public boolean getSyncLog() {
return syncLog_;
}
public static final int DESTROY_FIELD_NUMBER = 5;
private boolean destroy_;
/**
*
* Destroy the region.
*
*
* bool destroy = 5;
*/
public boolean getDestroy() {
return destroy_;
}
public static final int CONTEXT_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString context_;
/**
*
* Additional information for the request.
*
*
* bytes context = 6;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (regionId_ != 0L) {
output.writeUInt64(1, regionId_);
}
if (index_ != 0L) {
output.writeUInt64(2, index_);
}
if (term_ != 0L) {
output.writeUInt64(3, term_);
}
if (syncLog_ != false) {
output.writeBool(4, syncLog_);
}
if (destroy_ != false) {
output.writeBool(5, destroy_);
}
if (!context_.isEmpty()) {
output.writeBytes(6, context_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (regionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, regionId_);
}
if (index_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, index_);
}
if (term_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, term_);
}
if (syncLog_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, syncLog_);
}
if (destroy_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, destroy_);
}
if (!context_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, context_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.CommandRequestHeader)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandRequestHeader other = (enginepb.Enginepb.CommandRequestHeader) obj;
boolean result = true;
result = result && (getRegionId()
== other.getRegionId());
result = result && (getIndex()
== other.getIndex());
result = result && (getTerm()
== other.getTerm());
result = result && (getSyncLog()
== other.getSyncLog());
result = result && (getDestroy()
== other.getDestroy());
result = result && getContext()
.equals(other.getContext());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegionId());
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndex());
hash = (37 * hash) + TERM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTerm());
hash = (37 * hash) + SYNC_LOG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSyncLog());
hash = (37 * hash) + DESTROY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDestroy());
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandRequestHeader prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandRequestHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandRequestHeader)
enginepb.Enginepb.CommandRequestHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequestHeader.class, enginepb.Enginepb.CommandRequestHeader.Builder.class);
}
// Construct using enginepb.Enginepb.CommandRequestHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
regionId_ = 0L;
index_ = 0L;
term_ = 0L;
syncLog_ = false;
destroy_ = false;
context_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestHeader_descriptor;
}
public enginepb.Enginepb.CommandRequestHeader getDefaultInstanceForType() {
return enginepb.Enginepb.CommandRequestHeader.getDefaultInstance();
}
public enginepb.Enginepb.CommandRequestHeader build() {
enginepb.Enginepb.CommandRequestHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandRequestHeader buildPartial() {
enginepb.Enginepb.CommandRequestHeader result = new enginepb.Enginepb.CommandRequestHeader(this);
result.regionId_ = regionId_;
result.index_ = index_;
result.term_ = term_;
result.syncLog_ = syncLog_;
result.destroy_ = destroy_;
result.context_ = context_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof enginepb.Enginepb.CommandRequestHeader) {
return mergeFrom((enginepb.Enginepb.CommandRequestHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandRequestHeader other) {
if (other == enginepb.Enginepb.CommandRequestHeader.getDefaultInstance()) return this;
if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId());
}
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
if (other.getTerm() != 0L) {
setTerm(other.getTerm());
}
if (other.getSyncLog() != false) {
setSyncLog(other.getSyncLog());
}
if (other.getDestroy() != false) {
setDestroy(other.getDestroy());
}
if (other.getContext() != com.google.protobuf.ByteString.EMPTY) {
setContext(other.getContext());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandRequestHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandRequestHeader) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long regionId_ ;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
/**
* uint64 region_id = 1;
*/
public Builder setRegionId(long value) {
regionId_ = value;
onChanged();
return this;
}
/**
* uint64 region_id = 1;
*/
public Builder clearRegionId() {
regionId_ = 0L;
onChanged();
return this;
}
private long index_ ;
/**
* uint64 index = 2;
*/
public long getIndex() {
return index_;
}
/**
* uint64 index = 2;
*/
public Builder setIndex(long value) {
index_ = value;
onChanged();
return this;
}
/**
* uint64 index = 2;
*/
public Builder clearIndex() {
index_ = 0L;
onChanged();
return this;
}
private long term_ ;
/**
* uint64 term = 3;
*/
public long getTerm() {
return term_;
}
/**
* uint64 term = 3;
*/
public Builder setTerm(long value) {
term_ = value;
onChanged();
return this;
}
/**
* uint64 term = 3;
*/
public Builder clearTerm() {
term_ = 0L;
onChanged();
return this;
}
private boolean syncLog_ ;
/**
*
* Flush in-memory data to disk.
*
*
* bool sync_log = 4;
*/
public boolean getSyncLog() {
return syncLog_;
}
/**
*
* Flush in-memory data to disk.
*
*
* bool sync_log = 4;
*/
public Builder setSyncLog(boolean value) {
syncLog_ = value;
onChanged();
return this;
}
/**
*
* Flush in-memory data to disk.
*
*
* bool sync_log = 4;
*/
public Builder clearSyncLog() {
syncLog_ = false;
onChanged();
return this;
}
private boolean destroy_ ;
/**
*
* Destroy the region.
*
*
* bool destroy = 5;
*/
public boolean getDestroy() {
return destroy_;
}
/**
*
* Destroy the region.
*
*
* bool destroy = 5;
*/
public Builder setDestroy(boolean value) {
destroy_ = value;
onChanged();
return this;
}
/**
*
* Destroy the region.
*
*
* bool destroy = 5;
*/
public Builder clearDestroy() {
destroy_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Additional information for the request.
*
*
* bytes context = 6;
*/
public com.google.protobuf.ByteString getContext() {
return context_;
}
/**
*
* Additional information for the request.
*
*
* bytes context = 6;
*/
public Builder setContext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
return this;
}
/**
*
* Additional information for the request.
*
*
* bytes context = 6;
*/
public Builder clearContext() {
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.CommandRequestHeader)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandRequestHeader)
private static final enginepb.Enginepb.CommandRequestHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandRequestHeader();
}
public static enginepb.Enginepb.CommandRequestHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandRequestHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandRequestHeader(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandRequestHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .enginepb.CommandRequestHeader header = 1;
*/
boolean hasHeader();
/**
* .enginepb.CommandRequestHeader header = 1;
*/
enginepb.Enginepb.CommandRequestHeader getHeader();
/**
* .enginepb.CommandRequestHeader header = 1;
*/
enginepb.Enginepb.CommandRequestHeaderOrBuilder getHeaderOrBuilder();
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
java.util.List
getRequestsList();
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
org.tikv.kvproto.RaftCmdpb.Request getRequests(int index);
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
int getRequestsCount();
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
java.util.List extends org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>
getRequestsOrBuilderList();
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder(
int index);
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
boolean hasAdminRequest();
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest();
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder();
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
boolean hasAdminResponse();
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse();
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder();
}
/**
* Protobuf type {@code enginepb.CommandRequest}
*/
public static final class CommandRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandRequest)
CommandRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandRequest.newBuilder() to construct.
private CommandRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandRequest() {
requests_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
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: {
enginepb.Enginepb.CommandRequestHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(enginepb.Enginepb.CommandRequestHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
requests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
requests_.add(
input.readMessage(org.tikv.kvproto.RaftCmdpb.Request.parser(), extensionRegistry));
break;
}
case 26: {
org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder subBuilder = null;
if (adminRequest_ != null) {
subBuilder = adminRequest_.toBuilder();
}
adminRequest_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(adminRequest_);
adminRequest_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder subBuilder = null;
if (adminResponse_ != null) {
subBuilder = adminResponse_.toBuilder();
}
adminResponse_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(adminResponse_);
adminResponse_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequest.class, enginepb.Enginepb.CommandRequest.Builder.class);
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private enginepb.Enginepb.CommandRequestHeader header_;
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public enginepb.Enginepb.CommandRequestHeader getHeader() {
return header_ == null ? enginepb.Enginepb.CommandRequestHeader.getDefaultInstance() : header_;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public enginepb.Enginepb.CommandRequestHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int REQUESTS_FIELD_NUMBER = 2;
private java.util.List requests_;
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public java.util.List getRequestsList() {
return requests_;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>
getRequestsOrBuilderList() {
return requests_;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public int getRequestsCount() {
return requests_.size();
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.Request getRequests(int index) {
return requests_.get(index);
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder(
int index) {
return requests_.get(index);
}
public static final int ADMIN_REQUEST_FIELD_NUMBER = 3;
private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_;
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public boolean hasAdminRequest() {
return adminRequest_ != null;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() {
return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() {
return getAdminRequest();
}
public static final int ADMIN_RESPONSE_FIELD_NUMBER = 4;
private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_;
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public boolean hasAdminResponse() {
return adminResponse_ != null;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() {
return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() {
return getAdminResponse();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
for (int i = 0; i < requests_.size(); i++) {
output.writeMessage(2, requests_.get(i));
}
if (adminRequest_ != null) {
output.writeMessage(3, getAdminRequest());
}
if (adminResponse_ != null) {
output.writeMessage(4, getAdminResponse());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
for (int i = 0; i < requests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, requests_.get(i));
}
if (adminRequest_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAdminRequest());
}
if (adminResponse_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAdminResponse());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.CommandRequest)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandRequest other = (enginepb.Enginepb.CommandRequest) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && getRequestsList()
.equals(other.getRequestsList());
result = result && (hasAdminRequest() == other.hasAdminRequest());
if (hasAdminRequest()) {
result = result && getAdminRequest()
.equals(other.getAdminRequest());
}
result = result && (hasAdminResponse() == other.hasAdminResponse());
if (hasAdminResponse()) {
result = result && getAdminResponse()
.equals(other.getAdminResponse());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (getRequestsCount() > 0) {
hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getRequestsList().hashCode();
}
if (hasAdminRequest()) {
hash = (37 * hash) + ADMIN_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getAdminRequest().hashCode();
}
if (hasAdminResponse()) {
hash = (37 * hash) + ADMIN_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getAdminResponse().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandRequest)
enginepb.Enginepb.CommandRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequest.class, enginepb.Enginepb.CommandRequest.Builder.class);
}
// Construct using enginepb.Enginepb.CommandRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRequestsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
requestsBuilder_.clear();
}
if (adminRequestBuilder_ == null) {
adminRequest_ = null;
} else {
adminRequest_ = null;
adminRequestBuilder_ = null;
}
if (adminResponseBuilder_ == null) {
adminResponse_ = null;
} else {
adminResponse_ = null;
adminResponseBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequest_descriptor;
}
public enginepb.Enginepb.CommandRequest getDefaultInstanceForType() {
return enginepb.Enginepb.CommandRequest.getDefaultInstance();
}
public enginepb.Enginepb.CommandRequest build() {
enginepb.Enginepb.CommandRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandRequest buildPartial() {
enginepb.Enginepb.CommandRequest result = new enginepb.Enginepb.CommandRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (requestsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.requests_ = requests_;
} else {
result.requests_ = requestsBuilder_.build();
}
if (adminRequestBuilder_ == null) {
result.adminRequest_ = adminRequest_;
} else {
result.adminRequest_ = adminRequestBuilder_.build();
}
if (adminResponseBuilder_ == null) {
result.adminResponse_ = adminResponse_;
} else {
result.adminResponse_ = adminResponseBuilder_.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 enginepb.Enginepb.CommandRequest) {
return mergeFrom((enginepb.Enginepb.CommandRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandRequest other) {
if (other == enginepb.Enginepb.CommandRequest.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (requestsBuilder_ == null) {
if (!other.requests_.isEmpty()) {
if (requests_.isEmpty()) {
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRequestsIsMutable();
requests_.addAll(other.requests_);
}
onChanged();
}
} else {
if (!other.requests_.isEmpty()) {
if (requestsBuilder_.isEmpty()) {
requestsBuilder_.dispose();
requestsBuilder_ = null;
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000002);
requestsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRequestsFieldBuilder() : null;
} else {
requestsBuilder_.addAllMessages(other.requests_);
}
}
}
if (other.hasAdminRequest()) {
mergeAdminRequest(other.getAdminRequest());
}
if (other.hasAdminResponse()) {
mergeAdminResponse(other.getAdminResponse());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private enginepb.Enginepb.CommandRequestHeader header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandRequestHeader, enginepb.Enginepb.CommandRequestHeader.Builder, enginepb.Enginepb.CommandRequestHeaderOrBuilder> headerBuilder_;
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public enginepb.Enginepb.CommandRequestHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? enginepb.Enginepb.CommandRequestHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public Builder setHeader(enginepb.Enginepb.CommandRequestHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public Builder setHeader(
enginepb.Enginepb.CommandRequestHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public Builder mergeHeader(enginepb.Enginepb.CommandRequestHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
enginepb.Enginepb.CommandRequestHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public enginepb.Enginepb.CommandRequestHeader.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
public enginepb.Enginepb.CommandRequestHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
enginepb.Enginepb.CommandRequestHeader.getDefaultInstance() : header_;
}
}
/**
* .enginepb.CommandRequestHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandRequestHeader, enginepb.Enginepb.CommandRequestHeader.Builder, enginepb.Enginepb.CommandRequestHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandRequestHeader, enginepb.Enginepb.CommandRequestHeader.Builder, enginepb.Enginepb.CommandRequestHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private java.util.List requests_ =
java.util.Collections.emptyList();
private void ensureRequestsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
requests_ = new java.util.ArrayList(requests_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder> requestsBuilder_;
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public java.util.List getRequestsList() {
if (requestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requests_);
} else {
return requestsBuilder_.getMessageList();
}
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public int getRequestsCount() {
if (requestsBuilder_ == null) {
return requests_.size();
} else {
return requestsBuilder_.getCount();
}
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.Request getRequests(int index) {
if (requestsBuilder_ == null) {
return requests_.get(index);
} else {
return requestsBuilder_.getMessage(index);
}
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder setRequests(
int index, org.tikv.kvproto.RaftCmdpb.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.set(index, value);
onChanged();
} else {
requestsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder setRequests(
int index, org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.set(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder addRequests(org.tikv.kvproto.RaftCmdpb.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(value);
onChanged();
} else {
requestsBuilder_.addMessage(value);
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder addRequests(
int index, org.tikv.kvproto.RaftCmdpb.Request value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(index, value);
onChanged();
} else {
requestsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder addRequests(
org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder addRequests(
int index, org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder addAllRequests(
java.lang.Iterable extends org.tikv.kvproto.RaftCmdpb.Request> values) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requests_);
onChanged();
} else {
requestsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder clearRequests() {
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
requestsBuilder_.clear();
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public Builder removeRequests(int index) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.remove(index);
onChanged();
} else {
requestsBuilder_.remove(index);
}
return this;
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.Request.Builder getRequestsBuilder(
int index) {
return getRequestsFieldBuilder().getBuilder(index);
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder(
int index) {
if (requestsBuilder_ == null) {
return requests_.get(index); } else {
return requestsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public java.util.List extends org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>
getRequestsOrBuilderList() {
if (requestsBuilder_ != null) {
return requestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requests_);
}
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.Request.Builder addRequestsBuilder() {
return getRequestsFieldBuilder().addBuilder(
org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance());
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public org.tikv.kvproto.RaftCmdpb.Request.Builder addRequestsBuilder(
int index) {
return getRequestsFieldBuilder().addBuilder(
index, org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance());
}
/**
*
* kv put / delete
*
*
* repeated .raft_cmdpb.Request requests = 2;
*/
public java.util.List
getRequestsBuilderList() {
return getRequestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>
getRequestsFieldBuilder() {
if (requestsBuilder_ == null) {
requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>(
requests_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
requests_ = null;
}
return requestsBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder> adminRequestBuilder_;
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public boolean hasAdminRequest() {
return adminRequestBuilder_ != null || adminRequest_ != null;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() {
if (adminRequestBuilder_ == null) {
return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_;
} else {
return adminRequestBuilder_.getMessage();
}
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public Builder setAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) {
if (adminRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminRequest_ = value;
onChanged();
} else {
adminRequestBuilder_.setMessage(value);
}
return this;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public Builder setAdminRequest(
org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder builderForValue) {
if (adminRequestBuilder_ == null) {
adminRequest_ = builderForValue.build();
onChanged();
} else {
adminRequestBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public Builder mergeAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) {
if (adminRequestBuilder_ == null) {
if (adminRequest_ != null) {
adminRequest_ =
org.tikv.kvproto.RaftCmdpb.AdminRequest.newBuilder(adminRequest_).mergeFrom(value).buildPartial();
} else {
adminRequest_ = value;
}
onChanged();
} else {
adminRequestBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public Builder clearAdminRequest() {
if (adminRequestBuilder_ == null) {
adminRequest_ = null;
onChanged();
} else {
adminRequest_ = null;
adminRequestBuilder_ = null;
}
return this;
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder getAdminRequestBuilder() {
onChanged();
return getAdminRequestFieldBuilder().getBuilder();
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() {
if (adminRequestBuilder_ != null) {
return adminRequestBuilder_.getMessageOrBuilder();
} else {
return adminRequest_ == null ?
org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_;
}
}
/**
*
* region metadata manipulation command.
*
*
* .raft_cmdpb.AdminRequest admin_request = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder>
getAdminRequestFieldBuilder() {
if (adminRequestBuilder_ == null) {
adminRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder>(
getAdminRequest(),
getParentForChildren(),
isClean());
adminRequest_ = null;
}
return adminRequestBuilder_;
}
private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder> adminResponseBuilder_;
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public boolean hasAdminResponse() {
return adminResponseBuilder_ != null || adminResponse_ != null;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() {
if (adminResponseBuilder_ == null) {
return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_;
} else {
return adminResponseBuilder_.getMessage();
}
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public Builder setAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) {
if (adminResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminResponse_ = value;
onChanged();
} else {
adminResponseBuilder_.setMessage(value);
}
return this;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public Builder setAdminResponse(
org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder builderForValue) {
if (adminResponseBuilder_ == null) {
adminResponse_ = builderForValue.build();
onChanged();
} else {
adminResponseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public Builder mergeAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) {
if (adminResponseBuilder_ == null) {
if (adminResponse_ != null) {
adminResponse_ =
org.tikv.kvproto.RaftCmdpb.AdminResponse.newBuilder(adminResponse_).mergeFrom(value).buildPartial();
} else {
adminResponse_ = value;
}
onChanged();
} else {
adminResponseBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public Builder clearAdminResponse() {
if (adminResponseBuilder_ == null) {
adminResponse_ = null;
onChanged();
} else {
adminResponse_ = null;
adminResponseBuilder_ = null;
}
return this;
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder getAdminResponseBuilder() {
onChanged();
return getAdminResponseFieldBuilder().getBuilder();
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() {
if (adminResponseBuilder_ != null) {
return adminResponseBuilder_.getMessageOrBuilder();
} else {
return adminResponse_ == null ?
org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_;
}
}
/**
*
* region metadata manipulation result.
*
*
* .raft_cmdpb.AdminResponse admin_response = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder>
getAdminResponseFieldBuilder() {
if (adminResponseBuilder_ == null) {
adminResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder>(
getAdminResponse(),
getParentForChildren(),
isClean());
adminResponse_ = null;
}
return adminResponseBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.CommandRequest)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandRequest)
private static final enginepb.Enginepb.CommandRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandRequest();
}
public static enginepb.Enginepb.CommandRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandRequestBatchOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandRequestBatch)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
java.util.List
getRequestsList();
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
enginepb.Enginepb.CommandRequest getRequests(int index);
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
int getRequestsCount();
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
java.util.List extends enginepb.Enginepb.CommandRequestOrBuilder>
getRequestsOrBuilderList();
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
enginepb.Enginepb.CommandRequestOrBuilder getRequestsOrBuilder(
int index);
}
/**
* Protobuf type {@code enginepb.CommandRequestBatch}
*/
public static final class CommandRequestBatch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandRequestBatch)
CommandRequestBatchOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandRequestBatch.newBuilder() to construct.
private CommandRequestBatch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandRequestBatch() {
requests_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandRequestBatch(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
requests_.add(
input.readMessage(enginepb.Enginepb.CommandRequest.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequestBatch.class, enginepb.Enginepb.CommandRequestBatch.Builder.class);
}
public static final int REQUESTS_FIELD_NUMBER = 1;
private java.util.List requests_;
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public java.util.List getRequestsList() {
return requests_;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public java.util.List extends enginepb.Enginepb.CommandRequestOrBuilder>
getRequestsOrBuilderList() {
return requests_;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public int getRequestsCount() {
return requests_.size();
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequest getRequests(int index) {
return requests_.get(index);
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequestOrBuilder getRequestsOrBuilder(
int index) {
return requests_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < requests_.size(); i++) {
output.writeMessage(1, requests_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < requests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, requests_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.CommandRequestBatch)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandRequestBatch other = (enginepb.Enginepb.CommandRequestBatch) obj;
boolean result = true;
result = result && getRequestsList()
.equals(other.getRequestsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRequestsCount() > 0) {
hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getRequestsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestBatch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandRequestBatch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandRequestBatch prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandRequestBatch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandRequestBatch)
enginepb.Enginepb.CommandRequestBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandRequestBatch.class, enginepb.Enginepb.CommandRequestBatch.Builder.class);
}
// Construct using enginepb.Enginepb.CommandRequestBatch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRequestsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
requestsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandRequestBatch_descriptor;
}
public enginepb.Enginepb.CommandRequestBatch getDefaultInstanceForType() {
return enginepb.Enginepb.CommandRequestBatch.getDefaultInstance();
}
public enginepb.Enginepb.CommandRequestBatch build() {
enginepb.Enginepb.CommandRequestBatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandRequestBatch buildPartial() {
enginepb.Enginepb.CommandRequestBatch result = new enginepb.Enginepb.CommandRequestBatch(this);
int from_bitField0_ = bitField0_;
if (requestsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requests_ = requests_;
} else {
result.requests_ = requestsBuilder_.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 enginepb.Enginepb.CommandRequestBatch) {
return mergeFrom((enginepb.Enginepb.CommandRequestBatch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandRequestBatch other) {
if (other == enginepb.Enginepb.CommandRequestBatch.getDefaultInstance()) return this;
if (requestsBuilder_ == null) {
if (!other.requests_.isEmpty()) {
if (requests_.isEmpty()) {
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestsIsMutable();
requests_.addAll(other.requests_);
}
onChanged();
}
} else {
if (!other.requests_.isEmpty()) {
if (requestsBuilder_.isEmpty()) {
requestsBuilder_.dispose();
requestsBuilder_ = null;
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
requestsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRequestsFieldBuilder() : null;
} else {
requestsBuilder_.addAllMessages(other.requests_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandRequestBatch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandRequestBatch) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List requests_ =
java.util.Collections.emptyList();
private void ensureRequestsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList(requests_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandRequest, enginepb.Enginepb.CommandRequest.Builder, enginepb.Enginepb.CommandRequestOrBuilder> requestsBuilder_;
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public java.util.List getRequestsList() {
if (requestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requests_);
} else {
return requestsBuilder_.getMessageList();
}
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public int getRequestsCount() {
if (requestsBuilder_ == null) {
return requests_.size();
} else {
return requestsBuilder_.getCount();
}
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequest getRequests(int index) {
if (requestsBuilder_ == null) {
return requests_.get(index);
} else {
return requestsBuilder_.getMessage(index);
}
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder setRequests(
int index, enginepb.Enginepb.CommandRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.set(index, value);
onChanged();
} else {
requestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder setRequests(
int index, enginepb.Enginepb.CommandRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.set(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder addRequests(enginepb.Enginepb.CommandRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(value);
onChanged();
} else {
requestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder addRequests(
int index, enginepb.Enginepb.CommandRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(index, value);
onChanged();
} else {
requestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder addRequests(
enginepb.Enginepb.CommandRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder addRequests(
int index, enginepb.Enginepb.CommandRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder addAllRequests(
java.lang.Iterable extends enginepb.Enginepb.CommandRequest> values) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requests_);
onChanged();
} else {
requestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder clearRequests() {
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestsBuilder_.clear();
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public Builder removeRequests(int index) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.remove(index);
onChanged();
} else {
requestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequest.Builder getRequestsBuilder(
int index) {
return getRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequestOrBuilder getRequestsOrBuilder(
int index) {
if (requestsBuilder_ == null) {
return requests_.get(index); } else {
return requestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public java.util.List extends enginepb.Enginepb.CommandRequestOrBuilder>
getRequestsOrBuilderList() {
if (requestsBuilder_ != null) {
return requestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requests_);
}
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequest.Builder addRequestsBuilder() {
return getRequestsFieldBuilder().addBuilder(
enginepb.Enginepb.CommandRequest.getDefaultInstance());
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public enginepb.Enginepb.CommandRequest.Builder addRequestsBuilder(
int index) {
return getRequestsFieldBuilder().addBuilder(
index, enginepb.Enginepb.CommandRequest.getDefaultInstance());
}
/**
* repeated .enginepb.CommandRequest requests = 1;
*/
public java.util.List
getRequestsBuilderList() {
return getRequestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandRequest, enginepb.Enginepb.CommandRequest.Builder, enginepb.Enginepb.CommandRequestOrBuilder>
getRequestsFieldBuilder() {
if (requestsBuilder_ == null) {
requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandRequest, enginepb.Enginepb.CommandRequest.Builder, enginepb.Enginepb.CommandRequestOrBuilder>(
requests_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
requests_ = null;
}
return requestsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.CommandRequestBatch)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandRequestBatch)
private static final enginepb.Enginepb.CommandRequestBatch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandRequestBatch();
}
public static enginepb.Enginepb.CommandRequestBatch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandRequestBatch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandRequestBatch(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandRequestBatch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandResponseHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandResponseHeader)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 region_id = 1;
*/
long getRegionId();
/**
*
* Region is destroyed.
*
*
* bool destroyed = 2;
*/
boolean getDestroyed();
}
/**
* Protobuf type {@code enginepb.CommandResponseHeader}
*/
public static final class CommandResponseHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandResponseHeader)
CommandResponseHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandResponseHeader.newBuilder() to construct.
private CommandResponseHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandResponseHeader() {
regionId_ = 0L;
destroyed_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandResponseHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
regionId_ = input.readUInt64();
break;
}
case 16: {
destroyed_ = 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 enginepb.Enginepb.internal_static_enginepb_CommandResponseHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponseHeader.class, enginepb.Enginepb.CommandResponseHeader.Builder.class);
}
public static final int REGION_ID_FIELD_NUMBER = 1;
private long regionId_;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
public static final int DESTROYED_FIELD_NUMBER = 2;
private boolean destroyed_;
/**
*
* Region is destroyed.
*
*
* bool destroyed = 2;
*/
public boolean getDestroyed() {
return destroyed_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (regionId_ != 0L) {
output.writeUInt64(1, regionId_);
}
if (destroyed_ != false) {
output.writeBool(2, destroyed_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (regionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, regionId_);
}
if (destroyed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, destroyed_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.CommandResponseHeader)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandResponseHeader other = (enginepb.Enginepb.CommandResponseHeader) obj;
boolean result = true;
result = result && (getRegionId()
== other.getRegionId());
result = result && (getDestroyed()
== other.getDestroyed());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegionId());
hash = (37 * hash) + DESTROYED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDestroyed());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandResponseHeader prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandResponseHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandResponseHeader)
enginepb.Enginepb.CommandResponseHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponseHeader.class, enginepb.Enginepb.CommandResponseHeader.Builder.class);
}
// Construct using enginepb.Enginepb.CommandResponseHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
regionId_ = 0L;
destroyed_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseHeader_descriptor;
}
public enginepb.Enginepb.CommandResponseHeader getDefaultInstanceForType() {
return enginepb.Enginepb.CommandResponseHeader.getDefaultInstance();
}
public enginepb.Enginepb.CommandResponseHeader build() {
enginepb.Enginepb.CommandResponseHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandResponseHeader buildPartial() {
enginepb.Enginepb.CommandResponseHeader result = new enginepb.Enginepb.CommandResponseHeader(this);
result.regionId_ = regionId_;
result.destroyed_ = destroyed_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof enginepb.Enginepb.CommandResponseHeader) {
return mergeFrom((enginepb.Enginepb.CommandResponseHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandResponseHeader other) {
if (other == enginepb.Enginepb.CommandResponseHeader.getDefaultInstance()) return this;
if (other.getRegionId() != 0L) {
setRegionId(other.getRegionId());
}
if (other.getDestroyed() != false) {
setDestroyed(other.getDestroyed());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandResponseHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandResponseHeader) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long regionId_ ;
/**
* uint64 region_id = 1;
*/
public long getRegionId() {
return regionId_;
}
/**
* uint64 region_id = 1;
*/
public Builder setRegionId(long value) {
regionId_ = value;
onChanged();
return this;
}
/**
* uint64 region_id = 1;
*/
public Builder clearRegionId() {
regionId_ = 0L;
onChanged();
return this;
}
private boolean destroyed_ ;
/**
*
* Region is destroyed.
*
*
* bool destroyed = 2;
*/
public boolean getDestroyed() {
return destroyed_;
}
/**
*
* Region is destroyed.
*
*
* bool destroyed = 2;
*/
public Builder setDestroyed(boolean value) {
destroyed_ = value;
onChanged();
return this;
}
/**
*
* Region is destroyed.
*
*
* bool destroyed = 2;
*/
public Builder clearDestroyed() {
destroyed_ = 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:enginepb.CommandResponseHeader)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandResponseHeader)
private static final enginepb.Enginepb.CommandResponseHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandResponseHeader();
}
public static enginepb.Enginepb.CommandResponseHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandResponseHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandResponseHeader(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandResponseHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .enginepb.CommandResponseHeader header = 1;
*/
boolean hasHeader();
/**
* .enginepb.CommandResponseHeader header = 1;
*/
enginepb.Enginepb.CommandResponseHeader getHeader();
/**
* .enginepb.CommandResponseHeader header = 1;
*/
enginepb.Enginepb.CommandResponseHeaderOrBuilder getHeaderOrBuilder();
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
boolean hasApplyState();
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState();
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder();
/**
* uint64 applied_term = 3;
*/
long getAppliedTerm();
}
/**
* Protobuf type {@code enginepb.CommandResponse}
*/
public static final class CommandResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandResponse)
CommandResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandResponse.newBuilder() to construct.
private CommandResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandResponse() {
appliedTerm_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
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: {
enginepb.Enginepb.CommandResponseHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(enginepb.Enginepb.CommandResponseHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder subBuilder = null;
if (applyState_ != null) {
subBuilder = applyState_.toBuilder();
}
applyState_ = input.readMessage(org.tikv.kvproto.RaftServerpb.RaftApplyState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applyState_);
applyState_ = subBuilder.buildPartial();
}
break;
}
case 24: {
appliedTerm_ = 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 enginepb.Enginepb.internal_static_enginepb_CommandResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponse.class, enginepb.Enginepb.CommandResponse.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private enginepb.Enginepb.CommandResponseHeader header_;
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public boolean hasHeader() {
return header_ != null;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public enginepb.Enginepb.CommandResponseHeader getHeader() {
return header_ == null ? enginepb.Enginepb.CommandResponseHeader.getDefaultInstance() : header_;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public enginepb.Enginepb.CommandResponseHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int APPLY_STATE_FIELD_NUMBER = 2;
private org.tikv.kvproto.RaftServerpb.RaftApplyState applyState_;
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public boolean hasApplyState() {
return applyState_ != null;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState() {
return applyState_ == null ? org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder() {
return getApplyState();
}
public static final int APPLIED_TERM_FIELD_NUMBER = 3;
private long appliedTerm_;
/**
* uint64 applied_term = 3;
*/
public long getAppliedTerm() {
return appliedTerm_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 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 (applyState_ != null) {
output.writeMessage(2, getApplyState());
}
if (appliedTerm_ != 0L) {
output.writeUInt64(3, appliedTerm_);
}
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 (applyState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getApplyState());
}
if (appliedTerm_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, appliedTerm_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.CommandResponse)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandResponse other = (enginepb.Enginepb.CommandResponse) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && (hasApplyState() == other.hasApplyState());
if (hasApplyState()) {
result = result && getApplyState()
.equals(other.getApplyState());
}
result = result && (getAppliedTerm()
== other.getAppliedTerm());
result = result && unknownFields.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 (hasApplyState()) {
hash = (37 * hash) + APPLY_STATE_FIELD_NUMBER;
hash = (53 * hash) + getApplyState().hashCode();
}
hash = (37 * hash) + APPLIED_TERM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAppliedTerm());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandResponse)
enginepb.Enginepb.CommandResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponse.class, enginepb.Enginepb.CommandResponse.Builder.class);
}
// Construct using enginepb.Enginepb.CommandResponse.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 (applyStateBuilder_ == null) {
applyState_ = null;
} else {
applyState_ = null;
applyStateBuilder_ = null;
}
appliedTerm_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponse_descriptor;
}
public enginepb.Enginepb.CommandResponse getDefaultInstanceForType() {
return enginepb.Enginepb.CommandResponse.getDefaultInstance();
}
public enginepb.Enginepb.CommandResponse build() {
enginepb.Enginepb.CommandResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandResponse buildPartial() {
enginepb.Enginepb.CommandResponse result = new enginepb.Enginepb.CommandResponse(this);
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (applyStateBuilder_ == null) {
result.applyState_ = applyState_;
} else {
result.applyState_ = applyStateBuilder_.build();
}
result.appliedTerm_ = appliedTerm_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof enginepb.Enginepb.CommandResponse) {
return mergeFrom((enginepb.Enginepb.CommandResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandResponse other) {
if (other == enginepb.Enginepb.CommandResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasApplyState()) {
mergeApplyState(other.getApplyState());
}
if (other.getAppliedTerm() != 0L) {
setAppliedTerm(other.getAppliedTerm());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private enginepb.Enginepb.CommandResponseHeader header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandResponseHeader, enginepb.Enginepb.CommandResponseHeader.Builder, enginepb.Enginepb.CommandResponseHeaderOrBuilder> headerBuilder_;
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public boolean hasHeader() {
return headerBuilder_ != null || header_ != null;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public enginepb.Enginepb.CommandResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? enginepb.Enginepb.CommandResponseHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public Builder setHeader(enginepb.Enginepb.CommandResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
return this;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public Builder setHeader(
enginepb.Enginepb.CommandResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public Builder mergeHeader(enginepb.Enginepb.CommandResponseHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
enginepb.Enginepb.CommandResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
return this;
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public enginepb.Enginepb.CommandResponseHeader.Builder getHeaderBuilder() {
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
public enginepb.Enginepb.CommandResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
enginepb.Enginepb.CommandResponseHeader.getDefaultInstance() : header_;
}
}
/**
* .enginepb.CommandResponseHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandResponseHeader, enginepb.Enginepb.CommandResponseHeader.Builder, enginepb.Enginepb.CommandResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.CommandResponseHeader, enginepb.Enginepb.CommandResponseHeader.Builder, enginepb.Enginepb.CommandResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private org.tikv.kvproto.RaftServerpb.RaftApplyState applyState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder> applyStateBuilder_;
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public boolean hasApplyState() {
return applyStateBuilder_ != null || applyState_ != null;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState() {
if (applyStateBuilder_ == null) {
return applyState_ == null ? org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
} else {
return applyStateBuilder_.getMessage();
}
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public Builder setApplyState(org.tikv.kvproto.RaftServerpb.RaftApplyState value) {
if (applyStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyState_ = value;
onChanged();
} else {
applyStateBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public Builder setApplyState(
org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder builderForValue) {
if (applyStateBuilder_ == null) {
applyState_ = builderForValue.build();
onChanged();
} else {
applyStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public Builder mergeApplyState(org.tikv.kvproto.RaftServerpb.RaftApplyState value) {
if (applyStateBuilder_ == null) {
if (applyState_ != null) {
applyState_ =
org.tikv.kvproto.RaftServerpb.RaftApplyState.newBuilder(applyState_).mergeFrom(value).buildPartial();
} else {
applyState_ = value;
}
onChanged();
} else {
applyStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public Builder clearApplyState() {
if (applyStateBuilder_ == null) {
applyState_ = null;
onChanged();
} else {
applyState_ = null;
applyStateBuilder_ = null;
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder getApplyStateBuilder() {
onChanged();
return getApplyStateFieldBuilder().getBuilder();
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder() {
if (applyStateBuilder_ != null) {
return applyStateBuilder_.getMessageOrBuilder();
} else {
return applyState_ == null ?
org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
}
}
/**
* .raft_serverpb.RaftApplyState apply_state = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder>
getApplyStateFieldBuilder() {
if (applyStateBuilder_ == null) {
applyStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder>(
getApplyState(),
getParentForChildren(),
isClean());
applyState_ = null;
}
return applyStateBuilder_;
}
private long appliedTerm_ ;
/**
* uint64 applied_term = 3;
*/
public long getAppliedTerm() {
return appliedTerm_;
}
/**
* uint64 applied_term = 3;
*/
public Builder setAppliedTerm(long value) {
appliedTerm_ = value;
onChanged();
return this;
}
/**
* uint64 applied_term = 3;
*/
public Builder clearAppliedTerm() {
appliedTerm_ = 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:enginepb.CommandResponse)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandResponse)
private static final enginepb.Enginepb.CommandResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandResponse();
}
public static enginepb.Enginepb.CommandResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandResponseBatchOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.CommandResponseBatch)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
java.util.List
getResponsesList();
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
enginepb.Enginepb.CommandResponse getResponses(int index);
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
int getResponsesCount();
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
java.util.List extends enginepb.Enginepb.CommandResponseOrBuilder>
getResponsesOrBuilderList();
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
enginepb.Enginepb.CommandResponseOrBuilder getResponsesOrBuilder(
int index);
}
/**
* Protobuf type {@code enginepb.CommandResponseBatch}
*/
public static final class CommandResponseBatch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.CommandResponseBatch)
CommandResponseBatchOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandResponseBatch.newBuilder() to construct.
private CommandResponseBatch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandResponseBatch() {
responses_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandResponseBatch(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
responses_.add(
input.readMessage(enginepb.Enginepb.CommandResponse.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponseBatch.class, enginepb.Enginepb.CommandResponseBatch.Builder.class);
}
public static final int RESPONSES_FIELD_NUMBER = 1;
private java.util.List responses_;
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public java.util.List getResponsesList() {
return responses_;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public java.util.List extends enginepb.Enginepb.CommandResponseOrBuilder>
getResponsesOrBuilderList() {
return responses_;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public int getResponsesCount() {
return responses_.size();
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponse getResponses(int index) {
return responses_.get(index);
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponseOrBuilder getResponsesOrBuilder(
int index) {
return responses_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < responses_.size(); i++) {
output.writeMessage(1, responses_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < responses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, responses_.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 enginepb.Enginepb.CommandResponseBatch)) {
return super.equals(obj);
}
enginepb.Enginepb.CommandResponseBatch other = (enginepb.Enginepb.CommandResponseBatch) obj;
boolean result = true;
result = result && getResponsesList()
.equals(other.getResponsesList());
result = result && unknownFields.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 (getResponsesCount() > 0) {
hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
hash = (53 * hash) + getResponsesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseBatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseBatch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.CommandResponseBatch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.CommandResponseBatch prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.CommandResponseBatch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.CommandResponseBatch)
enginepb.Enginepb.CommandResponseBatchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseBatch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseBatch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.CommandResponseBatch.class, enginepb.Enginepb.CommandResponseBatch.Builder.class);
}
// Construct using enginepb.Enginepb.CommandResponseBatch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResponsesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
responsesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_CommandResponseBatch_descriptor;
}
public enginepb.Enginepb.CommandResponseBatch getDefaultInstanceForType() {
return enginepb.Enginepb.CommandResponseBatch.getDefaultInstance();
}
public enginepb.Enginepb.CommandResponseBatch build() {
enginepb.Enginepb.CommandResponseBatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.CommandResponseBatch buildPartial() {
enginepb.Enginepb.CommandResponseBatch result = new enginepb.Enginepb.CommandResponseBatch(this);
int from_bitField0_ = bitField0_;
if (responsesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responses_ = responses_;
} else {
result.responses_ = responsesBuilder_.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 enginepb.Enginepb.CommandResponseBatch) {
return mergeFrom((enginepb.Enginepb.CommandResponseBatch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.CommandResponseBatch other) {
if (other == enginepb.Enginepb.CommandResponseBatch.getDefaultInstance()) return this;
if (responsesBuilder_ == null) {
if (!other.responses_.isEmpty()) {
if (responses_.isEmpty()) {
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponsesIsMutable();
responses_.addAll(other.responses_);
}
onChanged();
}
} else {
if (!other.responses_.isEmpty()) {
if (responsesBuilder_.isEmpty()) {
responsesBuilder_.dispose();
responsesBuilder_ = null;
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
responsesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponsesFieldBuilder() : null;
} else {
responsesBuilder_.addAllMessages(other.responses_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.CommandResponseBatch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.CommandResponseBatch) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List responses_ =
java.util.Collections.emptyList();
private void ensureResponsesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = new java.util.ArrayList(responses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandResponse, enginepb.Enginepb.CommandResponse.Builder, enginepb.Enginepb.CommandResponseOrBuilder> responsesBuilder_;
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public java.util.List getResponsesList() {
if (responsesBuilder_ == null) {
return java.util.Collections.unmodifiableList(responses_);
} else {
return responsesBuilder_.getMessageList();
}
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public int getResponsesCount() {
if (responsesBuilder_ == null) {
return responses_.size();
} else {
return responsesBuilder_.getCount();
}
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponse getResponses(int index) {
if (responsesBuilder_ == null) {
return responses_.get(index);
} else {
return responsesBuilder_.getMessage(index);
}
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder setResponses(
int index, enginepb.Enginepb.CommandResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.set(index, value);
onChanged();
} else {
responsesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder setResponses(
int index, enginepb.Enginepb.CommandResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.set(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder addResponses(enginepb.Enginepb.CommandResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(value);
onChanged();
} else {
responsesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder addResponses(
int index, enginepb.Enginepb.CommandResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(index, value);
onChanged();
} else {
responsesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder addResponses(
enginepb.Enginepb.CommandResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder addResponses(
int index, enginepb.Enginepb.CommandResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder addAllResponses(
java.lang.Iterable extends enginepb.Enginepb.CommandResponse> values) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responses_);
onChanged();
} else {
responsesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder clearResponses() {
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responsesBuilder_.clear();
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public Builder removeResponses(int index) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.remove(index);
onChanged();
} else {
responsesBuilder_.remove(index);
}
return this;
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponse.Builder getResponsesBuilder(
int index) {
return getResponsesFieldBuilder().getBuilder(index);
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponseOrBuilder getResponsesOrBuilder(
int index) {
if (responsesBuilder_ == null) {
return responses_.get(index); } else {
return responsesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public java.util.List extends enginepb.Enginepb.CommandResponseOrBuilder>
getResponsesOrBuilderList() {
if (responsesBuilder_ != null) {
return responsesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(responses_);
}
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponse.Builder addResponsesBuilder() {
return getResponsesFieldBuilder().addBuilder(
enginepb.Enginepb.CommandResponse.getDefaultInstance());
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public enginepb.Enginepb.CommandResponse.Builder addResponsesBuilder(
int index) {
return getResponsesFieldBuilder().addBuilder(
index, enginepb.Enginepb.CommandResponse.getDefaultInstance());
}
/**
* repeated .enginepb.CommandResponse responses = 1;
*/
public java.util.List
getResponsesBuilderList() {
return getResponsesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandResponse, enginepb.Enginepb.CommandResponse.Builder, enginepb.Enginepb.CommandResponseOrBuilder>
getResponsesFieldBuilder() {
if (responsesBuilder_ == null) {
responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
enginepb.Enginepb.CommandResponse, enginepb.Enginepb.CommandResponse.Builder, enginepb.Enginepb.CommandResponseOrBuilder>(
responses_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
responses_ = null;
}
return responsesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.CommandResponseBatch)
}
// @@protoc_insertion_point(class_scope:enginepb.CommandResponseBatch)
private static final enginepb.Enginepb.CommandResponseBatch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.CommandResponseBatch();
}
public static enginepb.Enginepb.CommandResponseBatch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommandResponseBatch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandResponseBatch(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.CommandResponseBatch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.SnapshotState)
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 peer = 2;
*/
boolean hasPeer();
/**
* .metapb.Peer peer = 2;
*/
org.tikv.kvproto.Metapb.Peer getPeer();
/**
* .metapb.Peer peer = 2;
*/
org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder();
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
boolean hasApplyState();
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState();
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder();
}
/**
* Protobuf type {@code enginepb.SnapshotState}
*/
public static final class SnapshotState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.SnapshotState)
SnapshotStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotState.newBuilder() to construct.
private SnapshotState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotState() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
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 (peer_ != null) {
subBuilder = peer_.toBuilder();
}
peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(peer_);
peer_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder subBuilder = null;
if (applyState_ != null) {
subBuilder = applyState_.toBuilder();
}
applyState_ = input.readMessage(org.tikv.kvproto.RaftServerpb.RaftApplyState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applyState_);
applyState_ = 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 enginepb.Enginepb.internal_static_enginepb_SnapshotState_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotState.class, enginepb.Enginepb.SnapshotState.Builder.class);
}
public static final int REGION_FIELD_NUMBER = 1;
private org.tikv.kvproto.Metapb.Region region_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
return getRegion();
}
public static final int PEER_FIELD_NUMBER = 2;
private org.tikv.kvproto.Metapb.Peer peer_;
/**
* .metapb.Peer peer = 2;
*/
public boolean hasPeer() {
return peer_ != null;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
return getPeer();
}
public static final int APPLY_STATE_FIELD_NUMBER = 3;
private org.tikv.kvproto.RaftServerpb.RaftApplyState applyState_;
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public boolean hasApplyState() {
return applyState_ != null;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState() {
return applyState_ == null ? org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder() {
return getApplyState();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 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 (peer_ != null) {
output.writeMessage(2, getPeer());
}
if (applyState_ != null) {
output.writeMessage(3, getApplyState());
}
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 (peer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPeer());
}
if (applyState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getApplyState());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.SnapshotState)) {
return super.equals(obj);
}
enginepb.Enginepb.SnapshotState other = (enginepb.Enginepb.SnapshotState) obj;
boolean result = true;
result = result && (hasRegion() == other.hasRegion());
if (hasRegion()) {
result = result && getRegion()
.equals(other.getRegion());
}
result = result && (hasPeer() == other.hasPeer());
if (hasPeer()) {
result = result && getPeer()
.equals(other.getPeer());
}
result = result && (hasApplyState() == other.hasApplyState());
if (hasApplyState()) {
result = result && getApplyState()
.equals(other.getApplyState());
}
result = result && unknownFields.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 (hasPeer()) {
hash = (37 * hash) + PEER_FIELD_NUMBER;
hash = (53 * hash) + getPeer().hashCode();
}
if (hasApplyState()) {
hash = (37 * hash) + APPLY_STATE_FIELD_NUMBER;
hash = (53 * hash) + getApplyState().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.SnapshotState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.SnapshotState prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.SnapshotState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.SnapshotState)
enginepb.Enginepb.SnapshotStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotState_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotState.class, enginepb.Enginepb.SnapshotState.Builder.class);
}
// Construct using enginepb.Enginepb.SnapshotState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (regionBuilder_ == null) {
region_ = null;
} else {
region_ = null;
regionBuilder_ = null;
}
if (peerBuilder_ == null) {
peer_ = null;
} else {
peer_ = null;
peerBuilder_ = null;
}
if (applyStateBuilder_ == null) {
applyState_ = null;
} else {
applyState_ = null;
applyStateBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotState_descriptor;
}
public enginepb.Enginepb.SnapshotState getDefaultInstanceForType() {
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
public enginepb.Enginepb.SnapshotState build() {
enginepb.Enginepb.SnapshotState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.SnapshotState buildPartial() {
enginepb.Enginepb.SnapshotState result = new enginepb.Enginepb.SnapshotState(this);
if (regionBuilder_ == null) {
result.region_ = region_;
} else {
result.region_ = regionBuilder_.build();
}
if (peerBuilder_ == null) {
result.peer_ = peer_;
} else {
result.peer_ = peerBuilder_.build();
}
if (applyStateBuilder_ == null) {
result.applyState_ = applyState_;
} else {
result.applyState_ = applyStateBuilder_.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 enginepb.Enginepb.SnapshotState) {
return mergeFrom((enginepb.Enginepb.SnapshotState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.SnapshotState other) {
if (other == enginepb.Enginepb.SnapshotState.getDefaultInstance()) return this;
if (other.hasRegion()) {
mergeRegion(other.getRegion());
}
if (other.hasPeer()) {
mergePeer(other.getPeer());
}
if (other.hasApplyState()) {
mergeApplyState(other.getApplyState());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.SnapshotState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.SnapshotState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tikv.kvproto.Metapb.Region region_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_;
/**
* .metapb.Region region = 1;
*/
public boolean hasRegion() {
return regionBuilder_ != null || region_ != null;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region getRegion() {
if (regionBuilder_ == null) {
return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
} else {
return regionBuilder_.getMessage();
}
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
region_ = value;
onChanged();
} else {
regionBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder setRegion(
org.tikv.kvproto.Metapb.Region.Builder builderForValue) {
if (regionBuilder_ == null) {
region_ = builderForValue.build();
onChanged();
} else {
regionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) {
if (regionBuilder_ == null) {
if (region_ != null) {
region_ =
org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial();
} else {
region_ = value;
}
onChanged();
} else {
regionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public Builder clearRegion() {
if (regionBuilder_ == null) {
region_ = null;
onChanged();
} else {
region_ = null;
regionBuilder_ = null;
}
return this;
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() {
onChanged();
return getRegionFieldBuilder().getBuilder();
}
/**
* .metapb.Region region = 1;
*/
public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() {
if (regionBuilder_ != null) {
return regionBuilder_.getMessageOrBuilder();
} else {
return region_ == null ?
org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_;
}
}
/**
* .metapb.Region region = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>
getRegionFieldBuilder() {
if (regionBuilder_ == null) {
regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>(
getRegion(),
getParentForChildren(),
isClean());
region_ = null;
}
return regionBuilder_;
}
private org.tikv.kvproto.Metapb.Peer peer_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_;
/**
* .metapb.Peer peer = 2;
*/
public boolean hasPeer() {
return peerBuilder_ != null || peer_ != null;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer getPeer() {
if (peerBuilder_ == null) {
return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
} else {
return peerBuilder_.getMessage();
}
}
/**
* .metapb.Peer peer = 2;
*/
public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
peer_ = value;
onChanged();
} else {
peerBuilder_.setMessage(value);
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder setPeer(
org.tikv.kvproto.Metapb.Peer.Builder builderForValue) {
if (peerBuilder_ == null) {
peer_ = builderForValue.build();
onChanged();
} else {
peerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) {
if (peerBuilder_ == null) {
if (peer_ != null) {
peer_ =
org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial();
} else {
peer_ = value;
}
onChanged();
} else {
peerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public Builder clearPeer() {
if (peerBuilder_ == null) {
peer_ = null;
onChanged();
} else {
peer_ = null;
peerBuilder_ = null;
}
return this;
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() {
onChanged();
return getPeerFieldBuilder().getBuilder();
}
/**
* .metapb.Peer peer = 2;
*/
public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() {
if (peerBuilder_ != null) {
return peerBuilder_.getMessageOrBuilder();
} else {
return peer_ == null ?
org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_;
}
}
/**
* .metapb.Peer peer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>
getPeerFieldBuilder() {
if (peerBuilder_ == null) {
peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>(
getPeer(),
getParentForChildren(),
isClean());
peer_ = null;
}
return peerBuilder_;
}
private org.tikv.kvproto.RaftServerpb.RaftApplyState applyState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder> applyStateBuilder_;
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public boolean hasApplyState() {
return applyStateBuilder_ != null || applyState_ != null;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState getApplyState() {
if (applyStateBuilder_ == null) {
return applyState_ == null ? org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
} else {
return applyStateBuilder_.getMessage();
}
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public Builder setApplyState(org.tikv.kvproto.RaftServerpb.RaftApplyState value) {
if (applyStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyState_ = value;
onChanged();
} else {
applyStateBuilder_.setMessage(value);
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public Builder setApplyState(
org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder builderForValue) {
if (applyStateBuilder_ == null) {
applyState_ = builderForValue.build();
onChanged();
} else {
applyStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public Builder mergeApplyState(org.tikv.kvproto.RaftServerpb.RaftApplyState value) {
if (applyStateBuilder_ == null) {
if (applyState_ != null) {
applyState_ =
org.tikv.kvproto.RaftServerpb.RaftApplyState.newBuilder(applyState_).mergeFrom(value).buildPartial();
} else {
applyState_ = value;
}
onChanged();
} else {
applyStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public Builder clearApplyState() {
if (applyStateBuilder_ == null) {
applyState_ = null;
onChanged();
} else {
applyState_ = null;
applyStateBuilder_ = null;
}
return this;
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder getApplyStateBuilder() {
onChanged();
return getApplyStateFieldBuilder().getBuilder();
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
public org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder getApplyStateOrBuilder() {
if (applyStateBuilder_ != null) {
return applyStateBuilder_.getMessageOrBuilder();
} else {
return applyState_ == null ?
org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance() : applyState_;
}
}
/**
* .raft_serverpb.RaftApplyState apply_state = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder>
getApplyStateFieldBuilder() {
if (applyStateBuilder_ == null) {
applyStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.RaftApplyState, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder, org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder>(
getApplyState(),
getParentForChildren(),
isClean());
applyState_ = null;
}
return applyStateBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.SnapshotState)
}
// @@protoc_insertion_point(class_scope:enginepb.SnapshotState)
private static final enginepb.Enginepb.SnapshotState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.SnapshotState();
}
public static enginepb.Enginepb.SnapshotState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.SnapshotState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.SnapshotData)
com.google.protobuf.MessageOrBuilder {
/**
* string cf = 1;
*/
java.lang.String getCf();
/**
* string cf = 1;
*/
com.google.protobuf.ByteString
getCfBytes();
/**
* uint32 checksum = 2;
*/
int getChecksum();
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
java.util.List
getDataList();
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
org.tikv.kvproto.RaftServerpb.KeyValue getData(int index);
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
int getDataCount();
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
java.util.List extends org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>
getDataOrBuilderList();
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder(
int index);
}
/**
* Protobuf type {@code enginepb.SnapshotData}
*/
public static final class SnapshotData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.SnapshotData)
SnapshotDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotData.newBuilder() to construct.
private SnapshotData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotData() {
cf_ = "";
checksum_ = 0;
data_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
cf_ = s;
break;
}
case 16: {
checksum_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
data_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
data_.add(
input.readMessage(org.tikv.kvproto.RaftServerpb.KeyValue.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)) {
data_ = java.util.Collections.unmodifiableList(data_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotData.class, enginepb.Enginepb.SnapshotData.Builder.class);
}
private int bitField0_;
public static final int CF_FIELD_NUMBER = 1;
private volatile java.lang.Object cf_;
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHECKSUM_FIELD_NUMBER = 2;
private int checksum_;
/**
* uint32 checksum = 2;
*/
public int getChecksum() {
return checksum_;
}
public static final int DATA_FIELD_NUMBER = 3;
private java.util.List data_;
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public java.util.List getDataList() {
return data_;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public java.util.List extends org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>
getDataOrBuilderList() {
return data_;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public int getDataCount() {
return data_.size();
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValue getData(int index) {
return data_.get(index);
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder(
int index) {
return data_.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 (!getCfBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_);
}
if (checksum_ != 0) {
output.writeUInt32(2, checksum_);
}
for (int i = 0; i < data_.size(); i++) {
output.writeMessage(3, data_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCfBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_);
}
if (checksum_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, checksum_);
}
for (int i = 0; i < data_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, data_.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 enginepb.Enginepb.SnapshotData)) {
return super.equals(obj);
}
enginepb.Enginepb.SnapshotData other = (enginepb.Enginepb.SnapshotData) obj;
boolean result = true;
result = result && getCf()
.equals(other.getCf());
result = result && (getChecksum()
== other.getChecksum());
result = result && getDataList()
.equals(other.getDataList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CF_FIELD_NUMBER;
hash = (53 * hash) + getCf().hashCode();
hash = (37 * hash) + CHECKSUM_FIELD_NUMBER;
hash = (53 * hash) + getChecksum();
if (getDataCount() > 0) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.SnapshotData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.SnapshotData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.SnapshotData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.SnapshotData)
enginepb.Enginepb.SnapshotDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotData_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotData.class, enginepb.Enginepb.SnapshotData.Builder.class);
}
// Construct using enginepb.Enginepb.SnapshotData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataFieldBuilder();
}
}
public Builder clear() {
super.clear();
cf_ = "";
checksum_ = 0;
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
dataBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotData_descriptor;
}
public enginepb.Enginepb.SnapshotData getDefaultInstanceForType() {
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
public enginepb.Enginepb.SnapshotData build() {
enginepb.Enginepb.SnapshotData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.SnapshotData buildPartial() {
enginepb.Enginepb.SnapshotData result = new enginepb.Enginepb.SnapshotData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.cf_ = cf_;
result.checksum_ = checksum_;
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
data_ = java.util.Collections.unmodifiableList(data_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.data_ = data_;
} else {
result.data_ = dataBuilder_.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 enginepb.Enginepb.SnapshotData) {
return mergeFrom((enginepb.Enginepb.SnapshotData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.SnapshotData other) {
if (other == enginepb.Enginepb.SnapshotData.getDefaultInstance()) return this;
if (!other.getCf().isEmpty()) {
cf_ = other.cf_;
onChanged();
}
if (other.getChecksum() != 0) {
setChecksum(other.getChecksum());
}
if (dataBuilder_ == null) {
if (!other.data_.isEmpty()) {
if (data_.isEmpty()) {
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDataIsMutable();
data_.addAll(other.data_);
}
onChanged();
}
} else {
if (!other.data_.isEmpty()) {
if (dataBuilder_.isEmpty()) {
dataBuilder_.dispose();
dataBuilder_ = null;
data_ = other.data_;
bitField0_ = (bitField0_ & ~0x00000004);
dataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDataFieldBuilder() : null;
} else {
dataBuilder_.addAllMessages(other.data_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.SnapshotData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.SnapshotData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object cf_ = "";
/**
* string cf = 1;
*/
public java.lang.String getCf() {
java.lang.Object ref = cf_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cf_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cf = 1;
*/
public com.google.protobuf.ByteString
getCfBytes() {
java.lang.Object ref = cf_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cf_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cf = 1;
*/
public Builder setCf(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cf_ = value;
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder clearCf() {
cf_ = getDefaultInstance().getCf();
onChanged();
return this;
}
/**
* string cf = 1;
*/
public Builder setCfBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cf_ = value;
onChanged();
return this;
}
private int checksum_ ;
/**
* uint32 checksum = 2;
*/
public int getChecksum() {
return checksum_;
}
/**
* uint32 checksum = 2;
*/
public Builder setChecksum(int value) {
checksum_ = value;
onChanged();
return this;
}
/**
* uint32 checksum = 2;
*/
public Builder clearChecksum() {
checksum_ = 0;
onChanged();
return this;
}
private java.util.List data_ =
java.util.Collections.emptyList();
private void ensureDataIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
data_ = new java.util.ArrayList(data_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder> dataBuilder_;
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public java.util.List getDataList() {
if (dataBuilder_ == null) {
return java.util.Collections.unmodifiableList(data_);
} else {
return dataBuilder_.getMessageList();
}
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public int getDataCount() {
if (dataBuilder_ == null) {
return data_.size();
} else {
return dataBuilder_.getCount();
}
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValue getData(int index) {
if (dataBuilder_ == null) {
return data_.get(index);
} else {
return dataBuilder_.getMessage(index);
}
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder setData(
int index, org.tikv.kvproto.RaftServerpb.KeyValue value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.set(index, value);
onChanged();
} else {
dataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder setData(
int index, org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.set(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder addData(org.tikv.kvproto.RaftServerpb.KeyValue value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(value);
onChanged();
} else {
dataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder addData(
int index, org.tikv.kvproto.RaftServerpb.KeyValue value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataIsMutable();
data_.add(index, value);
onChanged();
} else {
dataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder addData(
org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder addData(
int index, org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.add(index, builderForValue.build());
onChanged();
} else {
dataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder addAllData(
java.lang.Iterable extends org.tikv.kvproto.RaftServerpb.KeyValue> values) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, data_);
onChanged();
} else {
dataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
dataBuilder_.clear();
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public Builder removeData(int index) {
if (dataBuilder_ == null) {
ensureDataIsMutable();
data_.remove(index);
onChanged();
} else {
dataBuilder_.remove(index);
}
return this;
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValue.Builder getDataBuilder(
int index) {
return getDataFieldBuilder().getBuilder(index);
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder(
int index) {
if (dataBuilder_ == null) {
return data_.get(index); } else {
return dataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public java.util.List extends org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>
getDataOrBuilderList() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(data_);
}
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValue.Builder addDataBuilder() {
return getDataFieldBuilder().addBuilder(
org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance());
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public org.tikv.kvproto.RaftServerpb.KeyValue.Builder addDataBuilder(
int index) {
return getDataFieldBuilder().addBuilder(
index, org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance());
}
/**
* repeated .raft_serverpb.KeyValue data = 3;
*/
public java.util.List
getDataBuilderList() {
return getDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>(
data_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.SnapshotData)
}
// @@protoc_insertion_point(class_scope:enginepb.SnapshotData)
private static final enginepb.Enginepb.SnapshotData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.SnapshotData();
}
public static enginepb.Enginepb.SnapshotData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.SnapshotData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.SnapshotRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
boolean hasState();
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
enginepb.Enginepb.SnapshotState getState();
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
enginepb.Enginepb.SnapshotStateOrBuilder getStateOrBuilder();
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
boolean hasData();
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
enginepb.Enginepb.SnapshotData getData();
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
enginepb.Enginepb.SnapshotDataOrBuilder getDataOrBuilder();
public enginepb.Enginepb.SnapshotRequest.ChunkCase getChunkCase();
}
/**
* Protobuf type {@code enginepb.SnapshotRequest}
*/
public static final class SnapshotRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.SnapshotRequest)
SnapshotRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotRequest.newBuilder() to construct.
private SnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
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: {
enginepb.Enginepb.SnapshotState.Builder subBuilder = null;
if (chunkCase_ == 1) {
subBuilder = ((enginepb.Enginepb.SnapshotState) chunk_).toBuilder();
}
chunk_ =
input.readMessage(enginepb.Enginepb.SnapshotState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((enginepb.Enginepb.SnapshotState) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 1;
break;
}
case 18: {
enginepb.Enginepb.SnapshotData.Builder subBuilder = null;
if (chunkCase_ == 2) {
subBuilder = ((enginepb.Enginepb.SnapshotData) chunk_).toBuilder();
}
chunk_ =
input.readMessage(enginepb.Enginepb.SnapshotData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((enginepb.Enginepb.SnapshotData) chunk_);
chunk_ = subBuilder.buildPartial();
}
chunkCase_ = 2;
break;
}
}
}
} catch (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 enginepb.Enginepb.internal_static_enginepb_SnapshotRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotRequest.class, enginepb.Enginepb.SnapshotRequest.Builder.class);
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public enum ChunkCase
implements com.google.protobuf.Internal.EnumLite {
STATE(1),
DATA(2),
CHUNK_NOT_SET(0);
private final int value;
private ChunkCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ChunkCase valueOf(int value) {
return forNumber(value);
}
public static ChunkCase forNumber(int value) {
switch (value) {
case 1: return STATE;
case 2: return DATA;
case 0: return CHUNK_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ChunkCase
getChunkCase() {
return ChunkCase.forNumber(
chunkCase_);
}
public static final int STATE_FIELD_NUMBER = 1;
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public boolean hasState() {
return chunkCase_ == 1;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public enginepb.Enginepb.SnapshotState getState() {
if (chunkCase_ == 1) {
return (enginepb.Enginepb.SnapshotState) chunk_;
}
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public enginepb.Enginepb.SnapshotStateOrBuilder getStateOrBuilder() {
if (chunkCase_ == 1) {
return (enginepb.Enginepb.SnapshotState) chunk_;
}
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
public static final int DATA_FIELD_NUMBER = 2;
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public boolean hasData() {
return chunkCase_ == 2;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public enginepb.Enginepb.SnapshotData getData() {
if (chunkCase_ == 2) {
return (enginepb.Enginepb.SnapshotData) chunk_;
}
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public enginepb.Enginepb.SnapshotDataOrBuilder getDataOrBuilder() {
if (chunkCase_ == 2) {
return (enginepb.Enginepb.SnapshotData) chunk_;
}
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 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 (chunkCase_ == 1) {
output.writeMessage(1, (enginepb.Enginepb.SnapshotState) chunk_);
}
if (chunkCase_ == 2) {
output.writeMessage(2, (enginepb.Enginepb.SnapshotData) chunk_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (chunkCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (enginepb.Enginepb.SnapshotState) chunk_);
}
if (chunkCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (enginepb.Enginepb.SnapshotData) chunk_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.SnapshotRequest)) {
return super.equals(obj);
}
enginepb.Enginepb.SnapshotRequest other = (enginepb.Enginepb.SnapshotRequest) obj;
boolean result = true;
result = result && getChunkCase().equals(
other.getChunkCase());
if (!result) return false;
switch (chunkCase_) {
case 1:
result = result && getState()
.equals(other.getState());
break;
case 2:
result = result && getData()
.equals(other.getData());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (chunkCase_) {
case 1:
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
break;
case 2:
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.SnapshotRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.SnapshotRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.SnapshotRequest)
enginepb.Enginepb.SnapshotRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotRequest.class, enginepb.Enginepb.SnapshotRequest.Builder.class);
}
// Construct using enginepb.Enginepb.SnapshotRequest.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();
chunkCase_ = 0;
chunk_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotRequest_descriptor;
}
public enginepb.Enginepb.SnapshotRequest getDefaultInstanceForType() {
return enginepb.Enginepb.SnapshotRequest.getDefaultInstance();
}
public enginepb.Enginepb.SnapshotRequest build() {
enginepb.Enginepb.SnapshotRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.SnapshotRequest buildPartial() {
enginepb.Enginepb.SnapshotRequest result = new enginepb.Enginepb.SnapshotRequest(this);
if (chunkCase_ == 1) {
if (stateBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = stateBuilder_.build();
}
}
if (chunkCase_ == 2) {
if (dataBuilder_ == null) {
result.chunk_ = chunk_;
} else {
result.chunk_ = dataBuilder_.build();
}
}
result.chunkCase_ = chunkCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof enginepb.Enginepb.SnapshotRequest) {
return mergeFrom((enginepb.Enginepb.SnapshotRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.SnapshotRequest other) {
if (other == enginepb.Enginepb.SnapshotRequest.getDefaultInstance()) return this;
switch (other.getChunkCase()) {
case STATE: {
mergeState(other.getState());
break;
}
case DATA: {
mergeData(other.getData());
break;
}
case CHUNK_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.SnapshotRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.SnapshotRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int chunkCase_ = 0;
private java.lang.Object chunk_;
public ChunkCase
getChunkCase() {
return ChunkCase.forNumber(
chunkCase_);
}
public Builder clearChunk() {
chunkCase_ = 0;
chunk_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotState, enginepb.Enginepb.SnapshotState.Builder, enginepb.Enginepb.SnapshotStateOrBuilder> stateBuilder_;
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public boolean hasState() {
return chunkCase_ == 1;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public enginepb.Enginepb.SnapshotState getState() {
if (stateBuilder_ == null) {
if (chunkCase_ == 1) {
return (enginepb.Enginepb.SnapshotState) chunk_;
}
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
} else {
if (chunkCase_ == 1) {
return stateBuilder_.getMessage();
}
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public Builder setState(enginepb.Enginepb.SnapshotState value) {
if (stateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
stateBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public Builder setState(
enginepb.Enginepb.SnapshotState.Builder builderForValue) {
if (stateBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
stateBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 1;
return this;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public Builder mergeState(enginepb.Enginepb.SnapshotState value) {
if (stateBuilder_ == null) {
if (chunkCase_ == 1 &&
chunk_ != enginepb.Enginepb.SnapshotState.getDefaultInstance()) {
chunk_ = enginepb.Enginepb.SnapshotState.newBuilder((enginepb.Enginepb.SnapshotState) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 1) {
stateBuilder_.mergeFrom(value);
}
stateBuilder_.setMessage(value);
}
chunkCase_ = 1;
return this;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public Builder clearState() {
if (stateBuilder_ == null) {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 1) {
chunkCase_ = 0;
chunk_ = null;
}
stateBuilder_.clear();
}
return this;
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public enginepb.Enginepb.SnapshotState.Builder getStateBuilder() {
return getStateFieldBuilder().getBuilder();
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
public enginepb.Enginepb.SnapshotStateOrBuilder getStateOrBuilder() {
if ((chunkCase_ == 1) && (stateBuilder_ != null)) {
return stateBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 1) {
return (enginepb.Enginepb.SnapshotState) chunk_;
}
return enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
}
/**
*
* The first message for snapshots.
* It contains the latest region information after applied snapshot.
*
*
* .enginepb.SnapshotState state = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotState, enginepb.Enginepb.SnapshotState.Builder, enginepb.Enginepb.SnapshotStateOrBuilder>
getStateFieldBuilder() {
if (stateBuilder_ == null) {
if (!(chunkCase_ == 1)) {
chunk_ = enginepb.Enginepb.SnapshotState.getDefaultInstance();
}
stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotState, enginepb.Enginepb.SnapshotState.Builder, enginepb.Enginepb.SnapshotStateOrBuilder>(
(enginepb.Enginepb.SnapshotState) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 1;
onChanged();;
return stateBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotData, enginepb.Enginepb.SnapshotData.Builder, enginepb.Enginepb.SnapshotDataOrBuilder> dataBuilder_;
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public boolean hasData() {
return chunkCase_ == 2;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public enginepb.Enginepb.SnapshotData getData() {
if (dataBuilder_ == null) {
if (chunkCase_ == 2) {
return (enginepb.Enginepb.SnapshotData) chunk_;
}
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
} else {
if (chunkCase_ == 2) {
return dataBuilder_.getMessage();
}
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public Builder setData(enginepb.Enginepb.SnapshotData value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
chunk_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public Builder setData(
enginepb.Enginepb.SnapshotData.Builder builderForValue) {
if (dataBuilder_ == null) {
chunk_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
chunkCase_ = 2;
return this;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public Builder mergeData(enginepb.Enginepb.SnapshotData value) {
if (dataBuilder_ == null) {
if (chunkCase_ == 2 &&
chunk_ != enginepb.Enginepb.SnapshotData.getDefaultInstance()) {
chunk_ = enginepb.Enginepb.SnapshotData.newBuilder((enginepb.Enginepb.SnapshotData) chunk_)
.mergeFrom(value).buildPartial();
} else {
chunk_ = value;
}
onChanged();
} else {
if (chunkCase_ == 2) {
dataBuilder_.mergeFrom(value);
}
dataBuilder_.setMessage(value);
}
chunkCase_ = 2;
return this;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
if (chunkCase_ == 2) {
chunkCase_ = 0;
chunk_ = null;
onChanged();
}
} else {
if (chunkCase_ == 2) {
chunkCase_ = 0;
chunk_ = null;
}
dataBuilder_.clear();
}
return this;
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public enginepb.Enginepb.SnapshotData.Builder getDataBuilder() {
return getDataFieldBuilder().getBuilder();
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
public enginepb.Enginepb.SnapshotDataOrBuilder getDataOrBuilder() {
if ((chunkCase_ == 2) && (dataBuilder_ != null)) {
return dataBuilder_.getMessageOrBuilder();
} else {
if (chunkCase_ == 2) {
return (enginepb.Enginepb.SnapshotData) chunk_;
}
return enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
}
/**
*
* Following messages are always data.
*
*
* .enginepb.SnapshotData data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotData, enginepb.Enginepb.SnapshotData.Builder, enginepb.Enginepb.SnapshotDataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
if (!(chunkCase_ == 2)) {
chunk_ = enginepb.Enginepb.SnapshotData.getDefaultInstance();
}
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
enginepb.Enginepb.SnapshotData, enginepb.Enginepb.SnapshotData.Builder, enginepb.Enginepb.SnapshotDataOrBuilder>(
(enginepb.Enginepb.SnapshotData) chunk_,
getParentForChildren(),
isClean());
chunk_ = null;
}
chunkCase_ = 2;
onChanged();;
return dataBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.SnapshotRequest)
}
// @@protoc_insertion_point(class_scope:enginepb.SnapshotRequest)
private static final enginepb.Enginepb.SnapshotRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.SnapshotRequest();
}
public static enginepb.Enginepb.SnapshotRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.SnapshotRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotDoneOrBuilder extends
// @@protoc_insertion_point(interface_extends:enginepb.SnapshotDone)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code enginepb.SnapshotDone}
*/
public static final class SnapshotDone extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:enginepb.SnapshotDone)
SnapshotDoneOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotDone.newBuilder() to construct.
private SnapshotDone(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotDone() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotDone(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotDone_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotDone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotDone.class, enginepb.Enginepb.SnapshotDone.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof enginepb.Enginepb.SnapshotDone)) {
return super.equals(obj);
}
enginepb.Enginepb.SnapshotDone other = (enginepb.Enginepb.SnapshotDone) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotDone parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotDone parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static enginepb.Enginepb.SnapshotDone parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(enginepb.Enginepb.SnapshotDone prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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 enginepb.SnapshotDone}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:enginepb.SnapshotDone)
enginepb.Enginepb.SnapshotDoneOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotDone_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotDone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
enginepb.Enginepb.SnapshotDone.class, enginepb.Enginepb.SnapshotDone.Builder.class);
}
// Construct using enginepb.Enginepb.SnapshotDone.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return enginepb.Enginepb.internal_static_enginepb_SnapshotDone_descriptor;
}
public enginepb.Enginepb.SnapshotDone getDefaultInstanceForType() {
return enginepb.Enginepb.SnapshotDone.getDefaultInstance();
}
public enginepb.Enginepb.SnapshotDone build() {
enginepb.Enginepb.SnapshotDone result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public enginepb.Enginepb.SnapshotDone buildPartial() {
enginepb.Enginepb.SnapshotDone result = new enginepb.Enginepb.SnapshotDone(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof enginepb.Enginepb.SnapshotDone) {
return mergeFrom((enginepb.Enginepb.SnapshotDone)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(enginepb.Enginepb.SnapshotDone other) {
if (other == enginepb.Enginepb.SnapshotDone.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
enginepb.Enginepb.SnapshotDone parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (enginepb.Enginepb.SnapshotDone) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:enginepb.SnapshotDone)
}
// @@protoc_insertion_point(class_scope:enginepb.SnapshotDone)
private static final enginepb.Enginepb.SnapshotDone DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new enginepb.Enginepb.SnapshotDone();
}
public static enginepb.Enginepb.SnapshotDone getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotDone parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotDone(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public enginepb.Enginepb.SnapshotDone getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandRequestHeader_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandRequestHeader_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandRequestBatch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandRequestBatch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandResponseHeader_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandResponseHeader_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_CommandResponseBatch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_CommandResponseBatch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_SnapshotState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_SnapshotState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_SnapshotData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_SnapshotData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_SnapshotRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_SnapshotRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_enginepb_SnapshotDone_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_enginepb_SnapshotDone_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\016enginepb.proto\022\010enginepb\032\014metapb.proto" +
"\032\020raft_cmdpb.proto\032\023raft_serverpb.proto\"" +
"z\n\024CommandRequestHeader\022\021\n\tregion_id\030\001 \001" +
"(\004\022\r\n\005index\030\002 \001(\004\022\014\n\004term\030\003 \001(\004\022\020\n\010sync_" +
"log\030\004 \001(\010\022\017\n\007destroy\030\005 \001(\010\022\017\n\007context\030\006 " +
"\001(\014\"\313\001\n\016CommandRequest\022.\n\006header\030\001 \001(\0132\036" +
".enginepb.CommandRequestHeader\022%\n\010reques" +
"ts\030\002 \003(\0132\023.raft_cmdpb.Request\022/\n\radmin_r" +
"equest\030\003 \001(\0132\030.raft_cmdpb.AdminRequest\0221" +
"\n\016admin_response\030\004 \001(\0132\031.raft_cmdpb.Admi" +
"nResponse\"A\n\023CommandRequestBatch\022*\n\010requ" +
"ests\030\001 \003(\0132\030.enginepb.CommandRequest\"=\n\025" +
"CommandResponseHeader\022\021\n\tregion_id\030\001 \001(\004" +
"\022\021\n\tdestroyed\030\002 \001(\010\"\214\001\n\017CommandResponse\022" +
"/\n\006header\030\001 \001(\0132\037.enginepb.CommandRespon" +
"seHeader\0222\n\013apply_state\030\002 \001(\0132\035.raft_ser" +
"verpb.RaftApplyState\022\024\n\014applied_term\030\003 \001" +
"(\004\"D\n\024CommandResponseBatch\022,\n\tresponses\030" +
"\001 \003(\0132\031.enginepb.CommandResponse\"\177\n\rSnap" +
"shotState\022\036\n\006region\030\001 \001(\0132\016.metapb.Regio" +
"n\022\032\n\004peer\030\002 \001(\0132\014.metapb.Peer\0222\n\013apply_s" +
"tate\030\003 \001(\0132\035.raft_serverpb.RaftApplyStat" +
"e\"S\n\014SnapshotData\022\n\n\002cf\030\001 \001(\t\022\020\n\010checksu" +
"m\030\002 \001(\r\022%\n\004data\030\003 \003(\0132\027.raft_serverpb.Ke" +
"yValue\"l\n\017SnapshotRequest\022(\n\005state\030\001 \001(\013" +
"2\027.enginepb.SnapshotStateH\000\022&\n\004data\030\002 \001(" +
"\0132\026.enginepb.SnapshotDataH\000B\007\n\005chunk\"\016\n\014" +
"SnapshotDone2\252\001\n\006Engine\022X\n\021ApplyCommandB" +
"atch\022\035.enginepb.CommandRequestBatch\032\036.en" +
"ginepb.CommandResponseBatch\"\000(\0010\001\022F\n\rApp" +
"lySnapshot\022\031.enginepb.SnapshotRequest\032\026." +
"enginepb.SnapshotDone\"\000(\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.tikv.kvproto.Metapb.getDescriptor(),
org.tikv.kvproto.RaftCmdpb.getDescriptor(),
org.tikv.kvproto.RaftServerpb.getDescriptor(),
}, assigner);
internal_static_enginepb_CommandRequestHeader_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_enginepb_CommandRequestHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandRequestHeader_descriptor,
new java.lang.String[] { "RegionId", "Index", "Term", "SyncLog", "Destroy", "Context", });
internal_static_enginepb_CommandRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_enginepb_CommandRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandRequest_descriptor,
new java.lang.String[] { "Header", "Requests", "AdminRequest", "AdminResponse", });
internal_static_enginepb_CommandRequestBatch_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_enginepb_CommandRequestBatch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandRequestBatch_descriptor,
new java.lang.String[] { "Requests", });
internal_static_enginepb_CommandResponseHeader_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_enginepb_CommandResponseHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandResponseHeader_descriptor,
new java.lang.String[] { "RegionId", "Destroyed", });
internal_static_enginepb_CommandResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_enginepb_CommandResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandResponse_descriptor,
new java.lang.String[] { "Header", "ApplyState", "AppliedTerm", });
internal_static_enginepb_CommandResponseBatch_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_enginepb_CommandResponseBatch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_CommandResponseBatch_descriptor,
new java.lang.String[] { "Responses", });
internal_static_enginepb_SnapshotState_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_enginepb_SnapshotState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_SnapshotState_descriptor,
new java.lang.String[] { "Region", "Peer", "ApplyState", });
internal_static_enginepb_SnapshotData_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_enginepb_SnapshotData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_SnapshotData_descriptor,
new java.lang.String[] { "Cf", "Checksum", "Data", });
internal_static_enginepb_SnapshotRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_enginepb_SnapshotRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_SnapshotRequest_descriptor,
new java.lang.String[] { "State", "Data", "Chunk", });
internal_static_enginepb_SnapshotDone_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_enginepb_SnapshotDone_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_enginepb_SnapshotDone_descriptor,
new java.lang.String[] { });
org.tikv.kvproto.Metapb.getDescriptor();
org.tikv.kvproto.RaftCmdpb.getDescriptor();
org.tikv.kvproto.RaftServerpb.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy