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OgI4ASJ9CgxNYXN0ZXJOb3RpZnkSDAoEU3RlcBgBIAEoBBIwCgZW",
|
|
|
+ "YWx1ZXMYAiADKAsyIC5wcm90b3MuTWFzdGVyTm90aWZ5LlZhbHVlc0VudHJ5",
|
|
|
"Gi0KC1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoC",
|
|
|
- "OAFiBnByb3RvMw=="));
|
|
|
+ "OAEieQoRTWFzdGVyU3RvcmVOb3RpZnkSNQoGVmFsdWVzGAEgAygLMiUucHJv",
|
|
|
+ "dG9zLk1hc3RlclN0b3JlTm90aWZ5LlZhbHVlc0VudHJ5Gi0KC1ZhbHVlc0Vu",
|
|
|
+ "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEiEwoRTWFzdGVy",
|
|
|
+ "TG9hZFJlcXVlc3QimwEKEk1hc3RlckxvYWRSZXNwb25zZRIeCgZSZXN1bHQY",
|
|
|
+ "ASABKAsyDi5wcm90b3MuUmVzdWx0EjYKBlZhbHVlcxgCIAMoCzImLnByb3Rv",
|
|
|
+ "cy5NYXN0ZXJMb2FkUmVzcG9uc2UuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50",
|
|
|
+ "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4AWIGcHJvdG8z"));
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
|
new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
|
|
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
|
@@ -56,6 +62,9 @@ namespace Protos {
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreResponse), global::Protos.RestoreResponse.Parser, new[]{ "Users", "Step", "State" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncRequest), global::Protos.SyncRequest.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncResponse), global::Protos.SyncResponse.Parser, new[]{ "Status", "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageRequest), global::Protos.DMessageRequest.Parser, new[]{ "UserIDs", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessageResponse), global::Protos.DMessageResponse.Parser, new[]{ "Result" }, null, null, null),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.DMessagePush), global::Protos.DMessagePush.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.SyncPush), global::Protos.SyncPush.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterPush), global::Protos.MasterPush.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotify), global::Protos.MasterNotify.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
@@ -635,6 +644,377 @@ namespace Protos {
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
+ /// 客户端发送实时消息
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class DMessageRequest : pb::IMessage<DMessageRequest> {
|
|
|
+ private static readonly pb::MessageParser<DMessageRequest> _parser = new pb::MessageParser<DMessageRequest>(() => new DMessageRequest());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<DMessageRequest> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[4]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageRequest() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageRequest(DMessageRequest other) : this() {
|
|
|
+ userIDs_ = other.userIDs_.Clone();
|
|
|
+ values_ = other.values_.Clone();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageRequest Clone() {
|
|
|
+ return new DMessageRequest(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "UserIDs" field.</summary>
|
|
|
+ public const int UserIDsFieldNumber = 1;
|
|
|
+ private static readonly pb::FieldCodec<uint> _repeated_userIDs_codec
|
|
|
+ = pb::FieldCodec.ForUInt32(10);
|
|
|
+ private readonly pbc::RepeatedField<uint> userIDs_ = new pbc::RepeatedField<uint>();
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public pbc::RepeatedField<uint> UserIDs {
|
|
|
+ get { return userIDs_; }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Values" field.</summary>
|
|
|
+ public const int ValuesFieldNumber = 2;
|
|
|
+ private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
|
|
|
+ = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 18);
|
|
|
+ private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public pbc::MapField<string, pb::ByteString> Values {
|
|
|
+ get { return values_; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override bool Equals(object other) {
|
|
|
+ return Equals(other as DMessageRequest);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(DMessageRequest other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if(!userIDs_.Equals(other.userIDs_)) return false;
|
|
|
+ if (!Values.Equals(other.Values)) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ hash ^= userIDs_.GetHashCode();
|
|
|
+ hash ^= Values.GetHashCode();
|
|
|
+ return hash;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override string ToString() {
|
|
|
+ return pb::JsonFormatter.ToDiagnosticString(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void WriteTo(pb::CodedOutputStream output) {
|
|
|
+ userIDs_.WriteTo(output, _repeated_userIDs_codec);
|
|
|
+ values_.WriteTo(output, _map_values_codec);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ size += userIDs_.CalculateSize(_repeated_userIDs_codec);
|
|
|
+ size += values_.CalculateSize(_map_values_codec);
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(DMessageRequest other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ userIDs_.Add(other.userIDs_);
|
|
|
+ values_.Add(other.values_);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(pb::CodedInputStream input) {
|
|
|
+ uint tag;
|
|
|
+ while ((tag = input.ReadTag()) != 0) {
|
|
|
+ switch(tag) {
|
|
|
+ default:
|
|
|
+ input.SkipLastField();
|
|
|
+ break;
|
|
|
+ case 10:
|
|
|
+ case 8: {
|
|
|
+ userIDs_.AddEntriesFrom(input, _repeated_userIDs_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 18: {
|
|
|
+ values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 服务器响应用户实时消息结果
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class DMessageResponse : pb::IMessage<DMessageResponse> {
|
|
|
+ private static readonly pb::MessageParser<DMessageResponse> _parser = new pb::MessageParser<DMessageResponse>(() => new DMessageResponse());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<DMessageResponse> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[5]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageResponse() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageResponse(DMessageResponse other) : this() {
|
|
|
+ Result = other.result_ != null ? other.Result.Clone() : null;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessageResponse Clone() {
|
|
|
+ return new DMessageResponse(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Result" field.</summary>
|
|
|
+ public const int ResultFieldNumber = 1;
|
|
|
+ private global::Protos.Result result_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public global::Protos.Result Result {
|
|
|
+ get { return result_; }
|
|
|
+ set {
|
|
|
+ result_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override bool Equals(object other) {
|
|
|
+ return Equals(other as DMessageResponse);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(DMessageResponse other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (!object.Equals(Result, other.Result)) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ if (result_ != null) hash ^= Result.GetHashCode();
|
|
|
+ return hash;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override string ToString() {
|
|
|
+ return pb::JsonFormatter.ToDiagnosticString(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void WriteTo(pb::CodedOutputStream output) {
|
|
|
+ if (result_ != null) {
|
|
|
+ output.WriteRawTag(10);
|
|
|
+ output.WriteMessage(Result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ if (result_ != null) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
|
|
|
+ }
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(DMessageResponse other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (other.result_ != null) {
|
|
|
+ if (result_ == null) {
|
|
|
+ result_ = new global::Protos.Result();
|
|
|
+ }
|
|
|
+ Result.MergeFrom(other.Result);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(pb::CodedInputStream input) {
|
|
|
+ uint tag;
|
|
|
+ while ((tag = input.ReadTag()) != 0) {
|
|
|
+ switch(tag) {
|
|
|
+ default:
|
|
|
+ input.SkipLastField();
|
|
|
+ break;
|
|
|
+ case 10: {
|
|
|
+ if (result_ == null) {
|
|
|
+ result_ = new global::Protos.Result();
|
|
|
+ }
|
|
|
+ input.ReadMessage(result_);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 服务器转发实时消息
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class DMessagePush : pb::IMessage<DMessagePush> {
|
|
|
+ private static readonly pb::MessageParser<DMessagePush> _parser = new pb::MessageParser<DMessagePush>(() => new DMessagePush());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<DMessagePush> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[6]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessagePush() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessagePush(DMessagePush other) : this() {
|
|
|
+ values_ = other.values_.Clone();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public DMessagePush Clone() {
|
|
|
+ return new DMessagePush(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Values" field.</summary>
|
|
|
+ public const int ValuesFieldNumber = 1;
|
|
|
+ private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_values_codec
|
|
|
+ = new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 10);
|
|
|
+ private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public pbc::MapField<string, pb::ByteString> Values {
|
|
|
+ get { return values_; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override bool Equals(object other) {
|
|
|
+ return Equals(other as DMessagePush);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(DMessagePush other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (!Values.Equals(other.Values)) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ hash ^= Values.GetHashCode();
|
|
|
+ return hash;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override string ToString() {
|
|
|
+ return pb::JsonFormatter.ToDiagnosticString(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void WriteTo(pb::CodedOutputStream output) {
|
|
|
+ values_.WriteTo(output, _map_values_codec);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ size += values_.CalculateSize(_map_values_codec);
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(DMessagePush other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ values_.Add(other.values_);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(pb::CodedInputStream input) {
|
|
|
+ uint tag;
|
|
|
+ while ((tag = input.ReadTag()) != 0) {
|
|
|
+ switch(tag) {
|
|
|
+ default:
|
|
|
+ input.SkipLastField();
|
|
|
+ break;
|
|
|
+ case 10: {
|
|
|
+ values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
/// 同步消息推送
|
|
|
/// </summary>
|
|
|
public sealed partial class SyncPush : pb::IMessage<SyncPush> {
|
|
@@ -644,7 +1024,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[4]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[7]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -784,7 +1164,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[5]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[8]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -924,7 +1304,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[6]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[9]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -1064,7 +1444,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[7]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[10]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -1176,7 +1556,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[8]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[11]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -1268,7 +1648,7 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
|
- get { return global::Protos.SyncReflection.Descriptor.MessageTypes[9]; }
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[12]; }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|