|
@@ -23,27 +23,35 @@ namespace Protos {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
string.Concat(
|
|
"CgpzeW5jLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvIhAKDlJlc3Rv",
|
|
"CgpzeW5jLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvIhAKDlJlc3Rv",
|
|
- "cmVSZXF1ZXN0IqQBCg9SZXN0b3JlUmVzcG9uc2USHwoFVXNlcnMYASADKAsy",
|
|
|
|
- "EC5wcm90b3MuVXNlckluZm8SDAoEU3RlcBgCIAEoAxIzCgZWYWx1ZXMYAyAD",
|
|
|
|
- "KAsyIy5wcm90b3MuUmVzdG9yZVJlc3BvbnNlLlZhbHVlc0VudHJ5Gi0KC1Zh",
|
|
|
|
- "bHVlc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEiewoL",
|
|
|
|
- "U3luY1JlcXVlc3QSDAoEU3RlcBgBIAEoAxIvCgZWYWx1ZXMYAiADKAsyHy5w",
|
|
|
|
- "cm90b3MuU3luY1JlcXVlc3QuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkS",
|
|
|
|
- "CwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASKNAQoMU3luY1Jlc3Bv",
|
|
|
|
- "bnNlEg4KBlN0YXR1cxgBIAEoCBIMCgRTdGVwGAIgASgDEjAKBlZhbHVlcxgD",
|
|
|
|
- "IAMoCzIgLnByb3Rvcy5TeW5jUmVzcG9uc2UuVmFsdWVzRW50cnkaLQoLVmFs",
|
|
|
|
- "dWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASJ1CghT",
|
|
|
|
- "eW5jUHVzaBIMCgRTdGVwGAEgASgDEiwKBlZhbHVlcxgCIAMoCzIcLnByb3Rv",
|
|
|
|
- "cy5TeW5jUHVzaC5WYWx1ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkY",
|
|
|
|
- "ASABKAkSDQoFdmFsdWUYAiABKAw6AjgBYgZwcm90bzM="));
|
|
|
|
|
|
+ "cmVSZXF1ZXN0IqEBCg9SZXN0b3JlUmVzcG9uc2USHwoFVXNlcnMYASADKAsy",
|
|
|
|
+ "EC5wcm90b3MuVXNlckluZm8SDAoEU3RlcBgCIAEoBBIxCgVzdGF0ZRgDIAMo",
|
|
|
|
+ "CzIiLnByb3Rvcy5SZXN0b3JlUmVzcG9uc2UuU3RhdGVFbnRyeRosCgpTdGF0",
|
|
|
|
+ "ZUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoDDoCOAEiewoLU3lu",
|
|
|
|
+ "Y1JlcXVlc3QSDAoEU3RlcBgBIAEoBBIvCgZWYWx1ZXMYAiADKAsyHy5wcm90",
|
|
|
|
+ "b3MuU3luY1JlcXVlc3QuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkSCwoD",
|
|
|
|
+ "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASKNAQoMU3luY1Jlc3BvbnNl",
|
|
|
|
+ "Eg4KBlN0YXR1cxgBIAEoCBIMCgRTdGVwGAIgASgEEjAKBlZhbHVlcxgDIAMo",
|
|
|
|
+ "CzIgLnByb3Rvcy5TeW5jUmVzcG9uc2UuVmFsdWVzRW50cnkaLQoLVmFsdWVz",
|
|
|
|
+ "RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4ASJ1CghTeW5j",
|
|
|
|
+ "UHVzaBIMCgRTdGVwGAEgASgEEiwKBlZhbHVlcxgCIAMoCzIcLnByb3Rvcy5T",
|
|
|
|
+ "eW5jUHVzaC5WYWx1ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkYASAB",
|
|
|
|
+ "KAkSDQoFdmFsdWUYAiABKAw6AjgBInkKCk1hc3RlclB1c2gSDAoEU3RlcBgB",
|
|
|
|
+ "IAEoBBIuCgZWYWx1ZXMYAiADKAsyHi5wcm90b3MuTWFzdGVyUHVzaC5WYWx1",
|
|
|
|
+ "ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY",
|
|
|
|
+ "AiABKAw6AjgBIn0KDE1hc3Rlck5vdGlmeRIMCgRTdGVwGAEgASgEEjAKBlZh",
|
|
|
|
+ "bHVlcxgCIAMoCzIgLnByb3Rvcy5NYXN0ZXJOb3RpZnkuVmFsdWVzRW50cnka",
|
|
|
|
+ "LQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgMOgI4",
|
|
|
|
+ "AWIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, },
|
|
new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
|
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.RestoreRequest), global::Protos.RestoreRequest.Parser, null, null, null, null),
|
|
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RestoreResponse), global::Protos.RestoreResponse.Parser, new[]{ "Users", "Step", "Values" }, null, null, new pbr::GeneratedClrTypeInfo[] { 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.SyncRequest), global::Protos.SyncRequest.Parser, new[]{ "Step", "Values" }, 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.SyncResponse), global::Protos.SyncResponse.Parser, new[]{ "Status", "Step", "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.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, })
|
|
}));
|
|
}));
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
@@ -171,7 +179,7 @@ namespace Protos {
|
|
public RestoreResponse(RestoreResponse other) : this() {
|
|
public RestoreResponse(RestoreResponse other) : this() {
|
|
users_ = other.users_.Clone();
|
|
users_ = other.users_.Clone();
|
|
step_ = other.step_;
|
|
step_ = other.step_;
|
|
- values_ = other.values_.Clone();
|
|
|
|
|
|
+ state_ = other.state_.Clone();
|
|
}
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -191,23 +199,23 @@ namespace Protos {
|
|
|
|
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
public const int StepFieldNumber = 2;
|
|
public const int StepFieldNumber = 2;
|
|
- private long step_;
|
|
|
|
|
|
+ private ulong step_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
- public long Step {
|
|
|
|
|
|
+ public ulong Step {
|
|
get { return step_; }
|
|
get { return step_; }
|
|
set {
|
|
set {
|
|
step_ = value;
|
|
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
|
|
|
|
|
|
+ /// <summary>Field number for the "state" field.</summary>
|
|
|
|
+ public const int StateFieldNumber = 3;
|
|
|
|
+ private static readonly pbc::MapField<string, pb::ByteString>.Codec _map_state_codec
|
|
= new pbc::MapField<string, pb::ByteString>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 26);
|
|
= 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>();
|
|
|
|
|
|
+ private readonly pbc::MapField<string, pb::ByteString> state_ = new pbc::MapField<string, pb::ByteString>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
- public pbc::MapField<string, pb::ByteString> Values {
|
|
|
|
- get { return values_; }
|
|
|
|
|
|
+ public pbc::MapField<string, pb::ByteString> State {
|
|
|
|
+ get { return state_; }
|
|
}
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -225,7 +233,7 @@ namespace Protos {
|
|
}
|
|
}
|
|
if(!users_.Equals(other.users_)) return false;
|
|
if(!users_.Equals(other.users_)) return false;
|
|
if (Step != other.Step) return false;
|
|
if (Step != other.Step) return false;
|
|
- if (!Values.Equals(other.Values)) return false;
|
|
|
|
|
|
+ if (!State.Equals(other.State)) return false;
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -233,8 +241,8 @@ namespace Protos {
|
|
public override int GetHashCode() {
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
hash ^= users_.GetHashCode();
|
|
hash ^= users_.GetHashCode();
|
|
- if (Step != 0L) hash ^= Step.GetHashCode();
|
|
|
|
- hash ^= Values.GetHashCode();
|
|
|
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
|
|
+ hash ^= State.GetHashCode();
|
|
return hash;
|
|
return hash;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -246,21 +254,21 @@ namespace Protos {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
users_.WriteTo(output, _repeated_users_codec);
|
|
users_.WriteTo(output, _repeated_users_codec);
|
|
- if (Step != 0L) {
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
output.WriteRawTag(16);
|
|
output.WriteRawTag(16);
|
|
- output.WriteInt64(Step);
|
|
|
|
|
|
+ output.WriteUInt64(Step);
|
|
}
|
|
}
|
|
- values_.WriteTo(output, _map_values_codec);
|
|
|
|
|
|
+ state_.WriteTo(output, _map_state_codec);
|
|
}
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
int size = 0;
|
|
size += users_.CalculateSize(_repeated_users_codec);
|
|
size += users_.CalculateSize(_repeated_users_codec);
|
|
- if (Step != 0L) {
|
|
|
|
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Step);
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
}
|
|
}
|
|
- size += values_.CalculateSize(_map_values_codec);
|
|
|
|
|
|
+ size += state_.CalculateSize(_map_state_codec);
|
|
return size;
|
|
return size;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -270,10 +278,10 @@ namespace Protos {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
users_.Add(other.users_);
|
|
users_.Add(other.users_);
|
|
- if (other.Step != 0L) {
|
|
|
|
|
|
+ if (other.Step != 0UL) {
|
|
Step = other.Step;
|
|
Step = other.Step;
|
|
}
|
|
}
|
|
- values_.Add(other.values_);
|
|
|
|
|
|
+ state_.Add(other.state_);
|
|
}
|
|
}
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
@@ -289,11 +297,11 @@ namespace Protos {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 16: {
|
|
case 16: {
|
|
- Step = input.ReadInt64();
|
|
|
|
|
|
+ Step = input.ReadUInt64();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
- values_.AddEntriesFrom(input, _map_values_codec);
|
|
|
|
|
|
+ state_.AddEntriesFrom(input, _map_state_codec);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -340,9 +348,9 @@ namespace Protos {
|
|
|
|
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
public const int StepFieldNumber = 1;
|
|
public const int StepFieldNumber = 1;
|
|
- private long step_;
|
|
|
|
|
|
+ private ulong step_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
- public long Step {
|
|
|
|
|
|
+ public ulong Step {
|
|
get { return step_; }
|
|
get { return step_; }
|
|
set {
|
|
set {
|
|
step_ = value;
|
|
step_ = value;
|
|
@@ -380,7 +388,7 @@ namespace Protos {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
- if (Step != 0L) hash ^= Step.GetHashCode();
|
|
|
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
return hash;
|
|
return hash;
|
|
}
|
|
}
|
|
@@ -392,9 +400,9 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
- if (Step != 0L) {
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
output.WriteRawTag(8);
|
|
output.WriteRawTag(8);
|
|
- output.WriteInt64(Step);
|
|
|
|
|
|
+ output.WriteUInt64(Step);
|
|
}
|
|
}
|
|
values_.WriteTo(output, _map_values_codec);
|
|
values_.WriteTo(output, _map_values_codec);
|
|
}
|
|
}
|
|
@@ -402,8 +410,8 @@ namespace Protos {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
int size = 0;
|
|
- if (Step != 0L) {
|
|
|
|
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Step);
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
}
|
|
}
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
return size;
|
|
return size;
|
|
@@ -414,7 +422,7 @@ namespace Protos {
|
|
if (other == null) {
|
|
if (other == null) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (other.Step != 0L) {
|
|
|
|
|
|
+ if (other.Step != 0UL) {
|
|
Step = other.Step;
|
|
Step = other.Step;
|
|
}
|
|
}
|
|
values_.Add(other.values_);
|
|
values_.Add(other.values_);
|
|
@@ -429,7 +437,7 @@ namespace Protos {
|
|
input.SkipLastField();
|
|
input.SkipLastField();
|
|
break;
|
|
break;
|
|
case 8: {
|
|
case 8: {
|
|
- Step = input.ReadInt64();
|
|
|
|
|
|
+ Step = input.ReadUInt64();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
case 18: {
|
|
@@ -492,12 +500,12 @@ namespace Protos {
|
|
|
|
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
public const int StepFieldNumber = 2;
|
|
public const int StepFieldNumber = 2;
|
|
- private long step_;
|
|
|
|
|
|
+ private ulong step_;
|
|
/// <summary>
|
|
/// <summary>
|
|
/// status=false时才有值
|
|
/// status=false时才有值
|
|
/// </summary>
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
- public long Step {
|
|
|
|
|
|
+ public ulong Step {
|
|
get { return step_; }
|
|
get { return step_; }
|
|
set {
|
|
set {
|
|
step_ = value;
|
|
step_ = value;
|
|
@@ -540,7 +548,7 @@ namespace Protos {
|
|
public override int GetHashCode() {
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
if (Status != false) hash ^= Status.GetHashCode();
|
|
if (Status != false) hash ^= Status.GetHashCode();
|
|
- if (Step != 0L) hash ^= Step.GetHashCode();
|
|
|
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
return hash;
|
|
return hash;
|
|
}
|
|
}
|
|
@@ -556,9 +564,9 @@ namespace Protos {
|
|
output.WriteRawTag(8);
|
|
output.WriteRawTag(8);
|
|
output.WriteBool(Status);
|
|
output.WriteBool(Status);
|
|
}
|
|
}
|
|
- if (Step != 0L) {
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
output.WriteRawTag(16);
|
|
output.WriteRawTag(16);
|
|
- output.WriteInt64(Step);
|
|
|
|
|
|
+ output.WriteUInt64(Step);
|
|
}
|
|
}
|
|
values_.WriteTo(output, _map_values_codec);
|
|
values_.WriteTo(output, _map_values_codec);
|
|
}
|
|
}
|
|
@@ -569,8 +577,8 @@ namespace Protos {
|
|
if (Status != false) {
|
|
if (Status != false) {
|
|
size += 1 + 1;
|
|
size += 1 + 1;
|
|
}
|
|
}
|
|
- if (Step != 0L) {
|
|
|
|
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Step);
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
}
|
|
}
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
return size;
|
|
return size;
|
|
@@ -584,7 +592,7 @@ namespace Protos {
|
|
if (other.Status != false) {
|
|
if (other.Status != false) {
|
|
Status = other.Status;
|
|
Status = other.Status;
|
|
}
|
|
}
|
|
- if (other.Step != 0L) {
|
|
|
|
|
|
+ if (other.Step != 0UL) {
|
|
Step = other.Step;
|
|
Step = other.Step;
|
|
}
|
|
}
|
|
values_.Add(other.values_);
|
|
values_.Add(other.values_);
|
|
@@ -603,7 +611,7 @@ namespace Protos {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 16: {
|
|
case 16: {
|
|
- Step = input.ReadInt64();
|
|
|
|
|
|
+ Step = input.ReadUInt64();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 26: {
|
|
case 26: {
|
|
@@ -654,9 +662,9 @@ namespace Protos {
|
|
|
|
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
/// <summary>Field number for the "Step" field.</summary>
|
|
public const int StepFieldNumber = 1;
|
|
public const int StepFieldNumber = 1;
|
|
- private long step_;
|
|
|
|
|
|
+ private ulong step_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
- public long Step {
|
|
|
|
|
|
+ public ulong Step {
|
|
get { return step_; }
|
|
get { return step_; }
|
|
set {
|
|
set {
|
|
step_ = value;
|
|
step_ = value;
|
|
@@ -694,7 +702,7 @@ namespace Protos {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
int hash = 1;
|
|
- if (Step != 0L) hash ^= Step.GetHashCode();
|
|
|
|
|
|
+ if (Step != 0UL) hash ^= Step.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
hash ^= Values.GetHashCode();
|
|
return hash;
|
|
return hash;
|
|
}
|
|
}
|
|
@@ -706,9 +714,9 @@ namespace Protos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
- if (Step != 0L) {
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
output.WriteRawTag(8);
|
|
output.WriteRawTag(8);
|
|
- output.WriteInt64(Step);
|
|
|
|
|
|
+ output.WriteUInt64(Step);
|
|
}
|
|
}
|
|
values_.WriteTo(output, _map_values_codec);
|
|
values_.WriteTo(output, _map_values_codec);
|
|
}
|
|
}
|
|
@@ -716,8 +724,8 @@ namespace Protos {
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
int size = 0;
|
|
- if (Step != 0L) {
|
|
|
|
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Step);
|
|
|
|
|
|
+ if (Step != 0UL) {
|
|
|
|
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Step);
|
|
}
|
|
}
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
size += values_.CalculateSize(_map_values_codec);
|
|
return size;
|
|
return size;
|
|
@@ -728,7 +736,287 @@ namespace Protos {
|
|
if (other == null) {
|
|
if (other == null) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (other.Step != 0L) {
|
|
|
|
|
|
+ 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>
|
|
|
|
+ /// 服务器合并用户操作给master
|
|
|
|
+ /// </summary>
|
|
|
|
+ public sealed partial class MasterPush : pb::IMessage<MasterPush> {
|
|
|
|
+ private static readonly pb::MessageParser<MasterPush> _parser = new pb::MessageParser<MasterPush>(() => new MasterPush());
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public static pb::MessageParser<MasterPush> 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 MasterPush() {
|
|
|
|
+ OnConstruction();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ partial void OnConstruction();
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public MasterPush(MasterPush other) : this() {
|
|
|
|
+ step_ = other.step_;
|
|
|
|
+ values_ = other.values_.Clone();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public MasterPush Clone() {
|
|
|
|
+ return new MasterPush(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 MasterPush);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public bool Equals(MasterPush 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(MasterPush 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>
|
|
|
|
+ /// 主机广播消息给flower
|
|
|
|
+ /// </summary>
|
|
|
|
+ public sealed partial class MasterNotify : pb::IMessage<MasterNotify> {
|
|
|
|
+ private static readonly pb::MessageParser<MasterNotify> _parser = new pb::MessageParser<MasterNotify>(() => new MasterNotify());
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public static pb::MessageParser<MasterNotify> 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 MasterNotify() {
|
|
|
|
+ OnConstruction();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ partial void OnConstruction();
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public MasterNotify(MasterNotify other) : this() {
|
|
|
|
+ step_ = other.step_;
|
|
|
|
+ values_ = other.values_.Clone();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public MasterNotify Clone() {
|
|
|
|
+ return new MasterNotify(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 MasterNotify);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ public bool Equals(MasterNotify 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(MasterNotify other) {
|
|
|
|
+ if (other == null) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (other.Step != 0UL) {
|
|
Step = other.Step;
|
|
Step = other.Step;
|
|
}
|
|
}
|
|
values_.Add(other.values_);
|
|
values_.Add(other.values_);
|
|
@@ -743,7 +1031,7 @@ namespace Protos {
|
|
input.SkipLastField();
|
|
input.SkipLastField();
|
|
break;
|
|
break;
|
|
case 8: {
|
|
case 8: {
|
|
- Step = input.ReadInt64();
|
|
|
|
|
|
+ Step = input.ReadUInt64();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 18: {
|
|
case 18: {
|