diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..17a0865f2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+proto:
+ protoc-3.5.1 --proto_path=./server/common/model/src/main/resources/proto --java_out=server/common/model/src/main/java server/common/model/src/main/resources/proto/*.proto
diff --git a/server/common/model/pom.xml b/server/common/model/pom.xml
index 2cadfa49c..66c653141 100644
--- a/server/common/model/pom.xml
+++ b/server/common/model/pom.xml
@@ -47,5 +47,9 @@
commons-collections
commons-collections
+
+ com.google.protobuf
+ protobuf-java
+
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePb.java
new file mode 100644
index 000000000..874d5bf63
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePb.java
@@ -0,0 +1,1070 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code AppRevisionInterfacePb}
+ */
+public final class AppRevisionInterfacePb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:AppRevisionInterfacePb)
+ AppRevisionInterfacePbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use AppRevisionInterfacePb.newBuilder() to construct.
+ private AppRevisionInterfacePb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AppRevisionInterfacePb() {
+ dataId_ = "";
+ group_ = "";
+ instanceId_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AppRevisionInterfacePb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ group_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ instanceId_ = s;
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ serviceParams_ = com.google.protobuf.MapField
+ .newMapField(ServiceParamsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000008;
+ }
+ com.google.protobuf.MapEntry serviceParams__ = input
+ .readMessage(
+ ServiceParamsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ serviceParams_.getMutableMap().put(serviceParams__.getKey(),
+ serviceParams__.getValue());
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetServiceParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATAID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object dataId_;
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ 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();
+ dataId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUP_FIELD_NUMBER = 2;
+ private volatile java.lang.Object group_;
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCEID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object instanceId_;
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICEPARAMS_FIELD_NUMBER = 4;
+
+ private static final class ServiceParamsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry
+ . newDefaultInstance(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_ServiceParamsEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues
+ .getDefaultInstance());
+ }
+
+ private com.google.protobuf.MapField serviceParams_;
+
+ private com.google.protobuf.MapField internalGetServiceParams() {
+ if (serviceParams_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(ServiceParamsDefaultEntryHolder.defaultEntry);
+ }
+ return serviceParams_;
+ }
+
+ public int getServiceParamsCount() {
+ return internalGetServiceParams().getMap().size();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public boolean containsServiceParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetServiceParams().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getServiceParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getServiceParams() {
+ return getServiceParamsMap();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public java.util.Map getServiceParamsMap() {
+ return internalGetServiceParams().getMap();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetServiceParams()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetServiceParams()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDataIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output,
+ internalGetServiceParams(), ServiceParamsDefaultEntryHolder.defaultEntry, 4);
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getDataIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_);
+ }
+ for (java.util.Map.Entry entry : internalGetServiceParams()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry serviceParams__ = ServiceParamsDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, serviceParams__);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb other = (com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb) obj;
+
+ boolean result = true;
+ result = result && getDataId().equals(other.getDataId());
+ result = result && getGroup().equals(other.getGroup());
+ result = result && getInstanceId().equals(other.getInstanceId());
+ result = result && internalGetServiceParams().equals(other.internalGetServiceParams());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATAID_FIELD_NUMBER;
+ hash = (53 * hash) + getDataId().hashCode();
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ if (!internalGetServiceParams().getMap().isEmpty()) {
+ hash = (37 * hash) + SERVICEPARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetServiceParams().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb 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 com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb 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 com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code AppRevisionInterfacePb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:AppRevisionInterfacePb)
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetServiceParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetMutableServiceParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ dataId_ = "";
+
+ group_ = "";
+
+ instanceId_ = "";
+
+ internalGetMutableServiceParams().clear();
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionInterfacePb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb build() {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb result = new com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.dataId_ = dataId_;
+ result.group_ = group_;
+ result.instanceId_ = instanceId_;
+ result.serviceParams_ = internalGetServiceParams();
+ result.serviceParams_.makeImmutable();
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb
+ .getDefaultInstance())
+ return this;
+ if (!other.getDataId().isEmpty()) {
+ dataId_ = other.dataId_;
+ onChanged();
+ }
+ if (!other.getGroup().isEmpty()) {
+ group_ = other.group_;
+ onChanged();
+ }
+ if (!other.getInstanceId().isEmpty()) {
+ instanceId_ = other.instanceId_;
+ onChanged();
+ }
+ internalGetMutableServiceParams().mergeFrom(other.internalGetServiceParams());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object dataId_ = "";
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder clearDataId() {
+
+ dataId_ = getDefaultInstance().getDataId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object group_ = "";
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroup(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder clearGroup() {
+
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroupBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder clearInstanceId() {
+
+ instanceId_ = getDefaultInstance().getInstanceId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField serviceParams_;
+
+ private com.google.protobuf.MapField internalGetServiceParams() {
+ if (serviceParams_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(ServiceParamsDefaultEntryHolder.defaultEntry);
+ }
+ return serviceParams_;
+ }
+
+ private com.google.protobuf.MapField internalGetMutableServiceParams() {
+ onChanged();
+ ;
+ if (serviceParams_ == null) {
+ serviceParams_ = com.google.protobuf.MapField
+ .newMapField(ServiceParamsDefaultEntryHolder.defaultEntry);
+ }
+ if (!serviceParams_.isMutable()) {
+ serviceParams_ = serviceParams_.copy();
+ }
+ return serviceParams_;
+ }
+
+ public int getServiceParamsCount() {
+ return internalGetServiceParams().getMap().size();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public boolean containsServiceParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetServiceParams().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getServiceParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getServiceParams() {
+ return getServiceParamsMap();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public java.util.Map getServiceParamsMap() {
+ return internalGetServiceParams().getMap();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetServiceParams()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetServiceParams()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearServiceParams() {
+ internalGetMutableServiceParams().getMutableMap().clear();
+ return this;
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public Builder removeServiceParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableServiceParams().getMutableMap().remove(key);
+ return this;
+ }
+
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getMutableServiceParams() {
+ return internalGetMutableServiceParams().getMutableMap();
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+ public Builder putServiceParams(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableServiceParams().getMutableMap().put(key, value);
+ return this;
+ }
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ public Builder putAllServiceParams(java.util.Map values) {
+ internalGetMutableServiceParams().getMutableMap().putAll(values);
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:AppRevisionInterfacePb)
+ }
+
+ // @@protoc_insertion_point(class_scope:AppRevisionInterfacePb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public AppRevisionInterfacePb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AppRevisionInterfacePb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePbOrBuilder.java
new file mode 100644
index 000000000..2fb44871c
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionInterfacePbOrBuilder.java
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface AppRevisionInterfacePbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:AppRevisionInterfacePb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string dataId = 1;
+ */
+ java.lang.String getDataId();
+
+ /**
+ * string dataId = 1;
+ */
+ com.google.protobuf.ByteString getDataIdBytes();
+
+ /**
+ * string group = 2;
+ */
+ java.lang.String getGroup();
+
+ /**
+ * string group = 2;
+ */
+ com.google.protobuf.ByteString getGroupBytes();
+
+ /**
+ * string instanceId = 3;
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ * string instanceId = 3;
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+ int getServiceParamsCount();
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+ boolean containsServiceParams(java.lang.String key);
+
+ /**
+ * Use {@link #getServiceParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getServiceParams();
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+ java.util.Map getServiceParamsMap();
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue);
+
+ /**
+ * map<string, .QueryValues> serviceParams = 4;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues getServiceParamsOrThrow(java.lang.String key);
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPb.java
new file mode 100644
index 000000000..90993e711
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPb.java
@@ -0,0 +1,1299 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code AppRevisionRegisterPb}
+ */
+public final class AppRevisionRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:AppRevisionRegisterPb)
+ AppRevisionRegisterPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use AppRevisionRegisterPb.newBuilder() to construct.
+ private AppRevisionRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AppRevisionRegisterPb() {
+ appname_ = "";
+ revision_ = "";
+ interfaces_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AppRevisionRegisterPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ appname_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ revision_ = s;
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ baseParams_ = com.google.protobuf.MapField
+ .newMapField(BaseParamsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000004;
+ }
+ com.google.protobuf.MapEntry baseParams__ = input
+ .readMessage(
+ BaseParamsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ baseParams_.getMutableMap().put(baseParams__.getKey(),
+ baseParams__.getValue());
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ interfaces_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ interfaces_.add(input.readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb
+ .parser(), extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ interfaces_ = java.util.Collections.unmodifiableList(interfaces_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetBaseParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int APPNAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object appname_;
+
+ /**
+ * string appname = 1;
+ */
+ public java.lang.String getAppname() {
+ java.lang.Object ref = appname_;
+ 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();
+ appname_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string appname = 1;
+ */
+ public com.google.protobuf.ByteString getAppnameBytes() {
+ java.lang.Object ref = appname_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ appname_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REVISION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object revision_;
+
+ /**
+ * string revision = 2;
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ 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();
+ revision_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string revision = 2;
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BASEPARAMS_FIELD_NUMBER = 4;
+
+ private static final class BaseParamsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry
+ . newDefaultInstance(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_BaseParamsEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues
+ .getDefaultInstance());
+ }
+
+ private com.google.protobuf.MapField baseParams_;
+
+ private com.google.protobuf.MapField internalGetBaseParams() {
+ if (baseParams_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(BaseParamsDefaultEntryHolder.defaultEntry);
+ }
+ return baseParams_;
+ }
+
+ public int getBaseParamsCount() {
+ return internalGetBaseParams().getMap().size();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public boolean containsBaseParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetBaseParams().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getBaseParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getBaseParams() {
+ return getBaseParamsMap();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public java.util.Map getBaseParamsMap() {
+ return internalGetBaseParams().getMap();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetBaseParams()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetBaseParams()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int INTERFACES_FIELD_NUMBER = 5;
+ private java.util.List interfaces_;
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public java.util.List getInterfacesList() {
+ return interfaces_;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder> getInterfacesOrBuilderList() {
+ return interfaces_;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public int getInterfacesCount() {
+ return interfaces_.size();
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getInterfaces(int index) {
+ return interfaces_.get(index);
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder getInterfacesOrBuilder(int index) {
+ return interfaces_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getAppnameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appname_);
+ }
+ if (!getRevisionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revision_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output,
+ internalGetBaseParams(), BaseParamsDefaultEntryHolder.defaultEntry, 4);
+ for (int i = 0; i < interfaces_.size(); i++) {
+ output.writeMessage(5, interfaces_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getAppnameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appname_);
+ }
+ if (!getRevisionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_);
+ }
+ for (java.util.Map.Entry entry : internalGetBaseParams()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry baseParams__ = BaseParamsDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, baseParams__);
+ }
+ for (int i = 0; i < interfaces_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, interfaces_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb other = (com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb) obj;
+
+ boolean result = true;
+ result = result && getAppname().equals(other.getAppname());
+ result = result && getRevision().equals(other.getRevision());
+ result = result && internalGetBaseParams().equals(other.internalGetBaseParams());
+ result = result && getInterfacesList().equals(other.getInterfacesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + APPNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getAppname().hashCode();
+ hash = (37 * hash) + REVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getRevision().hashCode();
+ if (!internalGetBaseParams().getMap().isEmpty()) {
+ hash = (37 * hash) + BASEPARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetBaseParams().hashCode();
+ }
+ if (getInterfacesCount() > 0) {
+ hash = (37 * hash) + INTERFACES_FIELD_NUMBER;
+ hash = (53 * hash) + getInterfacesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code AppRevisionRegisterPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:AppRevisionRegisterPb)
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetBaseParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 4:
+ return internalGetMutableBaseParams();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getInterfacesFieldBuilder();
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ appname_ = "";
+
+ revision_ = "";
+
+ internalGetMutableBaseParams().clear();
+ if (interfacesBuilder_ == null) {
+ interfaces_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ interfacesBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_AppRevisionRegisterPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb result = new com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.appname_ = appname_;
+ result.revision_ = revision_;
+ result.baseParams_ = internalGetBaseParams();
+ result.baseParams_.makeImmutable();
+ if (interfacesBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ interfaces_ = java.util.Collections.unmodifiableList(interfaces_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.interfaces_ = interfaces_;
+ } else {
+ result.interfaces_ = interfacesBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getAppname().isEmpty()) {
+ appname_ = other.appname_;
+ onChanged();
+ }
+ if (!other.getRevision().isEmpty()) {
+ revision_ = other.revision_;
+ onChanged();
+ }
+ internalGetMutableBaseParams().mergeFrom(other.internalGetBaseParams());
+ if (interfacesBuilder_ == null) {
+ if (!other.interfaces_.isEmpty()) {
+ if (interfaces_.isEmpty()) {
+ interfaces_ = other.interfaces_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureInterfacesIsMutable();
+ interfaces_.addAll(other.interfaces_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.interfaces_.isEmpty()) {
+ if (interfacesBuilder_.isEmpty()) {
+ interfacesBuilder_.dispose();
+ interfacesBuilder_ = null;
+ interfaces_ = other.interfaces_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ interfacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterfacesFieldBuilder()
+ : null;
+ } else {
+ interfacesBuilder_.addAllMessages(other.interfaces_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object appname_ = "";
+
+ /**
+ * string appname = 1;
+ */
+ public java.lang.String getAppname() {
+ java.lang.Object ref = appname_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ appname_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string appname = 1;
+ */
+ public com.google.protobuf.ByteString getAppnameBytes() {
+ java.lang.Object ref = appname_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ appname_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string appname = 1;
+ */
+ public Builder setAppname(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ appname_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string appname = 1;
+ */
+ public Builder clearAppname() {
+
+ appname_ = getDefaultInstance().getAppname();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string appname = 1;
+ */
+ public Builder setAppnameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ appname_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object revision_ = "";
+
+ /**
+ * string revision = 2;
+ */
+ public java.lang.String getRevision() {
+ java.lang.Object ref = revision_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ revision_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string revision = 2;
+ */
+ public com.google.protobuf.ByteString getRevisionBytes() {
+ java.lang.Object ref = revision_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ revision_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string revision = 2;
+ */
+ public Builder setRevision(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ revision_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string revision = 2;
+ */
+ public Builder clearRevision() {
+
+ revision_ = getDefaultInstance().getRevision();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string revision = 2;
+ */
+ public Builder setRevisionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ revision_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField baseParams_;
+
+ private com.google.protobuf.MapField internalGetBaseParams() {
+ if (baseParams_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(BaseParamsDefaultEntryHolder.defaultEntry);
+ }
+ return baseParams_;
+ }
+
+ private com.google.protobuf.MapField internalGetMutableBaseParams() {
+ onChanged();
+ ;
+ if (baseParams_ == null) {
+ baseParams_ = com.google.protobuf.MapField
+ .newMapField(BaseParamsDefaultEntryHolder.defaultEntry);
+ }
+ if (!baseParams_.isMutable()) {
+ baseParams_ = baseParams_.copy();
+ }
+ return baseParams_;
+ }
+
+ public int getBaseParamsCount() {
+ return internalGetBaseParams().getMap().size();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public boolean containsBaseParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetBaseParams().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getBaseParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getBaseParams() {
+ return getBaseParamsMap();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public java.util.Map getBaseParamsMap() {
+ return internalGetBaseParams().getMap();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetBaseParams()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetBaseParams()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearBaseParams() {
+ internalGetMutableBaseParams().getMutableMap().clear();
+ return this;
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public Builder removeBaseParams(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableBaseParams().getMutableMap().remove(key);
+ return this;
+ }
+
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getMutableBaseParams() {
+ return internalGetMutableBaseParams().getMutableMap();
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+ public Builder putBaseParams(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableBaseParams().getMutableMap().put(key, value);
+ return this;
+ }
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ public Builder putAllBaseParams(java.util.Map values) {
+ internalGetMutableBaseParams().getMutableMap().putAll(values);
+ return this;
+ }
+
+ private java.util.List interfaces_ = java.util.Collections
+ .emptyList();
+
+ private void ensureInterfacesIsMutable() {
+ if (!((bitField0_ & 0x00000008) == 0x00000008)) {
+ interfaces_ = new java.util.ArrayList(
+ interfaces_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 interfacesBuilder_;
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public java.util.List getInterfacesList() {
+ if (interfacesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(interfaces_);
+ } else {
+ return interfacesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public int getInterfacesCount() {
+ if (interfacesBuilder_ == null) {
+ return interfaces_.size();
+ } else {
+ return interfacesBuilder_.getCount();
+ }
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getInterfaces(int index) {
+ if (interfacesBuilder_ == null) {
+ return interfaces_.get(index);
+ } else {
+ return interfacesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder setInterfaces(int index,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb value) {
+ if (interfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInterfacesIsMutable();
+ interfaces_.set(index, value);
+ onChanged();
+ } else {
+ interfacesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder setInterfaces(int index,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder builderForValue) {
+ if (interfacesBuilder_ == null) {
+ ensureInterfacesIsMutable();
+ interfaces_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ interfacesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder addInterfaces(com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb value) {
+ if (interfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInterfacesIsMutable();
+ interfaces_.add(value);
+ onChanged();
+ } else {
+ interfacesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder addInterfaces(int index,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb value) {
+ if (interfacesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInterfacesIsMutable();
+ interfaces_.add(index, value);
+ onChanged();
+ } else {
+ interfacesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder addInterfaces(com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder builderForValue) {
+ if (interfacesBuilder_ == null) {
+ ensureInterfacesIsMutable();
+ interfaces_.add(builderForValue.build());
+ onChanged();
+ } else {
+ interfacesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder addInterfaces(int index,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder builderForValue) {
+ if (interfacesBuilder_ == null) {
+ ensureInterfacesIsMutable();
+ interfaces_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ interfacesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder addAllInterfaces(java.lang.Iterable extends com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb> values) {
+ if (interfacesBuilder_ == null) {
+ ensureInterfacesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaces_);
+ onChanged();
+ } else {
+ interfacesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder clearInterfaces() {
+ if (interfacesBuilder_ == null) {
+ interfaces_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ interfacesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public Builder removeInterfaces(int index) {
+ if (interfacesBuilder_ == null) {
+ ensureInterfacesIsMutable();
+ interfaces_.remove(index);
+ onChanged();
+ } else {
+ interfacesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder getInterfacesBuilder(int index) {
+ return getInterfacesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder getInterfacesOrBuilder(int index) {
+ if (interfacesBuilder_ == null) {
+ return interfaces_.get(index);
+ } else {
+ return interfacesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder> getInterfacesOrBuilderList() {
+ if (interfacesBuilder_ != null) {
+ return interfacesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(interfaces_);
+ }
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder addInterfacesBuilder() {
+ return getInterfacesFieldBuilder().addBuilder(
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb
+ .getDefaultInstance());
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb.Builder addInterfacesBuilder(int index) {
+ return getInterfacesFieldBuilder().addBuilder(
+ index,
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb
+ .getDefaultInstance());
+ }
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ public java.util.List getInterfacesBuilderList() {
+ return getInterfacesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 getInterfacesFieldBuilder() {
+ if (interfacesBuilder_ == null) {
+ interfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(
+ interfaces_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(),
+ isClean());
+ interfaces_ = null;
+ }
+ return interfacesBuilder_;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:AppRevisionRegisterPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:AppRevisionRegisterPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public AppRevisionRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AppRevisionRegisterPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOrBuilder.java
new file mode 100644
index 000000000..d099375a0
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOrBuilder.java
@@ -0,0 +1,104 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface AppRevisionRegisterPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:AppRevisionRegisterPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string appname = 1;
+ */
+ java.lang.String getAppname();
+
+ /**
+ * string appname = 1;
+ */
+ com.google.protobuf.ByteString getAppnameBytes();
+
+ /**
+ * string revision = 2;
+ */
+ java.lang.String getRevision();
+
+ /**
+ * string revision = 2;
+ */
+ com.google.protobuf.ByteString getRevisionBytes();
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+ int getBaseParamsCount();
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+ boolean containsBaseParams(java.lang.String key);
+
+ /**
+ * Use {@link #getBaseParamsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getBaseParams();
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+ java.util.Map getBaseParamsMap();
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues defaultValue);
+
+ /**
+ * map<string, .QueryValues> baseParams = 4;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues getBaseParamsOrThrow(java.lang.String key);
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ java.util.List getInterfacesList();
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb getInterfaces(int index);
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ int getInterfacesCount();
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ java.util.List extends com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder> getInterfacesOrBuilderList();
+
+ /**
+ * repeated .AppRevisionInterfacePb interfaces = 5;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePbOrBuilder getInterfacesOrBuilder(int index);
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOuterClass.java
new file mode 100644
index 000000000..745943d83
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/AppRevisionRegisterPbOuterClass.java
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class AppRevisionRegisterPbOuterClass {
+ private AppRevisionRegisterPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_AppRevisionRegisterPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AppRevisionRegisterPb_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_AppRevisionRegisterPb_BaseParamsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AppRevisionRegisterPb_BaseParamsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_AppRevisionInterfacePb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AppRevisionInterfacePb_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_AppRevisionInterfacePb_ServiceParamsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AppRevisionInterfacePb_ServiceParamsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_QueryValues_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_QueryValues_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\033AppRevisionRegisterPb.proto\"\344\001\n\025AppRev"
+ + "isionRegisterPb\022\017\n\007appname\030\001 \001(\t\022\020\n\010revi"
+ + "sion\030\002 \001(\t\022:\n\nbaseParams\030\004 \003(\0132&.AppRevi"
+ + "sionRegisterPb.BaseParamsEntry\022+\n\ninterf"
+ + "aces\030\005 \003(\0132\027.AppRevisionInterfacePb\032?\n\017B"
+ + "aseParamsEntry\022\013\n\003key\030\001 \001(\t\022\033\n\005value\030\002 \001"
+ + "(\0132\014.QueryValues:\0028\001\"\322\001\n\026AppRevisionInte"
+ + "rfacePb\022\016\n\006dataId\030\001 \001(\t\022\r\n\005group\030\002 \001(\t\022\022"
+ + "\n\ninstanceId\030\003 \001(\t\022A\n\rserviceParams\030\004 \003("
+ + "\0132*.AppRevisionInterfacePb.ServiceParams"
+ + "Entry\032B\n\022ServiceParamsEntry\022\013\n\003key\030\001 \001(\t"
+ + "\022\033\n\005value\030\002 \001(\0132\014.QueryValues:\0028\001\"\035\n\013Que"
+ + "ryValues\022\016\n\006values\030\001 \003(\tB:\n/com.alipay.s"
+ + "ofa.registry.common.model.client.pbP\001Z\005p"
+ + "rotob\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_AppRevisionRegisterPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_AppRevisionRegisterPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AppRevisionRegisterPb_descriptor, new java.lang.String[] { "Appname",
+ "Revision", "BaseParams", "Interfaces", });
+ internal_static_AppRevisionRegisterPb_BaseParamsEntry_descriptor = internal_static_AppRevisionRegisterPb_descriptor
+ .getNestedTypes().get(0);
+ internal_static_AppRevisionRegisterPb_BaseParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AppRevisionRegisterPb_BaseParamsEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_AppRevisionInterfacePb_descriptor = getDescriptor().getMessageTypes()
+ .get(1);
+ internal_static_AppRevisionInterfacePb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AppRevisionInterfacePb_descriptor, new java.lang.String[] { "DataId",
+ "Group", "InstanceId", "ServiceParams", });
+ internal_static_AppRevisionInterfacePb_ServiceParamsEntry_descriptor = internal_static_AppRevisionInterfacePb_descriptor
+ .getNestedTypes().get(0);
+ internal_static_AppRevisionInterfacePb_ServiceParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AppRevisionInterfacePb_ServiceParamsEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_QueryValues_descriptor = getDescriptor().getMessageTypes().get(2);
+ internal_static_QueryValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_QueryValues_descriptor, new java.lang.String[] { "Values", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPb.java
new file mode 100644
index 000000000..121e72e2b
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPb.java
@@ -0,0 +1,2246 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: BaseRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code BaseRegisterPb}
+ */
+public final class BaseRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:BaseRegisterPb)
+ BaseRegisterPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use BaseRegisterPb.newBuilder() to construct.
+ private BaseRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BaseRegisterPb() {
+ instanceId_ = "";
+ zone_ = "";
+ appName_ = "";
+ dataId_ = "";
+ group_ = "";
+ processId_ = "";
+ registId_ = "";
+ clientId_ = "";
+ dataInfoId_ = "";
+ ip_ = "";
+ port_ = 0;
+ eventType_ = "";
+ version_ = 0L;
+ timestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private BaseRegisterPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ instanceId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ zone_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ appName_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataId_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ group_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ processId_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ registId_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ clientId_ = s;
+ break;
+ }
+ case 74: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataInfoId_ = s;
+ break;
+ }
+ case 82: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ ip_ = s;
+ break;
+ }
+ case 88: {
+
+ port_ = input.readInt32();
+ break;
+ }
+ case 98: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ eventType_ = s;
+ break;
+ }
+ case 104: {
+
+ version_ = input.readInt64();
+ break;
+ }
+ case 112: {
+
+ timestamp_ = input.readInt64();
+ break;
+ }
+ case 122: {
+ if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
+ attributes_ = com.google.protobuf.MapField
+ .newMapField(AttributesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00004000;
+ }
+ com.google.protobuf.MapEntry attributes__ = input
+ .readMessage(
+ AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ attributes_.getMutableMap().put(attributes__.getKey(),
+ attributes__.getValue());
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 15:
+ return internalGetAttributes();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INSTANCEID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object instanceId_;
+
+ /**
+ * string instanceId = 1;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string instanceId = 1;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object zone_;
+
+ /**
+ * string zone = 2;
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ 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();
+ zone_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int APPNAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object appName_;
+
+ /**
+ * string appName = 3;
+ */
+ public java.lang.String getAppName() {
+ java.lang.Object ref = appName_;
+ 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();
+ appName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string appName = 3;
+ */
+ public com.google.protobuf.ByteString getAppNameBytes() {
+ java.lang.Object ref = appName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ appName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATAID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object dataId_;
+
+ /**
+ * string dataId = 4;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ 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();
+ dataId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataId = 4;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUP_FIELD_NUMBER = 5;
+ private volatile java.lang.Object group_;
+
+ /**
+ * string group = 5;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string group = 5;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROCESSID_FIELD_NUMBER = 6;
+ private volatile java.lang.Object processId_;
+
+ /**
+ * string processId = 6;
+ */
+ public java.lang.String getProcessId() {
+ java.lang.Object ref = processId_;
+ 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();
+ processId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string processId = 6;
+ */
+ public com.google.protobuf.ByteString getProcessIdBytes() {
+ java.lang.Object ref = processId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ processId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REGISTID_FIELD_NUMBER = 7;
+ private volatile java.lang.Object registId_;
+
+ /**
+ * string registId = 7;
+ */
+ public java.lang.String getRegistId() {
+ java.lang.Object ref = registId_;
+ 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();
+ registId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string registId = 7;
+ */
+ public com.google.protobuf.ByteString getRegistIdBytes() {
+ java.lang.Object ref = registId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ registId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLIENTID_FIELD_NUMBER = 8;
+ private volatile java.lang.Object clientId_;
+
+ /**
+ * string clientId = 8;
+ */
+ public java.lang.String getClientId() {
+ java.lang.Object ref = clientId_;
+ 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();
+ clientId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string clientId = 8;
+ */
+ public com.google.protobuf.ByteString getClientIdBytes() {
+ java.lang.Object ref = clientId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ clientId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATAINFOID_FIELD_NUMBER = 9;
+ private volatile java.lang.Object dataInfoId_;
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public java.lang.String getDataInfoId() {
+ java.lang.Object ref = dataInfoId_;
+ 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();
+ dataInfoId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public com.google.protobuf.ByteString getDataInfoIdBytes() {
+ java.lang.Object ref = dataInfoId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataInfoId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IP_FIELD_NUMBER = 10;
+ private volatile java.lang.Object ip_;
+
+ /**
+ * string ip = 10;
+ */
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ 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();
+ ip_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string ip = 10;
+ */
+ public com.google.protobuf.ByteString getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 11;
+ private int port_;
+
+ /**
+ * int32 port = 11;
+ */
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int EVENTTYPE_FIELD_NUMBER = 12;
+ private volatile java.lang.Object eventType_;
+
+ /**
+ * string eventType = 12;
+ */
+ public java.lang.String getEventType() {
+ java.lang.Object ref = eventType_;
+ 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();
+ eventType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string eventType = 12;
+ */
+ public com.google.protobuf.ByteString getEventTypeBytes() {
+ java.lang.Object ref = eventType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ eventType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 13;
+ private long version_;
+
+ /**
+ * int64 version = 13;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 14;
+ private long timestamp_;
+
+ /**
+ * int64 timestamp = 14;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int ATTRIBUTES_FIELD_NUMBER = 15;
+
+ private static final class AttributesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry
+ . newDefaultInstance(
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_AttributesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+
+ private com.google.protobuf.MapField attributes_;
+
+ private com.google.protobuf.MapField internalGetAttributes() {
+ if (attributes_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(AttributesDefaultEntryHolder.defaultEntry);
+ }
+ return attributes_;
+ }
+
+ public int getAttributesCount() {
+ return internalGetAttributes().getMap().size();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public boolean containsAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getAttributes() {
+ return getAttributesMap();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.util.Map getAttributesMap() {
+ return internalGetAttributes().getMap();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.lang.String getAttributesOrDefault(java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetAttributes().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.lang.String getAttributesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetAttributes().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getInstanceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
+ }
+ if (!getZoneBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
+ }
+ if (!getAppNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appName_);
+ }
+ if (!getDataIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, group_);
+ }
+ if (!getProcessIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, processId_);
+ }
+ if (!getRegistIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, registId_);
+ }
+ if (!getClientIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clientId_);
+ }
+ if (!getDataInfoIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dataInfoId_);
+ }
+ if (!getIpBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ip_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(11, port_);
+ }
+ if (!getEventTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, eventType_);
+ }
+ if (version_ != 0L) {
+ output.writeInt64(13, version_);
+ }
+ if (timestamp_ != 0L) {
+ output.writeInt64(14, timestamp_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output,
+ internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 15);
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getInstanceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
+ }
+ if (!getZoneBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
+ }
+ if (!getAppNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appName_);
+ }
+ if (!getDataIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, group_);
+ }
+ if (!getProcessIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, processId_);
+ }
+ if (!getRegistIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, registId_);
+ }
+ if (!getClientIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clientId_);
+ }
+ if (!getDataInfoIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dataInfoId_);
+ }
+ if (!getIpBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ip_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, port_);
+ }
+ if (!getEventTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, eventType_);
+ }
+ if (version_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, version_);
+ }
+ if (timestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, timestamp_);
+ }
+ for (java.util.Map.Entry entry : internalGetAttributes()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, attributes__);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb other = (com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb) obj;
+
+ boolean result = true;
+ result = result && getInstanceId().equals(other.getInstanceId());
+ result = result && getZone().equals(other.getZone());
+ result = result && getAppName().equals(other.getAppName());
+ result = result && getDataId().equals(other.getDataId());
+ result = result && getGroup().equals(other.getGroup());
+ result = result && getProcessId().equals(other.getProcessId());
+ result = result && getRegistId().equals(other.getRegistId());
+ result = result && getClientId().equals(other.getClientId());
+ result = result && getDataInfoId().equals(other.getDataInfoId());
+ result = result && getIp().equals(other.getIp());
+ result = result && (getPort() == other.getPort());
+ result = result && getEventType().equals(other.getEventType());
+ result = result && (getVersion() == other.getVersion());
+ result = result && (getTimestamp() == other.getTimestamp());
+ result = result && internalGetAttributes().equals(other.internalGetAttributes());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ hash = (37 * hash) + APPNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getAppName().hashCode();
+ hash = (37 * hash) + DATAID_FIELD_NUMBER;
+ hash = (53 * hash) + getDataId().hashCode();
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ hash = (37 * hash) + PROCESSID_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessId().hashCode();
+ hash = (37 * hash) + REGISTID_FIELD_NUMBER;
+ hash = (53 * hash) + getRegistId().hashCode();
+ hash = (37 * hash) + CLIENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getClientId().hashCode();
+ hash = (37 * hash) + DATAINFOID_FIELD_NUMBER;
+ hash = (53 * hash) + getDataInfoId().hashCode();
+ hash = (37 * hash) + IP_FIELD_NUMBER;
+ hash = (53 * hash) + getIp().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getEventType().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion());
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp());
+ if (!internalGetAttributes().getMap().isEmpty()) {
+ hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetAttributes().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code BaseRegisterPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:BaseRegisterPb)
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 15:
+ return internalGetAttributes();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 15:
+ return internalGetMutableAttributes();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ instanceId_ = "";
+
+ zone_ = "";
+
+ appName_ = "";
+
+ dataId_ = "";
+
+ group_ = "";
+
+ processId_ = "";
+
+ registId_ = "";
+
+ clientId_ = "";
+
+ dataInfoId_ = "";
+
+ ip_ = "";
+
+ port_ = 0;
+
+ eventType_ = "";
+
+ version_ = 0L;
+
+ timestamp_ = 0L;
+
+ internalGetMutableAttributes().clear();
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.internal_static_BaseRegisterPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb result = new com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.instanceId_ = instanceId_;
+ result.zone_ = zone_;
+ result.appName_ = appName_;
+ result.dataId_ = dataId_;
+ result.group_ = group_;
+ result.processId_ = processId_;
+ result.registId_ = registId_;
+ result.clientId_ = clientId_;
+ result.dataInfoId_ = dataInfoId_;
+ result.ip_ = ip_;
+ result.port_ = port_;
+ result.eventType_ = eventType_;
+ result.version_ = version_;
+ result.timestamp_ = timestamp_;
+ result.attributes_ = internalGetAttributes();
+ result.attributes_.makeImmutable();
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getInstanceId().isEmpty()) {
+ instanceId_ = other.instanceId_;
+ onChanged();
+ }
+ if (!other.getZone().isEmpty()) {
+ zone_ = other.zone_;
+ onChanged();
+ }
+ if (!other.getAppName().isEmpty()) {
+ appName_ = other.appName_;
+ onChanged();
+ }
+ if (!other.getDataId().isEmpty()) {
+ dataId_ = other.dataId_;
+ onChanged();
+ }
+ if (!other.getGroup().isEmpty()) {
+ group_ = other.group_;
+ onChanged();
+ }
+ if (!other.getProcessId().isEmpty()) {
+ processId_ = other.processId_;
+ onChanged();
+ }
+ if (!other.getRegistId().isEmpty()) {
+ registId_ = other.registId_;
+ onChanged();
+ }
+ if (!other.getClientId().isEmpty()) {
+ clientId_ = other.clientId_;
+ onChanged();
+ }
+ if (!other.getDataInfoId().isEmpty()) {
+ dataInfoId_ = other.dataInfoId_;
+ onChanged();
+ }
+ if (!other.getIp().isEmpty()) {
+ ip_ = other.ip_;
+ onChanged();
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ if (!other.getEventType().isEmpty()) {
+ eventType_ = other.eventType_;
+ onChanged();
+ }
+ if (other.getVersion() != 0L) {
+ setVersion(other.getVersion());
+ }
+ if (other.getTimestamp() != 0L) {
+ setTimestamp(other.getTimestamp());
+ }
+ internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ * string instanceId = 1;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 1;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 1;
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 1;
+ */
+ public Builder clearInstanceId() {
+
+ instanceId_ = getDefaultInstance().getInstanceId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 1;
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object zone_ = "";
+
+ /**
+ * string zone = 2;
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder clearZone() {
+
+ zone_ = getDefaultInstance().getZone();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object appName_ = "";
+
+ /**
+ * string appName = 3;
+ */
+ public java.lang.String getAppName() {
+ java.lang.Object ref = appName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ appName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string appName = 3;
+ */
+ public com.google.protobuf.ByteString getAppNameBytes() {
+ java.lang.Object ref = appName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ appName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string appName = 3;
+ */
+ public Builder setAppName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ appName_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string appName = 3;
+ */
+ public Builder clearAppName() {
+
+ appName_ = getDefaultInstance().getAppName();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string appName = 3;
+ */
+ public Builder setAppNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ appName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dataId_ = "";
+
+ /**
+ * string dataId = 4;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataId = 4;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataId = 4;
+ */
+ public Builder setDataId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 4;
+ */
+ public Builder clearDataId() {
+
+ dataId_ = getDefaultInstance().getDataId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 4;
+ */
+ public Builder setDataIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object group_ = "";
+
+ /**
+ * string group = 5;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string group = 5;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string group = 5;
+ */
+ public Builder setGroup(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 5;
+ */
+ public Builder clearGroup() {
+
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 5;
+ */
+ public Builder setGroupBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object processId_ = "";
+
+ /**
+ * string processId = 6;
+ */
+ public java.lang.String getProcessId() {
+ java.lang.Object ref = processId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string processId = 6;
+ */
+ public com.google.protobuf.ByteString getProcessIdBytes() {
+ java.lang.Object ref = processId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ processId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string processId = 6;
+ */
+ public Builder setProcessId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ processId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string processId = 6;
+ */
+ public Builder clearProcessId() {
+
+ processId_ = getDefaultInstance().getProcessId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string processId = 6;
+ */
+ public Builder setProcessIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ processId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object registId_ = "";
+
+ /**
+ * string registId = 7;
+ */
+ public java.lang.String getRegistId() {
+ java.lang.Object ref = registId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ registId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string registId = 7;
+ */
+ public com.google.protobuf.ByteString getRegistIdBytes() {
+ java.lang.Object ref = registId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ registId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string registId = 7;
+ */
+ public Builder setRegistId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ registId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string registId = 7;
+ */
+ public Builder clearRegistId() {
+
+ registId_ = getDefaultInstance().getRegistId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string registId = 7;
+ */
+ public Builder setRegistIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ registId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object clientId_ = "";
+
+ /**
+ * string clientId = 8;
+ */
+ public java.lang.String getClientId() {
+ java.lang.Object ref = clientId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clientId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string clientId = 8;
+ */
+ public com.google.protobuf.ByteString getClientIdBytes() {
+ java.lang.Object ref = clientId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ clientId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string clientId = 8;
+ */
+ public Builder setClientId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ clientId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string clientId = 8;
+ */
+ public Builder clearClientId() {
+
+ clientId_ = getDefaultInstance().getClientId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string clientId = 8;
+ */
+ public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ clientId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dataInfoId_ = "";
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public java.lang.String getDataInfoId() {
+ java.lang.Object ref = dataInfoId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataInfoId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public com.google.protobuf.ByteString getDataInfoIdBytes() {
+ java.lang.Object ref = dataInfoId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataInfoId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public Builder setDataInfoId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataInfoId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public Builder clearDataInfoId() {
+
+ dataInfoId_ = getDefaultInstance().getDataInfoId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataInfoId = 9;
+ */
+ public Builder setDataInfoIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataInfoId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ip_ = "";
+
+ /**
+ * string ip = 10;
+ */
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string ip = 10;
+ */
+ public com.google.protobuf.ByteString getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string ip = 10;
+ */
+ public Builder setIp(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string ip = 10;
+ */
+ public Builder clearIp() {
+
+ ip_ = getDefaultInstance().getIp();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string ip = 10;
+ */
+ public Builder setIpBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int port_;
+
+ /**
+ * int32 port = 11;
+ */
+ public int getPort() {
+ return port_;
+ }
+
+ /**
+ * int32 port = 11;
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int32 port = 11;
+ */
+ public Builder clearPort() {
+
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object eventType_ = "";
+
+ /**
+ * string eventType = 12;
+ */
+ public java.lang.String getEventType() {
+ java.lang.Object ref = eventType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ eventType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string eventType = 12;
+ */
+ public com.google.protobuf.ByteString getEventTypeBytes() {
+ java.lang.Object ref = eventType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ eventType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string eventType = 12;
+ */
+ public Builder setEventType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ eventType_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string eventType = 12;
+ */
+ public Builder clearEventType() {
+
+ eventType_ = getDefaultInstance().getEventType();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string eventType = 12;
+ */
+ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ eventType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long version_;
+
+ /**
+ * int64 version = 13;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ /**
+ * int64 version = 13;
+ */
+ public Builder setVersion(long value) {
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 version = 13;
+ */
+ public Builder clearVersion() {
+
+ version_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long timestamp_;
+
+ /**
+ * int64 timestamp = 14;
+ */
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ /**
+ * int64 timestamp = 14;
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 timestamp = 14;
+ */
+ public Builder clearTimestamp() {
+
+ timestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField attributes_;
+
+ private com.google.protobuf.MapField internalGetAttributes() {
+ if (attributes_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(AttributesDefaultEntryHolder.defaultEntry);
+ }
+ return attributes_;
+ }
+
+ private com.google.protobuf.MapField internalGetMutableAttributes() {
+ onChanged();
+ ;
+ if (attributes_ == null) {
+ attributes_ = com.google.protobuf.MapField
+ .newMapField(AttributesDefaultEntryHolder.defaultEntry);
+ }
+ if (!attributes_.isMutable()) {
+ attributes_ = attributes_.copy();
+ }
+ return attributes_;
+ }
+
+ public int getAttributesCount() {
+ return internalGetAttributes().getMap().size();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public boolean containsAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getAttributes() {
+ return getAttributesMap();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.util.Map getAttributesMap() {
+ return internalGetAttributes().getMap();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.lang.String getAttributesOrDefault(java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetAttributes()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public java.lang.String getAttributesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetAttributes()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearAttributes() {
+ internalGetMutableAttributes().getMutableMap().clear();
+ return this;
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public Builder removeAttributes(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableAttributes().getMutableMap().remove(key);
+ return this;
+ }
+
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getMutableAttributes() {
+ return internalGetMutableAttributes().getMutableMap();
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+ public Builder putAttributes(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableAttributes().getMutableMap().put(key, value);
+ return this;
+ }
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ public Builder putAllAttributes(java.util.Map values) {
+ internalGetMutableAttributes().getMutableMap().putAll(values);
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:BaseRegisterPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:BaseRegisterPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public BaseRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BaseRegisterPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOrBuilder.java
new file mode 100644
index 000000000..b336edf8f
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOrBuilder.java
@@ -0,0 +1,183 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: BaseRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface BaseRegisterPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:BaseRegisterPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string instanceId = 1;
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ * string instanceId = 1;
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ * string zone = 2;
+ */
+ java.lang.String getZone();
+
+ /**
+ * string zone = 2;
+ */
+ com.google.protobuf.ByteString getZoneBytes();
+
+ /**
+ * string appName = 3;
+ */
+ java.lang.String getAppName();
+
+ /**
+ * string appName = 3;
+ */
+ com.google.protobuf.ByteString getAppNameBytes();
+
+ /**
+ * string dataId = 4;
+ */
+ java.lang.String getDataId();
+
+ /**
+ * string dataId = 4;
+ */
+ com.google.protobuf.ByteString getDataIdBytes();
+
+ /**
+ * string group = 5;
+ */
+ java.lang.String getGroup();
+
+ /**
+ * string group = 5;
+ */
+ com.google.protobuf.ByteString getGroupBytes();
+
+ /**
+ * string processId = 6;
+ */
+ java.lang.String getProcessId();
+
+ /**
+ * string processId = 6;
+ */
+ com.google.protobuf.ByteString getProcessIdBytes();
+
+ /**
+ * string registId = 7;
+ */
+ java.lang.String getRegistId();
+
+ /**
+ * string registId = 7;
+ */
+ com.google.protobuf.ByteString getRegistIdBytes();
+
+ /**
+ * string clientId = 8;
+ */
+ java.lang.String getClientId();
+
+ /**
+ * string clientId = 8;
+ */
+ com.google.protobuf.ByteString getClientIdBytes();
+
+ /**
+ * string dataInfoId = 9;
+ */
+ java.lang.String getDataInfoId();
+
+ /**
+ * string dataInfoId = 9;
+ */
+ com.google.protobuf.ByteString getDataInfoIdBytes();
+
+ /**
+ * string ip = 10;
+ */
+ java.lang.String getIp();
+
+ /**
+ * string ip = 10;
+ */
+ com.google.protobuf.ByteString getIpBytes();
+
+ /**
+ * int32 port = 11;
+ */
+ int getPort();
+
+ /**
+ * string eventType = 12;
+ */
+ java.lang.String getEventType();
+
+ /**
+ * string eventType = 12;
+ */
+ com.google.protobuf.ByteString getEventTypeBytes();
+
+ /**
+ * int64 version = 13;
+ */
+ long getVersion();
+
+ /**
+ * int64 timestamp = 14;
+ */
+ long getTimestamp();
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+ int getAttributesCount();
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+ boolean containsAttributes(java.lang.String key);
+
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getAttributes();
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+ java.util.Map getAttributesMap();
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+ /**
+ * map<string, string> attributes = 15;
+ */
+
+ java.lang.String getAttributesOrThrow(java.lang.String key);
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOuterClass.java
new file mode 100644
index 000000000..7b50f14b8
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/BaseRegisterPbOuterClass.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: BaseRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class BaseRegisterPbOuterClass {
+ private BaseRegisterPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_BaseRegisterPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BaseRegisterPb_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_BaseRegisterPb_AttributesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_BaseRegisterPb_AttributesEntry_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\024BaseRegisterPb.proto\"\346\002\n\016BaseRegisterP"
+ + "b\022\022\n\ninstanceId\030\001 \001(\t\022\014\n\004zone\030\002 \001(\t\022\017\n\007a"
+ + "ppName\030\003 \001(\t\022\016\n\006dataId\030\004 \001(\t\022\r\n\005group\030\005 "
+ + "\001(\t\022\021\n\tprocessId\030\006 \001(\t\022\020\n\010registId\030\007 \001(\t"
+ + "\022\020\n\010clientId\030\010 \001(\t\022\022\n\ndataInfoId\030\t \001(\t\022\n"
+ + "\n\002ip\030\n \001(\t\022\014\n\004port\030\013 \001(\005\022\021\n\teventType\030\014 "
+ + "\001(\t\022\017\n\007version\030\r \001(\003\022\021\n\ttimestamp\030\016 \001(\003\022"
+ + "3\n\nattributes\030\017 \003(\0132\037.BaseRegisterPb.Att"
+ + "ributesEntry\0321\n\017AttributesEntry\022\013\n\003key\030\001"
+ + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B7\n/com.alipay.so"
+ + "fa.registry.common.model.client.pbP\001Z\002pb"
+ + "b\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_BaseRegisterPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_BaseRegisterPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BaseRegisterPb_descriptor, new java.lang.String[] { "InstanceId",
+ "Zone", "AppName", "DataId", "Group", "ProcessId", "RegistId", "ClientId",
+ "DataInfoId", "Ip", "Port", "EventType", "Version", "Timestamp", "Attributes", });
+ internal_static_BaseRegisterPb_AttributesEntry_descriptor = internal_static_BaseRegisterPb_descriptor
+ .getNestedTypes().get(0);
+ internal_static_BaseRegisterPb_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BaseRegisterPb_AttributesEntry_descriptor, new java.lang.String[] {
+ "Key", "Value", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPb.java
new file mode 100644
index 000000000..69485b0cc
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPb.java
@@ -0,0 +1,535 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code DataBoxPb}
+ */
+public final class DataBoxPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:DataBoxPb)
+ DataBoxPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use DataBoxPb.newBuilder() to construct.
+ private DataBoxPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DataBoxPb() {
+ data_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DataBoxPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ data_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.internal_static_DataBoxPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.internal_static_DataBoxPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder.class);
+ }
+
+ public static final int DATA_FIELD_NUMBER = 1;
+ private volatile java.lang.Object data_;
+
+ /**
+ * string data = 1;
+ */
+ public java.lang.String getData() {
+ java.lang.Object ref = data_;
+ 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();
+ data_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string data = 1;
+ */
+ public com.google.protobuf.ByteString getDataBytes() {
+ java.lang.Object ref = data_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ data_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDataBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getDataBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.DataBoxPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb other = (com.alipay.sofa.registry.common.model.client.pb.DataBoxPb) obj;
+
+ boolean result = true;
+ result = result && getData().equals(other.getData());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb 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 com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb 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 com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code DataBoxPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:DataBoxPb)
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.internal_static_DataBoxPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.internal_static_DataBoxPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ data_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.internal_static_DataBoxPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb result = new com.alipay.sofa.registry.common.model.client.pb.DataBoxPb(
+ this);
+ result.data_ = data_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.DataBoxPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.DataBoxPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.DataBoxPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getData().isEmpty()) {
+ data_ = other.data_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.DataBoxPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object data_ = "";
+
+ /**
+ * string data = 1;
+ */
+ public java.lang.String getData() {
+ java.lang.Object ref = data_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ data_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string data = 1;
+ */
+ public com.google.protobuf.ByteString getDataBytes() {
+ java.lang.Object ref = data_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ data_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string data = 1;
+ */
+ public Builder setData(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ data_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string data = 1;
+ */
+ public Builder clearData() {
+
+ data_ = getDefaultInstance().getData();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string data = 1;
+ */
+ public Builder setDataBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ data_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:DataBoxPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:DataBoxPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.DataBoxPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.DataBoxPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public DataBoxPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DataBoxPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOrBuilder.java
new file mode 100644
index 000000000..fe562668a
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOrBuilder.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface DataBoxPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:DataBoxPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string data = 1;
+ */
+ java.lang.String getData();
+
+ /**
+ * string data = 1;
+ */
+ com.google.protobuf.ByteString getDataBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOuterClass.java
new file mode 100644
index 000000000..2c812f099
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxPbOuterClass.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class DataBoxPbOuterClass {
+ private DataBoxPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_DataBoxPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_DataBoxPb_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\017DataBoxPb.proto\"\031\n\tDataBoxPb\022\014\n\004data\030\001"
+ + " \001(\tB7\n/com.alipay.sofa.registry.common."
+ + "model.client.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_DataBoxPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_DataBoxPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DataBoxPb_descriptor, new java.lang.String[] { "Data", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPb.java
new file mode 100644
index 000000000..b5dfef38f
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPb.java
@@ -0,0 +1,764 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxesPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code DataBoxesPb}
+ */
+public final class DataBoxesPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:DataBoxesPb)
+ DataBoxesPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use DataBoxesPb.newBuilder() to construct.
+ private DataBoxesPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DataBoxesPb() {
+ data_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DataBoxesPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ data_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ data_.add(input.readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.parser(),
+ extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ data_ = java.util.Collections.unmodifiableList(data_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.internal_static_DataBoxesPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.internal_static_DataBoxesPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.Builder.class);
+ }
+
+ public static final int DATA_FIELD_NUMBER = 1;
+ private java.util.List data_;
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public java.util.List getDataList() {
+ return data_;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataOrBuilderList() {
+ return data_;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public int getDataCount() {
+ return data_.size();
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getData(int index) {
+ return data_.get(index);
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataOrBuilder(int index) {
+ return data_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < data_.size(); i++) {
+ output.writeMessage(1, data_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ for (int i = 0; i < data_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, data_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb other = (com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb) obj;
+
+ boolean result = true;
+ result = result && getDataList().equals(other.getDataList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDataCount() > 0) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getDataList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb 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 com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb 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 com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code DataBoxesPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:DataBoxesPb)
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.internal_static_DataBoxesPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.internal_static_DataBoxesPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDataFieldBuilder();
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (dataBuilder_ == null) {
+ data_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ dataBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.internal_static_DataBoxesPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb.getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb result = new com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ if (dataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ data_ = java.util.Collections.unmodifiableList(data_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.data_ = data_;
+ } else {
+ result.data_ = dataBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb
+ .getDefaultInstance())
+ return this;
+ if (dataBuilder_ == null) {
+ if (!other.data_.isEmpty()) {
+ if (data_.isEmpty()) {
+ data_ = other.data_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDataIsMutable();
+ data_.addAll(other.data_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.data_.isEmpty()) {
+ if (dataBuilder_.isEmpty()) {
+ dataBuilder_.dispose();
+ dataBuilder_ = null;
+ data_ = other.data_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder()
+ : null;
+ } else {
+ dataBuilder_.addAllMessages(other.data_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List data_ = java.util.Collections
+ .emptyList();
+
+ private void ensureDataIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ data_ = new java.util.ArrayList(
+ data_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 dataBuilder_;
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public java.util.List getDataList() {
+ if (dataBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(data_);
+ } else {
+ return dataBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public int getDataCount() {
+ if (dataBuilder_ == null) {
+ return data_.size();
+ } else {
+ return dataBuilder_.getCount();
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getData(int index) {
+ if (dataBuilder_ == null) {
+ return data_.get(index);
+ } else {
+ return dataBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder setData(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataIsMutable();
+ data_.set(index, value);
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder setData(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ ensureDataIsMutable();
+ data_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder addData(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataIsMutable();
+ data_.add(value);
+ onChanged();
+ } else {
+ dataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder addData(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataIsMutable();
+ data_.add(index, value);
+ onChanged();
+ } else {
+ dataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder addData(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ ensureDataIsMutable();
+ data_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder addData(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ ensureDataIsMutable();
+ data_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder addAllData(java.lang.Iterable extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPb> values) {
+ if (dataBuilder_ == null) {
+ ensureDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, data_);
+ onChanged();
+ } else {
+ dataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dataBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public Builder removeData(int index) {
+ if (dataBuilder_ == null) {
+ ensureDataIsMutable();
+ data_.remove(index);
+ onChanged();
+ } else {
+ dataBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder getDataBuilder(int index) {
+ return getDataFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataOrBuilder(int index) {
+ if (dataBuilder_ == null) {
+ return data_.get(index);
+ } else {
+ return dataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataOrBuilderList() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(data_);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder addDataBuilder() {
+ return getDataFieldBuilder().addBuilder(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.getDefaultInstance());
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder addDataBuilder(int index) {
+ return getDataFieldBuilder().addBuilder(index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.getDefaultInstance());
+ }
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ public java.util.List getDataBuilderList() {
+ return getDataFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(
+ data_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:DataBoxesPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:DataBoxesPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public DataBoxesPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DataBoxesPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOrBuilder.java
new file mode 100644
index 000000000..71b088332
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOrBuilder.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxesPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface DataBoxesPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:DataBoxesPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ java.util.List getDataList();
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getData(int index);
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ int getDataCount();
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataOrBuilderList();
+
+ /**
+ * repeated .DataBoxPb data = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataOrBuilder(int index);
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOuterClass.java
new file mode 100644
index 000000000..45b48143f
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/DataBoxesPbOuterClass.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: DataBoxesPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class DataBoxesPbOuterClass {
+ private DataBoxesPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_DataBoxesPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_DataBoxesPb_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\021DataBoxesPb.proto\032\017DataBoxPb.proto\"\'\n\013"
+ + "DataBoxesPb\022\030\n\004data\030\001 \003(\0132\n.DataBoxPbB7\n"
+ + "/com.alipay.sofa.registry.common.model.c"
+ + "lient.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] { com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_DataBoxesPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_DataBoxesPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DataBoxesPb_descriptor, new java.lang.String[] { "Data", });
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePb.java
new file mode 100644
index 000000000..c78e296f3
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePb.java
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: EventTypePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf enum {@code EventTypePb}
+ */
+public enum EventTypePb implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * REGISTER = 0;
+ */
+ REGISTER(0),
+ /**
+ * UNREGISTER = 1;
+ */
+ UNREGISTER(1), UNRECOGNIZED(-1), ;
+
+ /**
+ * REGISTER = 0;
+ */
+ public static final int REGISTER_VALUE = 0;
+ /**
+ * UNREGISTER = 1;
+ */
+ public static final int UNREGISTER_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventTypePb valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static EventTypePb forNumber(int value) {
+ switch (value) {
+ case 0:
+ return REGISTER;
+ case 1:
+ return UNREGISTER;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
+ public EventTypePb findValueByNumber(int number) {
+ return EventTypePb
+ .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 com.alipay.sofa.registry.common.model.client.pb.EventTypePbOuterClass
+ .getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final EventTypePb[] VALUES = values();
+
+ public static EventTypePb valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private EventTypePb(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:EventTypePb)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePbOuterClass.java
new file mode 100644
index 000000000..7610d5b97
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/EventTypePbOuterClass.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: EventTypePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class EventTypePbOuterClass {
+ private EventTypePbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+ static {
+ java.lang.String[] descriptorData = { "\n\021EventTypePb.proto*+\n\013EventTypePb\022\014\n\010RE"
+ + "GISTER\020\000\022\016\n\nUNREGISTER\020\001B7\n/com.alipay.s"
+ + "ofa.registry.common.model.client.pbP\001Z\002p"
+ + "bb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPb.java
new file mode 100644
index 000000000..f31848659
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPb.java
@@ -0,0 +1,957 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: PublisherRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code PublisherRegisterPb}
+ */
+public final class PublisherRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:PublisherRegisterPb)
+ PublisherRegisterPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PublisherRegisterPb.newBuilder() to construct.
+ private PublisherRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PublisherRegisterPb() {
+ dataList_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private PublisherRegisterPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ dataList_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ dataList_.add(input.readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 18: {
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder subBuilder = null;
+ if (baseRegister_ != null) {
+ subBuilder = baseRegister_.toBuilder();
+ }
+ baseRegister_ = input
+ .readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(baseRegister_);
+ baseRegister_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ dataList_ = java.util.Collections.unmodifiableList(dataList_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATALIST_FIELD_NUMBER = 1;
+ private java.util.List dataList_;
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public java.util.List getDataListList() {
+ return dataList_;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataListOrBuilderList() {
+ return dataList_;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public int getDataListCount() {
+ return dataList_.size();
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataList(int index) {
+ return dataList_.get(index);
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataListOrBuilder(int index) {
+ return dataList_.get(index);
+ }
+
+ public static final int BASEREGISTER_FIELD_NUMBER = 2;
+ private com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb baseRegister_;
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public boolean hasBaseRegister() {
+ return baseRegister_ != null;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister() {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
+ return getBaseRegister();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < dataList_.size(); i++) {
+ output.writeMessage(1, dataList_.get(i));
+ }
+ if (baseRegister_ != null) {
+ output.writeMessage(2, getBaseRegister());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ for (int i = 0; i < dataList_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataList_.get(i));
+ }
+ if (baseRegister_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBaseRegister());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb other = (com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb) obj;
+
+ boolean result = true;
+ result = result && getDataListList().equals(other.getDataListList());
+ result = result && (hasBaseRegister() == other.hasBaseRegister());
+ if (hasBaseRegister()) {
+ result = result && getBaseRegister().equals(other.getBaseRegister());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDataListCount() > 0) {
+ hash = (37 * hash) + DATALIST_FIELD_NUMBER;
+ hash = (53 * hash) + getDataListList().hashCode();
+ }
+ if (hasBaseRegister()) {
+ hash = (37 * hash) + BASEREGISTER_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseRegister().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code PublisherRegisterPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:PublisherRegisterPb)
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDataListFieldBuilder();
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (dataListBuilder_ == null) {
+ dataList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ dataListBuilder_.clear();
+ }
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = null;
+ } else {
+ baseRegister_ = null;
+ baseRegisterBuilder_ = null;
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPbOuterClass.internal_static_PublisherRegisterPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb result = new com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (dataListBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ dataList_ = java.util.Collections.unmodifiableList(dataList_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.dataList_ = dataList_;
+ } else {
+ result.dataList_ = dataListBuilder_.build();
+ }
+ if (baseRegisterBuilder_ == null) {
+ result.baseRegister_ = baseRegister_;
+ } else {
+ result.baseRegister_ = baseRegisterBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb
+ .getDefaultInstance())
+ return this;
+ if (dataListBuilder_ == null) {
+ if (!other.dataList_.isEmpty()) {
+ if (dataList_.isEmpty()) {
+ dataList_ = other.dataList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDataListIsMutable();
+ dataList_.addAll(other.dataList_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.dataList_.isEmpty()) {
+ if (dataListBuilder_.isEmpty()) {
+ dataListBuilder_.dispose();
+ dataListBuilder_ = null;
+ dataList_ = other.dataList_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ dataListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataListFieldBuilder()
+ : null;
+ } else {
+ dataListBuilder_.addAllMessages(other.dataList_);
+ }
+ }
+ }
+ if (other.hasBaseRegister()) {
+ mergeBaseRegister(other.getBaseRegister());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List dataList_ = java.util.Collections
+ .emptyList();
+
+ private void ensureDataListIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ dataList_ = new java.util.ArrayList(
+ dataList_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 dataListBuilder_;
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public java.util.List getDataListList() {
+ if (dataListBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(dataList_);
+ } else {
+ return dataListBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public int getDataListCount() {
+ if (dataListBuilder_ == null) {
+ return dataList_.size();
+ } else {
+ return dataListBuilder_.getCount();
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataList(int index) {
+ if (dataListBuilder_ == null) {
+ return dataList_.get(index);
+ } else {
+ return dataListBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder setDataList(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataListIsMutable();
+ dataList_.set(index, value);
+ onChanged();
+ } else {
+ dataListBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder setDataList(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataListBuilder_ == null) {
+ ensureDataListIsMutable();
+ dataList_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataListBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder addDataList(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataListIsMutable();
+ dataList_.add(value);
+ onChanged();
+ } else {
+ dataListBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder addDataList(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataListBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDataListIsMutable();
+ dataList_.add(index, value);
+ onChanged();
+ } else {
+ dataListBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder addDataList(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataListBuilder_ == null) {
+ ensureDataListIsMutable();
+ dataList_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dataListBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder addDataList(int index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataListBuilder_ == null) {
+ ensureDataListIsMutable();
+ dataList_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dataListBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder addAllDataList(java.lang.Iterable extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPb> values) {
+ if (dataListBuilder_ == null) {
+ ensureDataListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataList_);
+ onChanged();
+ } else {
+ dataListBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder clearDataList() {
+ if (dataListBuilder_ == null) {
+ dataList_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dataListBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public Builder removeDataList(int index) {
+ if (dataListBuilder_ == null) {
+ ensureDataListIsMutable();
+ dataList_.remove(index);
+ onChanged();
+ } else {
+ dataListBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder getDataListBuilder(int index) {
+ return getDataListFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataListOrBuilder(int index) {
+ if (dataListBuilder_ == null) {
+ return dataList_.get(index);
+ } else {
+ return dataListBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataListOrBuilderList() {
+ if (dataListBuilder_ != null) {
+ return dataListBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dataList_);
+ }
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder addDataListBuilder() {
+ return getDataListFieldBuilder().addBuilder(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.getDefaultInstance());
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder addDataListBuilder(int index) {
+ return getDataListFieldBuilder().addBuilder(index,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.getDefaultInstance());
+ }
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ public java.util.List getDataListBuilderList() {
+ return getDataListFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3 getDataListFieldBuilder() {
+ if (dataListBuilder_ == null) {
+ dataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(
+ dataList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(),
+ isClean());
+ dataList_ = null;
+ }
+ return dataListBuilder_;
+ }
+
+ private com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb baseRegister_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3 baseRegisterBuilder_;
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public boolean hasBaseRegister() {
+ return baseRegisterBuilder_ != null || baseRegister_ != null;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister() {
+ if (baseRegisterBuilder_ == null) {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ } else {
+ return baseRegisterBuilder_.getMessage();
+ }
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder setBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb value) {
+ if (baseRegisterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseRegister_ = value;
+ onChanged();
+ } else {
+ baseRegisterBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder setBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder builderForValue) {
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = builderForValue.build();
+ onChanged();
+ } else {
+ baseRegisterBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder mergeBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb value) {
+ if (baseRegisterBuilder_ == null) {
+ if (baseRegister_ != null) {
+ baseRegister_ = com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .newBuilder(baseRegister_).mergeFrom(value).buildPartial();
+ } else {
+ baseRegister_ = value;
+ }
+ onChanged();
+ } else {
+ baseRegisterBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder clearBaseRegister() {
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = null;
+ onChanged();
+ } else {
+ baseRegister_ = null;
+ baseRegisterBuilder_ = null;
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder getBaseRegisterBuilder() {
+
+ onChanged();
+ return getBaseRegisterFieldBuilder().getBuilder();
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
+ if (baseRegisterBuilder_ != null) {
+ return baseRegisterBuilder_.getMessageOrBuilder();
+ } else {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ }
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3 getBaseRegisterFieldBuilder() {
+ if (baseRegisterBuilder_ == null) {
+ baseRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(
+ getBaseRegister(), getParentForChildren(), isClean());
+ baseRegister_ = null;
+ }
+ return baseRegisterBuilder_;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:PublisherRegisterPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:PublisherRegisterPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public PublisherRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PublisherRegisterPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.PublisherRegisterPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOrBuilder.java
new file mode 100644
index 000000000..f7aca1c0c
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOrBuilder.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: PublisherRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface PublisherRegisterPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:PublisherRegisterPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ java.util.List getDataListList();
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataList(int index);
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ int getDataListCount();
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ java.util.List extends com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder> getDataListOrBuilderList();
+
+ /**
+ * repeated .DataBoxPb dataList = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataListOrBuilder(int index);
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ boolean hasBaseRegister();
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister();
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOuterClass.java
new file mode 100644
index 000000000..21eba099e
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/PublisherRegisterPbOuterClass.java
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: PublisherRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class PublisherRegisterPbOuterClass {
+ private PublisherRegisterPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_PublisherRegisterPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_PublisherRegisterPb_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\031PublisherRegisterPb.proto\032\017DataBoxPb.p"
+ + "roto\032\024BaseRegisterPb.proto\"Z\n\023PublisherR"
+ + "egisterPb\022\034\n\010dataList\030\001 \003(\0132\n.DataBoxPb\022"
+ + "%\n\014baseRegister\030\002 \001(\0132\017.BaseRegisterPbB7"
+ + "\n/com.alipay.sofa.registry.common.model."
+ + "client.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.getDescriptor(),
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_PublisherRegisterPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_PublisherRegisterPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_PublisherRegisterPb_descriptor, new java.lang.String[] { "DataList",
+ "BaseRegister", });
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.getDescriptor();
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValues.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValues.java
new file mode 100644
index 000000000..7f6e95645
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValues.java
@@ -0,0 +1,587 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code QueryValues}
+ */
+public final class QueryValues extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:QueryValues)
+ QueryValuesOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use QueryValues.newBuilder() to construct.
+ private QueryValues(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private QueryValues(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ values_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ values_.add(s);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ values_ = values_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_QueryValues_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_QueryValues_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues.class,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ private com.google.protobuf.LazyStringList values_;
+
+ /**
+ * repeated string values = 1;
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.QueryValues)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues other = (com.alipay.sofa.registry.common.model.client.pb.QueryValues) obj;
+
+ boolean result = true;
+ result = result && getValuesList().equals(other.getValuesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues 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 com.alipay.sofa.registry.common.model.client.pb.QueryValues parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues 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 com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.QueryValues prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code QueryValues}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:QueryValues)
+ com.alipay.sofa.registry.common.model.client.pb.QueryValuesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_QueryValues_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_QueryValues_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues.class,
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.QueryValues.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPbOuterClass.internal_static_QueryValues_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.QueryValues.getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues build() {
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues result = new com.alipay.sofa.registry.common.model.client.pb.QueryValues(
+ this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ values_ = values_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.values_ = values_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.QueryValues) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.QueryValues) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.QueryValues other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.QueryValues
+ .getDefaultInstance())
+ return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.QueryValues parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.QueryValues) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public Builder addAllValues(java.lang.Iterable values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string values = 1;
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:QueryValues)
+ }
+
+ // @@protoc_insertion_point(class_scope:QueryValues)
+ private static final com.alipay.sofa.registry.common.model.client.pb.QueryValues DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.QueryValues();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.QueryValues getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public QueryValues parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new QueryValues(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.QueryValues getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValuesOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValuesOrBuilder.java
new file mode 100644
index 000000000..ee4476310
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/QueryValuesOrBuilder.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: AppRevisionRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface QueryValuesOrBuilder extends
+// @@protoc_insertion_point(interface_extends:QueryValues)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated string values = 1;
+ */
+ java.util.List getValuesList();
+
+ /**
+ * repeated string values = 1;
+ */
+ int getValuesCount();
+
+ /**
+ * repeated string values = 1;
+ */
+ java.lang.String getValues(int index);
+
+ /**
+ * repeated string values = 1;
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPb.java
new file mode 100644
index 000000000..2ca91c78d
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPb.java
@@ -0,0 +1,1217 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedConfigDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code ReceivedConfigDataPb}
+ */
+public final class ReceivedConfigDataPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:ReceivedConfigDataPb)
+ ReceivedConfigDataPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ReceivedConfigDataPb.newBuilder() to construct.
+ private ReceivedConfigDataPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ReceivedConfigDataPb() {
+ dataId_ = "";
+ group_ = "";
+ instanceId_ = "";
+ configuratorRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ version_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ReceivedConfigDataPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ group_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ instanceId_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ configuratorRegistIds_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ configuratorRegistIds_.add(s);
+ break;
+ }
+ case 42: {
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder subBuilder = null;
+ if (dataBox_ != null) {
+ subBuilder = dataBox_.toBuilder();
+ }
+ dataBox_ = input.readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(dataBox_);
+ dataBox_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 48: {
+
+ version_ = input.readInt64();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ configuratorRegistIds_ = configuratorRegistIds_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOuterClass.internal_static_ReceivedConfigDataPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOuterClass.internal_static_ReceivedConfigDataPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATAID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object dataId_;
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ 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();
+ dataId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUP_FIELD_NUMBER = 2;
+ private volatile java.lang.Object group_;
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCEID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object instanceId_;
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONFIGURATORREGISTIDS_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList configuratorRegistIds_;
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public com.google.protobuf.ProtocolStringList getConfiguratorRegistIdsList() {
+ return configuratorRegistIds_;
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public int getConfiguratorRegistIdsCount() {
+ return configuratorRegistIds_.size();
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public java.lang.String getConfiguratorRegistIds(int index) {
+ return configuratorRegistIds_.get(index);
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public com.google.protobuf.ByteString getConfiguratorRegistIdsBytes(int index) {
+ return configuratorRegistIds_.getByteString(index);
+ }
+
+ public static final int DATABOX_FIELD_NUMBER = 5;
+ private com.alipay.sofa.registry.common.model.client.pb.DataBoxPb dataBox_;
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public boolean hasDataBox() {
+ return dataBox_ != null;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataBox() {
+ return dataBox_ == null ? com.alipay.sofa.registry.common.model.client.pb.DataBoxPb
+ .getDefaultInstance() : dataBox_;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataBoxOrBuilder() {
+ return getDataBox();
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 6;
+ private long version_;
+
+ /**
+ * int64 version = 6;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDataIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_);
+ }
+ for (int i = 0; i < configuratorRegistIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4,
+ configuratorRegistIds_.getRaw(i));
+ }
+ if (dataBox_ != null) {
+ output.writeMessage(5, getDataBox());
+ }
+ if (version_ != 0L) {
+ output.writeInt64(6, version_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getDataIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < configuratorRegistIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(configuratorRegistIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getConfiguratorRegistIdsList().size();
+ }
+ if (dataBox_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDataBox());
+ }
+ if (version_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, version_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb other = (com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb) obj;
+
+ boolean result = true;
+ result = result && getDataId().equals(other.getDataId());
+ result = result && getGroup().equals(other.getGroup());
+ result = result && getInstanceId().equals(other.getInstanceId());
+ result = result
+ && getConfiguratorRegistIdsList().equals(other.getConfiguratorRegistIdsList());
+ result = result && (hasDataBox() == other.hasDataBox());
+ if (hasDataBox()) {
+ result = result && getDataBox().equals(other.getDataBox());
+ }
+ result = result && (getVersion() == other.getVersion());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATAID_FIELD_NUMBER;
+ hash = (53 * hash) + getDataId().hashCode();
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ if (getConfiguratorRegistIdsCount() > 0) {
+ hash = (37 * hash) + CONFIGURATORREGISTIDS_FIELD_NUMBER;
+ hash = (53 * hash) + getConfiguratorRegistIdsList().hashCode();
+ }
+ if (hasDataBox()) {
+ hash = (37 * hash) + DATABOX_FIELD_NUMBER;
+ hash = (53 * hash) + getDataBox().hashCode();
+ }
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb 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 com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb 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 com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code ReceivedConfigDataPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:ReceivedConfigDataPb)
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOuterClass.internal_static_ReceivedConfigDataPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOuterClass.internal_static_ReceivedConfigDataPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ dataId_ = "";
+
+ group_ = "";
+
+ instanceId_ = "";
+
+ configuratorRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ if (dataBoxBuilder_ == null) {
+ dataBox_ = null;
+ } else {
+ dataBox_ = null;
+ dataBoxBuilder_ = null;
+ }
+ version_ = 0L;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPbOuterClass.internal_static_ReceivedConfigDataPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb result = new com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.dataId_ = dataId_;
+ result.group_ = group_;
+ result.instanceId_ = instanceId_;
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ configuratorRegistIds_ = configuratorRegistIds_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.configuratorRegistIds_ = configuratorRegistIds_;
+ if (dataBoxBuilder_ == null) {
+ result.dataBox_ = dataBox_;
+ } else {
+ result.dataBox_ = dataBoxBuilder_.build();
+ }
+ result.version_ = version_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getDataId().isEmpty()) {
+ dataId_ = other.dataId_;
+ onChanged();
+ }
+ if (!other.getGroup().isEmpty()) {
+ group_ = other.group_;
+ onChanged();
+ }
+ if (!other.getInstanceId().isEmpty()) {
+ instanceId_ = other.instanceId_;
+ onChanged();
+ }
+ if (!other.configuratorRegistIds_.isEmpty()) {
+ if (configuratorRegistIds_.isEmpty()) {
+ configuratorRegistIds_ = other.configuratorRegistIds_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureConfiguratorRegistIdsIsMutable();
+ configuratorRegistIds_.addAll(other.configuratorRegistIds_);
+ }
+ onChanged();
+ }
+ if (other.hasDataBox()) {
+ mergeDataBox(other.getDataBox());
+ }
+ if (other.getVersion() != 0L) {
+ setVersion(other.getVersion());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object dataId_ = "";
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder clearDataId() {
+
+ dataId_ = getDefaultInstance().getDataId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object group_ = "";
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroup(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder clearGroup() {
+
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroupBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder clearInstanceId() {
+
+ instanceId_ = getDefaultInstance().getInstanceId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList configuratorRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureConfiguratorRegistIdsIsMutable() {
+ if (!((bitField0_ & 0x00000008) == 0x00000008)) {
+ configuratorRegistIds_ = new com.google.protobuf.LazyStringArrayList(
+ configuratorRegistIds_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public com.google.protobuf.ProtocolStringList getConfiguratorRegistIdsList() {
+ return configuratorRegistIds_.getUnmodifiableView();
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public int getConfiguratorRegistIdsCount() {
+ return configuratorRegistIds_.size();
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public java.lang.String getConfiguratorRegistIds(int index) {
+ return configuratorRegistIds_.get(index);
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public com.google.protobuf.ByteString getConfiguratorRegistIdsBytes(int index) {
+ return configuratorRegistIds_.getByteString(index);
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public Builder setConfiguratorRegistIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfiguratorRegistIdsIsMutable();
+ configuratorRegistIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public Builder addConfiguratorRegistIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfiguratorRegistIdsIsMutable();
+ configuratorRegistIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public Builder addAllConfiguratorRegistIds(java.lang.Iterable values) {
+ ensureConfiguratorRegistIdsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, configuratorRegistIds_);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public Builder clearConfiguratorRegistIds() {
+ configuratorRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ public Builder addConfiguratorRegistIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureConfiguratorRegistIdsIsMutable();
+ configuratorRegistIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.alipay.sofa.registry.common.model.client.pb.DataBoxPb dataBox_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3 dataBoxBuilder_;
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public boolean hasDataBox() {
+ return dataBoxBuilder_ != null || dataBox_ != null;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataBox() {
+ if (dataBoxBuilder_ == null) {
+ return dataBox_ == null ? com.alipay.sofa.registry.common.model.client.pb.DataBoxPb
+ .getDefaultInstance() : dataBox_;
+ } else {
+ return dataBoxBuilder_.getMessage();
+ }
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public Builder setDataBox(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataBoxBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBox_ = value;
+ onChanged();
+ } else {
+ dataBoxBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public Builder setDataBox(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder builderForValue) {
+ if (dataBoxBuilder_ == null) {
+ dataBox_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBoxBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public Builder mergeDataBox(com.alipay.sofa.registry.common.model.client.pb.DataBoxPb value) {
+ if (dataBoxBuilder_ == null) {
+ if (dataBox_ != null) {
+ dataBox_ = com.alipay.sofa.registry.common.model.client.pb.DataBoxPb
+ .newBuilder(dataBox_).mergeFrom(value).buildPartial();
+ } else {
+ dataBox_ = value;
+ }
+ onChanged();
+ } else {
+ dataBoxBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public Builder clearDataBox() {
+ if (dataBoxBuilder_ == null) {
+ dataBox_ = null;
+ onChanged();
+ } else {
+ dataBox_ = null;
+ dataBoxBuilder_ = null;
+ }
+
+ return this;
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPb.Builder getDataBoxBuilder() {
+
+ onChanged();
+ return getDataBoxFieldBuilder().getBuilder();
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataBoxOrBuilder() {
+ if (dataBoxBuilder_ != null) {
+ return dataBoxBuilder_.getMessageOrBuilder();
+ } else {
+ return dataBox_ == null ? com.alipay.sofa.registry.common.model.client.pb.DataBoxPb
+ .getDefaultInstance() : dataBox_;
+ }
+ }
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3 getDataBoxFieldBuilder() {
+ if (dataBoxBuilder_ == null) {
+ dataBoxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(
+ getDataBox(), getParentForChildren(), isClean());
+ dataBox_ = null;
+ }
+ return dataBoxBuilder_;
+ }
+
+ private long version_;
+
+ /**
+ * int64 version = 6;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ /**
+ * int64 version = 6;
+ */
+ public Builder setVersion(long value) {
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 version = 6;
+ */
+ public Builder clearVersion() {
+
+ version_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:ReceivedConfigDataPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReceivedConfigDataPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public ReceivedConfigDataPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReceivedConfigDataPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedConfigDataPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOrBuilder.java
new file mode 100644
index 000000000..7f031381e
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOrBuilder.java
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedConfigDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface ReceivedConfigDataPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:ReceivedConfigDataPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string dataId = 1;
+ */
+ java.lang.String getDataId();
+
+ /**
+ * string dataId = 1;
+ */
+ com.google.protobuf.ByteString getDataIdBytes();
+
+ /**
+ * string group = 2;
+ */
+ java.lang.String getGroup();
+
+ /**
+ * string group = 2;
+ */
+ com.google.protobuf.ByteString getGroupBytes();
+
+ /**
+ * string instanceId = 3;
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ * string instanceId = 3;
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ java.util.List getConfiguratorRegistIdsList();
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ int getConfiguratorRegistIdsCount();
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ java.lang.String getConfiguratorRegistIds(int index);
+
+ /**
+ * repeated string configuratorRegistIds = 4;
+ */
+ com.google.protobuf.ByteString getConfiguratorRegistIdsBytes(int index);
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ boolean hasDataBox();
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPb getDataBox();
+
+ /**
+ * .DataBoxPb dataBox = 5;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOrBuilder getDataBoxOrBuilder();
+
+ /**
+ * int64 version = 6;
+ */
+ long getVersion();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOuterClass.java
new file mode 100644
index 000000000..8e19bf677
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedConfigDataPbOuterClass.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedConfigDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class ReceivedConfigDataPbOuterClass {
+ private ReceivedConfigDataPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceivedConfigDataPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceivedConfigDataPb_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\032ReceivedConfigDataPb.proto\032\017DataBoxPb."
+ + "proto\"\226\001\n\024ReceivedConfigDataPb\022\016\n\006dataId"
+ + "\030\001 \001(\t\022\r\n\005group\030\002 \001(\t\022\022\n\ninstanceId\030\003 \001("
+ + "\t\022\035\n\025configuratorRegistIds\030\004 \003(\t\022\033\n\007data"
+ + "Box\030\005 \001(\0132\n.DataBoxPb\022\017\n\007version\030\006 \001(\003B7"
+ + "\n/com.alipay.sofa.registry.common.model."
+ + "client.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] { com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_ReceivedConfigDataPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_ReceivedConfigDataPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReceivedConfigDataPb_descriptor, new java.lang.String[] { "DataId",
+ "Group", "InstanceId", "ConfiguratorRegistIds", "DataBox", "Version", });
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPb.java
new file mode 100644
index 000000000..9dbe3d6aa
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPb.java
@@ -0,0 +1,1678 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code ReceivedDataPb}
+ */
+public final class ReceivedDataPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:ReceivedDataPb)
+ ReceivedDataPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ReceivedDataPb.newBuilder() to construct.
+ private ReceivedDataPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ReceivedDataPb() {
+ dataId_ = "";
+ group_ = "";
+ instanceId_ = "";
+ segment_ = "";
+ scope_ = "";
+ subscriberRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ version_ = 0L;
+ localZone_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ReceivedDataPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ group_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ instanceId_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ segment_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ scope_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ subscriberRegistIds_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000020;
+ }
+ subscriberRegistIds_.add(s);
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ data_ = com.google.protobuf.MapField
+ .newMapField(DataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000040;
+ }
+ com.google.protobuf.MapEntry data__ = input
+ .readMessage(DataDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ data_.getMutableMap().put(data__.getKey(), data__.getValue());
+ break;
+ }
+ case 64: {
+
+ version_ = input.readInt64();
+ break;
+ }
+ case 74: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ localZone_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ subscriberRegistIds_ = subscriberRegistIds_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 7:
+ return internalGetData();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATAID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object dataId_;
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ 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();
+ dataId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUP_FIELD_NUMBER = 2;
+ private volatile java.lang.Object group_;
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCEID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object instanceId_;
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEGMENT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object segment_;
+
+ /**
+ * string segment = 4;
+ */
+ public java.lang.String getSegment() {
+ java.lang.Object ref = segment_;
+ 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();
+ segment_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string segment = 4;
+ */
+ public com.google.protobuf.ByteString getSegmentBytes() {
+ java.lang.Object ref = segment_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ segment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCOPE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object scope_;
+
+ /**
+ * string scope = 5;
+ */
+ public java.lang.String getScope() {
+ java.lang.Object ref = scope_;
+ 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();
+ scope_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string scope = 5;
+ */
+ public com.google.protobuf.ByteString getScopeBytes() {
+ java.lang.Object ref = scope_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ scope_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SUBSCRIBERREGISTIDS_FIELD_NUMBER = 6;
+ private com.google.protobuf.LazyStringList subscriberRegistIds_;
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getSubscriberRegistIdsList() {
+ return subscriberRegistIds_;
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public int getSubscriberRegistIdsCount() {
+ return subscriberRegistIds_.size();
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public java.lang.String getSubscriberRegistIds(int index) {
+ return subscriberRegistIds_.get(index);
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public com.google.protobuf.ByteString getSubscriberRegistIdsBytes(int index) {
+ return subscriberRegistIds_.getByteString(index);
+ }
+
+ public static final int DATA_FIELD_NUMBER = 7;
+
+ private static final class DataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry
+ . newDefaultInstance(
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_DataEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb
+ .getDefaultInstance());
+ }
+
+ private com.google.protobuf.MapField data_;
+
+ private com.google.protobuf.MapField internalGetData() {
+ if (data_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry);
+ }
+ return data_;
+ }
+
+ public int getDataCount() {
+ return internalGetData().getMap().size();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public boolean containsData(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetData().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getData() {
+ return getDataMap();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public java.util.Map getDataMap() {
+ return internalGetData().getMap();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetData()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetData()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 8;
+ private long version_;
+
+ /**
+ * int64 version = 8;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ public static final int LOCALZONE_FIELD_NUMBER = 9;
+ private volatile java.lang.Object localZone_;
+
+ /**
+ * string localZone = 9;
+ */
+ public java.lang.String getLocalZone() {
+ java.lang.Object ref = localZone_;
+ 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();
+ localZone_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string localZone = 9;
+ */
+ public com.google.protobuf.ByteString getLocalZoneBytes() {
+ java.lang.Object ref = localZone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ localZone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDataIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_);
+ }
+ if (!getSegmentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, segment_);
+ }
+ if (!getScopeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, scope_);
+ }
+ for (int i = 0; i < subscriberRegistIds_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6,
+ subscriberRegistIds_.getRaw(i));
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(output, internalGetData(),
+ DataDefaultEntryHolder.defaultEntry, 7);
+ if (version_ != 0L) {
+ output.writeInt64(8, version_);
+ }
+ if (!getLocalZoneBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, localZone_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getDataIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataId_);
+ }
+ if (!getGroupBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, group_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_);
+ }
+ if (!getSegmentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, segment_);
+ }
+ if (!getScopeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, scope_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < subscriberRegistIds_.size(); i++) {
+ dataSize += computeStringSizeNoTag(subscriberRegistIds_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSubscriberRegistIdsList().size();
+ }
+ for (java.util.Map.Entry entry : internalGetData()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry data__ = DataDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, data__);
+ }
+ if (version_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, version_);
+ }
+ if (!getLocalZoneBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, localZone_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb other = (com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb) obj;
+
+ boolean result = true;
+ result = result && getDataId().equals(other.getDataId());
+ result = result && getGroup().equals(other.getGroup());
+ result = result && getInstanceId().equals(other.getInstanceId());
+ result = result && getSegment().equals(other.getSegment());
+ result = result && getScope().equals(other.getScope());
+ result = result && getSubscriberRegistIdsList().equals(other.getSubscriberRegistIdsList());
+ result = result && internalGetData().equals(other.internalGetData());
+ result = result && (getVersion() == other.getVersion());
+ result = result && getLocalZone().equals(other.getLocalZone());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATAID_FIELD_NUMBER;
+ hash = (53 * hash) + getDataId().hashCode();
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ hash = (37 * hash) + INSTANCEID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + SEGMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSegment().hashCode();
+ hash = (37 * hash) + SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + getScope().hashCode();
+ if (getSubscriberRegistIdsCount() > 0) {
+ hash = (37 * hash) + SUBSCRIBERREGISTIDS_FIELD_NUMBER;
+ hash = (53 * hash) + getSubscriberRegistIdsList().hashCode();
+ }
+ if (!internalGetData().getMap().isEmpty()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetData().hashCode();
+ }
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion());
+ hash = (37 * hash) + LOCALZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getLocalZone().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb 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 com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb 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 com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code ReceivedDataPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:ReceivedDataPb)
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 7:
+ return internalGetData();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 7:
+ return internalGetMutableData();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ dataId_ = "";
+
+ group_ = "";
+
+ instanceId_ = "";
+
+ segment_ = "";
+
+ scope_ = "";
+
+ subscriberRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ internalGetMutableData().clear();
+ version_ = 0L;
+
+ localZone_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPbOuterClass.internal_static_ReceivedDataPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb result = new com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.dataId_ = dataId_;
+ result.group_ = group_;
+ result.instanceId_ = instanceId_;
+ result.segment_ = segment_;
+ result.scope_ = scope_;
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ subscriberRegistIds_ = subscriberRegistIds_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.subscriberRegistIds_ = subscriberRegistIds_;
+ result.data_ = internalGetData();
+ result.data_.makeImmutable();
+ result.version_ = version_;
+ result.localZone_ = localZone_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getDataId().isEmpty()) {
+ dataId_ = other.dataId_;
+ onChanged();
+ }
+ if (!other.getGroup().isEmpty()) {
+ group_ = other.group_;
+ onChanged();
+ }
+ if (!other.getInstanceId().isEmpty()) {
+ instanceId_ = other.instanceId_;
+ onChanged();
+ }
+ if (!other.getSegment().isEmpty()) {
+ segment_ = other.segment_;
+ onChanged();
+ }
+ if (!other.getScope().isEmpty()) {
+ scope_ = other.scope_;
+ onChanged();
+ }
+ if (!other.subscriberRegistIds_.isEmpty()) {
+ if (subscriberRegistIds_.isEmpty()) {
+ subscriberRegistIds_ = other.subscriberRegistIds_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureSubscriberRegistIdsIsMutable();
+ subscriberRegistIds_.addAll(other.subscriberRegistIds_);
+ }
+ onChanged();
+ }
+ internalGetMutableData().mergeFrom(other.internalGetData());
+ if (other.getVersion() != 0L) {
+ setVersion(other.getVersion());
+ }
+ if (!other.getLocalZone().isEmpty()) {
+ localZone_ = other.localZone_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object dataId_ = "";
+
+ /**
+ * string dataId = 1;
+ */
+ public java.lang.String getDataId() {
+ java.lang.Object ref = dataId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public com.google.protobuf.ByteString getDataIdBytes() {
+ java.lang.Object ref = dataId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder clearDataId() {
+
+ dataId_ = getDefaultInstance().getDataId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataId = 1;
+ */
+ public Builder setDataIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object group_ = "";
+
+ /**
+ * string group = 2;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ group_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public com.google.protobuf.ByteString getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroup(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder clearGroup() {
+
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string group = 2;
+ */
+ public Builder setGroupBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+
+ /**
+ * string instanceId = 3;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder clearInstanceId() {
+
+ instanceId_ = getDefaultInstance().getInstanceId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string instanceId = 3;
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object segment_ = "";
+
+ /**
+ * string segment = 4;
+ */
+ public java.lang.String getSegment() {
+ java.lang.Object ref = segment_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ segment_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string segment = 4;
+ */
+ public com.google.protobuf.ByteString getSegmentBytes() {
+ java.lang.Object ref = segment_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ segment_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string segment = 4;
+ */
+ public Builder setSegment(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ segment_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string segment = 4;
+ */
+ public Builder clearSegment() {
+
+ segment_ = getDefaultInstance().getSegment();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string segment = 4;
+ */
+ public Builder setSegmentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ segment_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object scope_ = "";
+
+ /**
+ * string scope = 5;
+ */
+ public java.lang.String getScope() {
+ java.lang.Object ref = scope_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ scope_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string scope = 5;
+ */
+ public com.google.protobuf.ByteString getScopeBytes() {
+ java.lang.Object ref = scope_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ scope_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string scope = 5;
+ */
+ public Builder setScope(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ scope_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string scope = 5;
+ */
+ public Builder clearScope() {
+
+ scope_ = getDefaultInstance().getScope();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string scope = 5;
+ */
+ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ scope_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList subscriberRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureSubscriberRegistIdsIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ subscriberRegistIds_ = new com.google.protobuf.LazyStringArrayList(
+ subscriberRegistIds_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getSubscriberRegistIdsList() {
+ return subscriberRegistIds_.getUnmodifiableView();
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public int getSubscriberRegistIdsCount() {
+ return subscriberRegistIds_.size();
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public java.lang.String getSubscriberRegistIds(int index) {
+ return subscriberRegistIds_.get(index);
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public com.google.protobuf.ByteString getSubscriberRegistIdsBytes(int index) {
+ return subscriberRegistIds_.getByteString(index);
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public Builder setSubscriberRegistIds(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSubscriberRegistIdsIsMutable();
+ subscriberRegistIds_.set(index, value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public Builder addSubscriberRegistIds(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSubscriberRegistIdsIsMutable();
+ subscriberRegistIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public Builder addAllSubscriberRegistIds(java.lang.Iterable values) {
+ ensureSubscriberRegistIdsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriberRegistIds_);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public Builder clearSubscriberRegistIds() {
+ subscriberRegistIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ public Builder addSubscriberRegistIdsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSubscriberRegistIdsIsMutable();
+ subscriberRegistIds_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField data_;
+
+ private com.google.protobuf.MapField internalGetData() {
+ if (data_ == null) {
+ return com.google.protobuf.MapField
+ .emptyMapField(DataDefaultEntryHolder.defaultEntry);
+ }
+ return data_;
+ }
+
+ private com.google.protobuf.MapField internalGetMutableData() {
+ onChanged();
+ ;
+ if (data_ == null) {
+ data_ = com.google.protobuf.MapField
+ .newMapField(DataDefaultEntryHolder.defaultEntry);
+ }
+ if (!data_.isMutable()) {
+ data_ = data_.copy();
+ }
+ return data_;
+ }
+
+ public int getDataCount() {
+ return internalGetData().getMap().size();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public boolean containsData(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetData().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getData() {
+ return getDataMap();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public java.util.Map getDataMap() {
+ return internalGetData().getMap();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetData()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetData()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearData() {
+ internalGetMutableData().getMutableMap().clear();
+ return this;
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public Builder removeData(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableData().getMutableMap().remove(key);
+ return this;
+ }
+
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map getMutableData() {
+ return internalGetMutableData().getMutableMap();
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+ public Builder putData(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableData().getMutableMap().put(key, value);
+ return this;
+ }
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ public Builder putAllData(java.util.Map values) {
+ internalGetMutableData().getMutableMap().putAll(values);
+ return this;
+ }
+
+ private long version_;
+
+ /**
+ * int64 version = 8;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ /**
+ * int64 version = 8;
+ */
+ public Builder setVersion(long value) {
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 version = 8;
+ */
+ public Builder clearVersion() {
+
+ version_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object localZone_ = "";
+
+ /**
+ * string localZone = 9;
+ */
+ public java.lang.String getLocalZone() {
+ java.lang.Object ref = localZone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ localZone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string localZone = 9;
+ */
+ public com.google.protobuf.ByteString getLocalZoneBytes() {
+ java.lang.Object ref = localZone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ localZone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string localZone = 9;
+ */
+ public Builder setLocalZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ localZone_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string localZone = 9;
+ */
+ public Builder clearLocalZone() {
+
+ localZone_ = getDefaultInstance().getLocalZone();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string localZone = 9;
+ */
+ public Builder setLocalZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ localZone_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:ReceivedDataPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReceivedDataPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public ReceivedDataPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReceivedDataPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ReceivedDataPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOrBuilder.java
new file mode 100644
index 000000000..d7fad1738
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOrBuilder.java
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface ReceivedDataPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:ReceivedDataPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string dataId = 1;
+ */
+ java.lang.String getDataId();
+
+ /**
+ * string dataId = 1;
+ */
+ com.google.protobuf.ByteString getDataIdBytes();
+
+ /**
+ * string group = 2;
+ */
+ java.lang.String getGroup();
+
+ /**
+ * string group = 2;
+ */
+ com.google.protobuf.ByteString getGroupBytes();
+
+ /**
+ * string instanceId = 3;
+ */
+ java.lang.String getInstanceId();
+
+ /**
+ * string instanceId = 3;
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ * string segment = 4;
+ */
+ java.lang.String getSegment();
+
+ /**
+ * string segment = 4;
+ */
+ com.google.protobuf.ByteString getSegmentBytes();
+
+ /**
+ * string scope = 5;
+ */
+ java.lang.String getScope();
+
+ /**
+ * string scope = 5;
+ */
+ com.google.protobuf.ByteString getScopeBytes();
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ java.util.List getSubscriberRegistIdsList();
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ int getSubscriberRegistIdsCount();
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ java.lang.String getSubscriberRegistIds(int index);
+
+ /**
+ * repeated string subscriberRegistIds = 6;
+ */
+ com.google.protobuf.ByteString getSubscriberRegistIdsBytes(int index);
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+ int getDataCount();
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+ boolean containsData(java.lang.String key);
+
+ /**
+ * Use {@link #getDataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getData();
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+ java.util.Map getDataMap();
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrDefault(java.lang.String key,
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb defaultValue);
+
+ /**
+ * map<string, .DataBoxesPb> data = 7;
+ */
+
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb getDataOrThrow(java.lang.String key);
+
+ /**
+ * int64 version = 8;
+ */
+ long getVersion();
+
+ /**
+ * string localZone = 9;
+ */
+ java.lang.String getLocalZone();
+
+ /**
+ * string localZone = 9;
+ */
+ com.google.protobuf.ByteString getLocalZoneBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOuterClass.java
new file mode 100644
index 000000000..74e3fe590
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ReceivedDataPbOuterClass.java
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ReceivedDataPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class ReceivedDataPbOuterClass {
+ private ReceivedDataPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceivedDataPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceivedDataPb_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_ReceivedDataPb_DataEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ReceivedDataPb_DataEntry_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\024ReceivedDataPb.proto\032\021DataBoxesPb.prot"
+ + "o\"\210\002\n\016ReceivedDataPb\022\016\n\006dataId\030\001 \001(\t\022\r\n\005"
+ + "group\030\002 \001(\t\022\022\n\ninstanceId\030\003 \001(\t\022\017\n\007segme"
+ + "nt\030\004 \001(\t\022\r\n\005scope\030\005 \001(\t\022\033\n\023subscriberReg"
+ + "istIds\030\006 \003(\t\022\'\n\004data\030\007 \003(\0132\031.ReceivedDat"
+ + "aPb.DataEntry\022\017\n\007version\030\010 \001(\003\022\021\n\tlocalZ"
+ + "one\030\t \001(\t\0329\n\tDataEntry\022\013\n\003key\030\001 \001(\t\022\033\n\005v"
+ + "alue\030\002 \001(\0132\014.DataBoxesPb:\0028\001B7\n/com.alip"
+ + "ay.sofa.registry.common.model.client.pbP"
+ + "\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] { com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_ReceivedDataPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_ReceivedDataPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReceivedDataPb_descriptor, new java.lang.String[] { "DataId", "Group",
+ "InstanceId", "Segment", "Scope", "SubscriberRegistIds", "Data", "Version",
+ "LocalZone", });
+ internal_static_ReceivedDataPb_DataEntry_descriptor = internal_static_ReceivedDataPb_descriptor
+ .getNestedTypes().get(0);
+ internal_static_ReceivedDataPb_DataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReceivedDataPb_DataEntry_descriptor, new java.lang.String[] { "Key",
+ "Value", });
+ com.alipay.sofa.registry.common.model.client.pb.DataBoxesPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePb.java
new file mode 100644
index 000000000..540ef1915
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePb.java
@@ -0,0 +1,841 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: RegisterResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code RegisterResponsePb}
+ */
+public final class RegisterResponsePb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:RegisterResponsePb)
+ RegisterResponsePbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use RegisterResponsePb.newBuilder() to construct.
+ private RegisterResponsePb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RegisterResponsePb() {
+ success_ = false;
+ registId_ = "";
+ version_ = 0L;
+ refused_ = false;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private RegisterResponsePb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ success_ = input.readBool();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ registId_ = s;
+ break;
+ }
+ case 24: {
+
+ version_ = input.readInt64();
+ break;
+ }
+ case 32: {
+
+ refused_ = input.readBool();
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOuterClass.internal_static_RegisterResponsePb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOuterClass.internal_static_RegisterResponsePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb.Builder.class);
+ }
+
+ public static final int SUCCESS_FIELD_NUMBER = 1;
+ private boolean success_;
+
+ /**
+ * bool success = 1;
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ public static final int REGISTID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object registId_;
+
+ /**
+ * string registId = 2;
+ */
+ public java.lang.String getRegistId() {
+ java.lang.Object ref = registId_;
+ 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();
+ registId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string registId = 2;
+ */
+ public com.google.protobuf.ByteString getRegistIdBytes() {
+ java.lang.Object ref = registId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ registId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 3;
+ private long version_;
+
+ /**
+ * int64 version = 3;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ public static final int REFUSED_FIELD_NUMBER = 4;
+ private boolean refused_;
+
+ /**
+ * bool refused = 4;
+ */
+ public boolean getRefused() {
+ return refused_;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object message_;
+
+ /**
+ * string message = 5;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string message = 5;
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (success_ != false) {
+ output.writeBool(1, success_);
+ }
+ if (!getRegistIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registId_);
+ }
+ if (version_ != 0L) {
+ output.writeInt64(3, version_);
+ }
+ if (refused_ != false) {
+ output.writeBool(4, refused_);
+ }
+ if (!getMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (success_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, success_);
+ }
+ if (!getRegistIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registId_);
+ }
+ if (version_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, version_);
+ }
+ if (refused_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, refused_);
+ }
+ if (!getMessageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb other = (com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb) obj;
+
+ boolean result = true;
+ result = result && (getSuccess() == other.getSuccess());
+ result = result && getRegistId().equals(other.getRegistId());
+ result = result && (getVersion() == other.getVersion());
+ result = result && (getRefused() == other.getRefused());
+ result = result && getMessage().equals(other.getMessage());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess());
+ hash = (37 * hash) + REGISTID_FIELD_NUMBER;
+ hash = (53 * hash) + getRegistId().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion());
+ hash = (37 * hash) + REFUSED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRefused());
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb 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 com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb 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 com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code RegisterResponsePb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:RegisterResponsePb)
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOuterClass.internal_static_RegisterResponsePb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOuterClass.internal_static_RegisterResponsePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ success_ = false;
+
+ registId_ = "";
+
+ version_ = 0L;
+
+ refused_ = false;
+
+ message_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePbOuterClass.internal_static_RegisterResponsePb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb build() {
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb result = new com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb(
+ this);
+ result.success_ = success_;
+ result.registId_ = registId_;
+ result.version_ = version_;
+ result.refused_ = refused_;
+ result.message_ = message_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb
+ .getDefaultInstance())
+ return this;
+ if (other.getSuccess() != false) {
+ setSuccess(other.getSuccess());
+ }
+ if (!other.getRegistId().isEmpty()) {
+ registId_ = other.registId_;
+ onChanged();
+ }
+ if (other.getVersion() != 0L) {
+ setVersion(other.getVersion());
+ }
+ if (other.getRefused() != false) {
+ setRefused(other.getRefused());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean success_;
+
+ /**
+ * bool success = 1;
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ /**
+ * bool success = 1;
+ */
+ public Builder setSuccess(boolean value) {
+
+ success_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * bool success = 1;
+ */
+ public Builder clearSuccess() {
+
+ success_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object registId_ = "";
+
+ /**
+ * string registId = 2;
+ */
+ public java.lang.String getRegistId() {
+ java.lang.Object ref = registId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ registId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string registId = 2;
+ */
+ public com.google.protobuf.ByteString getRegistIdBytes() {
+ java.lang.Object ref = registId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ registId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string registId = 2;
+ */
+ public Builder setRegistId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ registId_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string registId = 2;
+ */
+ public Builder clearRegistId() {
+
+ registId_ = getDefaultInstance().getRegistId();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string registId = 2;
+ */
+ public Builder setRegistIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ registId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long version_;
+
+ /**
+ * int64 version = 3;
+ */
+ public long getVersion() {
+ return version_;
+ }
+
+ /**
+ * int64 version = 3;
+ */
+ public Builder setVersion(long value) {
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 version = 3;
+ */
+ public Builder clearVersion() {
+
+ version_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private boolean refused_;
+
+ /**
+ * bool refused = 4;
+ */
+ public boolean getRefused() {
+ return refused_;
+ }
+
+ /**
+ * bool refused = 4;
+ */
+ public Builder setRefused(boolean value) {
+
+ refused_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * bool refused = 4;
+ */
+ public Builder clearRefused() {
+
+ refused_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+
+ /**
+ * string message = 5;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string message = 5;
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string message = 5;
+ */
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string message = 5;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string message = 5;
+ */
+ public Builder setMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:RegisterResponsePb)
+ }
+
+ // @@protoc_insertion_point(class_scope:RegisterResponsePb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public RegisterResponsePb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RegisterResponsePb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.RegisterResponsePb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOrBuilder.java
new file mode 100644
index 000000000..8286a2750
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOrBuilder.java
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: RegisterResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface RegisterResponsePbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:RegisterResponsePb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool success = 1;
+ */
+ boolean getSuccess();
+
+ /**
+ * string registId = 2;
+ */
+ java.lang.String getRegistId();
+
+ /**
+ * string registId = 2;
+ */
+ com.google.protobuf.ByteString getRegistIdBytes();
+
+ /**
+ * int64 version = 3;
+ */
+ long getVersion();
+
+ /**
+ * bool refused = 4;
+ */
+ boolean getRefused();
+
+ /**
+ * string message = 5;
+ */
+ java.lang.String getMessage();
+
+ /**
+ * string message = 5;
+ */
+ com.google.protobuf.ByteString getMessageBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOuterClass.java
new file mode 100644
index 000000000..39ad50178
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/RegisterResponsePbOuterClass.java
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: RegisterResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class RegisterResponsePbOuterClass {
+ private RegisterResponsePbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_RegisterResponsePb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RegisterResponsePb_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\030RegisterResponsePb.proto\"j\n\022RegisterRe"
+ + "sponsePb\022\017\n\007success\030\001 \001(\010\022\020\n\010registId\030\002 "
+ + "\001(\t\022\017\n\007version\030\003 \001(\003\022\017\n\007refused\030\004 \001(\010\022\017\n"
+ + "\007message\030\005 \001(\tB7\n/com.alipay.sofa.regist"
+ + "ry.common.model.client.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_RegisterResponsePb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_RegisterResponsePb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_RegisterResponsePb_descriptor, new java.lang.String[] { "Success",
+ "RegistId", "Version", "Refused", "Message", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPb.java
new file mode 100644
index 000000000..c9af7ee97
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPb.java
@@ -0,0 +1,595 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ResultPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code ResultPb}
+ */
+public final class ResultPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:ResultPb)
+ ResultPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ResultPb.newBuilder() to construct.
+ private ResultPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ResultPb() {
+ success_ = false;
+ message_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ResultPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ success_ = input.readBool();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ message_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.internal_static_ResultPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.internal_static_ResultPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.Builder.class);
+ }
+
+ public static final int SUCCESS_FIELD_NUMBER = 1;
+ private boolean success_;
+
+ /**
+ * bool success = 1;
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object message_;
+
+ /**
+ * string message = 2;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string message = 2;
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (success_ != false) {
+ output.writeBool(1, success_);
+ }
+ if (!getMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (success_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, success_);
+ }
+ if (!getMessageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.ResultPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb other = (com.alipay.sofa.registry.common.model.client.pb.ResultPb) obj;
+
+ boolean result = true;
+ result = result && (getSuccess() == other.getSuccess());
+ result = result && getMessage().equals(other.getMessage());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess());
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb 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 com.alipay.sofa.registry.common.model.client.pb.ResultPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb 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 com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.ResultPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code ResultPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:ResultPb)
+ com.alipay.sofa.registry.common.model.client.pb.ResultPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.internal_static_ResultPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.internal_static_ResultPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.ResultPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ success_ = false;
+
+ message_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.internal_static_ResultPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.ResultPb.getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb result = new com.alipay.sofa.registry.common.model.client.pb.ResultPb(
+ this);
+ result.success_ = success_;
+ result.message_ = message_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.ResultPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.ResultPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.ResultPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.ResultPb
+ .getDefaultInstance())
+ return this;
+ if (other.getSuccess() != false) {
+ setSuccess(other.getSuccess());
+ }
+ if (!other.getMessage().isEmpty()) {
+ message_ = other.message_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.ResultPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean success_;
+
+ /**
+ * bool success = 1;
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ /**
+ * bool success = 1;
+ */
+ public Builder setSuccess(boolean value) {
+
+ success_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * bool success = 1;
+ */
+ public Builder clearSuccess() {
+
+ success_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object message_ = "";
+
+ /**
+ * string message = 2;
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string message = 2;
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string message = 2;
+ */
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string message = 2;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string message = 2;
+ */
+ public Builder setMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:ResultPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:ResultPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.ResultPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.ResultPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.ResultPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public ResultPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ResultPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOrBuilder.java
new file mode 100644
index 000000000..88ae891ca
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOrBuilder.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ResultPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface ResultPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:ResultPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool success = 1;
+ */
+ boolean getSuccess();
+
+ /**
+ * string message = 2;
+ */
+ java.lang.String getMessage();
+
+ /**
+ * string message = 2;
+ */
+ com.google.protobuf.ByteString getMessageBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOuterClass.java
new file mode 100644
index 000000000..7b6f974ef
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ResultPbOuterClass.java
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ResultPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class ResultPbOuterClass {
+ private ResultPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_ResultPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ResultPb_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\016ResultPb.proto\",\n\010ResultPb\022\017\n\007success\030"
+ + "\001 \001(\010\022\017\n\007message\030\002 \001(\tB7\n/com.alipay.sof"
+ + "a.registry.common.model.client.pbP\001Z\002pbb"
+ + "\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_ResultPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_ResultPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ResultPb_descriptor, new java.lang.String[] { "Success", "Message", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPb.java
new file mode 100644
index 000000000..f388fe352
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPb.java
@@ -0,0 +1,125 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ScopeEnumPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf enum {@code ScopeEnumPb}
+ */
+public enum ScopeEnumPb implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * zone = 0;
+ */
+ zone(0),
+ /**
+ * dataCenter = 1;
+ */
+ dataCenter(1),
+ /**
+ * global = 2;
+ */
+ global(2), UNRECOGNIZED(-1), ;
+
+ /**
+ * zone = 0;
+ */
+ public static final int zone_VALUE = 0;
+ /**
+ * dataCenter = 1;
+ */
+ public static final int dataCenter_VALUE = 1;
+ /**
+ * global = 2;
+ */
+ public static final int global_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ScopeEnumPb valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ScopeEnumPb forNumber(int value) {
+ switch (value) {
+ case 0:
+ return zone;
+ case 1:
+ return dataCenter;
+ case 2:
+ return global;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
+ public ScopeEnumPb findValueByNumber(int number) {
+ return ScopeEnumPb
+ .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 com.alipay.sofa.registry.common.model.client.pb.ScopeEnumPbOuterClass
+ .getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final ScopeEnumPb[] VALUES = values();
+
+ public static ScopeEnumPb valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private ScopeEnumPb(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:ScopeEnumPb)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPbOuterClass.java
new file mode 100644
index 000000000..f02566040
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/ScopeEnumPbOuterClass.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ScopeEnumPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class ScopeEnumPbOuterClass {
+ private ScopeEnumPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+ static {
+ java.lang.String[] descriptorData = { "\n\021ScopeEnumPb.proto*3\n\013ScopeEnumPb\022\010\n\004zo"
+ + "ne\020\000\022\016\n\ndataCenter\020\001\022\n\n\006global\020\002B7\n/com."
+ + "alipay.sofa.registry.common.model.client"
+ + ".pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPb.java
new file mode 100644
index 000000000..e6824617a
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPb.java
@@ -0,0 +1,850 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SubscriberRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code SubscriberRegisterPb}
+ */
+public final class SubscriberRegisterPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:SubscriberRegisterPb)
+ SubscriberRegisterPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SubscriberRegisterPb.newBuilder() to construct.
+ private SubscriberRegisterPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SubscriberRegisterPb() {
+ scope_ = "";
+ assembleType_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SubscriberRegisterPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ scope_ = s;
+ break;
+ }
+ case 18: {
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder subBuilder = null;
+ if (baseRegister_ != null) {
+ subBuilder = baseRegister_.toBuilder();
+ }
+ baseRegister_ = input
+ .readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(baseRegister_);
+ baseRegister_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ assembleType_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.Builder.class);
+ }
+
+ public static final int SCOPE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object scope_;
+
+ /**
+ * string scope = 1;
+ */
+ public java.lang.String getScope() {
+ java.lang.Object ref = scope_;
+ 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();
+ scope_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string scope = 1;
+ */
+ public com.google.protobuf.ByteString getScopeBytes() {
+ java.lang.Object ref = scope_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ scope_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BASEREGISTER_FIELD_NUMBER = 2;
+ private com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb baseRegister_;
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public boolean hasBaseRegister() {
+ return baseRegister_ != null;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister() {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
+ return getBaseRegister();
+ }
+
+ public static final int ASSEMBLETYPE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object assembleType_;
+
+ /**
+ * string assembleType = 3;
+ */
+ public java.lang.String getAssembleType() {
+ java.lang.Object ref = assembleType_;
+ 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();
+ assembleType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string assembleType = 3;
+ */
+ public com.google.protobuf.ByteString getAssembleTypeBytes() {
+ java.lang.Object ref = assembleType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ assembleType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getScopeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_);
+ }
+ if (baseRegister_ != null) {
+ output.writeMessage(2, getBaseRegister());
+ }
+ if (!getAssembleTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assembleType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getScopeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_);
+ }
+ if (baseRegister_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBaseRegister());
+ }
+ if (!getAssembleTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, assembleType_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb other = (com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb) obj;
+
+ boolean result = true;
+ result = result && getScope().equals(other.getScope());
+ result = result && (hasBaseRegister() == other.hasBaseRegister());
+ if (hasBaseRegister()) {
+ result = result && getBaseRegister().equals(other.getBaseRegister());
+ }
+ result = result && getAssembleType().equals(other.getAssembleType());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + getScope().hashCode();
+ if (hasBaseRegister()) {
+ hash = (37 * hash) + BASEREGISTER_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseRegister().hashCode();
+ }
+ hash = (37 * hash) + ASSEMBLETYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getAssembleType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb 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 com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code SubscriberRegisterPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:SubscriberRegisterPb)
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ scope_ = "";
+
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = null;
+ } else {
+ baseRegister_ = null;
+ baseRegisterBuilder_ = null;
+ }
+ assembleType_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPbOuterClass.internal_static_SubscriberRegisterPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb result = new com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb(
+ this);
+ result.scope_ = scope_;
+ if (baseRegisterBuilder_ == null) {
+ result.baseRegister_ = baseRegister_;
+ } else {
+ result.baseRegister_ = baseRegisterBuilder_.build();
+ }
+ result.assembleType_ = assembleType_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getScope().isEmpty()) {
+ scope_ = other.scope_;
+ onChanged();
+ }
+ if (other.hasBaseRegister()) {
+ mergeBaseRegister(other.getBaseRegister());
+ }
+ if (!other.getAssembleType().isEmpty()) {
+ assembleType_ = other.assembleType_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object scope_ = "";
+
+ /**
+ * string scope = 1;
+ */
+ public java.lang.String getScope() {
+ java.lang.Object ref = scope_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ scope_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string scope = 1;
+ */
+ public com.google.protobuf.ByteString getScopeBytes() {
+ java.lang.Object ref = scope_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ scope_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string scope = 1;
+ */
+ public Builder setScope(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ scope_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string scope = 1;
+ */
+ public Builder clearScope() {
+
+ scope_ = getDefaultInstance().getScope();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string scope = 1;
+ */
+ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ scope_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb baseRegister_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3 baseRegisterBuilder_;
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public boolean hasBaseRegister() {
+ return baseRegisterBuilder_ != null || baseRegister_ != null;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister() {
+ if (baseRegisterBuilder_ == null) {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ } else {
+ return baseRegisterBuilder_.getMessage();
+ }
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder setBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb value) {
+ if (baseRegisterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseRegister_ = value;
+ onChanged();
+ } else {
+ baseRegisterBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder setBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder builderForValue) {
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = builderForValue.build();
+ onChanged();
+ } else {
+ baseRegisterBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder mergeBaseRegister(com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb value) {
+ if (baseRegisterBuilder_ == null) {
+ if (baseRegister_ != null) {
+ baseRegister_ = com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .newBuilder(baseRegister_).mergeFrom(value).buildPartial();
+ } else {
+ baseRegister_ = value;
+ }
+ onChanged();
+ } else {
+ baseRegisterBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public Builder clearBaseRegister() {
+ if (baseRegisterBuilder_ == null) {
+ baseRegister_ = null;
+ onChanged();
+ } else {
+ baseRegister_ = null;
+ baseRegisterBuilder_ = null;
+ }
+
+ return this;
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb.Builder getBaseRegisterBuilder() {
+
+ onChanged();
+ return getBaseRegisterFieldBuilder().getBuilder();
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder() {
+ if (baseRegisterBuilder_ != null) {
+ return baseRegisterBuilder_.getMessageOrBuilder();
+ } else {
+ return baseRegister_ == null ? com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb
+ .getDefaultInstance() : baseRegister_;
+ }
+ }
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3 getBaseRegisterFieldBuilder() {
+ if (baseRegisterBuilder_ == null) {
+ baseRegisterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(
+ getBaseRegister(), getParentForChildren(), isClean());
+ baseRegister_ = null;
+ }
+ return baseRegisterBuilder_;
+ }
+
+ private java.lang.Object assembleType_ = "";
+
+ /**
+ * string assembleType = 3;
+ */
+ public java.lang.String getAssembleType() {
+ java.lang.Object ref = assembleType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ assembleType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string assembleType = 3;
+ */
+ public com.google.protobuf.ByteString getAssembleTypeBytes() {
+ java.lang.Object ref = assembleType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ assembleType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string assembleType = 3;
+ */
+ public Builder setAssembleType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ assembleType_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string assembleType = 3;
+ */
+ public Builder clearAssembleType() {
+
+ assembleType_ = getDefaultInstance().getAssembleType();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string assembleType = 3;
+ */
+ public Builder setAssembleTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ assembleType_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:SubscriberRegisterPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:SubscriberRegisterPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public SubscriberRegisterPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SubscriberRegisterPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SubscriberRegisterPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOrBuilder.java
new file mode 100644
index 000000000..4141b45e7
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOrBuilder.java
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SubscriberRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface SubscriberRegisterPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:SubscriberRegisterPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string scope = 1;
+ */
+ java.lang.String getScope();
+
+ /**
+ * string scope = 1;
+ */
+ com.google.protobuf.ByteString getScopeBytes();
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ boolean hasBaseRegister();
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPb getBaseRegister();
+
+ /**
+ * .BaseRegisterPb baseRegister = 2;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOrBuilder getBaseRegisterOrBuilder();
+
+ /**
+ * string assembleType = 3;
+ */
+ java.lang.String getAssembleType();
+
+ /**
+ * string assembleType = 3;
+ */
+ com.google.protobuf.ByteString getAssembleTypeBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOuterClass.java
new file mode 100644
index 000000000..7375166eb
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SubscriberRegisterPbOuterClass.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SubscriberRegisterPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class SubscriberRegisterPbOuterClass {
+ private SubscriberRegisterPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_SubscriberRegisterPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SubscriberRegisterPb_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\032SubscriberRegisterPb.proto\032\024BaseRegist"
+ + "erPb.proto\"b\n\024SubscriberRegisterPb\022\r\n\005sc"
+ + "ope\030\001 \001(\t\022%\n\014baseRegister\030\002 \001(\0132\017.BaseRe"
+ + "gisterPb\022\024\n\014assembleType\030\003 \001(\tB7\n/com.al"
+ + "ipay.sofa.registry.common.model.client.p"
+ + "bP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] { com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_SubscriberRegisterPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_SubscriberRegisterPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_SubscriberRegisterPb_descriptor, new java.lang.String[] { "Scope",
+ "BaseRegister", "AssembleType", });
+ com.alipay.sofa.registry.common.model.client.pb.BaseRegisterPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPb.java
new file mode 100644
index 000000000..e2bb8926b
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPb.java
@@ -0,0 +1,661 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigRequestPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code SyncConfigRequestPb}
+ */
+public final class SyncConfigRequestPb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:SyncConfigRequestPb)
+ SyncConfigRequestPbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SyncConfigRequestPb.newBuilder() to construct.
+ private SyncConfigRequestPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SyncConfigRequestPb() {
+ dataCenter_ = "";
+ zone_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SyncConfigRequestPb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataCenter_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ zone_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOuterClass.internal_static_SyncConfigRequestPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOuterClass.internal_static_SyncConfigRequestPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb.Builder.class);
+ }
+
+ public static final int DATACENTER_FIELD_NUMBER = 1;
+ private volatile java.lang.Object dataCenter_;
+
+ /**
+ * string dataCenter = 1;
+ */
+ public java.lang.String getDataCenter() {
+ java.lang.Object ref = dataCenter_;
+ 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();
+ dataCenter_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string dataCenter = 1;
+ */
+ public com.google.protobuf.ByteString getDataCenterBytes() {
+ java.lang.Object ref = dataCenter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataCenter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object zone_;
+
+ /**
+ * string zone = 2;
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ 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();
+ zone_ = s;
+ return s;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDataCenterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataCenter_);
+ }
+ if (!getZoneBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!getDataCenterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataCenter_);
+ }
+ if (!getZoneBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb other = (com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb) obj;
+
+ boolean result = true;
+ result = result && getDataCenter().equals(other.getDataCenter());
+ result = result && getZone().equals(other.getZone());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATACENTER_FIELD_NUMBER;
+ hash = (53 * hash) + getDataCenter().hashCode();
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb 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 com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb 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 com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code SyncConfigRequestPb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:SyncConfigRequestPb)
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOuterClass.internal_static_SyncConfigRequestPb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOuterClass.internal_static_SyncConfigRequestPb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ dataCenter_ = "";
+
+ zone_ = "";
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPbOuterClass.internal_static_SyncConfigRequestPb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb build() {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb result = new com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb(
+ this);
+ result.dataCenter_ = dataCenter_;
+ result.zone_ = zone_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb
+ .getDefaultInstance())
+ return this;
+ if (!other.getDataCenter().isEmpty()) {
+ dataCenter_ = other.dataCenter_;
+ onChanged();
+ }
+ if (!other.getZone().isEmpty()) {
+ zone_ = other.zone_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object dataCenter_ = "";
+
+ /**
+ * string dataCenter = 1;
+ */
+ public java.lang.String getDataCenter() {
+ java.lang.Object ref = dataCenter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataCenter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string dataCenter = 1;
+ */
+ public com.google.protobuf.ByteString getDataCenterBytes() {
+ java.lang.Object ref = dataCenter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ dataCenter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string dataCenter = 1;
+ */
+ public Builder setDataCenter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataCenter_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataCenter = 1;
+ */
+ public Builder clearDataCenter() {
+
+ dataCenter_ = getDefaultInstance().getDataCenter();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string dataCenter = 1;
+ */
+ public Builder setDataCenterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataCenter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object zone_ = "";
+
+ /**
+ * string zone = 2;
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder clearZone() {
+
+ zone_ = getDefaultInstance().getZone();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * string zone = 2;
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:SyncConfigRequestPb)
+ }
+
+ // @@protoc_insertion_point(class_scope:SyncConfigRequestPb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public SyncConfigRequestPb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SyncConfigRequestPb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigRequestPb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOrBuilder.java
new file mode 100644
index 000000000..a3e7f949a
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOrBuilder.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigRequestPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface SyncConfigRequestPbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:SyncConfigRequestPb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string dataCenter = 1;
+ */
+ java.lang.String getDataCenter();
+
+ /**
+ * string dataCenter = 1;
+ */
+ com.google.protobuf.ByteString getDataCenterBytes();
+
+ /**
+ * string zone = 2;
+ */
+ java.lang.String getZone();
+
+ /**
+ * string zone = 2;
+ */
+ com.google.protobuf.ByteString getZoneBytes();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOuterClass.java
new file mode 100644
index 000000000..f89db6fa0
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigRequestPbOuterClass.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigRequestPb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class SyncConfigRequestPbOuterClass {
+ private SyncConfigRequestPbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_SyncConfigRequestPb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SyncConfigRequestPb_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\031SyncConfigRequestPb.proto\"7\n\023SyncConfi"
+ + "gRequestPb\022\022\n\ndataCenter\030\001 \001(\t\022\014\n\004zone\030\002"
+ + " \001(\tB7\n/com.alipay.sofa.registry.common."
+ + "model.client.pbP\001Z\002pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
+ internal_static_SyncConfigRequestPb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_SyncConfigRequestPb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_SyncConfigRequestPb_descriptor, new java.lang.String[] { "DataCenter",
+ "Zone", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePb.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePb.java
new file mode 100644
index 000000000..dbcce0360
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePb.java
@@ -0,0 +1,840 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+/**
+ * Protobuf type {@code SyncConfigResponsePb}
+ */
+public final class SyncConfigResponsePb extends com.google.protobuf.GeneratedMessageV3 implements
+// @@protoc_insertion_point(message_implements:SyncConfigResponsePb)
+ SyncConfigResponsePbOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use SyncConfigResponsePb.newBuilder() to construct.
+ private SyncConfigResponsePb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SyncConfigResponsePb() {
+ availableSegments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ retryInterval_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SyncConfigResponsePb(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
+ .newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.Builder subBuilder = null;
+ if (result_ != null) {
+ subBuilder = result_.toBuilder();
+ }
+ result_ = input.readMessage(
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(result_);
+ result_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ availableSegments_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ availableSegments_.add(s);
+ break;
+ }
+ case 24: {
+
+ retryInterval_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ availableSegments_ = availableSegments_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOuterClass.internal_static_SyncConfigResponsePb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOuterClass.internal_static_SyncConfigResponsePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int RESULT_FIELD_NUMBER = 1;
+ private com.alipay.sofa.registry.common.model.client.pb.ResultPb result_;
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public boolean hasResult() {
+ return result_ != null;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb getResult() {
+ return result_ == null ? com.alipay.sofa.registry.common.model.client.pb.ResultPb
+ .getDefaultInstance() : result_;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPbOrBuilder getResultOrBuilder() {
+ return getResult();
+ }
+
+ public static final int AVAILABLESEGMENTS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList availableSegments_;
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getAvailableSegmentsList() {
+ return availableSegments_;
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public int getAvailableSegmentsCount() {
+ return availableSegments_.size();
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public java.lang.String getAvailableSegments(int index) {
+ return availableSegments_.get(index);
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public com.google.protobuf.ByteString getAvailableSegmentsBytes(int index) {
+ return availableSegments_.getByteString(index);
+ }
+
+ public static final int RETRYINTERVAL_FIELD_NUMBER = 3;
+ private int retryInterval_;
+
+ /**
+ * int32 retryInterval = 3;
+ */
+ public int getRetryInterval() {
+ return retryInterval_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (result_ != null) {
+ output.writeMessage(1, getResult());
+ }
+ for (int i = 0; i < availableSegments_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2,
+ availableSegments_.getRaw(i));
+ }
+ if (retryInterval_ != 0) {
+ output.writeInt32(3, retryInterval_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (result_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResult());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < availableSegments_.size(); i++) {
+ dataSize += computeStringSizeNoTag(availableSegments_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getAvailableSegmentsList().size();
+ }
+ if (retryInterval_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, retryInterval_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb)) {
+ return super.equals(obj);
+ }
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb other = (com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb) obj;
+
+ boolean result = true;
+ result = result && (hasResult() == other.hasResult());
+ if (hasResult()) {
+ result = result && getResult().equals(other.getResult());
+ }
+ result = result && getAvailableSegmentsList().equals(other.getAvailableSegmentsList());
+ result = result && (getRetryInterval() == other.getRetryInterval());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasResult()) {
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getResult().hashCode();
+ }
+ if (getAvailableSegmentsCount() > 0) {
+ hash = (37 * hash) + AVAILABLESEGMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailableSegmentsList().hashCode();
+ }
+ hash = (37 * hash) + RETRYINTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getRetryInterval();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb 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 com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb 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 com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input,
+ extensionRegistry);
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code SyncConfigResponsePb}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:SyncConfigResponsePb)
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOuterClass.internal_static_SyncConfigResponsePb_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOuterClass.internal_static_SyncConfigResponsePb_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb.class,
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb.Builder.class);
+ }
+
+ // Construct using com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ }
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (resultBuilder_ == null) {
+ result_ = null;
+ } else {
+ result_ = null;
+ resultBuilder_ = null;
+ }
+ availableSegments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ retryInterval_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePbOuterClass.internal_static_SyncConfigResponsePb_descriptor;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb getDefaultInstanceForType() {
+ return com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb
+ .getDefaultInstance();
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb build() {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb buildPartial() {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb result = new com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb(
+ this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (resultBuilder_ == null) {
+ result.result_ = result_;
+ } else {
+ result.result_ = resultBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ availableSegments_ = availableSegments_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.availableSegments_ = availableSegments_;
+ result.retryInterval_ = retryInterval_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+
+ public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+
+ public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+
+ public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb) {
+ return mergeFrom((com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb other) {
+ if (other == com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb
+ .getDefaultInstance())
+ return this;
+ if (other.hasResult()) {
+ mergeResult(other.getResult());
+ }
+ if (!other.availableSegments_.isEmpty()) {
+ if (availableSegments_.isEmpty()) {
+ availableSegments_ = other.availableSegments_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAvailableSegmentsIsMutable();
+ availableSegments_.addAll(other.availableSegments_);
+ }
+ onChanged();
+ }
+ if (other.getRetryInterval() != 0) {
+ setRetryInterval(other.getRetryInterval());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb) e
+ .getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.alipay.sofa.registry.common.model.client.pb.ResultPb result_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3 resultBuilder_;
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public boolean hasResult() {
+ return resultBuilder_ != null || result_ != null;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb getResult() {
+ if (resultBuilder_ == null) {
+ return result_ == null ? com.alipay.sofa.registry.common.model.client.pb.ResultPb
+ .getDefaultInstance() : result_;
+ } else {
+ return resultBuilder_.getMessage();
+ }
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public Builder setResult(com.alipay.sofa.registry.common.model.client.pb.ResultPb value) {
+ if (resultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ onChanged();
+ } else {
+ resultBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public Builder setResult(com.alipay.sofa.registry.common.model.client.pb.ResultPb.Builder builderForValue) {
+ if (resultBuilder_ == null) {
+ result_ = builderForValue.build();
+ onChanged();
+ } else {
+ resultBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public Builder mergeResult(com.alipay.sofa.registry.common.model.client.pb.ResultPb value) {
+ if (resultBuilder_ == null) {
+ if (result_ != null) {
+ result_ = com.alipay.sofa.registry.common.model.client.pb.ResultPb
+ .newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+ onChanged();
+ } else {
+ resultBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public Builder clearResult() {
+ if (resultBuilder_ == null) {
+ result_ = null;
+ onChanged();
+ } else {
+ result_ = null;
+ resultBuilder_ = null;
+ }
+
+ return this;
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPb.Builder getResultBuilder() {
+
+ onChanged();
+ return getResultFieldBuilder().getBuilder();
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ public com.alipay.sofa.registry.common.model.client.pb.ResultPbOrBuilder getResultOrBuilder() {
+ if (resultBuilder_ != null) {
+ return resultBuilder_.getMessageOrBuilder();
+ } else {
+ return result_ == null ? com.alipay.sofa.registry.common.model.client.pb.ResultPb
+ .getDefaultInstance() : result_;
+ }
+ }
+
+ /**
+ * .ResultPb result = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3 getResultFieldBuilder() {
+ if (resultBuilder_ == null) {
+ resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(
+ getResult(), getParentForChildren(), isClean());
+ result_ = null;
+ }
+ return resultBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList availableSegments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureAvailableSegmentsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ availableSegments_ = new com.google.protobuf.LazyStringArrayList(availableSegments_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getAvailableSegmentsList() {
+ return availableSegments_.getUnmodifiableView();
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public int getAvailableSegmentsCount() {
+ return availableSegments_.size();
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public java.lang.String getAvailableSegments(int index) {
+ return availableSegments_.get(index);
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public com.google.protobuf.ByteString getAvailableSegmentsBytes(int index) {
+ return availableSegments_.getByteString(index);
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public Builder setAvailableSegments(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAvailableSegmentsIsMutable();
+ availableSegments_.set(index, value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public Builder addAvailableSegments(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAvailableSegmentsIsMutable();
+ availableSegments_.add(value);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public Builder addAllAvailableSegments(java.lang.Iterable values) {
+ ensureAvailableSegmentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableSegments_);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public Builder clearAvailableSegments() {
+ availableSegments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ public Builder addAvailableSegmentsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureAvailableSegmentsIsMutable();
+ availableSegments_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private int retryInterval_;
+
+ /**
+ * int32 retryInterval = 3;
+ */
+ public int getRetryInterval() {
+ return retryInterval_;
+ }
+
+ /**
+ * int32 retryInterval = 3;
+ */
+ public Builder setRetryInterval(int value) {
+
+ retryInterval_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int32 retryInterval = 3;
+ */
+ public Builder clearRetryInterval() {
+
+ retryInterval_ = 0;
+ onChanged();
+ return this;
+ }
+
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:SyncConfigResponsePb)
+ }
+
+ // @@protoc_insertion_point(class_scope:SyncConfigResponsePb)
+ private static final com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb();
+ }
+
+ public static com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ public SyncConfigResponsePb parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SyncConfigResponsePb(
+ input,
+ extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public com.alipay.sofa.registry.common.model.client.pb.SyncConfigResponsePb getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOrBuilder.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOrBuilder.java
new file mode 100644
index 000000000..e31ce58e5
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOrBuilder.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public interface SyncConfigResponsePbOrBuilder extends
+// @@protoc_insertion_point(interface_extends:SyncConfigResponsePb)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .ResultPb result = 1;
+ */
+ boolean hasResult();
+
+ /**
+ * .ResultPb result = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.ResultPb getResult();
+
+ /**
+ * .ResultPb result = 1;
+ */
+ com.alipay.sofa.registry.common.model.client.pb.ResultPbOrBuilder getResultOrBuilder();
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ java.util.List getAvailableSegmentsList();
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ int getAvailableSegmentsCount();
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ java.lang.String getAvailableSegments(int index);
+
+ /**
+ * repeated string availableSegments = 2;
+ */
+ com.google.protobuf.ByteString getAvailableSegmentsBytes(int index);
+
+ /**
+ * int32 retryInterval = 3;
+ */
+ int getRetryInterval();
+}
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOuterClass.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOuterClass.java
new file mode 100644
index 000000000..e9d83cc15
--- /dev/null
+++ b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/client/pb/SyncConfigResponsePbOuterClass.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SyncConfigResponsePb.proto
+
+package com.alipay.sofa.registry.common.model.client.pb;
+
+public final class SyncConfigResponsePbOuterClass {
+ private SyncConfigResponsePbOuterClass() {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor internal_static_SyncConfigResponsePb_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SyncConfigResponsePb_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\032SyncConfigResponsePb.proto\032\016ResultPb.p"
+ + "roto\"c\n\024SyncConfigResponsePb\022\031\n\006result\030\001"
+ + " \001(\0132\t.ResultPb\022\031\n\021availableSegments\030\002 \003"
+ + "(\t\022\025\n\rretryInterval\030\003 \001(\005B7\n/com.alipay."
+ + "sofa.registry.common.model.client.pbP\001Z\002"
+ + "pbb\006proto3" };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] { com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass
+ .getDescriptor(), }, assigner);
+ internal_static_SyncConfigResponsePb_descriptor = getDescriptor().getMessageTypes().get(0);
+ internal_static_SyncConfigResponsePb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_SyncConfigResponsePb_descriptor, new java.lang.String[] { "Result",
+ "AvailableSegments", "RetryInterval", });
+ com.alipay.sofa.registry.common.model.client.pb.ResultPbOuterClass.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/server/common/model/src/main/resources/proto/AppRevisionRegisterPb.proto b/server/common/model/src/main/resources/proto/AppRevisionRegisterPb.proto
new file mode 100644
index 000000000..d278e83dd
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/AppRevisionRegisterPb.proto
@@ -0,0 +1,23 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "proto";
+
+message AppRevisionRegisterPb{
+ string appname = 1;
+ string revision = 2;
+ map baseParams = 4;
+ repeated AppRevisionInterfacePb interfaces = 5;
+}
+
+
+message AppRevisionInterfacePb{
+ string dataId = 1;
+ string group = 2;
+ string instanceId = 3;
+ map serviceParams = 4;
+}
+
+message QueryValues{
+ repeated string values = 1;
+}
\ No newline at end of file
diff --git a/server/common/model/src/main/resources/proto/BaseRegisterPb.proto b/server/common/model/src/main/resources/proto/BaseRegisterPb.proto
new file mode 100644
index 000000000..5e21ae2c8
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/BaseRegisterPb.proto
@@ -0,0 +1,23 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+message BaseRegisterPb {
+ string instanceId = 1;
+ string zone = 2;
+ string appName = 3;
+ string dataId = 4;
+ string group = 5;
+ string processId = 6;
+ string registId = 7;
+ string clientId = 8;
+ string dataInfoId = 9;
+ string ip = 10;
+ int32 port = 11;
+ string eventType = 12;
+ int64 version = 13;
+ int64 timestamp = 14;
+ map attributes = 15;
+}
+
diff --git a/server/common/model/src/main/resources/proto/DataBoxPb.proto b/server/common/model/src/main/resources/proto/DataBoxPb.proto
new file mode 100644
index 000000000..15f763025
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/DataBoxPb.proto
@@ -0,0 +1,9 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+message DataBoxPb {
+ string data = 1;
+}
+
diff --git a/server/common/model/src/main/resources/proto/DataBoxesPb.proto b/server/common/model/src/main/resources/proto/DataBoxesPb.proto
new file mode 100644
index 000000000..bb09c9dd3
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/DataBoxesPb.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "DataBoxPb.proto";
+
+message DataBoxesPb {
+ repeated DataBoxPb data = 1;
+}
+
diff --git a/server/common/model/src/main/resources/proto/EventTypePb.proto b/server/common/model/src/main/resources/proto/EventTypePb.proto
new file mode 100644
index 000000000..c88dff1bf
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/EventTypePb.proto
@@ -0,0 +1,10 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+enum EventTypePb {
+ REGISTER = 0;
+ UNREGISTER = 1;
+}
+
diff --git a/server/common/model/src/main/resources/proto/PublisherRegisterPb.proto b/server/common/model/src/main/resources/proto/PublisherRegisterPb.proto
new file mode 100644
index 000000000..d3f915a0f
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/PublisherRegisterPb.proto
@@ -0,0 +1,14 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "DataBoxPb.proto";
+import "BaseRegisterPb.proto";
+
+message PublisherRegisterPb {
+ repeated DataBoxPb dataList = 1;
+
+ BaseRegisterPb baseRegister = 2;
+}
+
diff --git a/server/common/model/src/main/resources/proto/ReceivedConfigDataPb.proto b/server/common/model/src/main/resources/proto/ReceivedConfigDataPb.proto
new file mode 100644
index 000000000..80e1e3b57
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/ReceivedConfigDataPb.proto
@@ -0,0 +1,16 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "DataBoxPb.proto";
+
+message ReceivedConfigDataPb {
+ string dataId = 1;
+ string group = 2;
+ string instanceId = 3;
+ repeated string configuratorRegistIds = 4;
+ DataBoxPb dataBox = 5;
+ int64 version = 6;
+}
+
diff --git a/server/common/model/src/main/resources/proto/ReceivedDataPb.proto b/server/common/model/src/main/resources/proto/ReceivedDataPb.proto
new file mode 100644
index 000000000..11bad57ae
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/ReceivedDataPb.proto
@@ -0,0 +1,19 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "DataBoxesPb.proto";
+
+message ReceivedDataPb {
+ string dataId = 1;
+ string group = 2;
+ string instanceId = 3;
+ string segment = 4;
+ string scope = 5;
+ repeated string subscriberRegistIds = 6;
+ map data = 7;
+ int64 version = 8;
+ string localZone = 9;
+}
+
diff --git a/server/common/model/src/main/resources/proto/RegisterResponsePb.proto b/server/common/model/src/main/resources/proto/RegisterResponsePb.proto
new file mode 100644
index 000000000..3053ebf8d
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/RegisterResponsePb.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+message RegisterResponsePb {
+ bool success = 1;
+ string registId = 2;
+ int64 version = 3;
+ bool refused = 4;
+ string message = 5;
+}
+
diff --git a/server/common/model/src/main/resources/proto/ResultPb.proto b/server/common/model/src/main/resources/proto/ResultPb.proto
new file mode 100644
index 000000000..e8211bfe5
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/ResultPb.proto
@@ -0,0 +1,10 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+message ResultPb {
+ bool success = 1;
+ string message = 2;
+}
+
diff --git a/server/common/model/src/main/resources/proto/ScopeEnumPb.proto b/server/common/model/src/main/resources/proto/ScopeEnumPb.proto
new file mode 100644
index 000000000..8b89d7874
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/ScopeEnumPb.proto
@@ -0,0 +1,11 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+enum ScopeEnumPb {
+ zone = 0;
+ dataCenter = 1;
+ global = 2;
+}
+
diff --git a/server/common/model/src/main/resources/proto/SubscriberRegisterPb.proto b/server/common/model/src/main/resources/proto/SubscriberRegisterPb.proto
new file mode 100644
index 000000000..dd6dcb4cc
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/SubscriberRegisterPb.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "BaseRegisterPb.proto";
+
+message SubscriberRegisterPb {
+ string scope = 1;
+ BaseRegisterPb baseRegister = 2;
+ string assembleType = 3;
+}
+
diff --git a/server/common/model/src/main/resources/proto/SyncConfigRequestPb.proto b/server/common/model/src/main/resources/proto/SyncConfigRequestPb.proto
new file mode 100644
index 000000000..4fd1b4c40
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/SyncConfigRequestPb.proto
@@ -0,0 +1,10 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+message SyncConfigRequestPb {
+ string dataCenter = 1;
+ string zone = 2;
+}
+
diff --git a/server/common/model/src/main/resources/proto/SyncConfigResponsePb.proto b/server/common/model/src/main/resources/proto/SyncConfigResponsePb.proto
new file mode 100644
index 000000000..08a6cabe6
--- /dev/null
+++ b/server/common/model/src/main/resources/proto/SyncConfigResponsePb.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+option java_package = "com.alipay.sofa.registry.common.model.client.pb";
+option java_multiple_files = true;
+option go_package = "pb";
+
+import "ResultPb.proto";
+
+message SyncConfigResponsePb {
+ ResultPb result = 1;
+ repeated string availableSegments = 2;
+ int32 retryInterval = 3;
+}
+
diff --git a/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/CustomClassSerializerManager.java b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/CustomClassSerializerManager.java
new file mode 100644
index 000000000..8c28df888
--- /dev/null
+++ b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/CustomClassSerializerManager.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.alipay.sofa.registry.remoting.bolt.serializer;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
+
+/**
+ * The type Custom class serializer manager.
+ * @author zhuoyu.sjw
+ * @version $Id : CustomClassSerializerManager.java, v 0.1 2018-05-05 23:43 zhuoyu.sjw Exp $$
+ */
+public class CustomClassSerializerManager {
+
+ private static ConcurrentMap serializerMap = new ConcurrentHashMap<>();
+
+ /**
+ * Register serializer.
+ *
+ * @param clazz the clazz
+ * @param serializer the serializer
+ */
+ public static void registerSerializer(Class clazz, Byte serializer) {
+ if (clazz == null || serializer == null) {
+ throw new IllegalArgumentException("class and serializer can not be null");
+ }
+ serializerMap.put(clazz, serializer);
+ }
+
+ /**
+ * Gets protocol.
+ *
+ * @param clazz the clazz
+ * @return the protocol
+ */
+ public static Byte getClassSerializer(Class clazz) {
+ return serializerMap.get(clazz);
+ }
+}
diff --git a/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufCustomSerializer.java b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufCustomSerializer.java
new file mode 100644
index 000000000..083544d52
--- /dev/null
+++ b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufCustomSerializer.java
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.alipay.sofa.registry.remoting.bolt.serializer;
+
+import com.alipay.remoting.CustomSerializer;
+import com.alipay.remoting.InvokeContext;
+import com.alipay.remoting.exception.CodecException;
+import com.alipay.remoting.exception.DeserializationException;
+import com.alipay.remoting.rpc.RequestCommand;
+import com.alipay.remoting.rpc.ResponseCommand;
+import com.alipay.remoting.rpc.protocol.RpcRequestCommand;
+import com.alipay.remoting.rpc.protocol.RpcResponseCommand;
+import com.alipay.sofa.registry.log.Logger;
+import com.alipay.sofa.registry.log.LoggerFactory;
+
+/**
+ * The type Protobuf custom serializer.
+ * @author zhuoyu.sjw
+ * @version $Id : ProtobufCustomSerializer.java, v 0.1 2018年03月21日 6:14 PM bystander Exp $
+ */
+public class ProtobufCustomSerializer implements CustomSerializer {
+ private static final Logger LOGGER = LoggerFactory
+ .getLogger(ProtobufCustomSerializer.class);
+
+ /**
+ * The constant PROTOCOL_PROTOBUF.
+ */
+ public static final byte PROTOCOL_PROTOBUF = 11;
+
+ @Override
+ public boolean serializeHeader(T request, InvokeContext invokeContext) {
+ return false;
+ }
+
+ @Override
+ public boolean serializeHeader(T response) {
+ return false;
+ }
+
+ @Override
+ public boolean deserializeHeader(T request) {
+ return false;
+ }
+
+ @Override
+ public boolean deserializeHeader(T response,
+ InvokeContext invokeContext) {
+ return false;
+ }
+
+ @Override
+ public boolean serializeContent(T request,
+ InvokeContext invokeContext) {
+ if (request instanceof RpcRequestCommand) {
+ try {
+ RpcRequestCommand requestCommand = (RpcRequestCommand) request;
+ Object requestObject = requestCommand.getRequestObject();
+ request.setContent(ProtobufSerializer.getInstance().serialize(requestObject));
+ return true;
+ } catch (CodecException e) {
+ LOGGER.error("[bolt] encode request error, {}", request, e);
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public boolean serializeContent(T response) {
+ if (response instanceof RpcResponseCommand) {
+ if (response.getSerializer() == PROTOCOL_PROTOBUF) {
+ try {
+ Object appResponse = ((RpcResponseCommand) response).getResponseObject();
+ if (appResponse instanceof Throwable) {
+ // 业务异常序列化的是错误字符串
+ response.setContent(ProtobufSerializer.getInstance().serialize(
+ ((Throwable) appResponse).getMessage()));
+ return false;
+ } else {
+ response
+ .setContent(ProtobufSerializer.getInstance().serialize(appResponse));
+ return true;
+ }
+ } catch (CodecException e) {
+ LOGGER.error("[bolt] encode response error, {}", response, e);
+ }
+ }
+ }
+
+ return false;
+ }
+
+ @Override
+ public boolean deserializeContent(T request)
+ throws DeserializationException {
+ if (request instanceof RpcRequestCommand) {
+ RpcRequestCommand requestCommand = (RpcRequestCommand) request;
+ if (requestCommand.getSerializer() == PROTOCOL_PROTOBUF) {
+ try {
+ Object pbReq = null;
+ byte[] content = requestCommand.getContent();
+ if (content != null && content.length != 0) {
+ pbReq = ProtobufSerializer.getInstance().deserialize(content,
+ requestCommand.getRequestClass());
+ }
+ requestCommand.setRequestObject(pbReq);
+ return true;
+ } catch (DeserializationException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new DeserializationException(e.getMessage(), e);
+ }
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public boolean deserializeContent(T response,
+ InvokeContext invokeContext)
+ throws DeserializationException {
+ if (response instanceof RpcResponseCommand) {
+ RpcResponseCommand responseCommand = (RpcResponseCommand) response;
+ if (response.getSerializer() == PROTOCOL_PROTOBUF) {
+ try {
+ Object pbReq = null;
+
+ byte[] content = responseCommand.getContent();
+ if (content != null && content.length != 0) {
+ pbReq = ProtobufSerializer.getInstance().deserialize(content,
+ ((RpcResponseCommand) response).getResponseClass());
+ }
+ responseCommand.setResponseObject(pbReq);
+ return true;
+ } catch (DeserializationException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new DeserializationException(e.getMessage(), e);
+ }
+ }
+ }
+
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufSerializer.java b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufSerializer.java
new file mode 100644
index 000000000..068fb2dbf
--- /dev/null
+++ b/server/remoting/bolt/src/main/java/com/alipay/sofa/registry/remoting/bolt/serializer/ProtobufSerializer.java
@@ -0,0 +1,306 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.alipay.sofa.registry.remoting.bolt.serializer;
+
+import com.alipay.remoting.exception.CodecException;
+import com.alipay.remoting.exception.DeserializationException;
+import com.alipay.remoting.exception.SerializationException;
+import com.alipay.remoting.serialization.Serializer;
+import com.google.protobuf.MessageLite;
+
+import java.io.UnsupportedEncodingException;
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * Created by zhanggeng on 2017/2/23.
+ * @author zhanggeng
+ * @version $Id : ProtobufSerializer.java, v 0.1 2018-05-05 23:43 zhanggeng Exp $$
+ */
+public class ProtobufSerializer implements Serializer {
+
+ public static final byte PROTOCOL_PROTOBUF = 11;
+
+ /** cache parse method */
+ private ConcurrentHashMap parseMethodMap = new ConcurrentHashMap<>();
+
+ /** cache toByteArray method */
+ private ConcurrentHashMap toByteArrayMethodMap = new ConcurrentHashMap<>();
+
+ private static ProtobufSerializer instance = new ProtobufSerializer();
+
+ private ProtobufSerializer() {
+
+ }
+
+ public static ProtobufSerializer getInstance() {
+ return instance;
+ }
+
+ @Override
+ public byte[] serialize(Object object) throws CodecException {
+ if (object == null) {
+ throw new SerializationException("Unsupported null message");
+ } else if (isProtoBufMessageLite(object)) {
+ Class clazz = object.getClass();
+ Method method = toByteArrayMethodMap.get(clazz);
+ if (method == null) {
+ try {
+ method = clazz.getMethod("toByteArray");
+ method.setAccessible(true);
+ toByteArrayMethodMap.put(clazz, method);
+ } catch (Exception e) {
+ throw new SerializationException(
+ "Cannot found method " + clazz.getName()
+ + ".toByteArray(), please check the generated code");
+ }
+ }
+ try {
+ return (byte[]) method.invoke(object);
+ } catch (Exception e) {
+ throw new SerializationException(
+ "Cannot found method " + clazz.getName()
+ + ".toByteArray(), please check the generated code");
+ }
+
+ } else if (object instanceof String) {
+ try {
+ // return ByteString.copyFromUtf8((String) object).toByteArray();
+ return ((String) object).getBytes("utf-8");
+ } catch (UnsupportedEncodingException e) {
+ throw new SerializationException("Unsupported encoding of string", e);
+ }
+ } else {
+ throw new SerializationException("Unsupported class:" + object.getClass().getName()
+ + ", only support protobuf message");
+ }
+ }
+
+ @Override
+ public T deserialize(byte[] data, String classOfT) throws CodecException {
+ try {
+ Class requestClass = Class.forName(classOfT);
+ return (T) decode(data, requestClass);
+ } catch (ClassNotFoundException e) {
+ throw new SerializationException("Cannot found class " + classOfT, e);
+ }
+ }
+
+ public Object decode(byte[] bytes, Class clazz) throws DeserializationException {
+ if (isProtoBufMessageLite(clazz)) {
+ try {
+ Method method = parseMethodMap.get(clazz);
+ if (method == null) {
+ method = clazz.getMethod("parseFrom", byte[].class);
+ if (!Modifier.isStatic(method.getModifiers())) {
+ throw new CodecException(
+ "Cannot found method " + clazz.getName()
+ + ".parseFrom(byte[]), please check the generated code");
+ }
+ method.setAccessible(true);
+ parseMethodMap.put(clazz, method);
+ }
+ return method.invoke(null, bytes);
+ } catch (DeserializationException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new DeserializationException(
+ "Cannot found method " + clazz.getName()
+ + ".parseFrom(byte[]), please check the generated code", e);
+ }
+ } else if (clazz == String.class) {
+ try {
+ // return ByteString.wrap(bytes).toStringUtf8();
+ return new String(bytes, "utf-8");
+ } catch (UnsupportedEncodingException e) {
+ throw new DeserializationException("Unsupported encoding of string", e);
+ }
+ } else {
+ throw new DeserializationException("Unsupported class:" + clazz.getName()
+ + ", only support protobuf message");
+ }
+ }
+
+ /**
+ * 请求参数类型缓存 {service+method:class}
+ */
+ private static ConcurrentHashMap REQUEST_CLASS_CACHE = new ConcurrentHashMap<>();
+
+ /**
+ * 返回结果类型缓存 {service+method:class}
+ */
+ private static ConcurrentHashMap RESPONSE_CLASS_CACHE = new ConcurrentHashMap<>();
+
+ /**
+ * 从缓存中获取请求值类
+ *
+ * @param service 接口名
+ * @param methodName 方法名
+ * @return 请求参数类
+ * @throws ClassNotFoundException 无法找到该接口
+ * @throws NoSuchMethodException 无法找到该方法
+ * @throws CodecException 其它序列化异常
+ */
+ public static Class getReqClass(String service, String methodName, ClassLoader classLoader)
+ throws ClassNotFoundException,
+ NoSuchMethodException,
+ CodecException {
+ if (classLoader == null) {
+ classLoader = Thread.currentThread().getContextClassLoader();
+ }
+ String key = buildMethodKey(service, methodName);
+ Class reqClass = REQUEST_CLASS_CACHE.get(key);
+ if (reqClass == null) {
+ // 读取接口里的方法参数和返回值
+ String interfaceClass = service.contains(":") ? service.substring(0,
+ service.indexOf(":")) : service;
+ Class clazz = Class.forName(interfaceClass, true, classLoader);
+ loadProtoClassToCache(key, clazz, methodName);
+ }
+ return REQUEST_CLASS_CACHE.get(key);
+ }
+
+ /**
+ * 从缓存中获取返回值类
+ *
+ * @param service 接口名
+ * @param methodName 方法名
+ * @return 请求参数类
+ * @throws ClassNotFoundException 无法找到该接口
+ * @throws NoSuchMethodException 无法找到该方法
+ * @throws CodecException 其它序列化异常
+ */
+ public static Class getResClass(String service, String methodName, ClassLoader classLoader)
+ throws ClassNotFoundException,
+ NoSuchMethodException,
+ CodecException {
+ if (classLoader == null) {
+ classLoader = Thread.currentThread().getContextClassLoader();
+ }
+ String key = service + "#" + methodName;
+ Class reqClass = RESPONSE_CLASS_CACHE.get(key);
+ if (reqClass == null) {
+ // 读取接口里的方法参数和返回值
+ String interfaceClass = service.contains(":") ? service.substring(0,
+ service.indexOf(":")) : service;
+ Class clazz = Class.forName(interfaceClass, true, classLoader);
+ loadProtoClassToCache(key, clazz, methodName);
+ }
+ return RESPONSE_CLASS_CACHE.get(key);
+ }
+
+ /**
+ * 拼装缓存的key
+ *
+ * @param serviceName 接口名
+ * @param methodName 方法名
+ * @return
+ */
+ private static String buildMethodKey(String serviceName, String methodName) {
+ return serviceName + "#" + methodName;
+ }
+
+ /**
+ * 加载protobuf接口里方法的参数和返回值类型到缓存,不需要传递
+ *
+ * @param key 缓存的key
+ * @param clazz 接口名
+ * @param methodName 方法名
+ * @throws ClassNotFoundException 无法找到该接口
+ * @throws NoSuchMethodException 无法找到该方法
+ * @throws CodecException 其它序列化异常
+ */
+ private static void loadProtoClassToCache(String key, Class clazz, String methodName)
+ throws CodecException {
+ Method pbMethod = null;
+ Method[] methods = clazz.getMethods();
+ for (Method method : methods) {
+ if (methodName.equals(method.getName())) {
+ pbMethod = method;
+ break;
+ }
+ }
+ if (pbMethod != null) {
+ Class[] parameterTypes = pbMethod.getParameterTypes();
+ if (parameterTypes.length != 1 || !isProtoBufMessageLite(parameterTypes[0])) {
+ throw new CodecException("class based protobuf: " + clazz.getName()
+ + ", only support one protobuf parameter!");
+ }
+ Class reqClass = parameterTypes[0];
+ REQUEST_CLASS_CACHE.put(key, reqClass);
+ Class resClass = pbMethod.getReturnType();
+ if (resClass == void.class || !isProtoBufMessageLite(resClass)) {
+ throw new CodecException("class based protobuf: " + clazz.getName()
+ + ", only support return protobuf message!");
+ }
+ RESPONSE_CLASS_CACHE.put(key, resClass);
+ }
+ }
+
+ public static boolean isProtoBufMessageLite(Object object) {
+ Class clzz = object == null ? null : object.getClass();
+ return isProtoBufMessageLite(clzz);
+ }
+
+ private static boolean isProtoBufMessageLite(Class clzz) {
+ if (clzz != null) {
+ return isSpecificationInterface(clzz, MessageLite.class.getCanonicalName());
+ }
+ return false;
+ }
+
+ /**
+ * whether clazz has a interface named interfaceName
+ *
+ * @param clazz
+ * @param interfaceName
+ * @return
+ */
+ private static boolean isSpecificationInterface(Class> clazz, String interfaceName) {
+
+ boolean find = false;
+
+ // First, get all direct interface
+ Class>[] interfaces = clazz.getInterfaces();
+ if (interfaces.length > 0) {
+ for (Class> interfaze : interfaces) {
+ find = interfaceName.equalsIgnoreCase(interfaze.getCanonicalName());
+ if (find) {
+ break;
+ }
+ }
+ }
+ while (!Object.class.getCanonicalName().equals(clazz.getCanonicalName()) && !find) {
+ // Add the super class
+ Class> superClass = clazz.getSuperclass();
+
+ // Interfaces does not have java,lang.Object as superclass, they have null, so break the cycle and return
+ if (superClass == null) {
+ break;
+ }
+
+ // Now inspect the superclass
+ clazz = superClass;
+
+ find = isSpecificationInterface(clazz, interfaceName);
+
+ }
+
+ return find;
+ }
+}
diff --git a/server/server/data/src/main/java/com/alipay/sofa/registry/server/data/remoting/sessionserver/handler/PublishDataHandler.java b/server/server/data/src/main/java/com/alipay/sofa/registry/server/data/remoting/sessionserver/handler/PublishDataHandler.java
index d3b572518..ef5dbfd25 100644
--- a/server/server/data/src/main/java/com/alipay/sofa/registry/server/data/remoting/sessionserver/handler/PublishDataHandler.java
+++ b/server/server/data/src/main/java/com/alipay/sofa/registry/server/data/remoting/sessionserver/handler/PublishDataHandler.java
@@ -19,12 +19,8 @@
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;
-import com.alipay.sofa.registry.common.model.PublisherInternUtil;
-import com.alipay.sofa.registry.common.model.constants.ValueConstants;
import org.springframework.beans.factory.annotation.Autowired;
-import com.alipay.sofa.registry.common.model.CommonResponse;
-import com.alipay.sofa.registry.common.model.Node;
import com.alipay.sofa.registry.common.model.PublishType;
import com.alipay.sofa.registry.common.model.dataserver.DatumVersion;
import com.alipay.sofa.registry.common.model.dataserver.PublishDataRequest;
@@ -34,10 +30,6 @@
import com.alipay.sofa.registry.log.Logger;
import com.alipay.sofa.registry.log.LoggerFactory;
import com.alipay.sofa.registry.remoting.Channel;
-import org.springframework.beans.factory.annotation.Autowired;
-
-import java.util.concurrent.Executor;
-import java.util.concurrent.ThreadPoolExecutor;
/**
* processor to publish data
diff --git a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/bootstrap/MetaServerConfiguration.java b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/bootstrap/MetaServerConfiguration.java
index d187a731f..e69ec31ed 100644
--- a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/bootstrap/MetaServerConfiguration.java
+++ b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/bootstrap/MetaServerConfiguration.java
@@ -69,17 +69,7 @@
import com.alipay.sofa.registry.server.meta.remoting.handler.HeartbeatRequestHandler;
import com.alipay.sofa.registry.server.meta.slot.impl.*;
import com.alipay.sofa.registry.server.shared.remoting.AbstractServerHandler;
-import com.alipay.sofa.registry.server.meta.repository.NodeConfirmStatusService;
-import com.alipay.sofa.registry.server.meta.repository.RepositoryService;
-import com.alipay.sofa.registry.server.meta.repository.VersionRepositoryService;
-import com.alipay.sofa.registry.server.meta.repository.annotation.RaftAnnotationBeanPostProcessor;
-import com.alipay.sofa.registry.server.meta.store.DataStoreService;
-import com.alipay.sofa.registry.server.meta.store.MetaStoreService;
-import com.alipay.sofa.registry.server.meta.store.SessionStoreService;
-import com.alipay.sofa.registry.server.meta.store.StoreService;
-import com.alipay.sofa.registry.server.meta.task.processor.DataNodeSingleTaskProcessor;
-import com.alipay.sofa.registry.server.meta.task.processor.MetaNodeSingleTaskProcessor;
-import com.alipay.sofa.registry.server.meta.task.processor.SessionNodeSingleTaskProcessor;
+
import com.alipay.sofa.registry.store.api.DBService;
import com.alipay.sofa.registry.util.DefaultExecutorFactory;
import com.alipay.sofa.registry.util.OsUtils;
diff --git a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/connection/MetaConnectionHandler.java b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/connection/MetaConnectionHandler.java
index e28c2512b..c1c2f5588 100644
--- a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/connection/MetaConnectionHandler.java
+++ b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/connection/MetaConnectionHandler.java
@@ -23,7 +23,6 @@
import com.alipay.sofa.registry.remoting.Channel;
import com.alipay.sofa.registry.server.meta.bootstrap.config.NodeConfig;
import com.alipay.sofa.registry.server.shared.remoting.ListenServerChannelHandler;
-import com.alipay.sofa.registry.server.meta.remoting.handler.AbstractServerHandler;
import org.springframework.beans.factory.annotation.Autowired;
import java.net.InetSocketAddress;
diff --git a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/handler/AddAppRevisionHandler.java b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/handler/AddAppRevisionHandler.java
index 2964f10cc..e08f385da 100644
--- a/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/handler/AddAppRevisionHandler.java
+++ b/server/server/meta/src/main/java/com/alipay/sofa/registry/server/meta/remoting/handler/AddAppRevisionHandler.java
@@ -16,9 +16,11 @@
*/
package com.alipay.sofa.registry.server.meta.remoting.handler;
+import com.alipay.sofa.registry.common.model.Node;
import com.alipay.sofa.registry.core.model.AppRevisionRegister;
import com.alipay.sofa.registry.remoting.Channel;
import com.alipay.sofa.registry.server.meta.revision.AppRevisionRegistry;
+import com.alipay.sofa.registry.server.shared.remoting.AbstractServerHandler;
import org.springframework.beans.factory.annotation.Autowired;
public class AddAppRevisionHandler extends AbstractServerHandler {
@@ -26,7 +28,12 @@ public class AddAppRevisionHandler extends AbstractServerHandler {
@@ -27,8 +29,13 @@ public class CheckRevisionsHandler extends AbstractServerHandler {
@@ -26,7 +28,12 @@ public class FetchRevisionsHandler extends AbstractServerHandler annotationType) {
}
}
+ private void registerSerializer() {
+ ProtobufCustomSerializer serializer = new ProtobufCustomSerializer();
+ CustomSerializerManager.registerCustomSerializer(PublisherRegisterPb.class.getName(),
+ serializer);
+ CustomSerializerManager.registerCustomSerializer(SubscriberRegisterPb.class.getName(),
+ serializer);
+ CustomSerializerManager.registerCustomSerializer(SyncConfigRequestPb.class.getName(),
+ serializer);
+ CustomSerializerManager.registerCustomSerializer(SyncConfigResponsePb.class.getName(),
+ serializer);
+ CustomSerializerManager.registerCustomSerializer(RegisterResponsePb.class.getName(),
+ serializer);
+ CustomSerializerManager.registerCustomSerializer(ResultPb.class.getName(), serializer);
+ CustomSerializerManager
+ .registerCustomSerializer(ReceivedDataPb.class.getName(), serializer);
+ CustomSerializerManager.registerCustomSerializer(ReceivedConfigDataPb.class.getName(),
+ serializer);
+
+ SerializerManager.addSerializer(ProtobufSerializer.PROTOCOL_PROTOBUF,
+ ProtobufSerializer.getInstance());
+ }
+
private void stopServer() {
if (server != null && server.isOpen()) {
server.close();
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfigBean.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfigBean.java
index 9d57beb3b..8b0e5f8eb 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfigBean.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfigBean.java
@@ -713,25 +713,6 @@ public void setSubscriberRegisterFetchRetryTimes(int subscriberRegisterFetchRetr
this.subscriberRegisterFetchRetryTimes = subscriberRegisterFetchRetryTimes;
}
- /**
- * Getter method for property sessionRegisterDataServerTaskRetryTimes.
- *
- * @return property value of sessionRegisterDataServerTaskRetryTimes
- */
- @Override
- public int getSessionRegisterDataServerTaskRetryTimes() {
- return sessionRegisterDataServerTaskRetryTimes;
- }
-
- /**
- * Setter method for property sessionRegisterDataServerTaskRetryTimes.
- *
- * @param sessionRegisterDataServerTaskRetryTimes value to be assigned to property sessionRegisterDataServerTaskRetryTimes
- */
- public void setSessionRegisterDataServerTaskRetryTimes(int sessionRegisterDataServerTaskRetryTimes) {
- this.sessionRegisterDataServerTaskRetryTimes = sessionRegisterDataServerTaskRetryTimes;
- }
-
/**
* Getter method for property clientNodeExchangeTimeOut.
*
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfiguration.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfiguration.java
index cf7db8f0f..f15c4b506 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfiguration.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/bootstrap/SessionServerConfiguration.java
@@ -19,12 +19,9 @@
import java.util.ArrayList;
import java.util.Collection;
-import com.alipay.sofa.jraft.NodeManager;
-import com.alipay.sofa.registry.server.session.assemble.AppAssembleService;
import com.alipay.sofa.registry.server.session.assemble.AppInterfaceAssembleService;
import com.alipay.sofa.registry.server.session.assemble.AssembleService;
import com.alipay.sofa.registry.server.session.assemble.DefaultSubscriberAssembleStrategy;
-import com.alipay.sofa.registry.server.session.assemble.InterfaceAssembleService;
import com.alipay.sofa.registry.server.session.assemble.SubscriberAssembleStrategy;
import com.alipay.sofa.registry.server.session.cache.*;
import com.alipay.sofa.registry.server.session.connections.ConnectionsService;
@@ -52,7 +49,6 @@
import com.alipay.sofa.registry.server.session.cache.CacheService;
import com.alipay.sofa.registry.server.session.cache.DatumCacheGenerator;
import com.alipay.sofa.registry.server.session.cache.SessionCacheService;
-import com.alipay.sofa.registry.server.session.connections.ConnectionsService;
import com.alipay.sofa.registry.server.session.filter.DataIdMatchStrategy;
import com.alipay.sofa.registry.server.session.filter.IPMatchStrategy;
import com.alipay.sofa.registry.server.session.filter.ProcessFilter;
@@ -65,7 +61,6 @@
import com.alipay.sofa.registry.server.session.node.processor.ConsoleSyncSingleTaskProcessor;
import com.alipay.sofa.registry.server.session.node.processor.DataNodeSingleTaskProcessor;
import com.alipay.sofa.registry.server.session.node.processor.MetaNodeSingleTaskProcessor;
-import com.alipay.sofa.registry.server.session.node.service.*;
import com.alipay.sofa.registry.server.session.provideData.ProvideDataProcessor;
import com.alipay.sofa.registry.server.session.provideData.ProvideDataProcessorManager;
import com.alipay.sofa.registry.server.session.provideData.processor.BlackListProvideDataProcessor;
@@ -75,22 +70,16 @@
import com.alipay.sofa.registry.server.session.remoting.ClientNodeExchanger;
import com.alipay.sofa.registry.server.session.remoting.DataNodeExchanger;
import com.alipay.sofa.registry.server.session.remoting.MetaNodeExchanger;
-import com.alipay.sofa.registry.server.session.remoting.handler.*;
-import com.alipay.sofa.registry.server.session.resource.*;
import com.alipay.sofa.registry.server.session.scheduler.ExecutorManager;
import com.alipay.sofa.registry.server.session.scheduler.timertask.SyncClientsHeartbeatTask;
import com.alipay.sofa.registry.server.session.slot.SlotTableCache;
import com.alipay.sofa.registry.server.session.slot.SlotTableCacheImpl;
import com.alipay.sofa.registry.server.session.store.*;
-import com.alipay.sofa.registry.server.session.strategy.*;
-import com.alipay.sofa.registry.server.session.strategy.impl.*;
-import com.alipay.sofa.registry.server.session.wrapper.*;
import com.alipay.sofa.registry.server.shared.meta.MetaServerService;
import com.alipay.sofa.registry.server.shared.remoting.AbstractClientHandler;
import com.alipay.sofa.registry.server.shared.remoting.AbstractServerHandler;
import com.alipay.sofa.registry.server.session.store.DataStore;
import com.alipay.sofa.registry.server.session.store.Interests;
-import com.alipay.sofa.registry.server.session.store.SessionDataStore;
import com.alipay.sofa.registry.server.session.store.SessionInterests;
import com.alipay.sofa.registry.server.session.store.SessionWatchers;
import com.alipay.sofa.registry.server.session.store.Watchers;
@@ -115,16 +104,6 @@
import com.alipay.sofa.registry.task.listener.TaskListener;
import com.alipay.sofa.registry.task.listener.TaskListenerManager;
import com.alipay.sofa.registry.util.PropertySplitter;
-import org.glassfish.jersey.jackson.JacksonFeature;
-import org.glassfish.jersey.server.ResourceConfig;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
-
-import java.util.ArrayList;
-import java.util.Collection;
/**
* @author shangyu.wh
@@ -210,6 +189,10 @@ public Collection serverHandlers() {
list.add(cancelAddressRequestHandler());
list.add(syncConfigHandler());
list.add(appRevisionRegisterHandler());
+ list.add(appRevisionRegisterPbHandler());
+ list.add(publisherPbHandler());
+ list.add(subscriberPbHandler());
+ list.add(syncConfigPbHandler());
return list;
}
@@ -260,6 +243,28 @@ public AbstractServerHandler dataSlotDiffDataInfoIdRequestHandler() {
public AbstractServerHandler dataSlotDiffPublisherRequestHandler() {
return new DataSlotDiffPublisherRequestHandler();
}
+
+ @Bean
+ public AbstractServerHandler publisherPbHandler() {
+ return new PublisherPbHandler();
+ }
+
+ @Bean
+ public AbstractServerHandler appRevisionRegisterPbHandler() {
+ return new AppRevisionRegisterPbHandler();
+ }
+
+ @Bean
+ public AbstractServerHandler subscriberPbHandler() {
+ return new SubscriberPbHandler();
+ }
+
+ @Bean
+ public AbstractServerHandler syncConfigPbHandler() {
+ return new SyncConfigPbHandler();
+ }
+
+ @Bean
public AbstractServerHandler appRevisionRegisterHandler() {
return new AppRevisionRegisterHandler();
}
@@ -398,12 +403,13 @@ public MetaServerService metaServerService() {
public ClientNodeService clientNodeService() {
return new ClientNodeServiceImpl();
}
- @Bean
+
+ @Bean
public RaftClientManager raftClientManager() {
return new RaftClientManager();
}
- @Bean
+ @Bean
public AppRevisionNodeService appRevisionNodeService() {
return new AppRevisionNodeServiceImpl();
}
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/AppRevisionCacheRegistry.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/AppRevisionCacheRegistry.java
index e3afa0132..2e41f1cd7 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/AppRevisionCacheRegistry.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/AppRevisionCacheRegistry.java
@@ -16,7 +16,6 @@
*/
package com.alipay.sofa.registry.server.session.cache;
-import com.alipay.sofa.registry.common.model.constants.ValueConstants;
import com.alipay.sofa.registry.common.model.store.DataInfo;
import com.alipay.sofa.registry.core.model.AppRevisionRegister;
import com.alipay.sofa.registry.core.model.AppRevisionInterface;
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/SessionDatumCacheDecorator.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/SessionDatumCacheDecorator.java
index 7c2ff4786..0becd3d9b 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/SessionDatumCacheDecorator.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/cache/SessionDatumCacheDecorator.java
@@ -30,7 +30,6 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
-import java.util.Set;
import java.util.stream.Collectors;
/**
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/AppPublisherConverter.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/AppPublisherConverter.java
index ef9eb4851..dbbc101c2 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/AppPublisherConverter.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/AppPublisherConverter.java
@@ -30,11 +30,8 @@
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.Optional;
/**
* @author xiaojian.xj
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/PublisherConverter.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/PublisherConverter.java
index 1bc8a1117..1d13b9355 100644
--- a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/PublisherConverter.java
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/PublisherConverter.java
@@ -16,7 +16,6 @@
*/
package com.alipay.sofa.registry.server.session.converter;
-import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alipay.sofa.registry.common.model.AppRegisterServerDataBox;
import com.alipay.sofa.registry.common.model.ServerDataBox;
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/AppRevisionRegisterConvertor.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/AppRevisionRegisterConvertor.java
new file mode 100644
index 000000000..094b5b10e
--- /dev/null
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/AppRevisionRegisterConvertor.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.alipay.sofa.registry.server.session.converter.pb;
+
+import com.alipay.sofa.registry.common.model.client.pb.AppRevisionInterfacePb;
+import com.alipay.sofa.registry.common.model.client.pb.AppRevisionRegisterPb;
+import com.alipay.sofa.registry.common.model.client.pb.QueryValues;
+import com.alipay.sofa.registry.common.model.store.DataInfo;
+import com.alipay.sofa.registry.core.model.AppRevisionInterface;
+import com.alipay.sofa.registry.core.model.AppRevisionRegister;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class AppRevisionRegisterConvertor {
+ public static AppRevisionRegister convert2Java(AppRevisionRegisterPb appRevisionRegisterPb) {
+ if (appRevisionRegisterPb == null) {
+ return null;
+ }
+ AppRevisionRegister appRevision = new AppRevisionRegister();
+ appRevision.setAppName(appRevisionRegisterPb.getAppname());
+ appRevision.setRevision(appRevisionRegisterPb.getRevision());
+
+ Map> baseParams = new HashMap<>();
+ for (Map.Entry entry : appRevisionRegisterPb.getBaseParamsMap()
+ .entrySet()) {
+ QueryValues values = entry.getValue();
+ baseParams.put(entry.getKey(),
+ entry.getValue().getValuesList().subList(0, values.getValuesCount()));
+ }
+ appRevision.setBaseParams(baseParams);
+ Map serviceParams = new HashMap<>();
+ for (AppRevisionInterfacePb interfacePb : appRevisionRegisterPb.getInterfacesList()) {
+ AppRevisionInterface inf = new AppRevisionInterface();
+ inf.setDataId(interfacePb.getDataId());
+ inf.setGroup(interfacePb.getGroup());
+ inf.setInstanceId(interfacePb.getInstanceId());
+ interfacePb.getServiceParamsMap();
+ for (Map.Entry entry : interfacePb.getServiceParamsMap()
+ .entrySet()) {
+ String key = entry.getKey();
+ QueryValues values = entry.getValue();
+ inf.getServiceParams().put(key,
+ values.getValuesList().subList(0, values.getValuesCount()));
+ }
+ serviceParams.put(
+ DataInfo.toDataInfoId(inf.getDataId(), inf.getInstanceId(), inf.getGroup()), inf);
+ }
+ appRevision.setInterfaces(serviceParams);
+ return appRevision;
+ }
+}
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/DataBoxConvertor.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/DataBoxConvertor.java
new file mode 100644
index 000000000..b111d680d
--- /dev/null
+++ b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/converter/pb/DataBoxConvertor.java
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.alipay.sofa.registry.server.session.converter.pb;
+
+import com.alipay.sofa.registry.common.model.client.pb.DataBoxPb;
+import com.alipay.sofa.registry.common.model.client.pb.DataBoxesPb;
+import com.alipay.sofa.registry.core.model.DataBox;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+
+/**
+ * @author bystander
+ * @version $Id: DataBoxConvertor.java, v 0.1 2018年03月21日 2:19 PM bystander Exp $
+ */
+public class DataBoxConvertor {
+
+ public static DataBox convert2Java(DataBoxPb dataBoxPb) {
+
+ if (dataBoxPb == null) {
+ return null;
+ } else {
+ DataBox dataBoxJava = new DataBox();
+ dataBoxJava.setData(dataBoxPb.getData());
+ return dataBoxJava;
+ }
+ }
+
+ public static DataBoxPb convert2Pb(DataBox dataBoxJava) {
+
+ if (dataBoxJava == null) {
+ return null;
+ } else {
+ DataBoxPb.Builder builder = DataBoxPb.newBuilder();
+
+ if (dataBoxJava.getData() != null) {
+ builder.setData(dataBoxJava.getData());
+ }
+ return builder.build();
+
+ }
+ }
+
+ public static List convertBoxes2Javas(List dataBoxPbs) {
+
+ List result = new ArrayList<>();
+ if (dataBoxPbs == null) {
+ return null;
+ } else {
+
+ for (DataBoxPb dataBoxPb : dataBoxPbs) {
+ result.add(convert2Java(dataBoxPb));
+ }
+
+ return result;
+ }
+
+ }
+
+ public static List convert2Pbs(List dataBoxJavas) {
+
+ List result = new ArrayList<>();
+ if (dataBoxJavas == null) {
+ return null;
+ } else {
+
+ for (DataBox dataBoxJava : dataBoxJavas) {
+ result.add(convert2Pb(dataBoxJava));
+ }
+
+ return result;
+ }
+ }
+
+ public static List convertBoxes2Javas(DataBoxesPb dataBoxesPb) {
+ if (dataBoxesPb == null) {
+ return null;
+ } else {
+
+ return convertBoxes2Javas(dataBoxesPb.getDataList());
+ }
+ }
+
+ public static Map> convert2JavaMaps(Map mapPb) {
+ if (mapPb == null) {
+ return null;
+ } else {
+ Map> mapJava = new HashMap<>();
+
+ for (Entry