types.Raft Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: raft.proto
package types;
public final class Raft {
private Raft() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* cluster member for raft consensus
*
*
* Protobuf enum {@code types.MembershipChangeType}
*/
public enum MembershipChangeType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ADD_MEMBER = 0;
*/
ADD_MEMBER(0),
/**
* REMOVE_MEMBER = 1;
*/
REMOVE_MEMBER(1),
UNRECOGNIZED(-1),
;
/**
* ADD_MEMBER = 0;
*/
public static final int ADD_MEMBER_VALUE = 0;
/**
* REMOVE_MEMBER = 1;
*/
public static final int REMOVE_MEMBER_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MembershipChangeType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static MembershipChangeType forNumber(int value) {
switch (value) {
case 0: return ADD_MEMBER;
case 1: return REMOVE_MEMBER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MembershipChangeType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MembershipChangeType findValueByNumber(int number) {
return MembershipChangeType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return types.Raft.getDescriptor().getEnumTypes().get(0);
}
private static final MembershipChangeType[] VALUES = values();
public static MembershipChangeType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private MembershipChangeType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:types.MembershipChangeType)
}
/**
* Protobuf enum {@code types.ConfChangeState}
*/
public enum ConfChangeState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CONF_CHANGE_STATE_PROPOSED = 0;
*/
CONF_CHANGE_STATE_PROPOSED(0),
/**
* CONF_CHANGE_STATE_SAVED = 1;
*/
CONF_CHANGE_STATE_SAVED(1),
/**
* CONF_CHANGE_STATE_APPLIED = 2;
*/
CONF_CHANGE_STATE_APPLIED(2),
UNRECOGNIZED(-1),
;
/**
* CONF_CHANGE_STATE_PROPOSED = 0;
*/
public static final int CONF_CHANGE_STATE_PROPOSED_VALUE = 0;
/**
* CONF_CHANGE_STATE_SAVED = 1;
*/
public static final int CONF_CHANGE_STATE_SAVED_VALUE = 1;
/**
* CONF_CHANGE_STATE_APPLIED = 2;
*/
public static final int CONF_CHANGE_STATE_APPLIED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfChangeState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConfChangeState forNumber(int value) {
switch (value) {
case 0: return CONF_CHANGE_STATE_PROPOSED;
case 1: return CONF_CHANGE_STATE_SAVED;
case 2: return CONF_CHANGE_STATE_APPLIED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConfChangeState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConfChangeState findValueByNumber(int number) {
return ConfChangeState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return types.Raft.getDescriptor().getEnumTypes().get(1);
}
private static final ConfChangeState[] VALUES = values();
public static ConfChangeState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConfChangeState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:types.ConfChangeState)
}
public interface MemberAttrOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.MemberAttr)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 ID = 1;
* @return The iD.
*/
long getID();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string address = 3;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 3;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* bytes peerID = 4;
* @return The peerID.
*/
com.google.protobuf.ByteString getPeerID();
}
/**
* Protobuf type {@code types.MemberAttr}
*/
public static final class MemberAttr extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.MemberAttr)
MemberAttrOrBuilder {
private static final long serialVersionUID = 0L;
// Use MemberAttr.newBuilder() to construct.
private MemberAttr(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MemberAttr() {
name_ = "";
address_ = "";
peerID_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MemberAttr();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MemberAttr(
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;
case 8: {
iD_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 34: {
peerID_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_MemberAttr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MemberAttr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MemberAttr.class, types.Raft.MemberAttr.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long iD_;
/**
* uint64 ID = 1;
* @return The iD.
*/
@java.lang.Override
public long getID() {
return iD_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object address_;
/**
* string address = 3;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
* string address = 3;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PEERID_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString peerID_;
/**
* bytes peerID = 4;
* @return The peerID.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPeerID() {
return peerID_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (iD_ != 0L) {
output.writeUInt64(1, iD_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_);
}
if (!peerID_.isEmpty()) {
output.writeBytes(4, peerID_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (iD_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, iD_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, address_);
}
if (!peerID_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, peerID_);
}
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 types.Raft.MemberAttr)) {
return super.equals(obj);
}
types.Raft.MemberAttr other = (types.Raft.MemberAttr) obj;
if (getID()
!= other.getID()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getPeerID()
.equals(other.getPeerID())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getID());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + PEERID_FIELD_NUMBER;
hash = (53 * hash) + getPeerID().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.MemberAttr parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MemberAttr parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MemberAttr parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MemberAttr parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MemberAttr parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MemberAttr parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MemberAttr parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MemberAttr 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 types.Raft.MemberAttr parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.MemberAttr 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 types.Raft.MemberAttr parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MemberAttr parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.MemberAttr prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.MemberAttr}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.MemberAttr)
types.Raft.MemberAttrOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_MemberAttr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MemberAttr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MemberAttr.class, types.Raft.MemberAttr.Builder.class);
}
// Construct using types.Raft.MemberAttr.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
iD_ = 0L;
name_ = "";
address_ = "";
peerID_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_MemberAttr_descriptor;
}
@java.lang.Override
public types.Raft.MemberAttr getDefaultInstanceForType() {
return types.Raft.MemberAttr.getDefaultInstance();
}
@java.lang.Override
public types.Raft.MemberAttr build() {
types.Raft.MemberAttr result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.MemberAttr buildPartial() {
types.Raft.MemberAttr result = new types.Raft.MemberAttr(this);
result.iD_ = iD_;
result.name_ = name_;
result.address_ = address_;
result.peerID_ = peerID_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.MemberAttr) {
return mergeFrom((types.Raft.MemberAttr)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.MemberAttr other) {
if (other == types.Raft.MemberAttr.getDefaultInstance()) return this;
if (other.getID() != 0L) {
setID(other.getID());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.getPeerID() != com.google.protobuf.ByteString.EMPTY) {
setPeerID(other.getPeerID());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.MemberAttr parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.MemberAttr) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long iD_ ;
/**
* uint64 ID = 1;
* @return The iD.
*/
@java.lang.Override
public long getID() {
return iD_;
}
/**
* uint64 ID = 1;
* @param value The iD to set.
* @return This builder for chaining.
*/
public Builder setID(long value) {
iD_ = value;
onChanged();
return this;
}
/**
* uint64 ID = 1;
* @return This builder for chaining.
*/
public Builder clearID() {
iD_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 3;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 3;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 3;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 3;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString peerID_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes peerID = 4;
* @return The peerID.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPeerID() {
return peerID_;
}
/**
* bytes peerID = 4;
* @param value The peerID to set.
* @return This builder for chaining.
*/
public Builder setPeerID(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
peerID_ = value;
onChanged();
return this;
}
/**
* bytes peerID = 4;
* @return This builder for chaining.
*/
public Builder clearPeerID() {
peerID_ = getDefaultInstance().getPeerID();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.MemberAttr)
}
// @@protoc_insertion_point(class_scope:types.MemberAttr)
private static final types.Raft.MemberAttr DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.MemberAttr();
}
public static types.Raft.MemberAttr getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MemberAttr parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MemberAttr(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.MemberAttr getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MembershipChangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.MembershipChange)
com.google.protobuf.MessageOrBuilder {
/**
* .types.MembershipChangeType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .types.MembershipChangeType type = 1;
* @return The type.
*/
types.Raft.MembershipChangeType getType();
/**
* uint64 requestID = 2;
* @return The requestID.
*/
long getRequestID();
/**
* .types.MemberAttr attr = 3;
* @return Whether the attr field is set.
*/
boolean hasAttr();
/**
* .types.MemberAttr attr = 3;
* @return The attr.
*/
types.Raft.MemberAttr getAttr();
/**
* .types.MemberAttr attr = 3;
*/
types.Raft.MemberAttrOrBuilder getAttrOrBuilder();
}
/**
* Protobuf type {@code types.MembershipChange}
*/
public static final class MembershipChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.MembershipChange)
MembershipChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use MembershipChange.newBuilder() to construct.
private MembershipChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MembershipChange() {
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MembershipChange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MembershipChange(
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;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
requestID_ = input.readUInt64();
break;
}
case 26: {
types.Raft.MemberAttr.Builder subBuilder = null;
if (attr_ != null) {
subBuilder = attr_.toBuilder();
}
attr_ = input.readMessage(types.Raft.MemberAttr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attr_);
attr_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_MembershipChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MembershipChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MembershipChange.class, types.Raft.MembershipChange.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .types.MembershipChangeType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .types.MembershipChangeType type = 1;
* @return The type.
*/
@java.lang.Override public types.Raft.MembershipChangeType getType() {
@SuppressWarnings("deprecation")
types.Raft.MembershipChangeType result = types.Raft.MembershipChangeType.valueOf(type_);
return result == null ? types.Raft.MembershipChangeType.UNRECOGNIZED : result;
}
public static final int REQUESTID_FIELD_NUMBER = 2;
private long requestID_;
/**
* uint64 requestID = 2;
* @return The requestID.
*/
@java.lang.Override
public long getRequestID() {
return requestID_;
}
public static final int ATTR_FIELD_NUMBER = 3;
private types.Raft.MemberAttr attr_;
/**
* .types.MemberAttr attr = 3;
* @return Whether the attr field is set.
*/
@java.lang.Override
public boolean hasAttr() {
return attr_ != null;
}
/**
* .types.MemberAttr attr = 3;
* @return The attr.
*/
@java.lang.Override
public types.Raft.MemberAttr getAttr() {
return attr_ == null ? types.Raft.MemberAttr.getDefaultInstance() : attr_;
}
/**
* .types.MemberAttr attr = 3;
*/
@java.lang.Override
public types.Raft.MemberAttrOrBuilder getAttrOrBuilder() {
return getAttr();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != types.Raft.MembershipChangeType.ADD_MEMBER.getNumber()) {
output.writeEnum(1, type_);
}
if (requestID_ != 0L) {
output.writeUInt64(2, requestID_);
}
if (attr_ != null) {
output.writeMessage(3, getAttr());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != types.Raft.MembershipChangeType.ADD_MEMBER.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (requestID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, requestID_);
}
if (attr_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAttr());
}
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 types.Raft.MembershipChange)) {
return super.equals(obj);
}
types.Raft.MembershipChange other = (types.Raft.MembershipChange) obj;
if (type_ != other.type_) return false;
if (getRequestID()
!= other.getRequestID()) return false;
if (hasAttr() != other.hasAttr()) return false;
if (hasAttr()) {
if (!getAttr()
.equals(other.getAttr())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + REQUESTID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestID());
if (hasAttr()) {
hash = (37 * hash) + ATTR_FIELD_NUMBER;
hash = (53 * hash) + getAttr().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.MembershipChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MembershipChange 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 types.Raft.MembershipChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.MembershipChange 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 types.Raft.MembershipChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MembershipChange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.MembershipChange prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.MembershipChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.MembershipChange)
types.Raft.MembershipChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_MembershipChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MembershipChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MembershipChange.class, types.Raft.MembershipChange.Builder.class);
}
// Construct using types.Raft.MembershipChange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
requestID_ = 0L;
if (attrBuilder_ == null) {
attr_ = null;
} else {
attr_ = null;
attrBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_MembershipChange_descriptor;
}
@java.lang.Override
public types.Raft.MembershipChange getDefaultInstanceForType() {
return types.Raft.MembershipChange.getDefaultInstance();
}
@java.lang.Override
public types.Raft.MembershipChange build() {
types.Raft.MembershipChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.MembershipChange buildPartial() {
types.Raft.MembershipChange result = new types.Raft.MembershipChange(this);
result.type_ = type_;
result.requestID_ = requestID_;
if (attrBuilder_ == null) {
result.attr_ = attr_;
} else {
result.attr_ = attrBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.MembershipChange) {
return mergeFrom((types.Raft.MembershipChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.MembershipChange other) {
if (other == types.Raft.MembershipChange.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getRequestID() != 0L) {
setRequestID(other.getRequestID());
}
if (other.hasAttr()) {
mergeAttr(other.getAttr());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.MembershipChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.MembershipChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* .types.MembershipChangeType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .types.MembershipChangeType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .types.MembershipChangeType type = 1;
* @return The type.
*/
@java.lang.Override
public types.Raft.MembershipChangeType getType() {
@SuppressWarnings("deprecation")
types.Raft.MembershipChangeType result = types.Raft.MembershipChangeType.valueOf(type_);
return result == null ? types.Raft.MembershipChangeType.UNRECOGNIZED : result;
}
/**
* .types.MembershipChangeType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(types.Raft.MembershipChangeType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .types.MembershipChangeType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private long requestID_ ;
/**
* uint64 requestID = 2;
* @return The requestID.
*/
@java.lang.Override
public long getRequestID() {
return requestID_;
}
/**
* uint64 requestID = 2;
* @param value The requestID to set.
* @return This builder for chaining.
*/
public Builder setRequestID(long value) {
requestID_ = value;
onChanged();
return this;
}
/**
* uint64 requestID = 2;
* @return This builder for chaining.
*/
public Builder clearRequestID() {
requestID_ = 0L;
onChanged();
return this;
}
private types.Raft.MemberAttr attr_;
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder> attrBuilder_;
/**
* .types.MemberAttr attr = 3;
* @return Whether the attr field is set.
*/
public boolean hasAttr() {
return attrBuilder_ != null || attr_ != null;
}
/**
* .types.MemberAttr attr = 3;
* @return The attr.
*/
public types.Raft.MemberAttr getAttr() {
if (attrBuilder_ == null) {
return attr_ == null ? types.Raft.MemberAttr.getDefaultInstance() : attr_;
} else {
return attrBuilder_.getMessage();
}
}
/**
* .types.MemberAttr attr = 3;
*/
public Builder setAttr(types.Raft.MemberAttr value) {
if (attrBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attr_ = value;
onChanged();
} else {
attrBuilder_.setMessage(value);
}
return this;
}
/**
* .types.MemberAttr attr = 3;
*/
public Builder setAttr(
types.Raft.MemberAttr.Builder builderForValue) {
if (attrBuilder_ == null) {
attr_ = builderForValue.build();
onChanged();
} else {
attrBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .types.MemberAttr attr = 3;
*/
public Builder mergeAttr(types.Raft.MemberAttr value) {
if (attrBuilder_ == null) {
if (attr_ != null) {
attr_ =
types.Raft.MemberAttr.newBuilder(attr_).mergeFrom(value).buildPartial();
} else {
attr_ = value;
}
onChanged();
} else {
attrBuilder_.mergeFrom(value);
}
return this;
}
/**
* .types.MemberAttr attr = 3;
*/
public Builder clearAttr() {
if (attrBuilder_ == null) {
attr_ = null;
onChanged();
} else {
attr_ = null;
attrBuilder_ = null;
}
return this;
}
/**
* .types.MemberAttr attr = 3;
*/
public types.Raft.MemberAttr.Builder getAttrBuilder() {
onChanged();
return getAttrFieldBuilder().getBuilder();
}
/**
* .types.MemberAttr attr = 3;
*/
public types.Raft.MemberAttrOrBuilder getAttrOrBuilder() {
if (attrBuilder_ != null) {
return attrBuilder_.getMessageOrBuilder();
} else {
return attr_ == null ?
types.Raft.MemberAttr.getDefaultInstance() : attr_;
}
}
/**
* .types.MemberAttr attr = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>
getAttrFieldBuilder() {
if (attrBuilder_ == null) {
attrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>(
getAttr(),
getParentForChildren(),
isClean());
attr_ = null;
}
return attrBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.MembershipChange)
}
// @@protoc_insertion_point(class_scope:types.MembershipChange)
private static final types.Raft.MembershipChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.MembershipChange();
}
public static types.Raft.MembershipChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MembershipChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MembershipChange(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.MembershipChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MembershipChangeReplyOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.MembershipChangeReply)
com.google.protobuf.MessageOrBuilder {
/**
* .types.MemberAttr attr = 1;
* @return Whether the attr field is set.
*/
boolean hasAttr();
/**
* .types.MemberAttr attr = 1;
* @return The attr.
*/
types.Raft.MemberAttr getAttr();
/**
* .types.MemberAttr attr = 1;
*/
types.Raft.MemberAttrOrBuilder getAttrOrBuilder();
}
/**
* Protobuf type {@code types.MembershipChangeReply}
*/
public static final class MembershipChangeReply extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.MembershipChangeReply)
MembershipChangeReplyOrBuilder {
private static final long serialVersionUID = 0L;
// Use MembershipChangeReply.newBuilder() to construct.
private MembershipChangeReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MembershipChangeReply() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MembershipChangeReply();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MembershipChangeReply(
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;
case 10: {
types.Raft.MemberAttr.Builder subBuilder = null;
if (attr_ != null) {
subBuilder = attr_.toBuilder();
}
attr_ = input.readMessage(types.Raft.MemberAttr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attr_);
attr_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_MembershipChangeReply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MembershipChangeReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MembershipChangeReply.class, types.Raft.MembershipChangeReply.Builder.class);
}
public static final int ATTR_FIELD_NUMBER = 1;
private types.Raft.MemberAttr attr_;
/**
* .types.MemberAttr attr = 1;
* @return Whether the attr field is set.
*/
@java.lang.Override
public boolean hasAttr() {
return attr_ != null;
}
/**
* .types.MemberAttr attr = 1;
* @return The attr.
*/
@java.lang.Override
public types.Raft.MemberAttr getAttr() {
return attr_ == null ? types.Raft.MemberAttr.getDefaultInstance() : attr_;
}
/**
* .types.MemberAttr attr = 1;
*/
@java.lang.Override
public types.Raft.MemberAttrOrBuilder getAttrOrBuilder() {
return getAttr();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (attr_ != null) {
output.writeMessage(1, getAttr());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (attr_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAttr());
}
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 types.Raft.MembershipChangeReply)) {
return super.equals(obj);
}
types.Raft.MembershipChangeReply other = (types.Raft.MembershipChangeReply) obj;
if (hasAttr() != other.hasAttr()) return false;
if (hasAttr()) {
if (!getAttr()
.equals(other.getAttr())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAttr()) {
hash = (37 * hash) + ATTR_FIELD_NUMBER;
hash = (53 * hash) + getAttr().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.MembershipChangeReply parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChangeReply parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChangeReply parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChangeReply parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChangeReply parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.MembershipChangeReply parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.MembershipChangeReply parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MembershipChangeReply 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 types.Raft.MembershipChangeReply parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.MembershipChangeReply 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 types.Raft.MembershipChangeReply parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.MembershipChangeReply parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.MembershipChangeReply prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.MembershipChangeReply}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.MembershipChangeReply)
types.Raft.MembershipChangeReplyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_MembershipChangeReply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_MembershipChangeReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.MembershipChangeReply.class, types.Raft.MembershipChangeReply.Builder.class);
}
// Construct using types.Raft.MembershipChangeReply.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (attrBuilder_ == null) {
attr_ = null;
} else {
attr_ = null;
attrBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_MembershipChangeReply_descriptor;
}
@java.lang.Override
public types.Raft.MembershipChangeReply getDefaultInstanceForType() {
return types.Raft.MembershipChangeReply.getDefaultInstance();
}
@java.lang.Override
public types.Raft.MembershipChangeReply build() {
types.Raft.MembershipChangeReply result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.MembershipChangeReply buildPartial() {
types.Raft.MembershipChangeReply result = new types.Raft.MembershipChangeReply(this);
if (attrBuilder_ == null) {
result.attr_ = attr_;
} else {
result.attr_ = attrBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.MembershipChangeReply) {
return mergeFrom((types.Raft.MembershipChangeReply)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.MembershipChangeReply other) {
if (other == types.Raft.MembershipChangeReply.getDefaultInstance()) return this;
if (other.hasAttr()) {
mergeAttr(other.getAttr());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.MembershipChangeReply parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.MembershipChangeReply) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private types.Raft.MemberAttr attr_;
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder> attrBuilder_;
/**
* .types.MemberAttr attr = 1;
* @return Whether the attr field is set.
*/
public boolean hasAttr() {
return attrBuilder_ != null || attr_ != null;
}
/**
* .types.MemberAttr attr = 1;
* @return The attr.
*/
public types.Raft.MemberAttr getAttr() {
if (attrBuilder_ == null) {
return attr_ == null ? types.Raft.MemberAttr.getDefaultInstance() : attr_;
} else {
return attrBuilder_.getMessage();
}
}
/**
* .types.MemberAttr attr = 1;
*/
public Builder setAttr(types.Raft.MemberAttr value) {
if (attrBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attr_ = value;
onChanged();
} else {
attrBuilder_.setMessage(value);
}
return this;
}
/**
* .types.MemberAttr attr = 1;
*/
public Builder setAttr(
types.Raft.MemberAttr.Builder builderForValue) {
if (attrBuilder_ == null) {
attr_ = builderForValue.build();
onChanged();
} else {
attrBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .types.MemberAttr attr = 1;
*/
public Builder mergeAttr(types.Raft.MemberAttr value) {
if (attrBuilder_ == null) {
if (attr_ != null) {
attr_ =
types.Raft.MemberAttr.newBuilder(attr_).mergeFrom(value).buildPartial();
} else {
attr_ = value;
}
onChanged();
} else {
attrBuilder_.mergeFrom(value);
}
return this;
}
/**
* .types.MemberAttr attr = 1;
*/
public Builder clearAttr() {
if (attrBuilder_ == null) {
attr_ = null;
onChanged();
} else {
attr_ = null;
attrBuilder_ = null;
}
return this;
}
/**
* .types.MemberAttr attr = 1;
*/
public types.Raft.MemberAttr.Builder getAttrBuilder() {
onChanged();
return getAttrFieldBuilder().getBuilder();
}
/**
* .types.MemberAttr attr = 1;
*/
public types.Raft.MemberAttrOrBuilder getAttrOrBuilder() {
if (attrBuilder_ != null) {
return attrBuilder_.getMessageOrBuilder();
} else {
return attr_ == null ?
types.Raft.MemberAttr.getDefaultInstance() : attr_;
}
}
/**
* .types.MemberAttr attr = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>
getAttrFieldBuilder() {
if (attrBuilder_ == null) {
attrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>(
getAttr(),
getParentForChildren(),
isClean());
attr_ = null;
}
return attrBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.MembershipChangeReply)
}
// @@protoc_insertion_point(class_scope:types.MembershipChangeReply)
private static final types.Raft.MembershipChangeReply DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.MembershipChangeReply();
}
public static types.Raft.MembershipChangeReply getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MembershipChangeReply parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MembershipChangeReply(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.MembershipChangeReply getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HardStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.HardStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* uint64 term = 1;
* @return The term.
*/
long getTerm();
/**
* uint64 commit = 2;
* @return The commit.
*/
long getCommit();
}
/**
* Protobuf type {@code types.HardStateInfo}
*/
public static final class HardStateInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.HardStateInfo)
HardStateInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use HardStateInfo.newBuilder() to construct.
private HardStateInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HardStateInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HardStateInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HardStateInfo(
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;
case 8: {
term_ = input.readUInt64();
break;
}
case 16: {
commit_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_HardStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_HardStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.HardStateInfo.class, types.Raft.HardStateInfo.Builder.class);
}
public static final int TERM_FIELD_NUMBER = 1;
private long term_;
/**
* uint64 term = 1;
* @return The term.
*/
@java.lang.Override
public long getTerm() {
return term_;
}
public static final int COMMIT_FIELD_NUMBER = 2;
private long commit_;
/**
* uint64 commit = 2;
* @return The commit.
*/
@java.lang.Override
public long getCommit() {
return commit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (term_ != 0L) {
output.writeUInt64(1, term_);
}
if (commit_ != 0L) {
output.writeUInt64(2, commit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (term_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, term_);
}
if (commit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, commit_);
}
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 types.Raft.HardStateInfo)) {
return super.equals(obj);
}
types.Raft.HardStateInfo other = (types.Raft.HardStateInfo) obj;
if (getTerm()
!= other.getTerm()) return false;
if (getCommit()
!= other.getCommit()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TERM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTerm());
hash = (37 * hash) + COMMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCommit());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.HardStateInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.HardStateInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.HardStateInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.HardStateInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.HardStateInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.HardStateInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.HardStateInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.HardStateInfo 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 types.Raft.HardStateInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.HardStateInfo 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 types.Raft.HardStateInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.HardStateInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.HardStateInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.HardStateInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.HardStateInfo)
types.Raft.HardStateInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_HardStateInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_HardStateInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.HardStateInfo.class, types.Raft.HardStateInfo.Builder.class);
}
// Construct using types.Raft.HardStateInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
term_ = 0L;
commit_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_HardStateInfo_descriptor;
}
@java.lang.Override
public types.Raft.HardStateInfo getDefaultInstanceForType() {
return types.Raft.HardStateInfo.getDefaultInstance();
}
@java.lang.Override
public types.Raft.HardStateInfo build() {
types.Raft.HardStateInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.HardStateInfo buildPartial() {
types.Raft.HardStateInfo result = new types.Raft.HardStateInfo(this);
result.term_ = term_;
result.commit_ = commit_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.HardStateInfo) {
return mergeFrom((types.Raft.HardStateInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.HardStateInfo other) {
if (other == types.Raft.HardStateInfo.getDefaultInstance()) return this;
if (other.getTerm() != 0L) {
setTerm(other.getTerm());
}
if (other.getCommit() != 0L) {
setCommit(other.getCommit());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.HardStateInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.HardStateInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long term_ ;
/**
* uint64 term = 1;
* @return The term.
*/
@java.lang.Override
public long getTerm() {
return term_;
}
/**
* uint64 term = 1;
* @param value The term to set.
* @return This builder for chaining.
*/
public Builder setTerm(long value) {
term_ = value;
onChanged();
return this;
}
/**
* uint64 term = 1;
* @return This builder for chaining.
*/
public Builder clearTerm() {
term_ = 0L;
onChanged();
return this;
}
private long commit_ ;
/**
* uint64 commit = 2;
* @return The commit.
*/
@java.lang.Override
public long getCommit() {
return commit_;
}
/**
* uint64 commit = 2;
* @param value The commit to set.
* @return This builder for chaining.
*/
public Builder setCommit(long value) {
commit_ = value;
onChanged();
return this;
}
/**
* uint64 commit = 2;
* @return This builder for chaining.
*/
public Builder clearCommit() {
commit_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.HardStateInfo)
}
// @@protoc_insertion_point(class_scope:types.HardStateInfo)
private static final types.Raft.HardStateInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.HardStateInfo();
}
public static types.Raft.HardStateInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HardStateInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HardStateInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.HardStateInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetClusterInfoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.GetClusterInfoRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes bestBlockHash = 1;
* @return The bestBlockHash.
*/
com.google.protobuf.ByteString getBestBlockHash();
}
/**
*
* data types for raft support
* GetClusterInfoRequest
*
*
* Protobuf type {@code types.GetClusterInfoRequest}
*/
public static final class GetClusterInfoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.GetClusterInfoRequest)
GetClusterInfoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetClusterInfoRequest.newBuilder() to construct.
private GetClusterInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetClusterInfoRequest() {
bestBlockHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetClusterInfoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterInfoRequest(
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;
case 10: {
bestBlockHash_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_GetClusterInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_GetClusterInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.GetClusterInfoRequest.class, types.Raft.GetClusterInfoRequest.Builder.class);
}
public static final int BESTBLOCKHASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bestBlockHash_;
/**
* bytes bestBlockHash = 1;
* @return The bestBlockHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBestBlockHash() {
return bestBlockHash_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!bestBlockHash_.isEmpty()) {
output.writeBytes(1, bestBlockHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!bestBlockHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, bestBlockHash_);
}
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 types.Raft.GetClusterInfoRequest)) {
return super.equals(obj);
}
types.Raft.GetClusterInfoRequest other = (types.Raft.GetClusterInfoRequest) obj;
if (!getBestBlockHash()
.equals(other.getBestBlockHash())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BESTBLOCKHASH_FIELD_NUMBER;
hash = (53 * hash) + getBestBlockHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.GetClusterInfoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoRequest 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 types.Raft.GetClusterInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoRequest 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 types.Raft.GetClusterInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.GetClusterInfoRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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;
}
/**
*
* data types for raft support
* GetClusterInfoRequest
*
*
* Protobuf type {@code types.GetClusterInfoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.GetClusterInfoRequest)
types.Raft.GetClusterInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_GetClusterInfoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_GetClusterInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.GetClusterInfoRequest.class, types.Raft.GetClusterInfoRequest.Builder.class);
}
// Construct using types.Raft.GetClusterInfoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bestBlockHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_GetClusterInfoRequest_descriptor;
}
@java.lang.Override
public types.Raft.GetClusterInfoRequest getDefaultInstanceForType() {
return types.Raft.GetClusterInfoRequest.getDefaultInstance();
}
@java.lang.Override
public types.Raft.GetClusterInfoRequest build() {
types.Raft.GetClusterInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.GetClusterInfoRequest buildPartial() {
types.Raft.GetClusterInfoRequest result = new types.Raft.GetClusterInfoRequest(this);
result.bestBlockHash_ = bestBlockHash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.GetClusterInfoRequest) {
return mergeFrom((types.Raft.GetClusterInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.GetClusterInfoRequest other) {
if (other == types.Raft.GetClusterInfoRequest.getDefaultInstance()) return this;
if (other.getBestBlockHash() != com.google.protobuf.ByteString.EMPTY) {
setBestBlockHash(other.getBestBlockHash());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.GetClusterInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.GetClusterInfoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString bestBlockHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes bestBlockHash = 1;
* @return The bestBlockHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBestBlockHash() {
return bestBlockHash_;
}
/**
* bytes bestBlockHash = 1;
* @param value The bestBlockHash to set.
* @return This builder for chaining.
*/
public Builder setBestBlockHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bestBlockHash_ = value;
onChanged();
return this;
}
/**
* bytes bestBlockHash = 1;
* @return This builder for chaining.
*/
public Builder clearBestBlockHash() {
bestBlockHash_ = getDefaultInstance().getBestBlockHash();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.GetClusterInfoRequest)
}
// @@protoc_insertion_point(class_scope:types.GetClusterInfoRequest)
private static final types.Raft.GetClusterInfoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.GetClusterInfoRequest();
}
public static types.Raft.GetClusterInfoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetClusterInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterInfoRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.GetClusterInfoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetClusterInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.GetClusterInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes chainID = 1;
* @return The chainID.
*/
com.google.protobuf.ByteString getChainID();
/**
* uint64 clusterID = 2;
* @return The clusterID.
*/
long getClusterID();
/**
* string error = 3;
* @return The error.
*/
java.lang.String getError();
/**
* string error = 3;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
java.util.List
getMbrAttrsList();
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
types.Raft.MemberAttr getMbrAttrs(int index);
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
int getMbrAttrsCount();
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
java.util.List extends types.Raft.MemberAttrOrBuilder>
getMbrAttrsOrBuilderList();
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
types.Raft.MemberAttrOrBuilder getMbrAttrsOrBuilder(
int index);
/**
*
* best block number of this node
*
*
* uint64 bestBlockNo = 5;
* @return The bestBlockNo.
*/
long getBestBlockNo();
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return Whether the hardStateInfo field is set.
*/
boolean hasHardStateInfo();
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return The hardStateInfo.
*/
types.Raft.HardStateInfo getHardStateInfo();
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
types.Raft.HardStateInfoOrBuilder getHardStateInfoOrBuilder();
}
/**
* Protobuf type {@code types.GetClusterInfoResponse}
*/
public static final class GetClusterInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.GetClusterInfoResponse)
GetClusterInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetClusterInfoResponse.newBuilder() to construct.
private GetClusterInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetClusterInfoResponse() {
chainID_ = com.google.protobuf.ByteString.EMPTY;
error_ = "";
mbrAttrs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetClusterInfoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterInfoResponse(
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;
case 10: {
chainID_ = input.readBytes();
break;
}
case 16: {
clusterID_ = input.readUInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
error_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
mbrAttrs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
mbrAttrs_.add(
input.readMessage(types.Raft.MemberAttr.parser(), extensionRegistry));
break;
}
case 40: {
bestBlockNo_ = input.readUInt64();
break;
}
case 50: {
types.Raft.HardStateInfo.Builder subBuilder = null;
if (hardStateInfo_ != null) {
subBuilder = hardStateInfo_.toBuilder();
}
hardStateInfo_ = input.readMessage(types.Raft.HardStateInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hardStateInfo_);
hardStateInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
mbrAttrs_ = java.util.Collections.unmodifiableList(mbrAttrs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_GetClusterInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_GetClusterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.GetClusterInfoResponse.class, types.Raft.GetClusterInfoResponse.Builder.class);
}
public static final int CHAINID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString chainID_;
/**
* bytes chainID = 1;
* @return The chainID.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChainID() {
return chainID_;
}
public static final int CLUSTERID_FIELD_NUMBER = 2;
private long clusterID_;
/**
* uint64 clusterID = 2;
* @return The clusterID.
*/
@java.lang.Override
public long getClusterID() {
return clusterID_;
}
public static final int ERROR_FIELD_NUMBER = 3;
private volatile java.lang.Object error_;
/**
* string error = 3;
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
error_ = s;
return s;
}
}
/**
* string error = 3;
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MBRATTRS_FIELD_NUMBER = 4;
private java.util.List mbrAttrs_;
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
@java.lang.Override
public java.util.List getMbrAttrsList() {
return mbrAttrs_;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
@java.lang.Override
public java.util.List extends types.Raft.MemberAttrOrBuilder>
getMbrAttrsOrBuilderList() {
return mbrAttrs_;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
@java.lang.Override
public int getMbrAttrsCount() {
return mbrAttrs_.size();
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
@java.lang.Override
public types.Raft.MemberAttr getMbrAttrs(int index) {
return mbrAttrs_.get(index);
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
@java.lang.Override
public types.Raft.MemberAttrOrBuilder getMbrAttrsOrBuilder(
int index) {
return mbrAttrs_.get(index);
}
public static final int BESTBLOCKNO_FIELD_NUMBER = 5;
private long bestBlockNo_;
/**
*
* best block number of this node
*
*
* uint64 bestBlockNo = 5;
* @return The bestBlockNo.
*/
@java.lang.Override
public long getBestBlockNo() {
return bestBlockNo_;
}
public static final int HARDSTATEINFO_FIELD_NUMBER = 6;
private types.Raft.HardStateInfo hardStateInfo_;
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return Whether the hardStateInfo field is set.
*/
@java.lang.Override
public boolean hasHardStateInfo() {
return hardStateInfo_ != null;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return The hardStateInfo.
*/
@java.lang.Override
public types.Raft.HardStateInfo getHardStateInfo() {
return hardStateInfo_ == null ? types.Raft.HardStateInfo.getDefaultInstance() : hardStateInfo_;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
@java.lang.Override
public types.Raft.HardStateInfoOrBuilder getHardStateInfoOrBuilder() {
return getHardStateInfo();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!chainID_.isEmpty()) {
output.writeBytes(1, chainID_);
}
if (clusterID_ != 0L) {
output.writeUInt64(2, clusterID_);
}
if (!getErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_);
}
for (int i = 0; i < mbrAttrs_.size(); i++) {
output.writeMessage(4, mbrAttrs_.get(i));
}
if (bestBlockNo_ != 0L) {
output.writeUInt64(5, bestBlockNo_);
}
if (hardStateInfo_ != null) {
output.writeMessage(6, getHardStateInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!chainID_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, chainID_);
}
if (clusterID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, clusterID_);
}
if (!getErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_);
}
for (int i = 0; i < mbrAttrs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, mbrAttrs_.get(i));
}
if (bestBlockNo_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, bestBlockNo_);
}
if (hardStateInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getHardStateInfo());
}
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 types.Raft.GetClusterInfoResponse)) {
return super.equals(obj);
}
types.Raft.GetClusterInfoResponse other = (types.Raft.GetClusterInfoResponse) obj;
if (!getChainID()
.equals(other.getChainID())) return false;
if (getClusterID()
!= other.getClusterID()) return false;
if (!getError()
.equals(other.getError())) return false;
if (!getMbrAttrsList()
.equals(other.getMbrAttrsList())) return false;
if (getBestBlockNo()
!= other.getBestBlockNo()) return false;
if (hasHardStateInfo() != other.hasHardStateInfo()) return false;
if (hasHardStateInfo()) {
if (!getHardStateInfo()
.equals(other.getHardStateInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHAINID_FIELD_NUMBER;
hash = (53 * hash) + getChainID().hashCode();
hash = (37 * hash) + CLUSTERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getClusterID());
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
if (getMbrAttrsCount() > 0) {
hash = (37 * hash) + MBRATTRS_FIELD_NUMBER;
hash = (53 * hash) + getMbrAttrsList().hashCode();
}
hash = (37 * hash) + BESTBLOCKNO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBestBlockNo());
if (hasHardStateInfo()) {
hash = (37 * hash) + HARDSTATEINFO_FIELD_NUMBER;
hash = (53 * hash) + getHardStateInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.GetClusterInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.GetClusterInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.GetClusterInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoResponse 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 types.Raft.GetClusterInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoResponse 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 types.Raft.GetClusterInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.GetClusterInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.GetClusterInfoResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.GetClusterInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.GetClusterInfoResponse)
types.Raft.GetClusterInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_GetClusterInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_GetClusterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.GetClusterInfoResponse.class, types.Raft.GetClusterInfoResponse.Builder.class);
}
// Construct using types.Raft.GetClusterInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMbrAttrsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chainID_ = com.google.protobuf.ByteString.EMPTY;
clusterID_ = 0L;
error_ = "";
if (mbrAttrsBuilder_ == null) {
mbrAttrs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
mbrAttrsBuilder_.clear();
}
bestBlockNo_ = 0L;
if (hardStateInfoBuilder_ == null) {
hardStateInfo_ = null;
} else {
hardStateInfo_ = null;
hardStateInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_GetClusterInfoResponse_descriptor;
}
@java.lang.Override
public types.Raft.GetClusterInfoResponse getDefaultInstanceForType() {
return types.Raft.GetClusterInfoResponse.getDefaultInstance();
}
@java.lang.Override
public types.Raft.GetClusterInfoResponse build() {
types.Raft.GetClusterInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.GetClusterInfoResponse buildPartial() {
types.Raft.GetClusterInfoResponse result = new types.Raft.GetClusterInfoResponse(this);
int from_bitField0_ = bitField0_;
result.chainID_ = chainID_;
result.clusterID_ = clusterID_;
result.error_ = error_;
if (mbrAttrsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
mbrAttrs_ = java.util.Collections.unmodifiableList(mbrAttrs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.mbrAttrs_ = mbrAttrs_;
} else {
result.mbrAttrs_ = mbrAttrsBuilder_.build();
}
result.bestBlockNo_ = bestBlockNo_;
if (hardStateInfoBuilder_ == null) {
result.hardStateInfo_ = hardStateInfo_;
} else {
result.hardStateInfo_ = hardStateInfoBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.GetClusterInfoResponse) {
return mergeFrom((types.Raft.GetClusterInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.GetClusterInfoResponse other) {
if (other == types.Raft.GetClusterInfoResponse.getDefaultInstance()) return this;
if (other.getChainID() != com.google.protobuf.ByteString.EMPTY) {
setChainID(other.getChainID());
}
if (other.getClusterID() != 0L) {
setClusterID(other.getClusterID());
}
if (!other.getError().isEmpty()) {
error_ = other.error_;
onChanged();
}
if (mbrAttrsBuilder_ == null) {
if (!other.mbrAttrs_.isEmpty()) {
if (mbrAttrs_.isEmpty()) {
mbrAttrs_ = other.mbrAttrs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMbrAttrsIsMutable();
mbrAttrs_.addAll(other.mbrAttrs_);
}
onChanged();
}
} else {
if (!other.mbrAttrs_.isEmpty()) {
if (mbrAttrsBuilder_.isEmpty()) {
mbrAttrsBuilder_.dispose();
mbrAttrsBuilder_ = null;
mbrAttrs_ = other.mbrAttrs_;
bitField0_ = (bitField0_ & ~0x00000001);
mbrAttrsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMbrAttrsFieldBuilder() : null;
} else {
mbrAttrsBuilder_.addAllMessages(other.mbrAttrs_);
}
}
}
if (other.getBestBlockNo() != 0L) {
setBestBlockNo(other.getBestBlockNo());
}
if (other.hasHardStateInfo()) {
mergeHardStateInfo(other.getHardStateInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.GetClusterInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.GetClusterInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString chainID_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes chainID = 1;
* @return The chainID.
*/
@java.lang.Override
public com.google.protobuf.ByteString getChainID() {
return chainID_;
}
/**
* bytes chainID = 1;
* @param value The chainID to set.
* @return This builder for chaining.
*/
public Builder setChainID(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
chainID_ = value;
onChanged();
return this;
}
/**
* bytes chainID = 1;
* @return This builder for chaining.
*/
public Builder clearChainID() {
chainID_ = getDefaultInstance().getChainID();
onChanged();
return this;
}
private long clusterID_ ;
/**
* uint64 clusterID = 2;
* @return The clusterID.
*/
@java.lang.Override
public long getClusterID() {
return clusterID_;
}
/**
* uint64 clusterID = 2;
* @param value The clusterID to set.
* @return This builder for chaining.
*/
public Builder setClusterID(long value) {
clusterID_ = value;
onChanged();
return this;
}
/**
* uint64 clusterID = 2;
* @return This builder for chaining.
*/
public Builder clearClusterID() {
clusterID_ = 0L;
onChanged();
return this;
}
private java.lang.Object error_ = "";
/**
* string error = 3;
* @return The error.
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
error_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error = 3;
* @return The bytes for error.
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error = 3;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
return this;
}
/**
* string error = 3;
* @return This builder for chaining.
*/
public Builder clearError() {
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
* string error = 3;
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
error_ = value;
onChanged();
return this;
}
private java.util.List mbrAttrs_ =
java.util.Collections.emptyList();
private void ensureMbrAttrsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
mbrAttrs_ = new java.util.ArrayList(mbrAttrs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder> mbrAttrsBuilder_;
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public java.util.List getMbrAttrsList() {
if (mbrAttrsBuilder_ == null) {
return java.util.Collections.unmodifiableList(mbrAttrs_);
} else {
return mbrAttrsBuilder_.getMessageList();
}
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public int getMbrAttrsCount() {
if (mbrAttrsBuilder_ == null) {
return mbrAttrs_.size();
} else {
return mbrAttrsBuilder_.getCount();
}
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public types.Raft.MemberAttr getMbrAttrs(int index) {
if (mbrAttrsBuilder_ == null) {
return mbrAttrs_.get(index);
} else {
return mbrAttrsBuilder_.getMessage(index);
}
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder setMbrAttrs(
int index, types.Raft.MemberAttr value) {
if (mbrAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMbrAttrsIsMutable();
mbrAttrs_.set(index, value);
onChanged();
} else {
mbrAttrsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder setMbrAttrs(
int index, types.Raft.MemberAttr.Builder builderForValue) {
if (mbrAttrsBuilder_ == null) {
ensureMbrAttrsIsMutable();
mbrAttrs_.set(index, builderForValue.build());
onChanged();
} else {
mbrAttrsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder addMbrAttrs(types.Raft.MemberAttr value) {
if (mbrAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMbrAttrsIsMutable();
mbrAttrs_.add(value);
onChanged();
} else {
mbrAttrsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder addMbrAttrs(
int index, types.Raft.MemberAttr value) {
if (mbrAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMbrAttrsIsMutable();
mbrAttrs_.add(index, value);
onChanged();
} else {
mbrAttrsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder addMbrAttrs(
types.Raft.MemberAttr.Builder builderForValue) {
if (mbrAttrsBuilder_ == null) {
ensureMbrAttrsIsMutable();
mbrAttrs_.add(builderForValue.build());
onChanged();
} else {
mbrAttrsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder addMbrAttrs(
int index, types.Raft.MemberAttr.Builder builderForValue) {
if (mbrAttrsBuilder_ == null) {
ensureMbrAttrsIsMutable();
mbrAttrs_.add(index, builderForValue.build());
onChanged();
} else {
mbrAttrsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder addAllMbrAttrs(
java.lang.Iterable extends types.Raft.MemberAttr> values) {
if (mbrAttrsBuilder_ == null) {
ensureMbrAttrsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mbrAttrs_);
onChanged();
} else {
mbrAttrsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder clearMbrAttrs() {
if (mbrAttrsBuilder_ == null) {
mbrAttrs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
mbrAttrsBuilder_.clear();
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public Builder removeMbrAttrs(int index) {
if (mbrAttrsBuilder_ == null) {
ensureMbrAttrsIsMutable();
mbrAttrs_.remove(index);
onChanged();
} else {
mbrAttrsBuilder_.remove(index);
}
return this;
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public types.Raft.MemberAttr.Builder getMbrAttrsBuilder(
int index) {
return getMbrAttrsFieldBuilder().getBuilder(index);
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public types.Raft.MemberAttrOrBuilder getMbrAttrsOrBuilder(
int index) {
if (mbrAttrsBuilder_ == null) {
return mbrAttrs_.get(index); } else {
return mbrAttrsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public java.util.List extends types.Raft.MemberAttrOrBuilder>
getMbrAttrsOrBuilderList() {
if (mbrAttrsBuilder_ != null) {
return mbrAttrsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mbrAttrs_);
}
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public types.Raft.MemberAttr.Builder addMbrAttrsBuilder() {
return getMbrAttrsFieldBuilder().addBuilder(
types.Raft.MemberAttr.getDefaultInstance());
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public types.Raft.MemberAttr.Builder addMbrAttrsBuilder(
int index) {
return getMbrAttrsFieldBuilder().addBuilder(
index, types.Raft.MemberAttr.getDefaultInstance());
}
/**
* repeated .types.MemberAttr mbrAttrs = 4;
*/
public java.util.List
getMbrAttrsBuilderList() {
return getMbrAttrsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>
getMbrAttrsFieldBuilder() {
if (mbrAttrsBuilder_ == null) {
mbrAttrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>(
mbrAttrs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
mbrAttrs_ = null;
}
return mbrAttrsBuilder_;
}
private long bestBlockNo_ ;
/**
*
* best block number of this node
*
*
* uint64 bestBlockNo = 5;
* @return The bestBlockNo.
*/
@java.lang.Override
public long getBestBlockNo() {
return bestBlockNo_;
}
/**
*
* best block number of this node
*
*
* uint64 bestBlockNo = 5;
* @param value The bestBlockNo to set.
* @return This builder for chaining.
*/
public Builder setBestBlockNo(long value) {
bestBlockNo_ = value;
onChanged();
return this;
}
/**
*
* best block number of this node
*
*
* uint64 bestBlockNo = 5;
* @return This builder for chaining.
*/
public Builder clearBestBlockNo() {
bestBlockNo_ = 0L;
onChanged();
return this;
}
private types.Raft.HardStateInfo hardStateInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.HardStateInfo, types.Raft.HardStateInfo.Builder, types.Raft.HardStateInfoOrBuilder> hardStateInfoBuilder_;
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return Whether the hardStateInfo field is set.
*/
public boolean hasHardStateInfo() {
return hardStateInfoBuilder_ != null || hardStateInfo_ != null;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
* @return The hardStateInfo.
*/
public types.Raft.HardStateInfo getHardStateInfo() {
if (hardStateInfoBuilder_ == null) {
return hardStateInfo_ == null ? types.Raft.HardStateInfo.getDefaultInstance() : hardStateInfo_;
} else {
return hardStateInfoBuilder_.getMessage();
}
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public Builder setHardStateInfo(types.Raft.HardStateInfo value) {
if (hardStateInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hardStateInfo_ = value;
onChanged();
} else {
hardStateInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public Builder setHardStateInfo(
types.Raft.HardStateInfo.Builder builderForValue) {
if (hardStateInfoBuilder_ == null) {
hardStateInfo_ = builderForValue.build();
onChanged();
} else {
hardStateInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public Builder mergeHardStateInfo(types.Raft.HardStateInfo value) {
if (hardStateInfoBuilder_ == null) {
if (hardStateInfo_ != null) {
hardStateInfo_ =
types.Raft.HardStateInfo.newBuilder(hardStateInfo_).mergeFrom(value).buildPartial();
} else {
hardStateInfo_ = value;
}
onChanged();
} else {
hardStateInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public Builder clearHardStateInfo() {
if (hardStateInfoBuilder_ == null) {
hardStateInfo_ = null;
onChanged();
} else {
hardStateInfo_ = null;
hardStateInfoBuilder_ = null;
}
return this;
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public types.Raft.HardStateInfo.Builder getHardStateInfoBuilder() {
onChanged();
return getHardStateInfoFieldBuilder().getBuilder();
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
public types.Raft.HardStateInfoOrBuilder getHardStateInfoOrBuilder() {
if (hardStateInfoBuilder_ != null) {
return hardStateInfoBuilder_.getMessageOrBuilder();
} else {
return hardStateInfo_ == null ?
types.Raft.HardStateInfo.getDefaultInstance() : hardStateInfo_;
}
}
/**
*
* hardstate corresponding to bestblockhash of requester
*
*
* .types.HardStateInfo hardStateInfo = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
types.Raft.HardStateInfo, types.Raft.HardStateInfo.Builder, types.Raft.HardStateInfoOrBuilder>
getHardStateInfoFieldBuilder() {
if (hardStateInfoBuilder_ == null) {
hardStateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
types.Raft.HardStateInfo, types.Raft.HardStateInfo.Builder, types.Raft.HardStateInfoOrBuilder>(
getHardStateInfo(),
getParentForChildren(),
isClean());
hardStateInfo_ = null;
}
return hardStateInfoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.GetClusterInfoResponse)
}
// @@protoc_insertion_point(class_scope:types.GetClusterInfoResponse)
private static final types.Raft.GetClusterInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.GetClusterInfoResponse();
}
public static types.Raft.GetClusterInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetClusterInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterInfoResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.GetClusterInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfChangeProgressOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.ConfChangeProgress)
com.google.protobuf.MessageOrBuilder {
/**
* .types.ConfChangeState State = 1;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
* .types.ConfChangeState State = 1;
* @return The state.
*/
types.Raft.ConfChangeState getState();
/**
* string Err = 2;
* @return The err.
*/
java.lang.String getErr();
/**
* string Err = 2;
* @return The bytes for err.
*/
com.google.protobuf.ByteString
getErrBytes();
/**
* repeated .types.MemberAttr Members = 3;
*/
java.util.List
getMembersList();
/**
* repeated .types.MemberAttr Members = 3;
*/
types.Raft.MemberAttr getMembers(int index);
/**
* repeated .types.MemberAttr Members = 3;
*/
int getMembersCount();
/**
* repeated .types.MemberAttr Members = 3;
*/
java.util.List extends types.Raft.MemberAttrOrBuilder>
getMembersOrBuilderList();
/**
* repeated .types.MemberAttr Members = 3;
*/
types.Raft.MemberAttrOrBuilder getMembersOrBuilder(
int index);
}
/**
* Protobuf type {@code types.ConfChangeProgress}
*/
public static final class ConfChangeProgress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.ConfChangeProgress)
ConfChangeProgressOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfChangeProgress.newBuilder() to construct.
private ConfChangeProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfChangeProgress() {
state_ = 0;
err_ = "";
members_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfChangeProgress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfChangeProgress(
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;
case 8: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
err_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
members_.add(
input.readMessage(types.Raft.MemberAttr.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
members_ = java.util.Collections.unmodifiableList(members_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_ConfChangeProgress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_ConfChangeProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.ConfChangeProgress.class, types.Raft.ConfChangeProgress.Builder.class);
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_;
/**
* .types.ConfChangeState State = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .types.ConfChangeState State = 1;
* @return The state.
*/
@java.lang.Override public types.Raft.ConfChangeState getState() {
@SuppressWarnings("deprecation")
types.Raft.ConfChangeState result = types.Raft.ConfChangeState.valueOf(state_);
return result == null ? types.Raft.ConfChangeState.UNRECOGNIZED : result;
}
public static final int ERR_FIELD_NUMBER = 2;
private volatile java.lang.Object err_;
/**
* string Err = 2;
* @return The err.
*/
@java.lang.Override
public java.lang.String getErr() {
java.lang.Object ref = err_;
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();
err_ = s;
return s;
}
}
/**
* string Err = 2;
* @return The bytes for err.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrBytes() {
java.lang.Object ref = err_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
err_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBERS_FIELD_NUMBER = 3;
private java.util.List members_;
/**
* repeated .types.MemberAttr Members = 3;
*/
@java.lang.Override
public java.util.List getMembersList() {
return members_;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
@java.lang.Override
public java.util.List extends types.Raft.MemberAttrOrBuilder>
getMembersOrBuilderList() {
return members_;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
@java.lang.Override
public int getMembersCount() {
return members_.size();
}
/**
* repeated .types.MemberAttr Members = 3;
*/
@java.lang.Override
public types.Raft.MemberAttr getMembers(int index) {
return members_.get(index);
}
/**
* repeated .types.MemberAttr Members = 3;
*/
@java.lang.Override
public types.Raft.MemberAttrOrBuilder getMembersOrBuilder(
int index) {
return members_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (state_ != types.Raft.ConfChangeState.CONF_CHANGE_STATE_PROPOSED.getNumber()) {
output.writeEnum(1, state_);
}
if (!getErrBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, err_);
}
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(3, members_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_ != types.Raft.ConfChangeState.CONF_CHANGE_STATE_PROPOSED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, state_);
}
if (!getErrBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, err_);
}
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, members_.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 types.Raft.ConfChangeProgress)) {
return super.equals(obj);
}
types.Raft.ConfChangeProgress other = (types.Raft.ConfChangeProgress) obj;
if (state_ != other.state_) return false;
if (!getErr()
.equals(other.getErr())) return false;
if (!getMembersList()
.equals(other.getMembersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + ERR_FIELD_NUMBER;
hash = (53 * hash) + getErr().hashCode();
if (getMembersCount() > 0) {
hash = (37 * hash) + MEMBERS_FIELD_NUMBER;
hash = (53 * hash) + getMembersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.ConfChangeProgress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.ConfChangeProgress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.ConfChangeProgress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.ConfChangeProgress parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.ConfChangeProgress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.ConfChangeProgress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.ConfChangeProgress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.ConfChangeProgress 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 types.Raft.ConfChangeProgress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.ConfChangeProgress 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 types.Raft.ConfChangeProgress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.ConfChangeProgress parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.ConfChangeProgress prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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 types.ConfChangeProgress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.ConfChangeProgress)
types.Raft.ConfChangeProgressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_ConfChangeProgress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_ConfChangeProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.ConfChangeProgress.class, types.Raft.ConfChangeProgress.Builder.class);
}
// Construct using types.Raft.ConfChangeProgress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMembersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
state_ = 0;
err_ = "";
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
membersBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_ConfChangeProgress_descriptor;
}
@java.lang.Override
public types.Raft.ConfChangeProgress getDefaultInstanceForType() {
return types.Raft.ConfChangeProgress.getDefaultInstance();
}
@java.lang.Override
public types.Raft.ConfChangeProgress build() {
types.Raft.ConfChangeProgress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.ConfChangeProgress buildPartial() {
types.Raft.ConfChangeProgress result = new types.Raft.ConfChangeProgress(this);
int from_bitField0_ = bitField0_;
result.state_ = state_;
result.err_ = err_;
if (membersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
members_ = java.util.Collections.unmodifiableList(members_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.members_ = members_;
} else {
result.members_ = membersBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.ConfChangeProgress) {
return mergeFrom((types.Raft.ConfChangeProgress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.ConfChangeProgress other) {
if (other == types.Raft.ConfChangeProgress.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getErr().isEmpty()) {
err_ = other.err_;
onChanged();
}
if (membersBuilder_ == null) {
if (!other.members_.isEmpty()) {
if (members_.isEmpty()) {
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMembersIsMutable();
members_.addAll(other.members_);
}
onChanged();
}
} else {
if (!other.members_.isEmpty()) {
if (membersBuilder_.isEmpty()) {
membersBuilder_.dispose();
membersBuilder_ = null;
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000001);
membersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMembersFieldBuilder() : null;
} else {
membersBuilder_.addAllMessages(other.members_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.ConfChangeProgress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.ConfChangeProgress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int state_ = 0;
/**
* .types.ConfChangeState State = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .types.ConfChangeState State = 1;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .types.ConfChangeState State = 1;
* @return The state.
*/
@java.lang.Override
public types.Raft.ConfChangeState getState() {
@SuppressWarnings("deprecation")
types.Raft.ConfChangeState result = types.Raft.ConfChangeState.valueOf(state_);
return result == null ? types.Raft.ConfChangeState.UNRECOGNIZED : result;
}
/**
* .types.ConfChangeState State = 1;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(types.Raft.ConfChangeState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .types.ConfChangeState State = 1;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private java.lang.Object err_ = "";
/**
* string Err = 2;
* @return The err.
*/
public java.lang.String getErr() {
java.lang.Object ref = err_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
err_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string Err = 2;
* @return The bytes for err.
*/
public com.google.protobuf.ByteString
getErrBytes() {
java.lang.Object ref = err_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
err_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string Err = 2;
* @param value The err to set.
* @return This builder for chaining.
*/
public Builder setErr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
err_ = value;
onChanged();
return this;
}
/**
* string Err = 2;
* @return This builder for chaining.
*/
public Builder clearErr() {
err_ = getDefaultInstance().getErr();
onChanged();
return this;
}
/**
* string Err = 2;
* @param value The bytes for err to set.
* @return This builder for chaining.
*/
public Builder setErrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
err_ = value;
onChanged();
return this;
}
private java.util.List members_ =
java.util.Collections.emptyList();
private void ensureMembersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
members_ = new java.util.ArrayList(members_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder> membersBuilder_;
/**
* repeated .types.MemberAttr Members = 3;
*/
public java.util.List getMembersList() {
if (membersBuilder_ == null) {
return java.util.Collections.unmodifiableList(members_);
} else {
return membersBuilder_.getMessageList();
}
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public int getMembersCount() {
if (membersBuilder_ == null) {
return members_.size();
} else {
return membersBuilder_.getCount();
}
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public types.Raft.MemberAttr getMembers(int index) {
if (membersBuilder_ == null) {
return members_.get(index);
} else {
return membersBuilder_.getMessage(index);
}
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder setMembers(
int index, types.Raft.MemberAttr value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.set(index, value);
onChanged();
} else {
membersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder setMembers(
int index, types.Raft.MemberAttr.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.set(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder addMembers(types.Raft.MemberAttr value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(value);
onChanged();
} else {
membersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder addMembers(
int index, types.Raft.MemberAttr value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(index, value);
onChanged();
} else {
membersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder addMembers(
types.Raft.MemberAttr.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder addMembers(
int index, types.Raft.MemberAttr.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder addAllMembers(
java.lang.Iterable extends types.Raft.MemberAttr> values) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, members_);
onChanged();
} else {
membersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder clearMembers() {
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
membersBuilder_.clear();
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public Builder removeMembers(int index) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.remove(index);
onChanged();
} else {
membersBuilder_.remove(index);
}
return this;
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public types.Raft.MemberAttr.Builder getMembersBuilder(
int index) {
return getMembersFieldBuilder().getBuilder(index);
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public types.Raft.MemberAttrOrBuilder getMembersOrBuilder(
int index) {
if (membersBuilder_ == null) {
return members_.get(index); } else {
return membersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public java.util.List extends types.Raft.MemberAttrOrBuilder>
getMembersOrBuilderList() {
if (membersBuilder_ != null) {
return membersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(members_);
}
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public types.Raft.MemberAttr.Builder addMembersBuilder() {
return getMembersFieldBuilder().addBuilder(
types.Raft.MemberAttr.getDefaultInstance());
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public types.Raft.MemberAttr.Builder addMembersBuilder(
int index) {
return getMembersFieldBuilder().addBuilder(
index, types.Raft.MemberAttr.getDefaultInstance());
}
/**
* repeated .types.MemberAttr Members = 3;
*/
public java.util.List
getMembersBuilderList() {
return getMembersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>
getMembersFieldBuilder() {
if (membersBuilder_ == null) {
membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
types.Raft.MemberAttr, types.Raft.MemberAttr.Builder, types.Raft.MemberAttrOrBuilder>(
members_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
members_ = null;
}
return membersBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.ConfChangeProgress)
}
// @@protoc_insertion_point(class_scope:types.ConfChangeProgress)
private static final types.Raft.ConfChangeProgress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.ConfChangeProgress();
}
public static types.Raft.ConfChangeProgress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfChangeProgress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfChangeProgress(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.ConfChangeProgress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:types.SnapshotResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .types.ResultStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .types.ResultStatus status = 1;
* @return The status.
*/
types.P2P.ResultStatus getStatus();
/**
* string message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* SnapshotResponse is response message of receiving peer
*
*
* Protobuf type {@code types.SnapshotResponse}
*/
public static final class SnapshotResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:types.SnapshotResponse)
SnapshotResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotResponse.newBuilder() to construct.
private SnapshotResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotResponse() {
status_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SnapshotResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotResponse(
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;
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
default: {
if (!parseUnknownField(
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 types.Raft.internal_static_types_SnapshotResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_SnapshotResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.SnapshotResponse.class, types.Raft.SnapshotResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .types.ResultStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .types.ResultStatus status = 1;
* @return The status.
*/
@java.lang.Override public types.P2P.ResultStatus getStatus() {
@SuppressWarnings("deprecation")
types.P2P.ResultStatus result = types.P2P.ResultStatus.valueOf(status_);
return result == null ? types.P2P.ResultStatus.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
* string message = 2;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != types.P2P.ResultStatus.OK.getNumber()) {
output.writeEnum(1, status_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != types.P2P.ResultStatus.OK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof types.Raft.SnapshotResponse)) {
return super.equals(obj);
}
types.Raft.SnapshotResponse other = (types.Raft.SnapshotResponse) obj;
if (status_ != other.status_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static types.Raft.SnapshotResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.SnapshotResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.SnapshotResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.SnapshotResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.SnapshotResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static types.Raft.SnapshotResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static types.Raft.SnapshotResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.SnapshotResponse 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 types.Raft.SnapshotResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static types.Raft.SnapshotResponse 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 types.Raft.SnapshotResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static types.Raft.SnapshotResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(types.Raft.SnapshotResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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;
}
/**
*
* SnapshotResponse is response message of receiving peer
*
*
* Protobuf type {@code types.SnapshotResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:types.SnapshotResponse)
types.Raft.SnapshotResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return types.Raft.internal_static_types_SnapshotResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return types.Raft.internal_static_types_SnapshotResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
types.Raft.SnapshotResponse.class, types.Raft.SnapshotResponse.Builder.class);
}
// Construct using types.Raft.SnapshotResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return types.Raft.internal_static_types_SnapshotResponse_descriptor;
}
@java.lang.Override
public types.Raft.SnapshotResponse getDefaultInstanceForType() {
return types.Raft.SnapshotResponse.getDefaultInstance();
}
@java.lang.Override
public types.Raft.SnapshotResponse build() {
types.Raft.SnapshotResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public types.Raft.SnapshotResponse buildPartial() {
types.Raft.SnapshotResponse result = new types.Raft.SnapshotResponse(this);
result.status_ = status_;
result.message_ = message_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof types.Raft.SnapshotResponse) {
return mergeFrom((types.Raft.SnapshotResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(types.Raft.SnapshotResponse other) {
if (other == types.Raft.SnapshotResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
types.Raft.SnapshotResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (types.Raft.SnapshotResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
* .types.ResultStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .types.ResultStatus status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .types.ResultStatus status = 1;
* @return The status.
*/
@java.lang.Override
public types.P2P.ResultStatus getStatus() {
@SuppressWarnings("deprecation")
types.P2P.ResultStatus result = types.P2P.ResultStatus.valueOf(status_);
return result == null ? types.P2P.ResultStatus.UNRECOGNIZED : result;
}
/**
* .types.ResultStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(types.P2P.ResultStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .types.ResultStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 2;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:types.SnapshotResponse)
}
// @@protoc_insertion_point(class_scope:types.SnapshotResponse)
private static final types.Raft.SnapshotResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new types.Raft.SnapshotResponse();
}
public static types.Raft.SnapshotResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SnapshotResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public types.Raft.SnapshotResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_MemberAttr_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_MemberAttr_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_MembershipChange_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_MembershipChange_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_MembershipChangeReply_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_MembershipChangeReply_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_HardStateInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_HardStateInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_GetClusterInfoRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_GetClusterInfoRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_GetClusterInfoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_GetClusterInfoResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_ConfChangeProgress_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_ConfChangeProgress_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_types_SnapshotResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_types_SnapshotResponse_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\nraft.proto\022\005types\032\tp2p.proto\"G\n\nMember" +
"Attr\022\n\n\002ID\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022\017\n\007addres" +
"s\030\003 \001(\t\022\016\n\006peerID\030\004 \001(\014\"q\n\020MembershipCha" +
"nge\022)\n\004type\030\001 \001(\0162\033.types.MembershipChan" +
"geType\022\021\n\trequestID\030\002 \001(\004\022\037\n\004attr\030\003 \001(\0132" +
"\021.types.MemberAttr\"8\n\025MembershipChangeRe" +
"ply\022\037\n\004attr\030\001 \001(\0132\021.types.MemberAttr\"-\n\r" +
"HardStateInfo\022\014\n\004term\030\001 \001(\004\022\016\n\006commit\030\002 " +
"\001(\004\".\n\025GetClusterInfoRequest\022\025\n\rbestBloc" +
"kHash\030\001 \001(\014\"\262\001\n\026GetClusterInfoResponse\022\017" +
"\n\007chainID\030\001 \001(\014\022\021\n\tclusterID\030\002 \001(\004\022\r\n\005er" +
"ror\030\003 \001(\t\022#\n\010mbrAttrs\030\004 \003(\0132\021.types.Memb" +
"erAttr\022\023\n\013bestBlockNo\030\005 \001(\004\022+\n\rhardState" +
"Info\030\006 \001(\0132\024.types.HardStateInfo\"l\n\022Conf" +
"ChangeProgress\022%\n\005State\030\001 \001(\0162\026.types.Co" +
"nfChangeState\022\013\n\003Err\030\002 \001(\t\022\"\n\007Members\030\003 " +
"\003(\0132\021.types.MemberAttr\"H\n\020SnapshotRespon" +
"se\022#\n\006status\030\001 \001(\0162\023.types.ResultStatus\022" +
"\017\n\007message\030\002 \001(\t*9\n\024MembershipChangeType" +
"\022\016\n\nADD_MEMBER\020\000\022\021\n\rREMOVE_MEMBER\020\001*m\n\017C" +
"onfChangeState\022\036\n\032CONF_CHANGE_STATE_PROP" +
"OSED\020\000\022\033\n\027CONF_CHANGE_STATE_SAVED\020\001\022\035\n\031C" +
"ONF_CHANGE_STATE_APPLIED\020\002b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
types.P2P.getDescriptor(),
});
internal_static_types_MemberAttr_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_types_MemberAttr_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_MemberAttr_descriptor,
new java.lang.String[] { "ID", "Name", "Address", "PeerID", });
internal_static_types_MembershipChange_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_types_MembershipChange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_MembershipChange_descriptor,
new java.lang.String[] { "Type", "RequestID", "Attr", });
internal_static_types_MembershipChangeReply_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_types_MembershipChangeReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_MembershipChangeReply_descriptor,
new java.lang.String[] { "Attr", });
internal_static_types_HardStateInfo_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_types_HardStateInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_HardStateInfo_descriptor,
new java.lang.String[] { "Term", "Commit", });
internal_static_types_GetClusterInfoRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_types_GetClusterInfoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_GetClusterInfoRequest_descriptor,
new java.lang.String[] { "BestBlockHash", });
internal_static_types_GetClusterInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_types_GetClusterInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_GetClusterInfoResponse_descriptor,
new java.lang.String[] { "ChainID", "ClusterID", "Error", "MbrAttrs", "BestBlockNo", "HardStateInfo", });
internal_static_types_ConfChangeProgress_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_types_ConfChangeProgress_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_ConfChangeProgress_descriptor,
new java.lang.String[] { "State", "Err", "Members", });
internal_static_types_SnapshotResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_types_SnapshotResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_types_SnapshotResponse_descriptor,
new java.lang.String[] { "Status", "Message", });
types.P2P.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}