|
@@ -23,45 +23,56 @@ namespace Protos {
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
|
string.Concat(
|
|
|
"CgpzeW5jLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvGgxyZXN1bHQu",
|
|
|
- "cHJvdG8iEAoOUmVzdG9yZVJlcXVlc3QioQEKD1Jlc3RvcmVSZXNwb25zZRIf",
|
|
|
+ "cHJvdG8iEAoOUmVzdG9yZVJlcXVlc3Qi1QEKD1Jlc3RvcmVSZXNwb25zZRIf",
|
|
|
"CgVVc2VycxgBIAMoCzIQLnByb3Rvcy5Vc2VySW5mbxIMCgRTdGVwGAIgASgE",
|
|
|
"EjEKBXN0YXRlGAMgAygLMiIucHJvdG9zLlJlc3RvcmVSZXNwb25zZS5TdGF0",
|
|
|
- "ZUVudHJ5GiwKClN0YXRlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg",
|
|
|
- "ASgMOgI4ASJ7CgtTeW5jUmVxdWVzdBIMCgRTdGVwGAEgASgEEi8KBlZhbHVl",
|
|
|
- "cxgCIAMoCzIfLnByb3Rvcy5TeW5jUmVxdWVzdC5WYWx1ZXNFbnRyeRotCgtW",
|
|
|
- "YWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAw6AjgBIpgB",
|
|
|
- "CgxTeW5jUmVzcG9uc2USDgoGU3RhdHVzGAEgASgIEgwKBFN0ZXAYAiABKAQS",
|
|
|
- "MAoGVmFsdWVzGAMgAygLMiAucHJvdG9zLlN5bmNSZXNwb25zZS5WYWx1ZXNF",
|
|
|
- "bnRyeRIJCgFUGAQgASgEGi0KC1ZhbHVlc0VudHJ5EgsKA2tleRgBIAEoCRIN",
|
|
|
- "CgV2YWx1ZRgCIAEoDDoCOAEihgEKD0RNZXNzYWdlUmVxdWVzdBIPCgdVc2Vy",
|
|
|
- "SURzGAEgAygNEjMKBlZhbHVlcxgCIAMoCzIjLnByb3Rvcy5ETWVzc2Fn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ydHlTeW5jUHVzaBIMCgRTdGVwGAEgASgEEjEKBlZh",
|
|
|
+ "bHVlcxgCIAMoCzIhLnByb3Rvcy5QYXJ0eVN5bmNQdXNoLlZhbHVlc0VudHJ5",
|
|
|
+ "EgkKAVQYAyABKAQaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh",
|
|
|
+ "bHVlGAIgASgMOgI4AWIGcHJvdG8z"));
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
|
new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
|
|
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreRequest), global::Protos.RestoreRequest.Parser, null, null, null, null),
|
|
|
- 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.RestoreResponse), global::Protos.RestoreResponse.Parser, new[]{ "Users", "Step", "State", "Road", "CreateAt", "StageIndex" }, 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", "T" }, 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, }),
|
|
@@ -73,7 +84,10 @@ namespace Protos {
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterNotifyResponse), global::Protos.MasterNotifyResponse.Parser, new[]{ "T" }, null, null, null),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterStoreNotify), global::Protos.MasterStoreNotify.Parser, new[]{ "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadRequest), global::Protos.MasterLoadRequest.Parser, null, null, null, null),
|
|
|
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadResponse), global::Protos.MasterLoadResponse.Parser, new[]{ "Result", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.MasterLoadResponse), global::Protos.MasterLoadResponse.Parser, new[]{ "Result", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncRequest), global::Protos.PartySyncRequest.Parser, new[]{ "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncResponse), global::Protos.PartySyncResponse.Parser, new[]{ "Status", "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
|
|
|
+ new pbr::GeneratedClrTypeInfo(typeof(global::Protos.PartySyncPush), global::Protos.PartySyncPush.Parser, new[]{ "Step", "Values", "T" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
|
|
|
}));
|
|
|
}
|
|
|
#endregion
|
|
@@ -202,6 +216,9 @@ namespace Protos {
|
|
|
users_ = other.users_.Clone();
|
|
|
step_ = other.step_;
|
|
|
state_ = other.state_.Clone();
|
|
|
+ road_ = other.road_;
|
|
|
+ createAt_ = other.createAt_;
|
|
|
+ stageIndex_ = other.stageIndex_;
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -240,6 +257,39 @@ namespace Protos {
|
|
|
get { return state_; }
|
|
|
}
|
|
|
|
|
|
+ /// <summary>Field number for the "Road" field.</summary>
|
|
|
+ public const int RoadFieldNumber = 4;
|
|
|
+ private string road_ = "";
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public string Road {
|
|
|
+ get { return road_; }
|
|
|
+ set {
|
|
|
+ road_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "CreateAt" field.</summary>
|
|
|
+ public const int CreateAtFieldNumber = 5;
|
|
|
+ private ulong createAt_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong CreateAt {
|
|
|
+ get { return createAt_; }
|
|
|
+ set {
|
|
|
+ createAt_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "stageIndex" field.</summary>
|
|
|
+ public const int StageIndexFieldNumber = 6;
|
|
|
+ private int stageIndex_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int StageIndex {
|
|
|
+ get { return stageIndex_; }
|
|
|
+ set {
|
|
|
+ stageIndex_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
public override bool Equals(object other) {
|
|
|
return Equals(other as RestoreResponse);
|
|
@@ -256,6 +306,9 @@ namespace Protos {
|
|
|
if(!users_.Equals(other.users_)) return false;
|
|
|
if (Step != other.Step) return false;
|
|
|
if (!State.Equals(other.State)) return false;
|
|
|
+ if (Road != other.Road) return false;
|
|
|
+ if (CreateAt != other.CreateAt) return false;
|
|
|
+ if (StageIndex != other.StageIndex) return false;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -265,6 +318,9 @@ namespace Protos {
|
|
|
hash ^= users_.GetHashCode();
|
|
|
if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
|
hash ^= State.GetHashCode();
|
|
|
+ if (Road.Length != 0) hash ^= Road.GetHashCode();
|
|
|
+ if (CreateAt != 0UL) hash ^= CreateAt.GetHashCode();
|
|
|
+ if (StageIndex != 0) hash ^= StageIndex.GetHashCode();
|
|
|
return hash;
|
|
|
}
|
|
|
|
|
@@ -281,6 +337,18 @@ namespace Protos {
|
|
|
output.WriteUInt64(Step);
|
|
|
}
|
|
|
state_.WriteTo(output, _map_state_codec);
|
|
|
+ if (Road.Length != 0) {
|
|
|
+ output.WriteRawTag(34);
|
|
|
+ output.WriteString(Road);
|
|
|
+ }
|
|
|
+ if (CreateAt != 0UL) {
|
|
|
+ output.WriteRawTag(40);
|
|
|
+ output.WriteUInt64(CreateAt);
|
|
|
+ }
|
|
|
+ if (StageIndex != 0) {
|
|
|
+ output.WriteRawTag(48);
|
|
|
+ output.WriteInt32(StageIndex);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -291,6 +359,15 @@ namespace Protos {
|
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
|
}
|
|
|
size += state_.CalculateSize(_map_state_codec);
|
|
|
+ if (Road.Length != 0) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Road);
|
|
|
+ }
|
|
|
+ if (CreateAt != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreateAt);
|
|
|
+ }
|
|
|
+ if (StageIndex != 0) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(StageIndex);
|
|
|
+ }
|
|
|
return size;
|
|
|
}
|
|
|
|
|
@@ -304,6 +381,15 @@ namespace Protos {
|
|
|
Step = other.Step;
|
|
|
}
|
|
|
state_.Add(other.state_);
|
|
|
+ if (other.Road.Length != 0) {
|
|
|
+ Road = other.Road;
|
|
|
+ }
|
|
|
+ if (other.CreateAt != 0UL) {
|
|
|
+ CreateAt = other.CreateAt;
|
|
|
+ }
|
|
|
+ if (other.StageIndex != 0) {
|
|
|
+ StageIndex = other.StageIndex;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -326,6 +412,18 @@ namespace Protos {
|
|
|
state_.AddEntriesFrom(input, _map_state_codec);
|
|
|
break;
|
|
|
}
|
|
|
+ case 34: {
|
|
|
+ Road = input.ReadString();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 40: {
|
|
|
+ CreateAt = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 48: {
|
|
|
+ StageIndex = input.ReadInt32();
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2003,6 +2101,522 @@ namespace Protos {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 同步消息
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class PartySyncRequest : pb::IMessage<PartySyncRequest> {
|
|
|
+ private static readonly pb::MessageParser<PartySyncRequest> _parser = new pb::MessageParser<PartySyncRequest>(() => new PartySyncRequest());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<PartySyncRequest> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[14]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncRequest() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncRequest(PartySyncRequest other) : this() {
|
|
|
+ step_ = other.step_;
|
|
|
+ values_ = other.values_.Clone();
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncRequest Clone() {
|
|
|
+ return new PartySyncRequest(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Step" field.</summary>
|
|
|
+ public const int StepFieldNumber = 1;
|
|
|
+ private ulong step_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong Step {
|
|
|
+ get { return step_; }
|
|
|
+ set {
|
|
|
+ step_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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 PartySyncRequest);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(PartySyncRequest other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (Step != other.Step) return false;
|
|
|
+ if (!Values.Equals(other.Values)) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ if (Step != 0UL) hash ^= Step.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) {
|
|
|
+ if (Step != 0UL) {
|
|
|
+ output.WriteRawTag(8);
|
|
|
+ output.WriteUInt64(Step);
|
|
|
+ }
|
|
|
+ values_.WriteTo(output, _map_values_codec);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ if (Step != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
|
+ }
|
|
|
+ size += values_.CalculateSize(_map_values_codec);
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(PartySyncRequest other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (other.Step != 0UL) {
|
|
|
+ Step = other.Step;
|
|
|
+ }
|
|
|
+ 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 8: {
|
|
|
+ Step = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 18: {
|
|
|
+ values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 同步消息响应
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class PartySyncResponse : pb::IMessage<PartySyncResponse> {
|
|
|
+ private static readonly pb::MessageParser<PartySyncResponse> _parser = new pb::MessageParser<PartySyncResponse>(() => new PartySyncResponse());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<PartySyncResponse> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[15]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncResponse() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncResponse(PartySyncResponse other) : this() {
|
|
|
+ status_ = other.status_;
|
|
|
+ step_ = other.step_;
|
|
|
+ values_ = other.values_.Clone();
|
|
|
+ t_ = other.t_;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncResponse Clone() {
|
|
|
+ return new PartySyncResponse(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Status" field.</summary>
|
|
|
+ public const int StatusFieldNumber = 1;
|
|
|
+ private bool status_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Status {
|
|
|
+ get { return status_; }
|
|
|
+ set {
|
|
|
+ status_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Step" field.</summary>
|
|
|
+ public const int StepFieldNumber = 2;
|
|
|
+ private ulong step_;
|
|
|
+ /// <summary>
|
|
|
+ /// status=false时才有值
|
|
|
+ /// </summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong Step {
|
|
|
+ get { return step_; }
|
|
|
+ set {
|
|
|
+ step_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Values" field.</summary>
|
|
|
+ public const int ValuesFieldNumber = 3;
|
|
|
+ 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), 26);
|
|
|
+ private readonly pbc::MapField<string, pb::ByteString> values_ = new pbc::MapField<string, pb::ByteString>();
|
|
|
+ /// <summary>
|
|
|
+ /// status=false时才有值
|
|
|
+ /// </summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public pbc::MapField<string, pb::ByteString> Values {
|
|
|
+ get { return values_; }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "T" field.</summary>
|
|
|
+ public const int TFieldNumber = 4;
|
|
|
+ private ulong t_;
|
|
|
+ /// <summary>
|
|
|
+ /// 服务器收到sync request的时间戳(毫秒)
|
|
|
+ /// </summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong T {
|
|
|
+ get { return t_; }
|
|
|
+ set {
|
|
|
+ t_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override bool Equals(object other) {
|
|
|
+ return Equals(other as PartySyncResponse);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(PartySyncResponse other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (Status != other.Status) return false;
|
|
|
+ if (Step != other.Step) return false;
|
|
|
+ if (!Values.Equals(other.Values)) return false;
|
|
|
+ if (T != other.T) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ if (Status != false) hash ^= Status.GetHashCode();
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
|
+ hash ^= Values.GetHashCode();
|
|
|
+ if (T != 0UL) hash ^= T.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 (Status != false) {
|
|
|
+ output.WriteRawTag(8);
|
|
|
+ output.WriteBool(Status);
|
|
|
+ }
|
|
|
+ if (Step != 0UL) {
|
|
|
+ output.WriteRawTag(16);
|
|
|
+ output.WriteUInt64(Step);
|
|
|
+ }
|
|
|
+ values_.WriteTo(output, _map_values_codec);
|
|
|
+ if (T != 0UL) {
|
|
|
+ output.WriteRawTag(32);
|
|
|
+ output.WriteUInt64(T);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ if (Status != false) {
|
|
|
+ size += 1 + 1;
|
|
|
+ }
|
|
|
+ if (Step != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
|
+ }
|
|
|
+ size += values_.CalculateSize(_map_values_codec);
|
|
|
+ if (T != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
|
|
|
+ }
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(PartySyncResponse other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (other.Status != false) {
|
|
|
+ Status = other.Status;
|
|
|
+ }
|
|
|
+ if (other.Step != 0UL) {
|
|
|
+ Step = other.Step;
|
|
|
+ }
|
|
|
+ values_.Add(other.values_);
|
|
|
+ if (other.T != 0UL) {
|
|
|
+ T = other.T;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(pb::CodedInputStream input) {
|
|
|
+ uint tag;
|
|
|
+ while ((tag = input.ReadTag()) != 0) {
|
|
|
+ switch(tag) {
|
|
|
+ default:
|
|
|
+ input.SkipLastField();
|
|
|
+ break;
|
|
|
+ case 8: {
|
|
|
+ Status = input.ReadBool();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 16: {
|
|
|
+ Step = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 26: {
|
|
|
+ values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 32: {
|
|
|
+ T = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 同步消息推送
|
|
|
+ /// </summary>
|
|
|
+ public sealed partial class PartySyncPush : pb::IMessage<PartySyncPush> {
|
|
|
+ private static readonly pb::MessageParser<PartySyncPush> _parser = new pb::MessageParser<PartySyncPush>(() => new PartySyncPush());
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pb::MessageParser<PartySyncPush> Parser { get { return _parser; } }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public static pbr::MessageDescriptor Descriptor {
|
|
|
+ get { return global::Protos.SyncReflection.Descriptor.MessageTypes[16]; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
|
+ get { return Descriptor; }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncPush() {
|
|
|
+ OnConstruction();
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void OnConstruction();
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncPush(PartySyncPush other) : this() {
|
|
|
+ step_ = other.step_;
|
|
|
+ values_ = other.values_.Clone();
|
|
|
+ t_ = other.t_;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public PartySyncPush Clone() {
|
|
|
+ return new PartySyncPush(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "Step" field.</summary>
|
|
|
+ public const int StepFieldNumber = 1;
|
|
|
+ private ulong step_;
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong Step {
|
|
|
+ get { return step_; }
|
|
|
+ set {
|
|
|
+ step_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <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_; }
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>Field number for the "T" field.</summary>
|
|
|
+ public const int TFieldNumber = 3;
|
|
|
+ private ulong t_;
|
|
|
+ /// <summary>
|
|
|
+ /// 服务器开始推送时间戳
|
|
|
+ /// </summary>
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public ulong T {
|
|
|
+ get { return t_; }
|
|
|
+ set {
|
|
|
+ t_ = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override bool Equals(object other) {
|
|
|
+ return Equals(other as PartySyncPush);
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public bool Equals(PartySyncPush other) {
|
|
|
+ if (ReferenceEquals(other, null)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (ReferenceEquals(other, this)) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (Step != other.Step) return false;
|
|
|
+ if (!Values.Equals(other.Values)) return false;
|
|
|
+ if (T != other.T) return false;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public override int GetHashCode() {
|
|
|
+ int hash = 1;
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
|
+ hash ^= Values.GetHashCode();
|
|
|
+ if (T != 0UL) hash ^= T.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 (Step != 0UL) {
|
|
|
+ output.WriteRawTag(8);
|
|
|
+ output.WriteUInt64(Step);
|
|
|
+ }
|
|
|
+ values_.WriteTo(output, _map_values_codec);
|
|
|
+ if (T != 0UL) {
|
|
|
+ output.WriteRawTag(24);
|
|
|
+ output.WriteUInt64(T);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public int CalculateSize() {
|
|
|
+ int size = 0;
|
|
|
+ if (Step != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
|
+ }
|
|
|
+ size += values_.CalculateSize(_map_values_codec);
|
|
|
+ if (T != 0UL) {
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(T);
|
|
|
+ }
|
|
|
+ return size;
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(PartySyncPush other) {
|
|
|
+ if (other == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (other.Step != 0UL) {
|
|
|
+ Step = other.Step;
|
|
|
+ }
|
|
|
+ values_.Add(other.values_);
|
|
|
+ if (other.T != 0UL) {
|
|
|
+ T = other.T;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
+ public void MergeFrom(pb::CodedInputStream input) {
|
|
|
+ uint tag;
|
|
|
+ while ((tag = input.ReadTag()) != 0) {
|
|
|
+ switch(tag) {
|
|
|
+ default:
|
|
|
+ input.SkipLastField();
|
|
|
+ break;
|
|
|
+ case 8: {
|
|
|
+ Step = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 18: {
|
|
|
+ values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 24: {
|
|
|
+ T = input.ReadUInt64();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
}
|