|
|
|
@ -24,28 +24,29 @@ namespace Game { |
|
|
|
static GameReflection() { |
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
string.Concat( |
|
|
|
"CgpnYW1lLnByb3RvEgRnYW1lIhQKBlVzZXJJRBIKCgJpZBgBIAEoCSIYCghV", |
|
|
|
"c2VybmFtZRIMCgRuYW1lGAEgASgJIgYKBE51bGwiKAoGQ2FyZElEEg4KBmdh", |
|
|
|
"bWVJZBgBIAEoBBIOCgZjYXJkSWQYAiABKAkiGAoFSW1hZ2USDwoHY29udGVu", |
|
|
|
"dBgBIAEoDCIZCglMb2JieUNvZGUSDAoEY29kZRgBIAEoDSJCCgRHYW1lEgwK", |
|
|
|
"BG5hbWUYASABKAkSDwoHdmVyc2lvbhgCIAEoCRIPCgdhdXRob3JzGAMgAygJ", |
|
|
|
"EgoKAmlkGAQgASgEIhIKBFZvdGUSCgoCaWQYASABKAQiWQoLTG9iYnlTdGF0", |
|
|
|
"dXMSGQoFdm90ZXMYASADKAsyCi5nYW1lLlZvdGUSGwoFcmVhZHkYAiADKAsy", |
|
|
|
"DC5nYW1lLlBsYXllchISCgppc1N0YXJ0aW5nGAMgASgIIiIKBlBsYXllchIM", |
|
|
|
"CgRuYW1lGAEgASgJEgoKAmlkGAIgASgEMpwBCgpDb25uZWN0aW9uEicKB2Nv", |
|
|
|
"bm5lY3QSDi5nYW1lLlVzZXJuYW1lGgwuZ2FtZS5Vc2VySUQSMAoRam9pbkxv", |
|
|
|
"YmJ5V2l0aENvZGUSDy5nYW1lLkxvYmJ5Q29kZRoKLmdhbWUuTnVsbBIzChRq", |
|
|
|
"b2luTG9iYnlXaXRob3V0Q29kZRIKLmdhbWUuTnVsbBoPLmdhbWUuTG9iYnlD", |
|
|
|
"b2RlMsIBCgVMb2JieRIkCghnZXRHYW1lcxIKLmdhbWUuTnVsbBoKLmdhbWUu", |
|
|
|
"R2FtZTABEikKDGdldENhcmRJbWFnZRIMLmdhbWUuQ2FyZElEGgsu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
|
|
|
"LmdhbWUuTnVsbBoPLmdhbWUuTG9iYnlDb2RlMsIBCgVMb2JieRIkCghnZXRH", |
|
|
|
"YW1lcxIKLmdhbWUuTnVsbBoKLmdhbWUuR2FtZTABEikKDGdldENhcmRJbWFn", |
|
|
|
"ZRIMLmdhbWUuQ2FyZElEGgsuZ2FtZS5JbWFnZRIeCgR2b3RlEgouZ2FtZS5W", |
|
|
|
"b3RlGgouZ2FtZS5OdWxsEh8KBXJlYWR5EgouZ2FtZS5OdWxsGgouZ2FtZS5O", |
|
|
|
"dWxsEicKBnN0YXR1cxIKLmdhbWUuTnVsbBoRLmdhbWUuTG9iYnlTdGF0dXNi", |
|
|
|
"BnByb3RvMw==")); |
|
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
|
|
|
new pbr::FileDescriptor[] { }, |
|
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.UserID), global::Game.UserID.Parser, new[]{ "Id" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Username), global::Game.Username.Parser, new[]{ "Name" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Name), global::Game.Name.Parser, new[]{ "Name_" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Null), global::Game.Null.Parser, null, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.CardID), global::Game.CardID.Parser, new[]{ "GameId", "CardId" }, null, null, null, null), |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Game.Image), global::Game.Image.Parser, new[]{ "Content" }, null, null, null, null), |
|
|
|
@ -232,15 +233,15 @@ namespace Game { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public sealed partial class Username : pb::IMessage<Username> |
|
|
|
public sealed partial class Name : pb::IMessage<Name> |
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
, pb::IBufferMessage |
|
|
|
#endif
|
|
|
|
{ |
|
|
|
private static readonly pb::MessageParser<Username> _parser = new pb::MessageParser<Username>(() => new Username()); |
|
|
|
private static readonly pb::MessageParser<Name> _parser = new pb::MessageParser<Name>(() => new Name()); |
|
|
|
private pb::UnknownFieldSet _unknownFields; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pb::MessageParser<Username> Parser { get { return _parser; } } |
|
|
|
public static pb::MessageParser<Name> Parser { get { return _parser; } } |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public static pbr::MessageDescriptor Descriptor { |
|
|
|
@ -253,28 +254,28 @@ namespace Game { |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Username() { |
|
|
|
public Name() { |
|
|
|
OnConstruction(); |
|
|
|
} |
|
|
|
|
|
|
|
partial void OnConstruction(); |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Username(Username other) : this() { |
|
|
|
public Name(Name other) : this() { |
|
|
|
name_ = other.name_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public Username Clone() { |
|
|
|
return new Username(this); |
|
|
|
public Name Clone() { |
|
|
|
return new Name(this); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
|
|
public const int NameFieldNumber = 1; |
|
|
|
public const int Name_FieldNumber = 1; |
|
|
|
private string name_ = ""; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public string Name { |
|
|
|
public string Name_ { |
|
|
|
get { return name_; } |
|
|
|
set { |
|
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
|
|
|
@ -283,25 +284,25 @@ namespace Game { |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as Username); |
|
|
|
return Equals(other as Name); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public bool Equals(Username other) { |
|
|
|
public bool Equals(Name other) { |
|
|
|
if (ReferenceEquals(other, null)) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (ReferenceEquals(other, this)) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
if (Name != other.Name) return false; |
|
|
|
if (Name_ != other.Name_) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override int GetHashCode() { |
|
|
|
int hash = 1; |
|
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
|
|
|
if (Name_.Length != 0) hash ^= Name_.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
@ -318,9 +319,9 @@ namespace Game { |
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
output.WriteRawMessage(this); |
|
|
|
#else
|
|
|
|
if (Name.Length != 0) { |
|
|
|
if (Name_.Length != 0) { |
|
|
|
output.WriteRawTag(10); |
|
|
|
output.WriteString(Name); |
|
|
|
output.WriteString(Name_); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
@ -331,9 +332,9 @@ namespace Game { |
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
|
|
|
if (Name.Length != 0) { |
|
|
|
if (Name_.Length != 0) { |
|
|
|
output.WriteRawTag(10); |
|
|
|
output.WriteString(Name); |
|
|
|
output.WriteString(Name_); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(ref output); |
|
|
|
@ -344,8 +345,8 @@ namespace Game { |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public int CalculateSize() { |
|
|
|
int size = 0; |
|
|
|
if (Name.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
|
|
|
if (Name_.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name_); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
@ -354,12 +355,12 @@ namespace Game { |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public void MergeFrom(Username other) { |
|
|
|
public void MergeFrom(Name other) { |
|
|
|
if (other == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (other.Name.Length != 0) { |
|
|
|
Name = other.Name; |
|
|
|
if (other.Name_.Length != 0) { |
|
|
|
Name_ = other.Name_; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
@ -376,7 +377,7 @@ namespace Game { |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
|
|
|
break; |
|
|
|
case 10: { |
|
|
|
Name = input.ReadString(); |
|
|
|
Name_ = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -394,7 +395,7 @@ namespace Game { |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
|
|
|
break; |
|
|
|
case 10: { |
|
|
|
Name = input.ReadString(); |
|
|
|
Name_ = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|