diff --git a/hugegraph-core/pom.xml b/hugegraph-core/pom.xml
index 4683bb349b..ccf6bec45a 100644
--- a/hugegraph-core/pom.xml
+++ b/hugegraph-core/pom.xml
@@ -265,7 +265,7 @@
-
+
@@ -280,7 +280,6 @@
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
protoc-java
${project.basedir}/src/main/resources/proto
- ${project.basedir}/src/protobuf/java
diff --git a/hugegraph-core/src/protobuf/java/org/apache/hugegraph/backend/store/raft/rpc/RaftRequests.java b/hugegraph-core/src/protobuf/java/org/apache/hugegraph/backend/store/raft/rpc/RaftRequests.java
deleted file mode 100644
index 9eb160dd30..0000000000
--- a/hugegraph-core/src/protobuf/java/org/apache/hugegraph/backend/store/raft/rpc/RaftRequests.java
+++ /dev/null
@@ -1,5015 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: raft.proto
-
-package org.apache.hugegraph.backend.store.raft.rpc;
-
-public final class RaftRequests {
- private RaftRequests() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- /**
- * Protobuf enum {@code org.apache.hugegraph.backend.store.raft.rpc.StoreType}
- */
- public enum StoreType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * SCHEMA = 0;
- */
- SCHEMA(0),
- /**
- * GRAPH = 1;
- */
- GRAPH(1),
- /**
- * SYSTEM = 2;
- */
- SYSTEM(2),
- /**
- * ALL = 3;
- */
- ALL(3),
- ;
-
- /**
- * SCHEMA = 0;
- */
- public static final int SCHEMA_VALUE = 0;
- /**
- * GRAPH = 1;
- */
- public static final int GRAPH_VALUE = 1;
- /**
- * SYSTEM = 2;
- */
- public static final int SYSTEM_VALUE = 2;
- /**
- * ALL = 3;
- */
- public static final int ALL_VALUE = 3;
-
-
- public final int getNumber() {
- 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 StoreType 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 StoreType forNumber(int value) {
- switch (value) {
- case 0: return SCHEMA;
- case 1: return GRAPH;
- case 2: return SYSTEM;
- case 3: return ALL;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- StoreType> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public StoreType findValueByNumber(int number) {
- return StoreType.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(ordinal());
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final StoreType[] VALUES = values();
-
- public static StoreType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private StoreType(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:org.apache.hugegraph.backend.store.raft.rpc.StoreType)
- }
-
- /**
- * Protobuf enum {@code org.apache.hugegraph.backend.store.raft.rpc.StoreAction}
- */
- public enum StoreAction
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * NONE = 0;
- */
- NONE(0),
- /**
- * INIT = 1;
- */
- INIT(1),
- /**
- * CLEAR = 2;
- */
- CLEAR(2),
- /**
- * TRUNCATE = 3;
- */
- TRUNCATE(3),
- /**
- * SNAPSHOT = 4;
- */
- SNAPSHOT(4),
- /**
- * BEGIN_TX = 10;
- */
- BEGIN_TX(10),
- /**
- * COMMIT_TX = 11;
- */
- COMMIT_TX(11),
- /**
- * ROLLBACK_TX = 12;
- */
- ROLLBACK_TX(12),
- /**
- * MUTATE = 20;
- */
- MUTATE(20),
- /**
- * INCR_COUNTER = 21;
- */
- INCR_COUNTER(21),
- /**
- * QUERY = 30;
- */
- QUERY(30),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * INIT = 1;
- */
- public static final int INIT_VALUE = 1;
- /**
- * CLEAR = 2;
- */
- public static final int CLEAR_VALUE = 2;
- /**
- * TRUNCATE = 3;
- */
- public static final int TRUNCATE_VALUE = 3;
- /**
- * SNAPSHOT = 4;
- */
- public static final int SNAPSHOT_VALUE = 4;
- /**
- * BEGIN_TX = 10;
- */
- public static final int BEGIN_TX_VALUE = 10;
- /**
- * COMMIT_TX = 11;
- */
- public static final int COMMIT_TX_VALUE = 11;
- /**
- * ROLLBACK_TX = 12;
- */
- public static final int ROLLBACK_TX_VALUE = 12;
- /**
- * MUTATE = 20;
- */
- public static final int MUTATE_VALUE = 20;
- /**
- * INCR_COUNTER = 21;
- */
- public static final int INCR_COUNTER_VALUE = 21;
- /**
- * QUERY = 30;
- */
- public static final int QUERY_VALUE = 30;
-
-
- public final int getNumber() {
- 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 StoreAction 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 StoreAction forNumber(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return INIT;
- case 2: return CLEAR;
- case 3: return TRUNCATE;
- case 4: return SNAPSHOT;
- case 10: return BEGIN_TX;
- case 11: return COMMIT_TX;
- case 12: return ROLLBACK_TX;
- case 20: return MUTATE;
- case 21: return INCR_COUNTER;
- case 30: return QUERY;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- StoreAction> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public StoreAction findValueByNumber(int number) {
- return StoreAction.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(ordinal());
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final StoreAction[] VALUES = values();
-
- public static StoreAction valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private StoreAction(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:org.apache.hugegraph.backend.store.raft.rpc.StoreAction)
- }
-
- public interface StoreCommandRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return Whether the type field is set.
- */
- boolean hasType();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return The type.
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType getType();
-
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return Whether the action field is set.
- */
- boolean hasAction();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return The action.
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction getAction();
-
- /**
- * required bytes data = 3;
- * @return Whether the data field is set.
- */
- boolean hasData();
- /**
- * required bytes data = 3;
- * @return The data.
- */
- com.google.protobuf.ByteString getData();
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest}
- */
- public static final class StoreCommandRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest)
- StoreCommandRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use StoreCommandRequest.newBuilder() to construct.
- private StoreCommandRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private StoreCommandRequest() {
- type_ = 0;
- action_ = 0;
- data_ = com.google.protobuf.ByteString.EMPTY;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new StoreCommandRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int TYPE_FIELD_NUMBER = 1;
- private int type_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return The type.
- */
- @java.lang.Override public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType getType() {
- @SuppressWarnings("deprecation")
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType result = org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType.valueOf(type_);
- return result == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType.SCHEMA : result;
- }
-
- public static final int ACTION_FIELD_NUMBER = 2;
- private int action_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return Whether the action field is set.
- */
- @java.lang.Override public boolean hasAction() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return The action.
- */
- @java.lang.Override public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction getAction() {
- @SuppressWarnings("deprecation")
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction result = org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction.valueOf(action_);
- return result == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction.NONE : result;
- }
-
- public static final int DATA_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString data_;
- /**
- * required bytes data = 3;
- * @return Whether the data field is set.
- */
- @java.lang.Override
- public boolean hasData() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * required bytes data = 3;
- * @return The data.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getData() {
- return data_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasAction()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasData()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeEnum(1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeEnum(2, action_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBytes(3, data_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, action_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, data_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest) obj;
-
- if (hasType() != other.hasType()) return false;
- if (hasType()) {
- if (type_ != other.type_) return false;
- }
- if (hasAction() != other.hasAction()) return false;
- if (hasAction()) {
- if (action_ != other.action_) return false;
- }
- if (hasData() != other.hasData()) return false;
- if (hasData()) {
- if (!getData()
- .equals(other.getData())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + type_;
- }
- if (hasAction()) {
- hash = (37 * hash) + ACTION_FIELD_NUMBER;
- hash = (53 * hash) + action_;
- }
- if (hasData()) {
- hash = (37 * hash) + DATA_FIELD_NUMBER;
- hash = (53 * hash) + getData().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest 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 org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- type_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- action_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
- data_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- to_bitField0_ |= 0x00000001;
- }
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.action_ = action_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- to_bitField0_ |= 0x00000004;
- }
- result.data_ = data_;
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest.getDefaultInstance()) return this;
- if (other.hasType()) {
- setType(other.getType());
- }
- if (other.hasAction()) {
- setAction(other.getAction());
- }
- if (other.hasData()) {
- setData(other.getData());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasType()) {
- return false;
- }
- if (!hasAction()) {
- return false;
- }
- if (!hasData()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- int tmpRaw = input.readEnum();
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType tmpValue =
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(1, tmpRaw);
- } else {
- type_ = tmpRaw;
- bitField0_ |= 0x00000001;
- }
- break;
- } // case 8
- case 16: {
- int tmpRaw = input.readEnum();
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction tmpValue =
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(2, tmpRaw);
- } else {
- action_ = tmpRaw;
- bitField0_ |= 0x00000002;
- }
- break;
- } // case 16
- case 26: {
- data_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private int type_ = 0;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return The type.
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType getType() {
- @SuppressWarnings("deprecation")
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType result = org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType.valueOf(type_);
- return result == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType.SCHEMA : result;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setType(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreType type = 1;
- * @return This builder for chaining.
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = 0;
- onChanged();
- return this;
- }
-
- private int action_ = 0;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return Whether the action field is set.
- */
- @java.lang.Override public boolean hasAction() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return The action.
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction getAction() {
- @SuppressWarnings("deprecation")
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction result = org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction.valueOf(action_);
- return result == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction.NONE : result;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @param value The action to set.
- * @return This builder for chaining.
- */
- public Builder setAction(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreAction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- action_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.StoreAction action = 2;
- * @return This builder for chaining.
- */
- public Builder clearAction() {
- bitField0_ = (bitField0_ & ~0x00000002);
- action_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * required bytes data = 3;
- * @return Whether the data field is set.
- */
- @java.lang.Override
- public boolean hasData() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * required bytes data = 3;
- * @return The data.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getData() {
- return data_;
- }
- /**
- * required bytes data = 3;
- * @param value The data to set.
- * @return This builder for chaining.
- */
- public Builder setData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- data_ = value;
- onChanged();
- return this;
- }
- /**
- * required bytes data = 3;
- * @return This builder for chaining.
- */
- public Builder clearData() {
- bitField0_ = (bitField0_ & ~0x00000004);
- data_ = getDefaultInstance().getData();
- 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:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandRequest)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public StoreCommandRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface StoreCommandResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- boolean hasStatus();
- /**
- * required bool status = 1;
- * @return The status.
- */
- boolean getStatus();
-
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- boolean hasMessage();
- /**
- * optional string message = 2;
- * @return The message.
- */
- java.lang.String getMessage();
- /**
- * optional string message = 2;
- * @return The bytes for message.
- */
- com.google.protobuf.ByteString
- getMessageBytes();
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse}
- */
- public static final class StoreCommandResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse)
- StoreCommandResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use StoreCommandResponse.newBuilder() to construct.
- private StoreCommandResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private StoreCommandResponse() {
- message_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new StoreCommandResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int STATUS_FIELD_NUMBER = 1;
- private boolean status_;
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- @java.lang.Override
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required bool status = 1;
- * @return The status.
- */
- @java.lang.Override
- public boolean getStatus() {
- return status_;
- }
-
- public static final int MESSAGE_FIELD_NUMBER = 2;
- private volatile java.lang.Object message_;
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- @java.lang.Override
- public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional 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();
- if (bs.isValidUtf8()) {
- message_ = s;
- }
- return s;
- }
- }
- /**
- * optional 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;
-
- if (!hasStatus()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBool(1, status_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, status_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse) obj;
-
- if (hasStatus() != other.hasStatus()) return false;
- if (hasStatus()) {
- if (getStatus()
- != other.getStatus()) return false;
- }
- if (hasMessage() != other.hasMessage()) return false;
- if (hasMessage()) {
- if (!getMessage()
- .equals(other.getMessage())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasStatus()) {
- hash = (37 * hash) + STATUS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getStatus());
- }
- if (hasMessage()) {
- hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getMessage().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse 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 org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- status_ = false;
- bitField0_ = (bitField0_ & ~0x00000001);
- message_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.status_ = status_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.message_ = message_;
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse.getDefaultInstance()) return this;
- if (other.hasStatus()) {
- setStatus(other.getStatus());
- }
- if (other.hasMessage()) {
- bitField0_ |= 0x00000002;
- message_ = other.message_;
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasStatus()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- status_ = input.readBool();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18: {
- message_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private boolean status_ ;
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- @java.lang.Override
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required bool status = 1;
- * @return The status.
- */
- @java.lang.Override
- public boolean getStatus() {
- return status_;
- }
- /**
- * required bool status = 1;
- * @param value The status to set.
- * @return This builder for chaining.
- */
- public Builder setStatus(boolean value) {
- bitField0_ |= 0x00000001;
- status_ = value;
- onChanged();
- return this;
- }
- /**
- * required bool status = 1;
- * @return This builder for chaining.
- */
- public Builder clearStatus() {
- bitField0_ = (bitField0_ & ~0x00000001);
- status_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object message_ = "";
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional 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();
- if (bs.isValidUtf8()) {
- message_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional 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;
- }
- }
- /**
- * optional 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();
- }
- bitField0_ |= 0x00000002;
- message_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string message = 2;
- * @return This builder for chaining.
- */
- public Builder clearMessage() {
- bitField0_ = (bitField0_ & ~0x00000002);
- message_ = getDefaultInstance().getMessage();
- onChanged();
- return this;
- }
- /**
- * optional 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();
- }
- bitField0_ |= 0x00000002;
- 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:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.StoreCommandResponse)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public StoreCommandResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.StoreCommandResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface CommonResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.CommonResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- boolean hasStatus();
- /**
- * required bool status = 1;
- * @return The status.
- */
- boolean getStatus();
-
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- boolean hasMessage();
- /**
- * optional string message = 2;
- * @return The message.
- */
- java.lang.String getMessage();
- /**
- * optional string message = 2;
- * @return The bytes for message.
- */
- com.google.protobuf.ByteString
- getMessageBytes();
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.CommonResponse}
- */
- public static final class CommonResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.CommonResponse)
- CommonResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use CommonResponse.newBuilder() to construct.
- private CommonResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private CommonResponse() {
- message_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new CommonResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int STATUS_FIELD_NUMBER = 1;
- private boolean status_;
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- @java.lang.Override
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required bool status = 1;
- * @return The status.
- */
- @java.lang.Override
- public boolean getStatus() {
- return status_;
- }
-
- public static final int MESSAGE_FIELD_NUMBER = 2;
- private volatile java.lang.Object message_;
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- @java.lang.Override
- public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional 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();
- if (bs.isValidUtf8()) {
- message_ = s;
- }
- return s;
- }
- }
- /**
- * optional 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;
-
- if (!hasStatus()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBool(1, status_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, status_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse) obj;
-
- if (hasStatus() != other.hasStatus()) return false;
- if (hasStatus()) {
- if (getStatus()
- != other.getStatus()) return false;
- }
- if (hasMessage() != other.hasMessage()) return false;
- if (hasMessage()) {
- if (!getMessage()
- .equals(other.getMessage())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasStatus()) {
- hash = (37 * hash) + STATUS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getStatus());
- }
- if (hasMessage()) {
- hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getMessage().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse 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 org.apache.hugegraph.backend.store.raft.rpc.CommonResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.CommonResponse)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- status_ = false;
- bitField0_ = (bitField0_ & ~0x00000001);
- message_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.status_ = status_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.message_ = message_;
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance()) return this;
- if (other.hasStatus()) {
- setStatus(other.getStatus());
- }
- if (other.hasMessage()) {
- bitField0_ |= 0x00000002;
- message_ = other.message_;
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasStatus()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- status_ = input.readBool();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18: {
- message_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private boolean status_ ;
- /**
- * required bool status = 1;
- * @return Whether the status field is set.
- */
- @java.lang.Override
- public boolean hasStatus() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required bool status = 1;
- * @return The status.
- */
- @java.lang.Override
- public boolean getStatus() {
- return status_;
- }
- /**
- * required bool status = 1;
- * @param value The status to set.
- * @return This builder for chaining.
- */
- public Builder setStatus(boolean value) {
- bitField0_ |= 0x00000001;
- status_ = value;
- onChanged();
- return this;
- }
- /**
- * required bool status = 1;
- * @return This builder for chaining.
- */
- public Builder clearStatus() {
- bitField0_ = (bitField0_ & ~0x00000001);
- status_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object message_ = "";
- /**
- * optional string message = 2;
- * @return Whether the message field is set.
- */
- public boolean hasMessage() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional 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();
- if (bs.isValidUtf8()) {
- message_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional 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;
- }
- }
- /**
- * optional 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();
- }
- bitField0_ |= 0x00000002;
- message_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string message = 2;
- * @return This builder for chaining.
- */
- public Builder clearMessage() {
- bitField0_ = (bitField0_ & ~0x00000002);
- message_ = getDefaultInstance().getMessage();
- onChanged();
- return this;
- }
- /**
- * optional 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();
- }
- bitField0_ |= 0x00000002;
- 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:org.apache.hugegraph.backend.store.raft.rpc.CommonResponse)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.CommonResponse)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public CommonResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ListPeersRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest}
- */
- public static final class ListPeersRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest)
- ListPeersRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ListPeersRequest.newBuilder() to construct.
- private ListPeersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ListPeersRequest() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new ListPeersRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.Builder.class);
- }
-
- 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 {
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest) obj;
-
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest 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 org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest(this);
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
- 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 {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- 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:org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.ListPeersRequest)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ListPeersRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ListPeersResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- boolean hasCommon();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder();
-
- /**
- * repeated string endpoints = 2;
- * @return A list containing the endpoints.
- */
- java.util.List
- getEndpointsList();
- /**
- * repeated string endpoints = 2;
- * @return The count of endpoints.
- */
- int getEndpointsCount();
- /**
- * repeated string endpoints = 2;
- * @param index The index of the element to return.
- * @return The endpoints at the given index.
- */
- java.lang.String getEndpoints(int index);
- /**
- * repeated string endpoints = 2;
- * @param index The index of the value to return.
- * @return The bytes of the endpoints at the given index.
- */
- com.google.protobuf.ByteString
- getEndpointsBytes(int index);
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse}
- */
- public static final class ListPeersResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse)
- ListPeersResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ListPeersResponse.newBuilder() to construct.
- private ListPeersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private ListPeersResponse() {
- endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new ListPeersResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int COMMON_FIELD_NUMBER = 1;
- private org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse common_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- @java.lang.Override
- public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon() {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder() {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
-
- public static final int ENDPOINTS_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList endpoints_;
- /**
- * repeated string endpoints = 2;
- * @return A list containing the endpoints.
- */
- public com.google.protobuf.ProtocolStringList
- getEndpointsList() {
- return endpoints_;
- }
- /**
- * repeated string endpoints = 2;
- * @return The count of endpoints.
- */
- public int getEndpointsCount() {
- return endpoints_.size();
- }
- /**
- * repeated string endpoints = 2;
- * @param index The index of the element to return.
- * @return The endpoints at the given index.
- */
- public java.lang.String getEndpoints(int index) {
- return endpoints_.get(index);
- }
- /**
- * repeated string endpoints = 2;
- * @param index The index of the value to return.
- * @return The bytes of the endpoints at the given index.
- */
- public com.google.protobuf.ByteString
- getEndpointsBytes(int index) {
- return endpoints_.getByteString(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;
-
- if (!hasCommon()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!getCommon().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getCommon());
- }
- for (int i = 0; i < endpoints_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpoints_.getRaw(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getCommon());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < endpoints_.size(); i++) {
- dataSize += computeStringSizeNoTag(endpoints_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getEndpointsList().size();
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse) obj;
-
- if (hasCommon() != other.hasCommon()) return false;
- if (hasCommon()) {
- if (!getCommon()
- .equals(other.getCommon())) return false;
- }
- if (!getEndpointsList()
- .equals(other.getEndpointsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasCommon()) {
- hash = (37 * hash) + COMMON_FIELD_NUMBER;
- hash = (53 * hash) + getCommon().hashCode();
- }
- if (getEndpointsCount() > 0) {
- hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
- hash = (53 * hash) + getEndpointsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse 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 org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (commonBuilder_ == null) {
- common_ = null;
- } else {
- commonBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- if (commonBuilder_ == null) {
- result.common_ = common_;
- } else {
- result.common_ = commonBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- endpoints_ = endpoints_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.endpoints_ = endpoints_;
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse.getDefaultInstance()) return this;
- if (other.hasCommon()) {
- mergeCommon(other.getCommon());
- }
- if (!other.endpoints_.isEmpty()) {
- if (endpoints_.isEmpty()) {
- endpoints_ = other.endpoints_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureEndpointsIsMutable();
- endpoints_.addAll(other.endpoints_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasCommon()) {
- return false;
- }
- if (!getCommon().isInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getCommonFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- ensureEndpointsIsMutable();
- endpoints_.add(bs);
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse common_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder> commonBuilder_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon() {
- if (commonBuilder_ == null) {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- } else {
- return commonBuilder_.getMessage();
- }
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder setCommon(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse value) {
- if (commonBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- common_ = value;
- onChanged();
- } else {
- commonBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder setCommon(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder builderForValue) {
- if (commonBuilder_ == null) {
- common_ = builderForValue.build();
- onChanged();
- } else {
- commonBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder mergeCommon(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse value) {
- if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- common_ != null &&
- common_ != org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance()) {
- common_ =
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.newBuilder(common_).mergeFrom(value).buildPartial();
- } else {
- common_ = value;
- }
- onChanged();
- } else {
- commonBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder clearCommon() {
- if (commonBuilder_ == null) {
- common_ = null;
- onChanged();
- } else {
- commonBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getCommonFieldBuilder().getBuilder();
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder() {
- if (commonBuilder_ != null) {
- return commonBuilder_.getMessageOrBuilder();
- } else {
- return common_ == null ?
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder>
- getCommonFieldBuilder() {
- if (commonBuilder_ == null) {
- commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder>(
- getCommon(),
- getParentForChildren(),
- isClean());
- common_ = null;
- }
- return commonBuilder_;
- }
-
- private com.google.protobuf.LazyStringList endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureEndpointsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- endpoints_ = new com.google.protobuf.LazyStringArrayList(endpoints_);
- bitField0_ |= 0x00000002;
- }
- }
- /**
- * repeated string endpoints = 2;
- * @return A list containing the endpoints.
- */
- public com.google.protobuf.ProtocolStringList
- getEndpointsList() {
- return endpoints_.getUnmodifiableView();
- }
- /**
- * repeated string endpoints = 2;
- * @return The count of endpoints.
- */
- public int getEndpointsCount() {
- return endpoints_.size();
- }
- /**
- * repeated string endpoints = 2;
- * @param index The index of the element to return.
- * @return The endpoints at the given index.
- */
- public java.lang.String getEndpoints(int index) {
- return endpoints_.get(index);
- }
- /**
- * repeated string endpoints = 2;
- * @param index The index of the value to return.
- * @return The bytes of the endpoints at the given index.
- */
- public com.google.protobuf.ByteString
- getEndpointsBytes(int index) {
- return endpoints_.getByteString(index);
- }
- /**
- * repeated string endpoints = 2;
- * @param index The index to set the value at.
- * @param value The endpoints to set.
- * @return This builder for chaining.
- */
- public Builder setEndpoints(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEndpointsIsMutable();
- endpoints_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string endpoints = 2;
- * @param value The endpoints to add.
- * @return This builder for chaining.
- */
- public Builder addEndpoints(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEndpointsIsMutable();
- endpoints_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string endpoints = 2;
- * @param values The endpoints to add.
- * @return This builder for chaining.
- */
- public Builder addAllEndpoints(
- java.lang.Iterable values) {
- ensureEndpointsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, endpoints_);
- onChanged();
- return this;
- }
- /**
- * repeated string endpoints = 2;
- * @return This builder for chaining.
- */
- public Builder clearEndpoints() {
- endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- * repeated string endpoints = 2;
- * @param value The bytes of the endpoints to add.
- * @return This builder for chaining.
- */
- public Builder addEndpointsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEndpointsIsMutable();
- endpoints_.add(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:org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.ListPeersResponse)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ListPeersResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.ListPeersResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetLeaderRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required string endpoint = 1;
- * @return Whether the endpoint field is set.
- */
- boolean hasEndpoint();
- /**
- * required string endpoint = 1;
- * @return The endpoint.
- */
- java.lang.String getEndpoint();
- /**
- * required string endpoint = 1;
- * @return The bytes for endpoint.
- */
- com.google.protobuf.ByteString
- getEndpointBytes();
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest}
- */
- public static final class SetLeaderRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest)
- SetLeaderRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetLeaderRequest.newBuilder() to construct.
- private SetLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private SetLeaderRequest() {
- endpoint_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetLeaderRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.Builder.class);
- }
-
- private int bitField0_;
- public static final int ENDPOINT_FIELD_NUMBER = 1;
- private volatile java.lang.Object endpoint_;
- /**
- * required string endpoint = 1;
- * @return Whether the endpoint field is set.
- */
- @java.lang.Override
- public boolean hasEndpoint() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required string endpoint = 1;
- * @return The endpoint.
- */
- @java.lang.Override
- public java.lang.String getEndpoint() {
- java.lang.Object ref = endpoint_;
- 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();
- if (bs.isValidUtf8()) {
- endpoint_ = s;
- }
- return s;
- }
- }
- /**
- * required string endpoint = 1;
- * @return The bytes for endpoint.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getEndpointBytes() {
- java.lang.Object ref = endpoint_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- endpoint_ = 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;
-
- if (!hasEndpoint()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest) obj;
-
- if (hasEndpoint() != other.hasEndpoint()) return false;
- if (hasEndpoint()) {
- if (!getEndpoint()
- .equals(other.getEndpoint())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasEndpoint()) {
- hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
- hash = (53 * hash) + getEndpoint().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest 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 org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- endpoint_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- to_bitField0_ |= 0x00000001;
- }
- result.endpoint_ = endpoint_;
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest.getDefaultInstance()) return this;
- if (other.hasEndpoint()) {
- bitField0_ |= 0x00000001;
- endpoint_ = other.endpoint_;
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasEndpoint()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- endpoint_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object endpoint_ = "";
- /**
- * required string endpoint = 1;
- * @return Whether the endpoint field is set.
- */
- public boolean hasEndpoint() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required string endpoint = 1;
- * @return The endpoint.
- */
- public java.lang.String getEndpoint() {
- java.lang.Object ref = endpoint_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- endpoint_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string endpoint = 1;
- * @return The bytes for endpoint.
- */
- public com.google.protobuf.ByteString
- getEndpointBytes() {
- java.lang.Object ref = endpoint_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- endpoint_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string endpoint = 1;
- * @param value The endpoint to set.
- * @return This builder for chaining.
- */
- public Builder setEndpoint(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- endpoint_ = value;
- onChanged();
- return this;
- }
- /**
- * required string endpoint = 1;
- * @return This builder for chaining.
- */
- public Builder clearEndpoint() {
- bitField0_ = (bitField0_ & ~0x00000001);
- endpoint_ = getDefaultInstance().getEndpoint();
- onChanged();
- return this;
- }
- /**
- * required string endpoint = 1;
- * @param value The bytes for endpoint to set.
- * @return This builder for chaining.
- */
- public Builder setEndpointBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- endpoint_ = 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:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderRequest)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public SetLeaderRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface SetLeaderResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- boolean hasCommon();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon();
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder();
- }
- /**
- * Protobuf type {@code org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse}
- */
- public static final class SetLeaderResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse)
- SetLeaderResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SetLeaderResponse.newBuilder() to construct.
- private SetLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private SetLeaderResponse() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SetLeaderResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int COMMON_FIELD_NUMBER = 1;
- private org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse common_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- @java.lang.Override
- public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon() {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder() {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasCommon()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!getCommon().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getCommon());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getCommon());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse)) {
- return super.equals(obj);
- }
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse other = (org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse) obj;
-
- if (hasCommon() != other.hasCommon()) return false;
- if (hasCommon()) {
- if (!getCommon()
- .equals(other.getCommon())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasCommon()) {
- hash = (37 * hash) + COMMON_FIELD_NUMBER;
- hash = (53 * hash) + getCommon().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse 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(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse 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 org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse)
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.class, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.Builder.class);
- }
-
- // Construct using org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getCommonFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (commonBuilder_ == null) {
- common_ = null;
- } else {
- commonBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse getDefaultInstanceForType() {
- return org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse build() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse buildPartial() {
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse result = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- if (commonBuilder_ == null) {
- result.common_ = common_;
- } else {
- result.common_ = commonBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ = to_bitField0_;
- 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 org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse) {
- return mergeFrom((org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse other) {
- if (other == org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse.getDefaultInstance()) return this;
- if (other.hasCommon()) {
- mergeCommon(other.getCommon());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasCommon()) {
- return false;
- }
- if (!getCommon().isInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- input.readMessage(
- getCommonFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse common_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder> commonBuilder_;
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return Whether the common field is set.
- */
- public boolean hasCommon() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- * @return The common.
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse getCommon() {
- if (commonBuilder_ == null) {
- return common_ == null ? org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- } else {
- return commonBuilder_.getMessage();
- }
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder setCommon(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse value) {
- if (commonBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- common_ = value;
- onChanged();
- } else {
- commonBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder setCommon(
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder builderForValue) {
- if (commonBuilder_ == null) {
- common_ = builderForValue.build();
- onChanged();
- } else {
- commonBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder mergeCommon(org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse value) {
- if (commonBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- common_ != null &&
- common_ != org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance()) {
- common_ =
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.newBuilder(common_).mergeFrom(value).buildPartial();
- } else {
- common_ = value;
- }
- onChanged();
- } else {
- commonBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public Builder clearCommon() {
- if (commonBuilder_ == null) {
- common_ = null;
- onChanged();
- } else {
- commonBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder getCommonBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getCommonFieldBuilder().getBuilder();
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder getCommonOrBuilder() {
- if (commonBuilder_ != null) {
- return commonBuilder_.getMessageOrBuilder();
- } else {
- return common_ == null ?
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.getDefaultInstance() : common_;
- }
- }
- /**
- * required .org.apache.hugegraph.backend.store.raft.rpc.CommonResponse common = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder>
- getCommonFieldBuilder() {
- if (commonBuilder_ == null) {
- commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponse.Builder, org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.CommonResponseOrBuilder>(
- getCommon(),
- getParentForChildren(),
- isClean());
- common_ = null;
- }
- return commonBuilder_;
- }
- @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:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse)
- }
-
- // @@protoc_insertion_point(class_scope:org.apache.hugegraph.backend.store.raft.rpc.SetLeaderResponse)
- private static final org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse();
- }
-
- public static org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public SetLeaderResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.apache.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_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+org.apache.hugegraph.backe" +
- "nd.store.raft.rpc\"\263\001\n\023StoreCommandReques" +
- "t\022D\n\004type\030\001 \002(\01626.org.apache.hugegraph.b" +
- "ackend.store.raft.rpc.StoreType\022H\n\006actio" +
- "n\030\002 \002(\01628.org.apache.hugegraph.backend.s" +
- "tore.raft.rpc.StoreAction\022\014\n\004data\030\003 \002(\014\"" +
- "7\n\024StoreCommandResponse\022\016\n\006status\030\001 \002(\010\022" +
- "\017\n\007message\030\002 \001(\t\"1\n\016CommonResponse\022\016\n\006st" +
- "atus\030\001 \002(\010\022\017\n\007message\030\002 \001(\t\"\022\n\020ListPeers" +
- "Request\"s\n\021ListPeersResponse\022K\n\006common\030\001" +
- " \002(\0132;.org.apache.hugegraph.backend.stor" +
- "e.raft.rpc.CommonResponse\022\021\n\tendpoints\030\002" +
- " \003(\t\"$\n\020SetLeaderRequest\022\020\n\010endpoint\030\001 \002" +
- "(\t\"`\n\021SetLeaderResponse\022K\n\006common\030\001 \002(\0132" +
- ";.org.apache.hugegraph.backend.store.raf" +
- "t.rpc.CommonResponse*7\n\tStoreType\022\n\n\006SCH" +
- "EMA\020\000\022\t\n\005GRAPH\020\001\022\n\n\006SYSTEM\020\002\022\007\n\003ALL\020\003*\237\001" +
- "\n\013StoreAction\022\010\n\004NONE\020\000\022\010\n\004INIT\020\001\022\t\n\005CLE" +
- "AR\020\002\022\014\n\010TRUNCATE\020\003\022\014\n\010SNAPSHOT\020\004\022\014\n\010BEGI" +
- "N_TX\020\n\022\r\n\tCOMMIT_TX\020\013\022\017\n\013ROLLBACK_TX\020\014\022\n" +
- "\n\006MUTATE\020\024\022\020\n\014INCR_COUNTER\020\025\022\t\n\005QUERY\020\036B" +
- ";\n+org.apache.hugegraph.backend.store.ra" +
- "ft.rpcB\014RaftRequests"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandRequest_descriptor,
- new java.lang.String[] { "Type", "Action", "Data", });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_StoreCommandResponse_descriptor,
- new java.lang.String[] { "Status", "Message", });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_CommonResponse_descriptor,
- new java.lang.String[] { "Status", "Message", });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersRequest_descriptor,
- new java.lang.String[] { });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_ListPeersResponse_descriptor,
- new java.lang.String[] { "Common", "Endpoints", });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderRequest_descriptor,
- new java.lang.String[] { "Endpoint", });
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_org_apache_hugegraph_backend_store_raft_rpc_SetLeaderResponse_descriptor,
- new java.lang.String[] { "Common", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}