diff --git a/client/Assets/Scenes/Overworld.unity b/client/Assets/Scenes/Overworld.unity index d67265fc9..d6f30e88b 100644 --- a/client/Assets/Scenes/Overworld.unity +++ b/client/Assets/Scenes/Overworld.unity @@ -4510,7 +4510,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5680396890292483277, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_MethodName - value: ChangeToSceneWithDelay + value: ChangeToSuperCampaign objectReference: {fileID: 0} - target: {fileID: 5680396890292483277, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName @@ -4526,7 +4526,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 5680396890292483277, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[1].m_Arguments.m_StringArgument - value: CampaignsMap + value: Main Campaign objectReference: {fileID: 0} - target: {fileID: 5680396890292483277, guid: c36f69f305d3c4336a02acc5a4050f98, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName diff --git a/client/Assets/Scripts/BackendConnection/SocketConnection.cs b/client/Assets/Scripts/BackendConnection/SocketConnection.cs index a831a47fd..a63cf69f6 100644 --- a/client/Assets/Scripts/BackendConnection/SocketConnection.cs +++ b/client/Assets/Scripts/BackendConnection/SocketConnection.cs @@ -232,14 +232,16 @@ private List CreateUnitsFromData(IEnumerable units return createdUnits; } - private List ParseCampaignsFromResponse(Protobuf.Messages.Campaigns campaignsData, List availableCharacters) + private List ParseCampaignsFromResponse(Protobuf.Messages.Campaigns campaignsData, string superCampaignName, List availableCharacters) { - List<(string superCampaignId, string campaignId, string levelId)> userCampaignsProgress = GlobalUserData.Instance.User.campaignsProgresses; + List<(string superCampaignName, string campaignId, string levelId)> userCampaignsProgress = GlobalUserData.Instance.User.campaignsProgresses; List campaigns = new List(); LevelProgress.Status campaignStatus = LevelProgress.Status.Completed; - // Currently looping through all the campaigns like they all belong to the same super campaign - foreach (Protobuf.Messages.Campaign campaignData in campaignsData.Campaigns_) + // Filter campaigns by supercampaign name + var superCampaignCampaigns = campaignsData.Campaigns_.Where(campaign => campaign.SuperCampaignName == superCampaignName).ToList(); + + foreach (Protobuf.Messages.Campaign campaignData in superCampaignCampaigns) { LevelProgress.Status levelStatus = LevelProgress.Status.Completed; List levels = new List(); @@ -438,7 +440,7 @@ private void AwaitCampaignsProgressResponse(byte[] data, Action campaignProgresses = webSocketResponse.SuperCampaignProgresses.SuperCampaignProgresses_.Select(cp => (cp.SuperCampaignId, cp.CampaignId, cp.LevelId)).ToList(); + List<(string, string, string)> campaignProgresses = webSocketResponse.SuperCampaignProgresses.SuperCampaignProgresses_.Select(cp => (cp.SuperCampaignName, cp.CampaignId, cp.LevelId)).ToList(); onCampaignProgressReceived?.Invoke(campaignProgresses); } } @@ -448,7 +450,7 @@ private void AwaitCampaignsProgressResponse(byte[] data, Action> onCampaignDataReceived) + public void GetCampaigns(string userId, string superCampaignName, Action> onCampaignDataReceived) { GetCampaigns getCampaignsRequest = new GetCampaigns { @@ -458,13 +460,13 @@ public void GetCampaigns(string userId, Action> onCampaignDataRec { GetCampaigns = getCampaignsRequest }; - currentMessageHandler = (data) => AwaitGetCampaignsResponse(data, onCampaignDataReceived); + currentMessageHandler = (data) => AwaitGetCampaignsResponse(data, onCampaignDataReceived, superCampaignName); ws.OnMessage += currentMessageHandler; ws.OnMessage -= OnWebSocketMessage; SendWebSocketMessage(request); } - private void AwaitGetCampaignsResponse(byte[] data, Action> onCampaignDataReceived) + private void AwaitGetCampaignsResponse(byte[] data, Action> onCampaignDataReceived, string superCampaignName) { try { @@ -474,7 +476,7 @@ private void AwaitGetCampaignsResponse(byte[] data, Action> onCam if (webSocketResponse.ResponseTypeCase == WebSocketResponse.ResponseTypeOneofCase.Campaigns) { List availableCharacters = GlobalUserData.Instance.AvailableCharacters; - List campaigns = ParseCampaignsFromResponse(webSocketResponse.Campaigns, availableCharacters); + List campaigns = ParseCampaignsFromResponse(webSocketResponse.Campaigns, superCampaignName, availableCharacters); onCampaignDataReceived?.Invoke(campaigns); } } diff --git a/client/Assets/Scripts/CampaignsMap/CampaignsMapManager.cs b/client/Assets/Scripts/CampaignsMap/CampaignsMapManager.cs index d14be5bcf..b1f8961b3 100644 --- a/client/Assets/Scripts/CampaignsMap/CampaignsMapManager.cs +++ b/client/Assets/Scripts/CampaignsMap/CampaignsMapManager.cs @@ -11,9 +11,11 @@ public class CampaignsMapManager : MonoBehaviour [SerializeField] LevelManager sceneManager; + public static string selectedSuperCampaign; + void Start() { - SocketConnection.Instance.GetCampaigns(GlobalUserData.Instance.User.id, (campaigns) => + SocketConnection.Instance.GetCampaigns(GlobalUserData.Instance.User.id, selectedSuperCampaign, (campaigns) => { // this needs to be refactored, the campaigns have two parallel "paths" that do different things, they should be unified into the static class LevelProgress.campaigns = campaigns; diff --git a/client/Assets/Scripts/Protobuf/Gateway.pb.cs b/client/Assets/Scripts/Protobuf/Gateway.pb.cs index 1646a8a32..168de2385 100644 --- a/client/Assets/Scripts/Protobuf/Gateway.pb.cs +++ b/client/Assets/Scripts/Protobuf/Gateway.pb.cs @@ -9,19 +9,23 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Protobuf.Messages { +namespace Protobuf.Messages +{ /// Holder for reflection information generated from gateway.proto - public static partial class GatewayReflection { + public static partial class GatewayReflection + { #region Descriptor /// File descriptor for gateway.proto - public static pbr::FileDescriptor Descriptor { + public static pbr::FileDescriptor Descriptor + { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static GatewayReflection() { + static GatewayReflection() + { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg1nYXRld2F5LnByb3RvIqMHChBXZWJTb2NrZXRSZXF1ZXN0EhwKCGdldF91", @@ -89,83 +93,83 @@ static GatewayReflection() { "ZWxfdXBfY29zdBgEIAEoBBIXCg91bmxvY2tfZmVhdHVyZXMYBSADKAkSKAoQ", "YWZrX3Jld2FyZF9yYXRlcxgGIAMoCzIOLkFma1Jld2FyZFJhdGUiVAoXU3Vw", "ZXJDYW1wYWlnblByb2dyZXNzZXMSOQoZc3VwZXJfY2FtcGFpZ25fcHJvZ3Jl", - "c3NlcxgBIAMoCzIWLlN1cGVyQ2FtcGFpZ25Qcm9ncmVzcyJqChVTdXBlckNh", + "c3NlcxgBIAMoCzIWLlN1cGVyQ2FtcGFpZ25Qcm9ncmVzcyJsChVTdXBlckNh", "bXBhaWduUHJvZ3Jlc3MSDwoHdXNlcl9pZBgBIAEoCRITCgtjYW1wYWlnbl9p", - "ZBgCIAEoCRIQCghsZXZlbF9pZBgDIAEoCRIZChFzdXBlcl9jYW1wYWlnbl9p", - "ZBgEIAEoCSJYCg1BZmtSZXdhcmRSYXRlEhwKFGthbGluZV90cmVlX2xldmVs", - "X2lkGAEgASgJEhsKCGN1cnJlbmN5GAIgASgLMgkuQ3VycmVuY3kSDAoEcmF0", - "ZRgDIAEoAiI7CgxVc2VyQ3VycmVuY3kSGwoIY3VycmVuY3kYASABKAsyCS5D", - "dXJyZW5jeRIOCgZhbW91bnQYAiABKA0iGAoIQ3VycmVuY3kSDAoEbmFtZRgB", - "IAEoCSK+AQoEVW5pdBIKCgJpZBgBIAEoCRINCgVsZXZlbBgCIAEoDRIMCgR0", - "aWVyGAMgASgNEgwKBHJhbmsYBCABKA0SEAoIc2VsZWN0ZWQYBSABKAgSDAoE", - "c2xvdBgGIAEoDRIZChFjYW1wYWlnbl9sZXZlbF9pZBgHIAEoCRIPCgd1c2Vy", - "X2lkGAggASgJEh0KCWNoYXJhY3RlchgJIAEoCzIKLkNoYXJhY3RlchIUCgVp", - "dGVtcxgKIAMoCzIFLkl0ZW0iHQoFVW5pdHMSFAoFdW5pdHMYASADKAsyBS5V", - "bml0Ik4KEVVuaXRBbmRDdXJyZW5jaWVzEhMKBHVuaXQYASABKAsyBS5Vbml0", - "EiQKDXVzZXJfY3VycmVuY3kYAiADKAsyDS5Vc2VyQ3VycmVuY3kiSwoJQ2hh", - "cmFjdGVyEg4KBmFjdGl2ZRgBIAEoCBIMCgRuYW1lGAIgASgJEg8KB2ZhY3Rp", - "b24YAyABKAkSDwoHcXVhbGl0eRgEIAEoDSJkCgRJdGVtEgoKAmlkGAEgASgJ", - "Eg0KBWxldmVsGAIgASgNEh8KCHRlbXBsYXRlGAMgASgLMg0uSXRlbVRlbXBs", - "YXRlEg8KB3VzZXJfaWQYBCABKAkSDwoHdW5pdF9pZBgFIAEoCSI2CgxJdGVt", - "VGVtcGxhdGUSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIMCgR0eXBlGAMg", - "ASgJIikKCUNhbXBhaWducxIcCgljYW1wYWlnbnMYASADKAsyCS5DYW1wYWln", - "biJiCghDYW1wYWlnbhIKCgJpZBgBIAEoCRIZChFzdXBlcl9jYW1wYWlnbl9p", - "ZBgCIAEoCRIXCg9jYW1wYWlnbl9udW1iZXIYAyABKA0SFgoGbGV2ZWxzGAQg", - "AygLMgYuTGV2ZWwimgEKBUxldmVsEgoKAmlkGAEgASgJEhMKC2NhbXBhaWdu", - "X2lkGAIgASgJEhQKDGxldmVsX251bWJlchgDIAEoDRIUCgV1bml0cxgEIAMo", - "CzIFLlVuaXQSKQoQY3VycmVuY3lfcmV3YXJkcxgFIAMoCzIPLkN1cnJlbmN5", - "UmV3YXJkEhkKEWV4cGVyaWVuY2VfcmV3YXJkGAYgASgNIj0KDkN1cnJlbmN5", - "UmV3YXJkEhsKCGN1cnJlbmN5GAEgASgLMgkuQ3VycmVuY3kSDgoGYW1vdW50", - "GAMgASgEIi0KCkFma1Jld2FyZHMSHwoLYWZrX3Jld2FyZHMYASADKAsyCi5B", - "ZmtSZXdhcmQiOAoJQWZrUmV3YXJkEhsKCGN1cnJlbmN5GAEgASgLMgkuQ3Vy", - "cmVuY3kSDgoGYW1vdW50GAIgASgEIhcKBUVycm9yEg4KBnJlYXNvbhgBIAEo", - "CSIcCgVCb3hlcxITCgVib3hlcxgBIAMoCzIELkJveCKHAQoDQm94EgoKAmlk", - "GAEgASgJEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSEAoI", - "ZmFjdGlvbnMYBCADKAkSIgoMcmFua193ZWlnaHRzGAUgAygLMgwuUmFua1dl", - "aWdodHMSGwoEY29zdBgGIAMoCzINLkN1cnJlbmN5Q29zdCIrCgtSYW5rV2Vp", - "Z2h0cxIMCgRyYW5rGAEgASgFEg4KBndlaWdodBgCIAEoBSI7CgxDdXJyZW5j", - "eUNvc3QSGwoIY3VycmVuY3kYASABKAsyCS5DdXJyZW5jeRIOCgZhbW91bnQY", - "AiABKAUiNwoLVXNlckFuZFVuaXQSEwoEdXNlchgBIAEoCzIFLlVzZXISEwoE", - "dW5pdBgCIAEoCzIFLlVuaXQiUwoMQmF0dGxlUmVzdWx0Eh0KDWluaXRpYWxf", - "c3RhdGUYASABKAsyBi5TdGF0ZRIUCgVzdGVwcxgCIAMoCzIFLlN0ZXASDgoG", - "cmVzdWx0GAMgASgJIiMKBVN0YXRlEhoKBXVuaXRzGAEgAygLMgsuQmF0dGxl", - "VW5pdCJqCgpCYXR0bGVVbml0EgoKAmlkGAEgASgJEg4KBmhlYWx0aBgCIAEo", - "BRIOCgZlbmVyZ3kYAyABKAUSDAoEc2xvdBgEIAEoBRIUCgxjaGFyYWN0ZXJf", - "aWQYBSABKAkSDAoEdGVhbRgGIAEoBSI1CgRTdGVwEhMKC3N0ZXBfbnVtYmVy", - "GAEgASgFEhgKB2FjdGlvbnMYAiADKAsyBy5BY3Rpb24i/gIKBkFjdGlvbhIk", - "Cgxza2lsbF9hY3Rpb24YASABKAsyDC5Ta2lsbEFjdGlvbkgAEi4KEW1vZGlm", - "aWVyX3JlY2VpdmVkGAIgASgLMhEuTW9kaWZpZXJSZWNlaXZlZEgAEiQKDHRh", - "Z19yZWNlaXZlZBgDIAEoCzIMLlRhZ1JlY2VpdmVkSAASLAoQbW9kaWZpZXJf", - "ZXhwaXJlZBgEIAEoCzIQLk1vZGlmaWVyRXhwaXJlZEgAEiIKC3RhZ19leHBp", - "cmVkGAUgASgLMgsuVGFnRXhwaXJlZEgAEhcKBWRlYXRoGAYgASgLMgYuRGVh", - "dGhIABIwChJleGVjdXRpb25fcmVjZWl2ZWQYByABKAsyEi5FeGVjdXRpb25S", - "ZWNlaXZlZEgAEiQKDGVuZXJneV9yZWdlbhgIIAEoCzIMLkVuZXJneVJlZ2Vu", - "SAASJgoNc3RhdF9vdmVycmlkZRgJIAEoCzINLlN0YXRPdmVycmlkZUgAQg0K", - "C2FjdGlvbl90eXBlIjMKDFN0YXRBZmZlY3RlZBITCgRzdGF0GAEgASgOMgUu", - "U3RhdBIOCgZhbW91bnQYAiABKAIicwoLU2tpbGxBY3Rpb24SEQoJY2FzdGVy", - "X2lkGAEgASgJEhIKCnRhcmdldF9pZHMYAiADKAkSEAoIc2tpbGxfaWQYAyAB", - "KAkSKwoRc2tpbGxfYWN0aW9uX3R5cGUYBCABKA4yEC5Ta2lsbEFjdGlvblR5", - "cGUiTAoRRXhlY3V0aW9uUmVjZWl2ZWQSEQoJdGFyZ2V0X2lkGAEgASgJEiQK", - "DXN0YXRfYWZmZWN0ZWQYAiABKAsyDS5TdGF0QWZmZWN0ZWQiXQoQTW9kaWZp", - "ZXJSZWNlaXZlZBIQCghza2lsbF9pZBgBIAEoCRIRCgl0YXJnZXRfaWQYAiAB", - "KAkSJAoNc3RhdF9hZmZlY3RlZBgDIAEoCzINLlN0YXRBZmZlY3RlZCJECgtU", - "YWdSZWNlaXZlZBIQCghza2lsbF9pZBgBIAEoCRIRCgl0YXJnZXRfaWQYAiAB", - "KAkSEAoIdGFnX25hbWUYAyABKAkiXAoPTW9kaWZpZXJFeHBpcmVkEhAKCHNr", - "aWxsX2lkGAEgASgJEhEKCXRhcmdldF9pZBgCIAEoCRIkCg1zdGF0X2FmZmVj", - "dGVkGAMgASgLMg0uU3RhdEFmZmVjdGVkIkMKClRhZ0V4cGlyZWQSEAoIc2tp", - "bGxfaWQYASABKAkSEQoJdGFyZ2V0X2lkGAIgASgJEhAKCHRhZ19uYW1lGAMg", - "ASgJIhgKBURlYXRoEg8KB3VuaXRfaWQYASABKAkiQgoLRW5lcmd5UmVnZW4S", - "EQoJdGFyZ2V0X2lkGAEgASgJEhAKCHNraWxsX2lkGAIgASgJEg4KBmFtb3Vu", - "dBgDIAEoAiJHCgxTdGF0T3ZlcnJpZGUSEQoJdGFyZ2V0X2lkGAEgASgJEiQK", - "DXN0YXRfYWZmZWN0ZWQYAiABKAsyDS5TdGF0QWZmZWN0ZWQqWwoPU2tpbGxB", - "Y3Rpb25UeXBlEhMKD0FOSU1BVElPTl9TVEFSVBAAEhIKDkVGRkVDVF9UUklH", - "R0VSEAESDgoKRUZGRUNUX0hJVBACEg8KC0VGRkVDVF9NSVNTEAMqWAoEU3Rh", - "dBIKCgZIRUFMVEgQABIKCgZFTkVSR1kQARIKCgZBVFRBQ0sQAhILCgdERUZF", - "TlNFEAMSFAoQREFNQUdFX1JFRFVDVElPThAEEgkKBVNQRUVEEAVCFKoCEVBy", - "b3RvYnVmLk1lc3NhZ2VzYgZwcm90bzM=")); + "ZBgCIAEoCRIQCghsZXZlbF9pZBgDIAEoCRIbChNzdXBlcl9jYW1wYWlnbl9u", + "YW1lGAQgASgJIlgKDUFma1Jld2FyZFJhdGUSHAoUa2FsaW5lX3RyZWVfbGV2", + "ZWxfaWQYASABKAkSGwoIY3VycmVuY3kYAiABKAsyCS5DdXJyZW5jeRIMCgRy", + "YXRlGAMgASgCIjsKDFVzZXJDdXJyZW5jeRIbCghjdXJyZW5jeRgBIAEoCzIJ", + "LkN1cnJlbmN5Eg4KBmFtb3VudBgCIAEoDSIYCghDdXJyZW5jeRIMCgRuYW1l", + "GAEgASgJIr4BCgRVbml0EgoKAmlkGAEgASgJEg0KBWxldmVsGAIgASgNEgwK", + "BHRpZXIYAyABKA0SDAoEcmFuaxgEIAEoDRIQCghzZWxlY3RlZBgFIAEoCBIM", + "CgRzbG90GAYgASgNEhkKEWNhbXBhaWduX2xldmVsX2lkGAcgASgJEg8KB3Vz", + "ZXJfaWQYCCABKAkSHQoJY2hhcmFjdGVyGAkgASgLMgouQ2hhcmFjdGVyEhQK", + "BWl0ZW1zGAogAygLMgUuSXRlbSIdCgVVbml0cxIUCgV1bml0cxgBIAMoCzIF", + "LlVuaXQiTgoRVW5pdEFuZEN1cnJlbmNpZXMSEwoEdW5pdBgBIAEoCzIFLlVu", + "aXQSJAoNdXNlcl9jdXJyZW5jeRgCIAMoCzINLlVzZXJDdXJyZW5jeSJLCglD", + "aGFyYWN0ZXISDgoGYWN0aXZlGAEgASgIEgwKBG5hbWUYAiABKAkSDwoHZmFj", + "dGlvbhgDIAEoCRIPCgdxdWFsaXR5GAQgASgNImQKBEl0ZW0SCgoCaWQYASAB", + "KAkSDQoFbGV2ZWwYAiABKA0SHwoIdGVtcGxhdGUYAyABKAsyDS5JdGVtVGVt", + "cGxhdGUSDwoHdXNlcl9pZBgEIAEoCRIPCgd1bml0X2lkGAUgASgJIjYKDEl0", + "ZW1UZW1wbGF0ZRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEgwKBHR5cGUY", + "AyABKAkiKQoJQ2FtcGFpZ25zEhwKCWNhbXBhaWducxgBIAMoCzIJLkNhbXBh", + "aWduImQKCENhbXBhaWduEgoKAmlkGAEgASgJEhsKE3N1cGVyX2NhbXBhaWdu", + "X25hbWUYAiABKAkSFwoPY2FtcGFpZ25fbnVtYmVyGAMgASgNEhYKBmxldmVs", + "cxgEIAMoCzIGLkxldmVsIpoBCgVMZXZlbBIKCgJpZBgBIAEoCRITCgtjYW1w", + "YWlnbl9pZBgCIAEoCRIUCgxsZXZlbF9udW1iZXIYAyABKA0SFAoFdW5pdHMY", + "BCADKAsyBS5Vbml0EikKEGN1cnJlbmN5X3Jld2FyZHMYBSADKAsyDy5DdXJy", + "ZW5jeVJld2FyZBIZChFleHBlcmllbmNlX3Jld2FyZBgGIAEoDSI9Cg5DdXJy", + "ZW5jeVJld2FyZBIbCghjdXJyZW5jeRgBIAEoCzIJLkN1cnJlbmN5Eg4KBmFt", + "b3VudBgDIAEoBCItCgpBZmtSZXdhcmRzEh8KC2Fma19yZXdhcmRzGAEgAygL", + "MgouQWZrUmV3YXJkIjgKCUFma1Jld2FyZBIbCghjdXJyZW5jeRgBIAEoCzIJ", + "LkN1cnJlbmN5Eg4KBmFtb3VudBgCIAEoBCIXCgVFcnJvchIOCgZyZWFzb24Y", + "ASABKAkiHAoFQm94ZXMSEwoFYm94ZXMYASADKAsyBC5Cb3gihwEKA0JveBIK", + "CgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJ", + "EhAKCGZhY3Rpb25zGAQgAygJEiIKDHJhbmtfd2VpZ2h0cxgFIAMoCzIMLlJh", + "bmtXZWlnaHRzEhsKBGNvc3QYBiADKAsyDS5DdXJyZW5jeUNvc3QiKwoLUmFu", + "a1dlaWdodHMSDAoEcmFuaxgBIAEoBRIOCgZ3ZWlnaHQYAiABKAUiOwoMQ3Vy", + "cmVuY3lDb3N0EhsKCGN1cnJlbmN5GAEgASgLMgkuQ3VycmVuY3kSDgoGYW1v", + "dW50GAIgASgFIjcKC1VzZXJBbmRVbml0EhMKBHVzZXIYASABKAsyBS5Vc2Vy", + "EhMKBHVuaXQYAiABKAsyBS5Vbml0IlMKDEJhdHRsZVJlc3VsdBIdCg1pbml0", + "aWFsX3N0YXRlGAEgASgLMgYuU3RhdGUSFAoFc3RlcHMYAiADKAsyBS5TdGVw", + "Eg4KBnJlc3VsdBgDIAEoCSIjCgVTdGF0ZRIaCgV1bml0cxgBIAMoCzILLkJh", + "dHRsZVVuaXQiagoKQmF0dGxlVW5pdBIKCgJpZBgBIAEoCRIOCgZoZWFsdGgY", + "AiABKAUSDgoGZW5lcmd5GAMgASgFEgwKBHNsb3QYBCABKAUSFAoMY2hhcmFj", + "dGVyX2lkGAUgASgJEgwKBHRlYW0YBiABKAUiNQoEU3RlcBITCgtzdGVwX251", + "bWJlchgBIAEoBRIYCgdhY3Rpb25zGAIgAygLMgcuQWN0aW9uIv4CCgZBY3Rp", + "b24SJAoMc2tpbGxfYWN0aW9uGAEgASgLMgwuU2tpbGxBY3Rpb25IABIuChFt", + "b2RpZmllcl9yZWNlaXZlZBgCIAEoCzIRLk1vZGlmaWVyUmVjZWl2ZWRIABIk", + "Cgx0YWdfcmVjZWl2ZWQYAyABKAsyDC5UYWdSZWNlaXZlZEgAEiwKEG1vZGlm", + "aWVyX2V4cGlyZWQYBCABKAsyEC5Nb2RpZmllckV4cGlyZWRIABIiCgt0YWdf", + "ZXhwaXJlZBgFIAEoCzILLlRhZ0V4cGlyZWRIABIXCgVkZWF0aBgGIAEoCzIG", + "LkRlYXRoSAASMAoSZXhlY3V0aW9uX3JlY2VpdmVkGAcgASgLMhIuRXhlY3V0", + "aW9uUmVjZWl2ZWRIABIkCgxlbmVyZ3lfcmVnZW4YCCABKAsyDC5FbmVyZ3lS", + "ZWdlbkgAEiYKDXN0YXRfb3ZlcnJpZGUYCSABKAsyDS5TdGF0T3ZlcnJpZGVI", + "AEINCgthY3Rpb25fdHlwZSIzCgxTdGF0QWZmZWN0ZWQSEwoEc3RhdBgBIAEo", + "DjIFLlN0YXQSDgoGYW1vdW50GAIgASgCInMKC1NraWxsQWN0aW9uEhEKCWNh", + "c3Rlcl9pZBgBIAEoCRISCgp0YXJnZXRfaWRzGAIgAygJEhAKCHNraWxsX2lk", + "GAMgASgJEisKEXNraWxsX2FjdGlvbl90eXBlGAQgASgOMhAuU2tpbGxBY3Rp", + "b25UeXBlIkwKEUV4ZWN1dGlvblJlY2VpdmVkEhEKCXRhcmdldF9pZBgBIAEo", + "CRIkCg1zdGF0X2FmZmVjdGVkGAIgASgLMg0uU3RhdEFmZmVjdGVkIl0KEE1v", + "ZGlmaWVyUmVjZWl2ZWQSEAoIc2tpbGxfaWQYASABKAkSEQoJdGFyZ2V0X2lk", + "GAIgASgJEiQKDXN0YXRfYWZmZWN0ZWQYAyABKAsyDS5TdGF0QWZmZWN0ZWQi", + "RAoLVGFnUmVjZWl2ZWQSEAoIc2tpbGxfaWQYASABKAkSEQoJdGFyZ2V0X2lk", + "GAIgASgJEhAKCHRhZ19uYW1lGAMgASgJIlwKD01vZGlmaWVyRXhwaXJlZBIQ", + "Cghza2lsbF9pZBgBIAEoCRIRCgl0YXJnZXRfaWQYAiABKAkSJAoNc3RhdF9h", + "ZmZlY3RlZBgDIAEoCzINLlN0YXRBZmZlY3RlZCJDCgpUYWdFeHBpcmVkEhAK", + "CHNraWxsX2lkGAEgASgJEhEKCXRhcmdldF9pZBgCIAEoCRIQCgh0YWdfbmFt", + "ZRgDIAEoCSIYCgVEZWF0aBIPCgd1bml0X2lkGAEgASgJIkIKC0VuZXJneVJl", + "Z2VuEhEKCXRhcmdldF9pZBgBIAEoCRIQCghza2lsbF9pZBgCIAEoCRIOCgZh", + "bW91bnQYAyABKAIiRwoMU3RhdE92ZXJyaWRlEhEKCXRhcmdldF9pZBgBIAEo", + "CRIkCg1zdGF0X2FmZmVjdGVkGAIgASgLMg0uU3RhdEFmZmVjdGVkKlsKD1Nr", + "aWxsQWN0aW9uVHlwZRITCg9BTklNQVRJT05fU1RBUlQQABISCg5FRkZFQ1Rf", + "VFJJR0dFUhABEg4KCkVGRkVDVF9ISVQQAhIPCgtFRkZFQ1RfTUlTUxADKlgK", + "BFN0YXQSCgoGSEVBTFRIEAASCgoGRU5FUkdZEAESCgoGQVRUQUNLEAISCwoH", + "REVGRU5TRRADEhQKEERBTUFHRV9SRURVQ1RJT04QBBIJCgVTUEVFRBAFQhSq", + "AhFQcm90b2J1Zi5NZXNzYWdlc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Protobuf.Messages.SkillActionType), typeof(global::Protobuf.Messages.Stat), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(new[] { typeof(global::Protobuf.Messages.SkillActionType), typeof(global::Protobuf.Messages.Stat), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.WebSocketRequest), global::Protobuf.Messages.WebSocketRequest.Parser, new[]{ "GetUser", "GetUserByUsername", "CreateUser", "GetCampaigns", "GetCampaign", "GetLevel", "FightLevel", "SelectUnit", "UnselectUnit", "LevelUpUnit", "TierUpUnit", "FuseUnit", "EquipItem", "UnequipItem", "GetItem", "LevelUpItem", "GetBoxes", "GetBox", "Summon", "GetAfkRewards", "ClaimAfkRewards", "GetUserSuperCampaignProgresses", "LevelUpKalineTree" }, new[]{ "RequestType" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.GetUser), global::Protobuf.Messages.GetUser.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.GetUserByUsername), global::Protobuf.Messages.GetUserByUsername.Parser, new[]{ "Username" }, null, null, null, null), @@ -194,7 +198,7 @@ static GatewayReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.User), global::Protobuf.Messages.User.Parser, new[]{ "Id", "Username", "Level", "Experience", "Currencies", "Units", "Items", "KalineTreeLevel" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.KalineTreeLevel), global::Protobuf.Messages.KalineTreeLevel.Parser, new[]{ "Id", "Level", "FertilizerLevelUpCost", "GoldLevelUpCost", "UnlockFeatures", "AfkRewardRates" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.SuperCampaignProgresses), global::Protobuf.Messages.SuperCampaignProgresses.Parser, new[]{ "SuperCampaignProgresses_" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.SuperCampaignProgress), global::Protobuf.Messages.SuperCampaignProgress.Parser, new[]{ "UserId", "CampaignId", "LevelId", "SuperCampaignId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.SuperCampaignProgress), global::Protobuf.Messages.SuperCampaignProgress.Parser, new[]{ "UserId", "CampaignId", "LevelId", "SuperCampaignName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.AfkRewardRate), global::Protobuf.Messages.AfkRewardRate.Parser, new[]{ "KalineTreeLevelId", "Currency", "Rate" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.UserCurrency), global::Protobuf.Messages.UserCurrency.Parser, new[]{ "Currency", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Currency), global::Protobuf.Messages.Currency.Parser, new[]{ "Name" }, null, null, null, null), @@ -205,7 +209,7 @@ static GatewayReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Item), global::Protobuf.Messages.Item.Parser, new[]{ "Id", "Level", "Template", "UserId", "UnitId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.ItemTemplate), global::Protobuf.Messages.ItemTemplate.Parser, new[]{ "Id", "Name", "Type" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Campaigns), global::Protobuf.Messages.Campaigns.Parser, new[]{ "Campaigns_" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Campaign), global::Protobuf.Messages.Campaign.Parser, new[]{ "Id", "SuperCampaignId", "CampaignNumber", "Levels" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Campaign), global::Protobuf.Messages.Campaign.Parser, new[]{ "Id", "SuperCampaignName", "CampaignNumber", "Levels" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.Level), global::Protobuf.Messages.Level.Parser, new[]{ "Id", "CampaignId", "LevelNumber", "Units", "CurrencyRewards", "ExperienceReward" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.CurrencyReward), global::Protobuf.Messages.CurrencyReward.Parser, new[]{ "Currency", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.Messages.AfkRewards), global::Protobuf.Messages.AfkRewards.Parser, new[]{ "AfkRewards_" }, null, null, null, null), @@ -237,14 +241,16 @@ static GatewayReflection() { } #region Enums - public enum SkillActionType { + public enum SkillActionType + { [pbr::OriginalName("ANIMATION_START")] AnimationStart = 0, [pbr::OriginalName("EFFECT_TRIGGER")] EffectTrigger = 1, [pbr::OriginalName("EFFECT_HIT")] EffectHit = 2, [pbr::OriginalName("EFFECT_MISS")] EffectMiss = 3, } - public enum Stat { + public enum Stat + { [pbr::OriginalName("HEALTH")] Health = 0, [pbr::OriginalName("ENERGY")] Energy = 1, [pbr::OriginalName("ATTACK")] Attack = 2, @@ -258,9 +264,9 @@ public enum Stat { #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class WebSocketRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebSocketRequest()); private pb::UnknownFieldSet _unknownFields; @@ -270,19 +276,22 @@ public sealed partial class WebSocketRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketRequest() { + public WebSocketRequest() + { OnConstruction(); } @@ -290,8 +299,10 @@ public WebSocketRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketRequest(WebSocketRequest other) : this() { - switch (other.RequestTypeCase) { + public WebSocketRequest(WebSocketRequest other) : this() + { + switch (other.RequestTypeCase) + { case RequestTypeOneofCase.GetUser: GetUser = other.GetUser.Clone(); break; @@ -368,7 +379,8 @@ public WebSocketRequest(WebSocketRequest other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketRequest Clone() { + public WebSocketRequest Clone() + { return new WebSocketRequest(this); } @@ -376,9 +388,11 @@ public WebSocketRequest Clone() { public const int GetUserFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetUser GetUser { - get { return requestTypeCase_ == RequestTypeOneofCase.GetUser ? (global::Protobuf.Messages.GetUser) requestType_ : null; } - set { + public global::Protobuf.Messages.GetUser GetUser + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetUser ? (global::Protobuf.Messages.GetUser)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetUser; } @@ -388,9 +402,11 @@ public WebSocketRequest Clone() { public const int GetUserByUsernameFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetUserByUsername GetUserByUsername { - get { return requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername ? (global::Protobuf.Messages.GetUserByUsername) requestType_ : null; } - set { + public global::Protobuf.Messages.GetUserByUsername GetUserByUsername + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername ? (global::Protobuf.Messages.GetUserByUsername)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetUserByUsername; } @@ -400,9 +416,11 @@ public WebSocketRequest Clone() { public const int CreateUserFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.CreateUser CreateUser { - get { return requestTypeCase_ == RequestTypeOneofCase.CreateUser ? (global::Protobuf.Messages.CreateUser) requestType_ : null; } - set { + public global::Protobuf.Messages.CreateUser CreateUser + { + get { return requestTypeCase_ == RequestTypeOneofCase.CreateUser ? (global::Protobuf.Messages.CreateUser)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.CreateUser; } @@ -412,9 +430,11 @@ public WebSocketRequest Clone() { public const int GetCampaignsFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetCampaigns GetCampaigns { - get { return requestTypeCase_ == RequestTypeOneofCase.GetCampaigns ? (global::Protobuf.Messages.GetCampaigns) requestType_ : null; } - set { + public global::Protobuf.Messages.GetCampaigns GetCampaigns + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetCampaigns ? (global::Protobuf.Messages.GetCampaigns)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetCampaigns; } @@ -424,9 +444,11 @@ public WebSocketRequest Clone() { public const int GetCampaignFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetCampaign GetCampaign { - get { return requestTypeCase_ == RequestTypeOneofCase.GetCampaign ? (global::Protobuf.Messages.GetCampaign) requestType_ : null; } - set { + public global::Protobuf.Messages.GetCampaign GetCampaign + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetCampaign ? (global::Protobuf.Messages.GetCampaign)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetCampaign; } @@ -436,9 +458,11 @@ public WebSocketRequest Clone() { public const int GetLevelFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetLevel GetLevel { - get { return requestTypeCase_ == RequestTypeOneofCase.GetLevel ? (global::Protobuf.Messages.GetLevel) requestType_ : null; } - set { + public global::Protobuf.Messages.GetLevel GetLevel + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetLevel ? (global::Protobuf.Messages.GetLevel)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetLevel; } @@ -448,9 +472,11 @@ public WebSocketRequest Clone() { public const int FightLevelFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.FightLevel FightLevel { - get { return requestTypeCase_ == RequestTypeOneofCase.FightLevel ? (global::Protobuf.Messages.FightLevel) requestType_ : null; } - set { + public global::Protobuf.Messages.FightLevel FightLevel + { + get { return requestTypeCase_ == RequestTypeOneofCase.FightLevel ? (global::Protobuf.Messages.FightLevel)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.FightLevel; } @@ -460,9 +486,11 @@ public WebSocketRequest Clone() { public const int SelectUnitFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.SelectUnit SelectUnit { - get { return requestTypeCase_ == RequestTypeOneofCase.SelectUnit ? (global::Protobuf.Messages.SelectUnit) requestType_ : null; } - set { + public global::Protobuf.Messages.SelectUnit SelectUnit + { + get { return requestTypeCase_ == RequestTypeOneofCase.SelectUnit ? (global::Protobuf.Messages.SelectUnit)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.SelectUnit; } @@ -472,9 +500,11 @@ public WebSocketRequest Clone() { public const int UnselectUnitFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UnselectUnit UnselectUnit { - get { return requestTypeCase_ == RequestTypeOneofCase.UnselectUnit ? (global::Protobuf.Messages.UnselectUnit) requestType_ : null; } - set { + public global::Protobuf.Messages.UnselectUnit UnselectUnit + { + get { return requestTypeCase_ == RequestTypeOneofCase.UnselectUnit ? (global::Protobuf.Messages.UnselectUnit)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.UnselectUnit; } @@ -484,9 +514,11 @@ public WebSocketRequest Clone() { public const int LevelUpUnitFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.LevelUpUnit LevelUpUnit { - get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit ? (global::Protobuf.Messages.LevelUpUnit) requestType_ : null; } - set { + public global::Protobuf.Messages.LevelUpUnit LevelUpUnit + { + get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit ? (global::Protobuf.Messages.LevelUpUnit)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.LevelUpUnit; } @@ -496,9 +528,11 @@ public WebSocketRequest Clone() { public const int TierUpUnitFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.TierUpUnit TierUpUnit { - get { return requestTypeCase_ == RequestTypeOneofCase.TierUpUnit ? (global::Protobuf.Messages.TierUpUnit) requestType_ : null; } - set { + public global::Protobuf.Messages.TierUpUnit TierUpUnit + { + get { return requestTypeCase_ == RequestTypeOneofCase.TierUpUnit ? (global::Protobuf.Messages.TierUpUnit)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.TierUpUnit; } @@ -508,9 +542,11 @@ public WebSocketRequest Clone() { public const int FuseUnitFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.FuseUnit FuseUnit { - get { return requestTypeCase_ == RequestTypeOneofCase.FuseUnit ? (global::Protobuf.Messages.FuseUnit) requestType_ : null; } - set { + public global::Protobuf.Messages.FuseUnit FuseUnit + { + get { return requestTypeCase_ == RequestTypeOneofCase.FuseUnit ? (global::Protobuf.Messages.FuseUnit)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.FuseUnit; } @@ -520,9 +556,11 @@ public WebSocketRequest Clone() { public const int EquipItemFieldNumber = 14; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.EquipItem EquipItem { - get { return requestTypeCase_ == RequestTypeOneofCase.EquipItem ? (global::Protobuf.Messages.EquipItem) requestType_ : null; } - set { + public global::Protobuf.Messages.EquipItem EquipItem + { + get { return requestTypeCase_ == RequestTypeOneofCase.EquipItem ? (global::Protobuf.Messages.EquipItem)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.EquipItem; } @@ -532,9 +570,11 @@ public WebSocketRequest Clone() { public const int UnequipItemFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UnequipItem UnequipItem { - get { return requestTypeCase_ == RequestTypeOneofCase.UnequipItem ? (global::Protobuf.Messages.UnequipItem) requestType_ : null; } - set { + public global::Protobuf.Messages.UnequipItem UnequipItem + { + get { return requestTypeCase_ == RequestTypeOneofCase.UnequipItem ? (global::Protobuf.Messages.UnequipItem)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.UnequipItem; } @@ -544,9 +584,11 @@ public WebSocketRequest Clone() { public const int GetItemFieldNumber = 16; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetItem GetItem { - get { return requestTypeCase_ == RequestTypeOneofCase.GetItem ? (global::Protobuf.Messages.GetItem) requestType_ : null; } - set { + public global::Protobuf.Messages.GetItem GetItem + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetItem ? (global::Protobuf.Messages.GetItem)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetItem; } @@ -556,9 +598,11 @@ public WebSocketRequest Clone() { public const int LevelUpItemFieldNumber = 17; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.LevelUpItem LevelUpItem { - get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpItem ? (global::Protobuf.Messages.LevelUpItem) requestType_ : null; } - set { + public global::Protobuf.Messages.LevelUpItem LevelUpItem + { + get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpItem ? (global::Protobuf.Messages.LevelUpItem)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.LevelUpItem; } @@ -568,9 +612,11 @@ public WebSocketRequest Clone() { public const int GetBoxesFieldNumber = 18; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetBoxes GetBoxes { - get { return requestTypeCase_ == RequestTypeOneofCase.GetBoxes ? (global::Protobuf.Messages.GetBoxes) requestType_ : null; } - set { + public global::Protobuf.Messages.GetBoxes GetBoxes + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetBoxes ? (global::Protobuf.Messages.GetBoxes)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetBoxes; } @@ -580,9 +626,11 @@ public WebSocketRequest Clone() { public const int GetBoxFieldNumber = 19; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetBox GetBox { - get { return requestTypeCase_ == RequestTypeOneofCase.GetBox ? (global::Protobuf.Messages.GetBox) requestType_ : null; } - set { + public global::Protobuf.Messages.GetBox GetBox + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetBox ? (global::Protobuf.Messages.GetBox)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetBox; } @@ -592,9 +640,11 @@ public WebSocketRequest Clone() { public const int SummonFieldNumber = 20; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Summon Summon { - get { return requestTypeCase_ == RequestTypeOneofCase.Summon ? (global::Protobuf.Messages.Summon) requestType_ : null; } - set { + public global::Protobuf.Messages.Summon Summon + { + get { return requestTypeCase_ == RequestTypeOneofCase.Summon ? (global::Protobuf.Messages.Summon)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.Summon; } @@ -604,9 +654,11 @@ public WebSocketRequest Clone() { public const int GetAfkRewardsFieldNumber = 21; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetAfkRewards GetAfkRewards { - get { return requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards ? (global::Protobuf.Messages.GetAfkRewards) requestType_ : null; } - set { + public global::Protobuf.Messages.GetAfkRewards GetAfkRewards + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards ? (global::Protobuf.Messages.GetAfkRewards)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetAfkRewards; } @@ -616,9 +668,11 @@ public WebSocketRequest Clone() { public const int ClaimAfkRewardsFieldNumber = 22; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.ClaimAfkRewards ClaimAfkRewards { - get { return requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards ? (global::Protobuf.Messages.ClaimAfkRewards) requestType_ : null; } - set { + public global::Protobuf.Messages.ClaimAfkRewards ClaimAfkRewards + { + get { return requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards ? (global::Protobuf.Messages.ClaimAfkRewards)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.ClaimAfkRewards; } @@ -628,9 +682,11 @@ public WebSocketRequest Clone() { public const int GetUserSuperCampaignProgressesFieldNumber = 23; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.GetUserSuperCampaignProgresses GetUserSuperCampaignProgresses { - get { return requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses ? (global::Protobuf.Messages.GetUserSuperCampaignProgresses) requestType_ : null; } - set { + public global::Protobuf.Messages.GetUserSuperCampaignProgresses GetUserSuperCampaignProgresses + { + get { return requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses ? (global::Protobuf.Messages.GetUserSuperCampaignProgresses)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.GetUserSuperCampaignProgresses; } @@ -640,9 +696,11 @@ public WebSocketRequest Clone() { public const int LevelUpKalineTreeFieldNumber = 24; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.LevelUpKalineTree LevelUpKalineTree { - get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree ? (global::Protobuf.Messages.LevelUpKalineTree) requestType_ : null; } - set { + public global::Protobuf.Messages.LevelUpKalineTree LevelUpKalineTree + { + get { return requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree ? (global::Protobuf.Messages.LevelUpKalineTree)requestType_ : null; } + set + { requestType_ = value; requestTypeCase_ = value == null ? RequestTypeOneofCase.None : RequestTypeOneofCase.LevelUpKalineTree; } @@ -650,7 +708,8 @@ public WebSocketRequest Clone() { private object requestType_; /// Enum of possible cases for the "request_type" oneof. - public enum RequestTypeOneofCase { + public enum RequestTypeOneofCase + { None = 0, GetUser = 1, GetUserByUsername = 2, @@ -679,30 +738,36 @@ public enum RequestTypeOneofCase { private RequestTypeOneofCase requestTypeCase_ = RequestTypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RequestTypeOneofCase RequestTypeCase { + public RequestTypeOneofCase RequestTypeCase + { get { return requestTypeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRequestType() { + public void ClearRequestType() + { requestTypeCase_ = RequestTypeOneofCase.None; requestType_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as WebSocketRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebSocketRequest other) { - if (ReferenceEquals(other, null)) { + public bool Equals(WebSocketRequest other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(GetUser, other.GetUser)) return false; @@ -734,7 +799,8 @@ public bool Equals(WebSocketRequest other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (requestTypeCase_ == RequestTypeOneofCase.GetUser) hash ^= GetUser.GetHashCode(); if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) hash ^= GetUserByUsername.GetHashCode(); @@ -759,8 +825,9 @@ public override int GetHashCode() { if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) hash ^= ClaimAfkRewards.GetHashCode(); if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) hash ^= GetUserSuperCampaignProgresses.GetHashCode(); if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) hash ^= LevelUpKalineTree.GetHashCode(); - hash ^= (int) requestTypeCase_; - if (_unknownFields != null) { + hash ^= (int)requestTypeCase_; + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -768,16 +835,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (requestTypeCase_ == RequestTypeOneofCase.GetUser) { output.WriteRawTag(10); output.WriteMessage(GetUser); @@ -873,185 +942,235 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (requestTypeCase_ == RequestTypeOneofCase.GetUser) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (requestTypeCase_ == RequestTypeOneofCase.GetUser) + { output.WriteRawTag(10); output.WriteMessage(GetUser); } - if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) { + if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) + { output.WriteRawTag(18); output.WriteMessage(GetUserByUsername); } - if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) { + if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) + { output.WriteRawTag(26); output.WriteMessage(CreateUser); } - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) { + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) + { output.WriteRawTag(34); output.WriteMessage(GetCampaigns); } - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) { + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) + { output.WriteRawTag(42); output.WriteMessage(GetCampaign); } - if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) { + if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) + { output.WriteRawTag(50); output.WriteMessage(GetLevel); } - if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) { + if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) + { output.WriteRawTag(58); output.WriteMessage(FightLevel); } - if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) + { output.WriteRawTag(74); output.WriteMessage(SelectUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) + { output.WriteRawTag(82); output.WriteMessage(UnselectUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) + { output.WriteRawTag(90); output.WriteMessage(LevelUpUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) + { output.WriteRawTag(98); output.WriteMessage(TierUpUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) + { output.WriteRawTag(106); output.WriteMessage(FuseUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) { + if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) + { output.WriteRawTag(114); output.WriteMessage(EquipItem); } - if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) { + if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) + { output.WriteRawTag(122); output.WriteMessage(UnequipItem); } - if (requestTypeCase_ == RequestTypeOneofCase.GetItem) { + if (requestTypeCase_ == RequestTypeOneofCase.GetItem) + { output.WriteRawTag(130, 1); output.WriteMessage(GetItem); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) + { output.WriteRawTag(138, 1); output.WriteMessage(LevelUpItem); } - if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) { + if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) + { output.WriteRawTag(146, 1); output.WriteMessage(GetBoxes); } - if (requestTypeCase_ == RequestTypeOneofCase.GetBox) { + if (requestTypeCase_ == RequestTypeOneofCase.GetBox) + { output.WriteRawTag(154, 1); output.WriteMessage(GetBox); } - if (requestTypeCase_ == RequestTypeOneofCase.Summon) { + if (requestTypeCase_ == RequestTypeOneofCase.Summon) + { output.WriteRawTag(162, 1); output.WriteMessage(Summon); } - if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) { + if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) + { output.WriteRawTag(170, 1); output.WriteMessage(GetAfkRewards); } - if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) { + if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) + { output.WriteRawTag(178, 1); output.WriteMessage(ClaimAfkRewards); } - if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) { + if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) + { output.WriteRawTag(186, 1); output.WriteMessage(GetUserSuperCampaignProgresses); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) + { output.WriteRawTag(194, 1); output.WriteMessage(LevelUpKalineTree); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (requestTypeCase_ == RequestTypeOneofCase.GetUser) { + if (requestTypeCase_ == RequestTypeOneofCase.GetUser) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetUser); } - if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) { + if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetUserByUsername); } - if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) { + if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateUser); } - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) { + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetCampaigns); } - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) { + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetCampaign); } - if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) { + if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetLevel); } - if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) { + if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FightLevel); } - if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SelectUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnselectUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(LevelUpUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TierUpUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) { + if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FuseUnit); } - if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) { + if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EquipItem); } - if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) { + if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnequipItem); } - if (requestTypeCase_ == RequestTypeOneofCase.GetItem) { + if (requestTypeCase_ == RequestTypeOneofCase.GetItem) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetItem); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(LevelUpItem); } - if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) { + if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetBoxes); } - if (requestTypeCase_ == RequestTypeOneofCase.GetBox) { + if (requestTypeCase_ == RequestTypeOneofCase.GetBox) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetBox); } - if (requestTypeCase_ == RequestTypeOneofCase.Summon) { + if (requestTypeCase_ == RequestTypeOneofCase.Summon) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Summon); } - if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) { + if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetAfkRewards); } - if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) { + if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClaimAfkRewards); } - if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) { + if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetUserSuperCampaignProgresses); } - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) { + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) + { size += 2 + pb::CodedOutputStream.ComputeMessageSize(LevelUpKalineTree); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -1059,145 +1178,171 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebSocketRequest other) { - if (other == null) { + public void MergeFrom(WebSocketRequest other) + { + if (other == null) + { return; } - switch (other.RequestTypeCase) { + switch (other.RequestTypeCase) + { case RequestTypeOneofCase.GetUser: - if (GetUser == null) { + if (GetUser == null) + { GetUser = new global::Protobuf.Messages.GetUser(); } GetUser.MergeFrom(other.GetUser); break; case RequestTypeOneofCase.GetUserByUsername: - if (GetUserByUsername == null) { + if (GetUserByUsername == null) + { GetUserByUsername = new global::Protobuf.Messages.GetUserByUsername(); } GetUserByUsername.MergeFrom(other.GetUserByUsername); break; case RequestTypeOneofCase.CreateUser: - if (CreateUser == null) { + if (CreateUser == null) + { CreateUser = new global::Protobuf.Messages.CreateUser(); } CreateUser.MergeFrom(other.CreateUser); break; case RequestTypeOneofCase.GetCampaigns: - if (GetCampaigns == null) { + if (GetCampaigns == null) + { GetCampaigns = new global::Protobuf.Messages.GetCampaigns(); } GetCampaigns.MergeFrom(other.GetCampaigns); break; case RequestTypeOneofCase.GetCampaign: - if (GetCampaign == null) { + if (GetCampaign == null) + { GetCampaign = new global::Protobuf.Messages.GetCampaign(); } GetCampaign.MergeFrom(other.GetCampaign); break; case RequestTypeOneofCase.GetLevel: - if (GetLevel == null) { + if (GetLevel == null) + { GetLevel = new global::Protobuf.Messages.GetLevel(); } GetLevel.MergeFrom(other.GetLevel); break; case RequestTypeOneofCase.FightLevel: - if (FightLevel == null) { + if (FightLevel == null) + { FightLevel = new global::Protobuf.Messages.FightLevel(); } FightLevel.MergeFrom(other.FightLevel); break; case RequestTypeOneofCase.SelectUnit: - if (SelectUnit == null) { + if (SelectUnit == null) + { SelectUnit = new global::Protobuf.Messages.SelectUnit(); } SelectUnit.MergeFrom(other.SelectUnit); break; case RequestTypeOneofCase.UnselectUnit: - if (UnselectUnit == null) { + if (UnselectUnit == null) + { UnselectUnit = new global::Protobuf.Messages.UnselectUnit(); } UnselectUnit.MergeFrom(other.UnselectUnit); break; case RequestTypeOneofCase.LevelUpUnit: - if (LevelUpUnit == null) { + if (LevelUpUnit == null) + { LevelUpUnit = new global::Protobuf.Messages.LevelUpUnit(); } LevelUpUnit.MergeFrom(other.LevelUpUnit); break; case RequestTypeOneofCase.TierUpUnit: - if (TierUpUnit == null) { + if (TierUpUnit == null) + { TierUpUnit = new global::Protobuf.Messages.TierUpUnit(); } TierUpUnit.MergeFrom(other.TierUpUnit); break; case RequestTypeOneofCase.FuseUnit: - if (FuseUnit == null) { + if (FuseUnit == null) + { FuseUnit = new global::Protobuf.Messages.FuseUnit(); } FuseUnit.MergeFrom(other.FuseUnit); break; case RequestTypeOneofCase.EquipItem: - if (EquipItem == null) { + if (EquipItem == null) + { EquipItem = new global::Protobuf.Messages.EquipItem(); } EquipItem.MergeFrom(other.EquipItem); break; case RequestTypeOneofCase.UnequipItem: - if (UnequipItem == null) { + if (UnequipItem == null) + { UnequipItem = new global::Protobuf.Messages.UnequipItem(); } UnequipItem.MergeFrom(other.UnequipItem); break; case RequestTypeOneofCase.GetItem: - if (GetItem == null) { + if (GetItem == null) + { GetItem = new global::Protobuf.Messages.GetItem(); } GetItem.MergeFrom(other.GetItem); break; case RequestTypeOneofCase.LevelUpItem: - if (LevelUpItem == null) { + if (LevelUpItem == null) + { LevelUpItem = new global::Protobuf.Messages.LevelUpItem(); } LevelUpItem.MergeFrom(other.LevelUpItem); break; case RequestTypeOneofCase.GetBoxes: - if (GetBoxes == null) { + if (GetBoxes == null) + { GetBoxes = new global::Protobuf.Messages.GetBoxes(); } GetBoxes.MergeFrom(other.GetBoxes); break; case RequestTypeOneofCase.GetBox: - if (GetBox == null) { + if (GetBox == null) + { GetBox = new global::Protobuf.Messages.GetBox(); } GetBox.MergeFrom(other.GetBox); break; case RequestTypeOneofCase.Summon: - if (Summon == null) { + if (Summon == null) + { Summon = new global::Protobuf.Messages.Summon(); } Summon.MergeFrom(other.Summon); break; case RequestTypeOneofCase.GetAfkRewards: - if (GetAfkRewards == null) { + if (GetAfkRewards == null) + { GetAfkRewards = new global::Protobuf.Messages.GetAfkRewards(); } GetAfkRewards.MergeFrom(other.GetAfkRewards); break; case RequestTypeOneofCase.ClaimAfkRewards: - if (ClaimAfkRewards == null) { + if (ClaimAfkRewards == null) + { ClaimAfkRewards = new global::Protobuf.Messages.ClaimAfkRewards(); } ClaimAfkRewards.MergeFrom(other.ClaimAfkRewards); break; case RequestTypeOneofCase.GetUserSuperCampaignProgresses: - if (GetUserSuperCampaignProgresses == null) { + if (GetUserSuperCampaignProgresses == null) + { GetUserSuperCampaignProgresses = new global::Protobuf.Messages.GetUserSuperCampaignProgresses(); } GetUserSuperCampaignProgresses.MergeFrom(other.GetUserSuperCampaignProgresses); break; case RequestTypeOneofCase.LevelUpKalineTree: - if (LevelUpKalineTree == null) { + if (LevelUpKalineTree == null) + { LevelUpKalineTree = new global::Protobuf.Messages.LevelUpKalineTree(); } LevelUpKalineTree.MergeFrom(other.LevelUpKalineTree); @@ -1209,10 +1354,11 @@ public void MergeFrom(WebSocketRequest other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1428,238 +1574,287 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - global::Protobuf.Messages.GetUser subBuilder = new global::Protobuf.Messages.GetUser(); - if (requestTypeCase_ == RequestTypeOneofCase.GetUser) { - subBuilder.MergeFrom(GetUser); + case 10: + { + global::Protobuf.Messages.GetUser subBuilder = new global::Protobuf.Messages.GetUser(); + if (requestTypeCase_ == RequestTypeOneofCase.GetUser) + { + subBuilder.MergeFrom(GetUser); + } + input.ReadMessage(subBuilder); + GetUser = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetUser = subBuilder; - break; - } - case 18: { - global::Protobuf.Messages.GetUserByUsername subBuilder = new global::Protobuf.Messages.GetUserByUsername(); - if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) { - subBuilder.MergeFrom(GetUserByUsername); + case 18: + { + global::Protobuf.Messages.GetUserByUsername subBuilder = new global::Protobuf.Messages.GetUserByUsername(); + if (requestTypeCase_ == RequestTypeOneofCase.GetUserByUsername) + { + subBuilder.MergeFrom(GetUserByUsername); + } + input.ReadMessage(subBuilder); + GetUserByUsername = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetUserByUsername = subBuilder; - break; - } - case 26: { - global::Protobuf.Messages.CreateUser subBuilder = new global::Protobuf.Messages.CreateUser(); - if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) { - subBuilder.MergeFrom(CreateUser); + case 26: + { + global::Protobuf.Messages.CreateUser subBuilder = new global::Protobuf.Messages.CreateUser(); + if (requestTypeCase_ == RequestTypeOneofCase.CreateUser) + { + subBuilder.MergeFrom(CreateUser); + } + input.ReadMessage(subBuilder); + CreateUser = subBuilder; + break; } - input.ReadMessage(subBuilder); - CreateUser = subBuilder; - break; - } - case 34: { - global::Protobuf.Messages.GetCampaigns subBuilder = new global::Protobuf.Messages.GetCampaigns(); - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) { - subBuilder.MergeFrom(GetCampaigns); + case 34: + { + global::Protobuf.Messages.GetCampaigns subBuilder = new global::Protobuf.Messages.GetCampaigns(); + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaigns) + { + subBuilder.MergeFrom(GetCampaigns); + } + input.ReadMessage(subBuilder); + GetCampaigns = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetCampaigns = subBuilder; - break; - } - case 42: { - global::Protobuf.Messages.GetCampaign subBuilder = new global::Protobuf.Messages.GetCampaign(); - if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) { - subBuilder.MergeFrom(GetCampaign); + case 42: + { + global::Protobuf.Messages.GetCampaign subBuilder = new global::Protobuf.Messages.GetCampaign(); + if (requestTypeCase_ == RequestTypeOneofCase.GetCampaign) + { + subBuilder.MergeFrom(GetCampaign); + } + input.ReadMessage(subBuilder); + GetCampaign = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetCampaign = subBuilder; - break; - } - case 50: { - global::Protobuf.Messages.GetLevel subBuilder = new global::Protobuf.Messages.GetLevel(); - if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) { - subBuilder.MergeFrom(GetLevel); + case 50: + { + global::Protobuf.Messages.GetLevel subBuilder = new global::Protobuf.Messages.GetLevel(); + if (requestTypeCase_ == RequestTypeOneofCase.GetLevel) + { + subBuilder.MergeFrom(GetLevel); + } + input.ReadMessage(subBuilder); + GetLevel = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetLevel = subBuilder; - break; - } - case 58: { - global::Protobuf.Messages.FightLevel subBuilder = new global::Protobuf.Messages.FightLevel(); - if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) { - subBuilder.MergeFrom(FightLevel); + case 58: + { + global::Protobuf.Messages.FightLevel subBuilder = new global::Protobuf.Messages.FightLevel(); + if (requestTypeCase_ == RequestTypeOneofCase.FightLevel) + { + subBuilder.MergeFrom(FightLevel); + } + input.ReadMessage(subBuilder); + FightLevel = subBuilder; + break; } - input.ReadMessage(subBuilder); - FightLevel = subBuilder; - break; - } - case 74: { - global::Protobuf.Messages.SelectUnit subBuilder = new global::Protobuf.Messages.SelectUnit(); - if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) { - subBuilder.MergeFrom(SelectUnit); + case 74: + { + global::Protobuf.Messages.SelectUnit subBuilder = new global::Protobuf.Messages.SelectUnit(); + if (requestTypeCase_ == RequestTypeOneofCase.SelectUnit) + { + subBuilder.MergeFrom(SelectUnit); + } + input.ReadMessage(subBuilder); + SelectUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - SelectUnit = subBuilder; - break; - } - case 82: { - global::Protobuf.Messages.UnselectUnit subBuilder = new global::Protobuf.Messages.UnselectUnit(); - if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) { - subBuilder.MergeFrom(UnselectUnit); + case 82: + { + global::Protobuf.Messages.UnselectUnit subBuilder = new global::Protobuf.Messages.UnselectUnit(); + if (requestTypeCase_ == RequestTypeOneofCase.UnselectUnit) + { + subBuilder.MergeFrom(UnselectUnit); + } + input.ReadMessage(subBuilder); + UnselectUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - UnselectUnit = subBuilder; - break; - } - case 90: { - global::Protobuf.Messages.LevelUpUnit subBuilder = new global::Protobuf.Messages.LevelUpUnit(); - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) { - subBuilder.MergeFrom(LevelUpUnit); + case 90: + { + global::Protobuf.Messages.LevelUpUnit subBuilder = new global::Protobuf.Messages.LevelUpUnit(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpUnit) + { + subBuilder.MergeFrom(LevelUpUnit); + } + input.ReadMessage(subBuilder); + LevelUpUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - LevelUpUnit = subBuilder; - break; - } - case 98: { - global::Protobuf.Messages.TierUpUnit subBuilder = new global::Protobuf.Messages.TierUpUnit(); - if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) { - subBuilder.MergeFrom(TierUpUnit); + case 98: + { + global::Protobuf.Messages.TierUpUnit subBuilder = new global::Protobuf.Messages.TierUpUnit(); + if (requestTypeCase_ == RequestTypeOneofCase.TierUpUnit) + { + subBuilder.MergeFrom(TierUpUnit); + } + input.ReadMessage(subBuilder); + TierUpUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - TierUpUnit = subBuilder; - break; - } - case 106: { - global::Protobuf.Messages.FuseUnit subBuilder = new global::Protobuf.Messages.FuseUnit(); - if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) { - subBuilder.MergeFrom(FuseUnit); + case 106: + { + global::Protobuf.Messages.FuseUnit subBuilder = new global::Protobuf.Messages.FuseUnit(); + if (requestTypeCase_ == RequestTypeOneofCase.FuseUnit) + { + subBuilder.MergeFrom(FuseUnit); + } + input.ReadMessage(subBuilder); + FuseUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - FuseUnit = subBuilder; - break; - } - case 114: { - global::Protobuf.Messages.EquipItem subBuilder = new global::Protobuf.Messages.EquipItem(); - if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) { - subBuilder.MergeFrom(EquipItem); + case 114: + { + global::Protobuf.Messages.EquipItem subBuilder = new global::Protobuf.Messages.EquipItem(); + if (requestTypeCase_ == RequestTypeOneofCase.EquipItem) + { + subBuilder.MergeFrom(EquipItem); + } + input.ReadMessage(subBuilder); + EquipItem = subBuilder; + break; } - input.ReadMessage(subBuilder); - EquipItem = subBuilder; - break; - } - case 122: { - global::Protobuf.Messages.UnequipItem subBuilder = new global::Protobuf.Messages.UnequipItem(); - if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) { - subBuilder.MergeFrom(UnequipItem); + case 122: + { + global::Protobuf.Messages.UnequipItem subBuilder = new global::Protobuf.Messages.UnequipItem(); + if (requestTypeCase_ == RequestTypeOneofCase.UnequipItem) + { + subBuilder.MergeFrom(UnequipItem); + } + input.ReadMessage(subBuilder); + UnequipItem = subBuilder; + break; } - input.ReadMessage(subBuilder); - UnequipItem = subBuilder; - break; - } - case 130: { - global::Protobuf.Messages.GetItem subBuilder = new global::Protobuf.Messages.GetItem(); - if (requestTypeCase_ == RequestTypeOneofCase.GetItem) { - subBuilder.MergeFrom(GetItem); + case 130: + { + global::Protobuf.Messages.GetItem subBuilder = new global::Protobuf.Messages.GetItem(); + if (requestTypeCase_ == RequestTypeOneofCase.GetItem) + { + subBuilder.MergeFrom(GetItem); + } + input.ReadMessage(subBuilder); + GetItem = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetItem = subBuilder; - break; - } - case 138: { - global::Protobuf.Messages.LevelUpItem subBuilder = new global::Protobuf.Messages.LevelUpItem(); - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) { - subBuilder.MergeFrom(LevelUpItem); + case 138: + { + global::Protobuf.Messages.LevelUpItem subBuilder = new global::Protobuf.Messages.LevelUpItem(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpItem) + { + subBuilder.MergeFrom(LevelUpItem); + } + input.ReadMessage(subBuilder); + LevelUpItem = subBuilder; + break; } - input.ReadMessage(subBuilder); - LevelUpItem = subBuilder; - break; - } - case 146: { - global::Protobuf.Messages.GetBoxes subBuilder = new global::Protobuf.Messages.GetBoxes(); - if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) { - subBuilder.MergeFrom(GetBoxes); + case 146: + { + global::Protobuf.Messages.GetBoxes subBuilder = new global::Protobuf.Messages.GetBoxes(); + if (requestTypeCase_ == RequestTypeOneofCase.GetBoxes) + { + subBuilder.MergeFrom(GetBoxes); + } + input.ReadMessage(subBuilder); + GetBoxes = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetBoxes = subBuilder; - break; - } - case 154: { - global::Protobuf.Messages.GetBox subBuilder = new global::Protobuf.Messages.GetBox(); - if (requestTypeCase_ == RequestTypeOneofCase.GetBox) { - subBuilder.MergeFrom(GetBox); + case 154: + { + global::Protobuf.Messages.GetBox subBuilder = new global::Protobuf.Messages.GetBox(); + if (requestTypeCase_ == RequestTypeOneofCase.GetBox) + { + subBuilder.MergeFrom(GetBox); + } + input.ReadMessage(subBuilder); + GetBox = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetBox = subBuilder; - break; - } - case 162: { - global::Protobuf.Messages.Summon subBuilder = new global::Protobuf.Messages.Summon(); - if (requestTypeCase_ == RequestTypeOneofCase.Summon) { - subBuilder.MergeFrom(Summon); + case 162: + { + global::Protobuf.Messages.Summon subBuilder = new global::Protobuf.Messages.Summon(); + if (requestTypeCase_ == RequestTypeOneofCase.Summon) + { + subBuilder.MergeFrom(Summon); + } + input.ReadMessage(subBuilder); + Summon = subBuilder; + break; } - input.ReadMessage(subBuilder); - Summon = subBuilder; - break; - } - case 170: { - global::Protobuf.Messages.GetAfkRewards subBuilder = new global::Protobuf.Messages.GetAfkRewards(); - if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) { - subBuilder.MergeFrom(GetAfkRewards); + case 170: + { + global::Protobuf.Messages.GetAfkRewards subBuilder = new global::Protobuf.Messages.GetAfkRewards(); + if (requestTypeCase_ == RequestTypeOneofCase.GetAfkRewards) + { + subBuilder.MergeFrom(GetAfkRewards); + } + input.ReadMessage(subBuilder); + GetAfkRewards = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetAfkRewards = subBuilder; - break; - } - case 178: { - global::Protobuf.Messages.ClaimAfkRewards subBuilder = new global::Protobuf.Messages.ClaimAfkRewards(); - if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) { - subBuilder.MergeFrom(ClaimAfkRewards); + case 178: + { + global::Protobuf.Messages.ClaimAfkRewards subBuilder = new global::Protobuf.Messages.ClaimAfkRewards(); + if (requestTypeCase_ == RequestTypeOneofCase.ClaimAfkRewards) + { + subBuilder.MergeFrom(ClaimAfkRewards); + } + input.ReadMessage(subBuilder); + ClaimAfkRewards = subBuilder; + break; } - input.ReadMessage(subBuilder); - ClaimAfkRewards = subBuilder; - break; - } - case 186: { - global::Protobuf.Messages.GetUserSuperCampaignProgresses subBuilder = new global::Protobuf.Messages.GetUserSuperCampaignProgresses(); - if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) { - subBuilder.MergeFrom(GetUserSuperCampaignProgresses); + case 186: + { + global::Protobuf.Messages.GetUserSuperCampaignProgresses subBuilder = new global::Protobuf.Messages.GetUserSuperCampaignProgresses(); + if (requestTypeCase_ == RequestTypeOneofCase.GetUserSuperCampaignProgresses) + { + subBuilder.MergeFrom(GetUserSuperCampaignProgresses); + } + input.ReadMessage(subBuilder); + GetUserSuperCampaignProgresses = subBuilder; + break; } - input.ReadMessage(subBuilder); - GetUserSuperCampaignProgresses = subBuilder; - break; - } - case 194: { - global::Protobuf.Messages.LevelUpKalineTree subBuilder = new global::Protobuf.Messages.LevelUpKalineTree(); - if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) { - subBuilder.MergeFrom(LevelUpKalineTree); + case 194: + { + global::Protobuf.Messages.LevelUpKalineTree subBuilder = new global::Protobuf.Messages.LevelUpKalineTree(); + if (requestTypeCase_ == RequestTypeOneofCase.LevelUpKalineTree) + { + subBuilder.MergeFrom(LevelUpKalineTree); + } + input.ReadMessage(subBuilder); + LevelUpKalineTree = subBuilder; + break; } - input.ReadMessage(subBuilder); - LevelUpKalineTree = subBuilder; - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetUser : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUser()); private pb::UnknownFieldSet _unknownFields; @@ -1669,19 +1864,22 @@ public sealed partial class GetUser : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUser() { + public GetUser() + { OnConstruction(); } @@ -1689,14 +1887,16 @@ public GetUser() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUser(GetUser other) : this() { + public GetUser(GetUser other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUser Clone() { + public GetUser Clone() + { return new GetUser(this); } @@ -1705,26 +1905,32 @@ public GetUser Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetUser); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetUser other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetUser other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -1733,10 +1939,12 @@ public bool Equals(GetUser other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -1744,16 +1952,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -1761,31 +1971,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -1793,11 +2009,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetUser other) { - if (other == null) { + public void MergeFrom(GetUser other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1805,10 +2024,11 @@ public void MergeFrom(GetUser other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1821,35 +2041,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetUserByUsername : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserByUsername()); private pb::UnknownFieldSet _unknownFields; @@ -1859,19 +2083,22 @@ public sealed partial class GetUserByUsername : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserByUsername() { + public GetUserByUsername() + { OnConstruction(); } @@ -1879,14 +2106,16 @@ public GetUserByUsername() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserByUsername(GetUserByUsername other) : this() { + public GetUserByUsername(GetUserByUsername other) : this() + { username_ = other.username_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetUserByUsername Clone() { + public GetUserByUsername Clone() + { return new GetUserByUsername(this); } @@ -1895,26 +2124,32 @@ public GetUserByUsername Clone() { private string username_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { + public string Username + { get { return username_; } - set { + set + { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetUserByUsername); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetUserByUsername other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetUserByUsername other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Username != other.Username) return false; @@ -1923,10 +2158,12 @@ public bool Equals(GetUserByUsername other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Username.Length != 0) hash ^= Username.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -1934,16 +2171,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Username.Length != 0) { output.WriteRawTag(10); output.WriteString(Username); @@ -1951,31 +2190,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Username.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Username.Length != 0) + { output.WriteRawTag(10); output.WriteString(Username); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Username.Length != 0) { + if (Username.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -1983,11 +2228,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetUserByUsername other) { - if (other == null) { + public void MergeFrom(GetUserByUsername other) + { + if (other == null) + { return; } - if (other.Username.Length != 0) { + if (other.Username.Length != 0) + { Username = other.Username; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -1995,10 +2243,11 @@ public void MergeFrom(GetUserByUsername other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2011,35 +2260,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Username = input.ReadString(); - break; - } + case 10: + { + Username = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CreateUser : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUser()); private pb::UnknownFieldSet _unknownFields; @@ -2049,19 +2302,22 @@ public sealed partial class CreateUser : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUser() { + public CreateUser() + { OnConstruction(); } @@ -2069,14 +2325,16 @@ public CreateUser() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUser(CreateUser other) : this() { + public CreateUser(CreateUser other) : this() + { username_ = other.username_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateUser Clone() { + public CreateUser Clone() + { return new CreateUser(this); } @@ -2085,26 +2343,32 @@ public CreateUser Clone() { private string username_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { + public string Username + { get { return username_; } - set { + set + { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as CreateUser); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateUser other) { - if (ReferenceEquals(other, null)) { + public bool Equals(CreateUser other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Username != other.Username) return false; @@ -2113,10 +2377,12 @@ public bool Equals(CreateUser other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Username.Length != 0) hash ^= Username.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -2124,16 +2390,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Username.Length != 0) { output.WriteRawTag(10); output.WriteString(Username); @@ -2141,31 +2409,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Username.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Username.Length != 0) + { output.WriteRawTag(10); output.WriteString(Username); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Username.Length != 0) { + if (Username.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -2173,11 +2447,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateUser other) { - if (other == null) { + public void MergeFrom(CreateUser other) + { + if (other == null) + { return; } - if (other.Username.Length != 0) { + if (other.Username.Length != 0) + { Username = other.Username; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2185,10 +2462,11 @@ public void MergeFrom(CreateUser other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2201,35 +2479,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Username = input.ReadString(); - break; - } + case 10: + { + Username = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetCampaigns : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCampaigns()); private pb::UnknownFieldSet _unknownFields; @@ -2239,19 +2521,22 @@ public sealed partial class GetCampaigns : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaigns() { + public GetCampaigns() + { OnConstruction(); } @@ -2259,14 +2544,16 @@ public GetCampaigns() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaigns(GetCampaigns other) : this() { + public GetCampaigns(GetCampaigns other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaigns Clone() { + public GetCampaigns Clone() + { return new GetCampaigns(this); } @@ -2275,26 +2562,32 @@ public GetCampaigns Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetCampaigns); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetCampaigns other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetCampaigns other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -2303,10 +2596,12 @@ public bool Equals(GetCampaigns other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -2314,16 +2609,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -2331,31 +2628,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -2363,11 +2666,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetCampaigns other) { - if (other == null) { + public void MergeFrom(GetCampaigns other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2375,10 +2681,11 @@ public void MergeFrom(GetCampaigns other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2391,35 +2698,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetCampaign : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCampaign()); private pb::UnknownFieldSet _unknownFields; @@ -2429,19 +2740,22 @@ public sealed partial class GetCampaign : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaign() { + public GetCampaign() + { OnConstruction(); } @@ -2449,7 +2763,8 @@ public GetCampaign() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaign(GetCampaign other) : this() { + public GetCampaign(GetCampaign other) : this() + { userId_ = other.userId_; campaignId_ = other.campaignId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2457,7 +2772,8 @@ public GetCampaign(GetCampaign other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetCampaign Clone() { + public GetCampaign Clone() + { return new GetCampaign(this); } @@ -2466,9 +2782,11 @@ public GetCampaign Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -2478,26 +2796,32 @@ public string UserId { private string campaignId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignId { + public string CampaignId + { get { return campaignId_; } - set { + set + { campaignId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetCampaign); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetCampaign other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetCampaign other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -2507,11 +2831,13 @@ public bool Equals(GetCampaign other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (CampaignId.Length != 0) hash ^= CampaignId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -2519,16 +2845,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -2540,38 +2868,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { output.WriteRawTag(18); output.WriteString(CampaignId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -2579,14 +2915,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetCampaign other) { - if (other == null) { + public void MergeFrom(GetCampaign other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.CampaignId.Length != 0) { + if (other.CampaignId.Length != 0) + { CampaignId = other.CampaignId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2594,10 +2934,11 @@ public void MergeFrom(GetCampaign other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2614,39 +2955,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - CampaignId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + CampaignId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetLevel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLevel()); private pb::UnknownFieldSet _unknownFields; @@ -2656,19 +3002,22 @@ public sealed partial class GetLevel : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLevel() { + public GetLevel() + { OnConstruction(); } @@ -2676,7 +3025,8 @@ public GetLevel() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLevel(GetLevel other) : this() { + public GetLevel(GetLevel other) : this() + { userId_ = other.userId_; levelId_ = other.levelId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2684,7 +3034,8 @@ public GetLevel(GetLevel other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLevel Clone() { + public GetLevel Clone() + { return new GetLevel(this); } @@ -2693,9 +3044,11 @@ public GetLevel Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -2705,26 +3058,32 @@ public string UserId { private string levelId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LevelId { + public string LevelId + { get { return levelId_; } - set { + set + { levelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetLevel other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetLevel other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -2734,11 +3093,13 @@ public bool Equals(GetLevel other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (LevelId.Length != 0) hash ^= LevelId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -2746,16 +3107,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -2767,38 +3130,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { output.WriteRawTag(18); output.WriteString(LevelId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(LevelId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -2806,14 +3177,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetLevel other) { - if (other == null) { + public void MergeFrom(GetLevel other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.LevelId.Length != 0) { + if (other.LevelId.Length != 0) + { LevelId = other.LevelId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2821,10 +3196,11 @@ public void MergeFrom(GetLevel other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2841,39 +3217,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - LevelId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + LevelId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class FightLevel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FightLevel()); private pb::UnknownFieldSet _unknownFields; @@ -2883,19 +3264,22 @@ public sealed partial class FightLevel : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FightLevel() { + public FightLevel() + { OnConstruction(); } @@ -2903,7 +3287,8 @@ public FightLevel() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FightLevel(FightLevel other) : this() { + public FightLevel(FightLevel other) : this() + { userId_ = other.userId_; levelId_ = other.levelId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -2911,7 +3296,8 @@ public FightLevel(FightLevel other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FightLevel Clone() { + public FightLevel Clone() + { return new FightLevel(this); } @@ -2920,9 +3306,11 @@ public FightLevel Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -2932,26 +3320,32 @@ public string UserId { private string levelId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LevelId { + public string LevelId + { get { return levelId_; } - set { + set + { levelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as FightLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FightLevel other) { - if (ReferenceEquals(other, null)) { + public bool Equals(FightLevel other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -2961,11 +3355,13 @@ public bool Equals(FightLevel other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (LevelId.Length != 0) hash ^= LevelId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -2973,16 +3369,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -2994,38 +3392,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { output.WriteRawTag(18); output.WriteString(LevelId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(LevelId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -3033,14 +3439,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FightLevel other) { - if (other == null) { + public void MergeFrom(FightLevel other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.LevelId.Length != 0) { + if (other.LevelId.Length != 0) + { LevelId = other.LevelId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3048,10 +3458,11 @@ public void MergeFrom(FightLevel other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3068,39 +3479,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - LevelId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + LevelId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SelectUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectUnit()); private pb::UnknownFieldSet _unknownFields; @@ -3110,19 +3526,22 @@ public sealed partial class SelectUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectUnit() { + public SelectUnit() + { OnConstruction(); } @@ -3130,7 +3549,8 @@ public SelectUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectUnit(SelectUnit other) : this() { + public SelectUnit(SelectUnit other) : this() + { userId_ = other.userId_; unitId_ = other.unitId_; slot_ = other.slot_; @@ -3139,7 +3559,8 @@ public SelectUnit(SelectUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectUnit Clone() { + public SelectUnit Clone() + { return new SelectUnit(this); } @@ -3148,9 +3569,11 @@ public SelectUnit Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3160,9 +3583,11 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3172,26 +3597,32 @@ public string UnitId { private uint slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Slot { + public uint Slot + { get { return slot_; } - set { + set + { slot_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as SelectUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SelectUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(SelectUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -3202,12 +3633,14 @@ public bool Equals(SelectUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); if (Slot != 0) hash ^= Slot.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -3215,16 +3648,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -3240,45 +3675,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(18); output.WriteString(UnitId); } - if (Slot != 0) { + if (Slot != 0) + { output.WriteRawTag(24); output.WriteUInt32(Slot); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (Slot != 0) { + if (Slot != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -3286,17 +3731,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SelectUnit other) { - if (other == null) { + public void MergeFrom(SelectUnit other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } - if (other.Slot != 0) { + if (other.Slot != 0) + { Slot = other.Slot; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3304,10 +3754,11 @@ public void MergeFrom(SelectUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3328,43 +3779,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - UnitId = input.ReadString(); - break; - } - case 24: { - Slot = input.ReadUInt32(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + UnitId = input.ReadString(); + break; + } + case 24: + { + Slot = input.ReadUInt32(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnselectUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnselectUnit()); private pb::UnknownFieldSet _unknownFields; @@ -3374,19 +3831,22 @@ public sealed partial class UnselectUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnselectUnit() { + public UnselectUnit() + { OnConstruction(); } @@ -3394,7 +3854,8 @@ public UnselectUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnselectUnit(UnselectUnit other) : this() { + public UnselectUnit(UnselectUnit other) : this() + { userId_ = other.userId_; unitId_ = other.unitId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3402,7 +3863,8 @@ public UnselectUnit(UnselectUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnselectUnit Clone() { + public UnselectUnit Clone() + { return new UnselectUnit(this); } @@ -3411,9 +3873,11 @@ public UnselectUnit Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3423,26 +3887,32 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as UnselectUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnselectUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(UnselectUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -3452,11 +3922,13 @@ public bool Equals(UnselectUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -3464,16 +3936,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -3485,38 +3959,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(18); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -3524,14 +4006,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnselectUnit other) { - if (other == null) { + public void MergeFrom(UnselectUnit other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3539,10 +4025,11 @@ public void MergeFrom(UnselectUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3559,39 +4046,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - UnitId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + UnitId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class LevelUpUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LevelUpUnit()); private pb::UnknownFieldSet _unknownFields; @@ -3601,19 +4093,22 @@ public sealed partial class LevelUpUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpUnit() { + public LevelUpUnit() + { OnConstruction(); } @@ -3621,7 +4116,8 @@ public LevelUpUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpUnit(LevelUpUnit other) : this() { + public LevelUpUnit(LevelUpUnit other) : this() + { userId_ = other.userId_; unitId_ = other.unitId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3629,7 +4125,8 @@ public LevelUpUnit(LevelUpUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpUnit Clone() { + public LevelUpUnit Clone() + { return new LevelUpUnit(this); } @@ -3638,9 +4135,11 @@ public LevelUpUnit Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3650,26 +4149,32 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as LevelUpUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LevelUpUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(LevelUpUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -3679,11 +4184,13 @@ public bool Equals(LevelUpUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -3691,16 +4198,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -3712,38 +4221,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(18); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -3751,14 +4268,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LevelUpUnit other) { - if (other == null) { + public void MergeFrom(LevelUpUnit other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3766,10 +4287,11 @@ public void MergeFrom(LevelUpUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3786,39 +4308,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - UnitId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + UnitId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class TierUpUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TierUpUnit()); private pb::UnknownFieldSet _unknownFields; @@ -3828,19 +4355,22 @@ public sealed partial class TierUpUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TierUpUnit() { + public TierUpUnit() + { OnConstruction(); } @@ -3848,7 +4378,8 @@ public TierUpUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TierUpUnit(TierUpUnit other) : this() { + public TierUpUnit(TierUpUnit other) : this() + { userId_ = other.userId_; unitId_ = other.unitId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -3856,7 +4387,8 @@ public TierUpUnit(TierUpUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TierUpUnit Clone() { + public TierUpUnit Clone() + { return new TierUpUnit(this); } @@ -3865,9 +4397,11 @@ public TierUpUnit Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -3877,26 +4411,32 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as TierUpUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TierUpUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(TierUpUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -3906,11 +4446,13 @@ public bool Equals(TierUpUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -3918,16 +4460,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -3939,38 +4483,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(18); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -3978,14 +4530,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TierUpUnit other) { - if (other == null) { + public void MergeFrom(TierUpUnit other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -3993,10 +4549,11 @@ public void MergeFrom(TierUpUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4013,39 +4570,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - UnitId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + UnitId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class FuseUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FuseUnit()); private pb::UnknownFieldSet _unknownFields; @@ -4055,19 +4617,22 @@ public sealed partial class FuseUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FuseUnit() { + public FuseUnit() + { OnConstruction(); } @@ -4075,7 +4640,8 @@ public FuseUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FuseUnit(FuseUnit other) : this() { + public FuseUnit(FuseUnit other) : this() + { userId_ = other.userId_; unitId_ = other.unitId_; consumedUnitsIds_ = other.consumedUnitsIds_.Clone(); @@ -4084,7 +4650,8 @@ public FuseUnit(FuseUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FuseUnit Clone() { + public FuseUnit Clone() + { return new FuseUnit(this); } @@ -4093,9 +4660,11 @@ public FuseUnit Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4105,9 +4674,11 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4119,39 +4690,46 @@ public string UnitId { private readonly pbc::RepeatedField consumedUnitsIds_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConsumedUnitsIds { + public pbc::RepeatedField ConsumedUnitsIds + { get { return consumedUnitsIds_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as FuseUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FuseUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(FuseUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; if (UnitId != other.UnitId) return false; - if(!consumedUnitsIds_.Equals(other.consumedUnitsIds_)) return false; + if (!consumedUnitsIds_.Equals(other.consumedUnitsIds_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); hash ^= consumedUnitsIds_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -4159,16 +4737,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -4181,40 +4761,48 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(18); output.WriteString(UnitId); } consumedUnitsIds_.WriteTo(ref output, _repeated_consumedUnitsIds_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } size += consumedUnitsIds_.CalculateSize(_repeated_consumedUnitsIds_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -4222,14 +4810,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FuseUnit other) { - if (other == null) { + public void MergeFrom(FuseUnit other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } consumedUnitsIds_.Add(other.consumedUnitsIds_); @@ -4238,10 +4830,11 @@ public void MergeFrom(FuseUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4262,43 +4855,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - UnitId = input.ReadString(); - break; - } - case 26: { - consumedUnitsIds_.AddEntriesFrom(ref input, _repeated_consumedUnitsIds_codec); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + UnitId = input.ReadString(); + break; + } + case 26: + { + consumedUnitsIds_.AddEntriesFrom(ref input, _repeated_consumedUnitsIds_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class EquipItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EquipItem()); private pb::UnknownFieldSet _unknownFields; @@ -4308,19 +4907,22 @@ public sealed partial class EquipItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EquipItem() { + public EquipItem() + { OnConstruction(); } @@ -4328,7 +4930,8 @@ public EquipItem() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EquipItem(EquipItem other) : this() { + public EquipItem(EquipItem other) : this() + { userId_ = other.userId_; itemId_ = other.itemId_; unitId_ = other.unitId_; @@ -4337,7 +4940,8 @@ public EquipItem(EquipItem other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EquipItem Clone() { + public EquipItem Clone() + { return new EquipItem(this); } @@ -4346,9 +4950,11 @@ public EquipItem Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4358,9 +4964,11 @@ public string UserId { private string itemId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemId { + public string ItemId + { get { return itemId_; } - set { + set + { itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4370,26 +4978,32 @@ public string ItemId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as EquipItem); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EquipItem other) { - if (ReferenceEquals(other, null)) { + public bool Equals(EquipItem other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -4400,12 +5014,14 @@ public bool Equals(EquipItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -4413,16 +5029,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -4438,45 +5056,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { output.WriteRawTag(18); output.WriteString(ItemId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(26); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -4484,17 +5112,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EquipItem other) { - if (other == null) { + public void MergeFrom(EquipItem other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.ItemId.Length != 0) { + if (other.ItemId.Length != 0) + { ItemId = other.ItemId; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4502,10 +5135,11 @@ public void MergeFrom(EquipItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4526,43 +5160,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - ItemId = input.ReadString(); - break; - } - case 26: { - UnitId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + ItemId = input.ReadString(); + break; + } + case 26: + { + UnitId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnequipItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnequipItem()); private pb::UnknownFieldSet _unknownFields; @@ -4572,19 +5212,22 @@ public sealed partial class UnequipItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnequipItem() { + public UnequipItem() + { OnConstruction(); } @@ -4592,7 +5235,8 @@ public UnequipItem() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnequipItem(UnequipItem other) : this() { + public UnequipItem(UnequipItem other) : this() + { userId_ = other.userId_; itemId_ = other.itemId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4600,7 +5244,8 @@ public UnequipItem(UnequipItem other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnequipItem Clone() { + public UnequipItem Clone() + { return new UnequipItem(this); } @@ -4609,9 +5254,11 @@ public UnequipItem Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4621,26 +5268,32 @@ public string UserId { private string itemId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemId { + public string ItemId + { get { return itemId_; } - set { + set + { itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as UnequipItem); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnequipItem other) { - if (ReferenceEquals(other, null)) { + public bool Equals(UnequipItem other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -4650,11 +5303,13 @@ public bool Equals(UnequipItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -4662,16 +5317,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -4683,38 +5340,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { output.WriteRawTag(18); output.WriteString(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -4722,14 +5387,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnequipItem other) { - if (other == null) { + public void MergeFrom(UnequipItem other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.ItemId.Length != 0) { + if (other.ItemId.Length != 0) + { ItemId = other.ItemId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4737,10 +5406,11 @@ public void MergeFrom(UnequipItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4757,39 +5427,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - ItemId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + ItemId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetItem()); private pb::UnknownFieldSet _unknownFields; @@ -4799,19 +5474,22 @@ public sealed partial class GetItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetItem() { + public GetItem() + { OnConstruction(); } @@ -4819,7 +5497,8 @@ public GetItem() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetItem(GetItem other) : this() { + public GetItem(GetItem other) : this() + { userId_ = other.userId_; itemId_ = other.itemId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -4827,7 +5506,8 @@ public GetItem(GetItem other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetItem Clone() { + public GetItem Clone() + { return new GetItem(this); } @@ -4836,9 +5516,11 @@ public GetItem Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -4848,26 +5530,32 @@ public string UserId { private string itemId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemId { + public string ItemId + { get { return itemId_; } - set { + set + { itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetItem); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetItem other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetItem other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -4877,11 +5565,13 @@ public bool Equals(GetItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -4889,16 +5579,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -4910,38 +5602,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { output.WriteRawTag(18); output.WriteString(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -4949,14 +5649,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetItem other) { - if (other == null) { + public void MergeFrom(GetItem other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.ItemId.Length != 0) { + if (other.ItemId.Length != 0) + { ItemId = other.ItemId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -4964,10 +5668,11 @@ public void MergeFrom(GetItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4984,39 +5689,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - ItemId = input.ReadString(); - break; - } - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + ItemId = input.ReadString(); + break; + } + } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class LevelUpItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LevelUpItem()); private pb::UnknownFieldSet _unknownFields; @@ -5026,19 +5736,22 @@ public sealed partial class LevelUpItem : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpItem() { + public LevelUpItem() + { OnConstruction(); } @@ -5046,7 +5759,8 @@ public LevelUpItem() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpItem(LevelUpItem other) : this() { + public LevelUpItem(LevelUpItem other) : this() + { userId_ = other.userId_; itemId_ = other.itemId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -5054,7 +5768,8 @@ public LevelUpItem(LevelUpItem other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpItem Clone() { + public LevelUpItem Clone() + { return new LevelUpItem(this); } @@ -5063,9 +5778,11 @@ public LevelUpItem Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -5075,26 +5792,32 @@ public string UserId { private string itemId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemId { + public string ItemId + { get { return itemId_; } - set { + set + { itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as LevelUpItem); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LevelUpItem other) { - if (ReferenceEquals(other, null)) { + public bool Equals(LevelUpItem other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -5104,11 +5827,13 @@ public bool Equals(LevelUpItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -5116,16 +5841,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -5137,38 +5864,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { output.WriteRawTag(18); output.WriteString(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (ItemId.Length != 0) { + if (ItemId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -5176,14 +5911,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LevelUpItem other) { - if (other == null) { + public void MergeFrom(LevelUpItem other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.ItemId.Length != 0) { + if (other.ItemId.Length != 0) + { ItemId = other.ItemId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5191,10 +5930,11 @@ public void MergeFrom(LevelUpItem other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5211,39 +5951,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - ItemId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + ItemId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetAfkRewards : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAfkRewards()); private pb::UnknownFieldSet _unknownFields; @@ -5253,19 +5998,22 @@ public sealed partial class GetAfkRewards : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAfkRewards() { + public GetAfkRewards() + { OnConstruction(); } @@ -5273,14 +6021,16 @@ public GetAfkRewards() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAfkRewards(GetAfkRewards other) : this() { + public GetAfkRewards(GetAfkRewards other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAfkRewards Clone() { + public GetAfkRewards Clone() + { return new GetAfkRewards(this); } @@ -5289,26 +6039,32 @@ public GetAfkRewards Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetAfkRewards); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAfkRewards other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetAfkRewards other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -5317,10 +6073,12 @@ public bool Equals(GetAfkRewards other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -5328,16 +6086,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -5345,31 +6105,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -5377,11 +6143,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAfkRewards other) { - if (other == null) { + public void MergeFrom(GetAfkRewards other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5389,10 +6158,11 @@ public void MergeFrom(GetAfkRewards other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5405,35 +6175,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ClaimAfkRewards : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClaimAfkRewards()); private pb::UnknownFieldSet _unknownFields; @@ -5443,19 +6217,22 @@ public sealed partial class ClaimAfkRewards : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClaimAfkRewards() { + public ClaimAfkRewards() + { OnConstruction(); } @@ -5463,14 +6240,16 @@ public ClaimAfkRewards() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClaimAfkRewards(ClaimAfkRewards other) : this() { + public ClaimAfkRewards(ClaimAfkRewards other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClaimAfkRewards Clone() { + public ClaimAfkRewards Clone() + { return new ClaimAfkRewards(this); } @@ -5479,26 +6258,32 @@ public ClaimAfkRewards Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as ClaimAfkRewards); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClaimAfkRewards other) { - if (ReferenceEquals(other, null)) { + public bool Equals(ClaimAfkRewards other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -5507,10 +6292,12 @@ public bool Equals(ClaimAfkRewards other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -5518,16 +6305,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -5535,31 +6324,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -5567,11 +6362,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClaimAfkRewards other) { - if (other == null) { + public void MergeFrom(ClaimAfkRewards other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5579,10 +6377,11 @@ public void MergeFrom(ClaimAfkRewards other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5595,35 +6394,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetBoxes : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBoxes()); private pb::UnknownFieldSet _unknownFields; @@ -5633,19 +6436,22 @@ public sealed partial class GetBoxes : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBoxes() { + public GetBoxes() + { OnConstruction(); } @@ -5653,14 +6459,16 @@ public GetBoxes() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBoxes(GetBoxes other) : this() { + public GetBoxes(GetBoxes other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBoxes Clone() { + public GetBoxes Clone() + { return new GetBoxes(this); } @@ -5669,26 +6477,32 @@ public GetBoxes Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetBoxes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetBoxes other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetBoxes other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -5697,10 +6511,12 @@ public bool Equals(GetBoxes other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -5708,16 +6524,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -5725,31 +6543,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -5757,11 +6581,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetBoxes other) { - if (other == null) { + public void MergeFrom(GetBoxes other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5769,10 +6596,11 @@ public void MergeFrom(GetBoxes other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5785,35 +6613,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetBox : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBox()); private pb::UnknownFieldSet _unknownFields; @@ -5823,19 +6655,22 @@ public sealed partial class GetBox : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBox() { + public GetBox() + { OnConstruction(); } @@ -5843,14 +6678,16 @@ public GetBox() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBox(GetBox other) : this() { + public GetBox(GetBox other) : this() + { boxId_ = other.boxId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetBox Clone() { + public GetBox Clone() + { return new GetBox(this); } @@ -5859,26 +6696,32 @@ public GetBox Clone() { private string boxId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BoxId { + public string BoxId + { get { return boxId_; } - set { + set + { boxId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as GetBox); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetBox other) { - if (ReferenceEquals(other, null)) { + public bool Equals(GetBox other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (BoxId != other.BoxId) return false; @@ -5887,10 +6730,12 @@ public bool Equals(GetBox other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (BoxId.Length != 0) hash ^= BoxId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -5898,16 +6743,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (BoxId.Length != 0) { output.WriteRawTag(10); output.WriteString(BoxId); @@ -5915,31 +6762,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BoxId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (BoxId.Length != 0) + { output.WriteRawTag(10); output.WriteString(BoxId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (BoxId.Length != 0) { + if (BoxId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(BoxId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -5947,11 +6800,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetBox other) { - if (other == null) { + public void MergeFrom(GetBox other) + { + if (other == null) + { return; } - if (other.BoxId.Length != 0) { + if (other.BoxId.Length != 0) + { BoxId = other.BoxId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -5959,10 +6815,11 @@ public void MergeFrom(GetBox other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5975,35 +6832,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - BoxId = input.ReadString(); - break; - } + case 10: + { + BoxId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Summon : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Summon()); private pb::UnknownFieldSet _unknownFields; @@ -6013,19 +6874,22 @@ public sealed partial class Summon : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Summon() { + public Summon() + { OnConstruction(); } @@ -6033,7 +6897,8 @@ public Summon() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Summon(Summon other) : this() { + public Summon(Summon other) : this() + { userId_ = other.userId_; boxId_ = other.boxId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -6041,7 +6906,8 @@ public Summon(Summon other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Summon Clone() { + public Summon Clone() + { return new Summon(this); } @@ -6050,9 +6916,11 @@ public Summon Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -6062,26 +6930,32 @@ public string UserId { private string boxId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BoxId { + public string BoxId + { get { return boxId_; } - set { + set + { boxId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Summon); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Summon other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Summon other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -6091,11 +6965,13 @@ public bool Equals(Summon other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (BoxId.Length != 0) hash ^= BoxId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -6103,16 +6979,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -6124,38 +7002,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (BoxId.Length != 0) { + if (BoxId.Length != 0) + { output.WriteRawTag(18); output.WriteString(BoxId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (BoxId.Length != 0) { + if (BoxId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(BoxId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -6163,14 +7049,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Summon other) { - if (other == null) { + public void MergeFrom(Summon other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.BoxId.Length != 0) { + if (other.BoxId.Length != 0) + { BoxId = other.BoxId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6178,10 +7068,11 @@ public void MergeFrom(Summon other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6198,39 +7089,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - BoxId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + BoxId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class GetUserSuperCampaignProgresses : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserSuperCampaignProgresses()); private pb::UnknownFieldSet _unknownFields; @@ -6240,19 +7136,22 @@ public sealed partial class GetUserSuperCampaignProgresses : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LevelUpKalineTree()); private pb::UnknownFieldSet _unknownFields; @@ -6430,19 +7355,22 @@ public sealed partial class LevelUpKalineTree : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpKalineTree() { + public LevelUpKalineTree() + { OnConstruction(); } @@ -6450,14 +7378,16 @@ public LevelUpKalineTree() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpKalineTree(LevelUpKalineTree other) : this() { + public LevelUpKalineTree(LevelUpKalineTree other) : this() + { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LevelUpKalineTree Clone() { + public LevelUpKalineTree Clone() + { return new LevelUpKalineTree(this); } @@ -6466,26 +7396,32 @@ public LevelUpKalineTree Clone() { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as LevelUpKalineTree); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LevelUpKalineTree other) { - if (ReferenceEquals(other, null)) { + public bool Equals(LevelUpKalineTree other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; @@ -6494,10 +7430,12 @@ public bool Equals(LevelUpKalineTree other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -6505,16 +7443,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -6522,31 +7462,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -6554,11 +7500,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LevelUpKalineTree other) { - if (other == null) { + public void MergeFrom(LevelUpKalineTree other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -6566,10 +7515,11 @@ public void MergeFrom(LevelUpKalineTree other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6582,35 +7532,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UserId = input.ReadString(); - break; - } + case 10: + { + UserId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class WebSocketResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebSocketResponse()); private pb::UnknownFieldSet _unknownFields; @@ -6620,19 +7574,22 @@ public sealed partial class WebSocketResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse() { + public WebSocketResponse() + { OnConstruction(); } @@ -6640,8 +7597,10 @@ public WebSocketResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse(WebSocketResponse other) : this() { - switch (other.ResponseTypeCase) { + public WebSocketResponse(WebSocketResponse other) : this() + { + switch (other.ResponseTypeCase) + { case ResponseTypeOneofCase.User: User = other.User.Clone(); break; @@ -6694,7 +7653,8 @@ public WebSocketResponse(WebSocketResponse other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebSocketResponse Clone() { + public WebSocketResponse Clone() + { return new WebSocketResponse(this); } @@ -6702,9 +7662,11 @@ public WebSocketResponse Clone() { public const int UserFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.User User { - get { return responseTypeCase_ == ResponseTypeOneofCase.User ? (global::Protobuf.Messages.User) responseType_ : null; } - set { + public global::Protobuf.Messages.User User + { + get { return responseTypeCase_ == ResponseTypeOneofCase.User ? (global::Protobuf.Messages.User)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.User; } @@ -6714,9 +7676,11 @@ public WebSocketResponse Clone() { public const int UnitFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Unit Unit { - get { return responseTypeCase_ == ResponseTypeOneofCase.Unit ? (global::Protobuf.Messages.Unit) responseType_ : null; } - set { + public global::Protobuf.Messages.Unit Unit + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Unit ? (global::Protobuf.Messages.Unit)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Unit; } @@ -6726,9 +7690,11 @@ public WebSocketResponse Clone() { public const int UnitsFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Units Units { - get { return responseTypeCase_ == ResponseTypeOneofCase.Units ? (global::Protobuf.Messages.Units) responseType_ : null; } - set { + public global::Protobuf.Messages.Units Units + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Units ? (global::Protobuf.Messages.Units)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Units; } @@ -6738,9 +7704,11 @@ public WebSocketResponse Clone() { public const int UnitAndCurrenciesFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UnitAndCurrencies UnitAndCurrencies { - get { return responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies ? (global::Protobuf.Messages.UnitAndCurrencies) responseType_ : null; } - set { + public global::Protobuf.Messages.UnitAndCurrencies UnitAndCurrencies + { + get { return responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies ? (global::Protobuf.Messages.UnitAndCurrencies)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UnitAndCurrencies; } @@ -6750,9 +7718,11 @@ public WebSocketResponse Clone() { public const int ItemFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Item Item { - get { return responseTypeCase_ == ResponseTypeOneofCase.Item ? (global::Protobuf.Messages.Item) responseType_ : null; } - set { + public global::Protobuf.Messages.Item Item + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Item ? (global::Protobuf.Messages.Item)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Item; } @@ -6762,9 +7732,11 @@ public WebSocketResponse Clone() { public const int CampaignsFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Campaigns Campaigns { - get { return responseTypeCase_ == ResponseTypeOneofCase.Campaigns ? (global::Protobuf.Messages.Campaigns) responseType_ : null; } - set { + public global::Protobuf.Messages.Campaigns Campaigns + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Campaigns ? (global::Protobuf.Messages.Campaigns)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaigns; } @@ -6774,9 +7746,11 @@ public WebSocketResponse Clone() { public const int CampaignFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Campaign Campaign { - get { return responseTypeCase_ == ResponseTypeOneofCase.Campaign ? (global::Protobuf.Messages.Campaign) responseType_ : null; } - set { + public global::Protobuf.Messages.Campaign Campaign + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Campaign ? (global::Protobuf.Messages.Campaign)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Campaign; } @@ -6786,9 +7760,11 @@ public WebSocketResponse Clone() { public const int LevelFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Level Level { - get { return responseTypeCase_ == ResponseTypeOneofCase.Level ? (global::Protobuf.Messages.Level) responseType_ : null; } - set { + public global::Protobuf.Messages.Level Level + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Level ? (global::Protobuf.Messages.Level)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Level; } @@ -6798,9 +7774,11 @@ public WebSocketResponse Clone() { public const int BattleResultFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.BattleResult BattleResult { - get { return responseTypeCase_ == ResponseTypeOneofCase.BattleResult ? (global::Protobuf.Messages.BattleResult) responseType_ : null; } - set { + public global::Protobuf.Messages.BattleResult BattleResult + { + get { return responseTypeCase_ == ResponseTypeOneofCase.BattleResult ? (global::Protobuf.Messages.BattleResult)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.BattleResult; } @@ -6810,9 +7788,11 @@ public WebSocketResponse Clone() { public const int ErrorFieldNumber = 10; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Error Error { - get { return responseTypeCase_ == ResponseTypeOneofCase.Error ? (global::Protobuf.Messages.Error) responseType_ : null; } - set { + public global::Protobuf.Messages.Error Error + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Error ? (global::Protobuf.Messages.Error)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Error; } @@ -6822,9 +7802,11 @@ public WebSocketResponse Clone() { public const int BoxesFieldNumber = 11; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Boxes Boxes { - get { return responseTypeCase_ == ResponseTypeOneofCase.Boxes ? (global::Protobuf.Messages.Boxes) responseType_ : null; } - set { + public global::Protobuf.Messages.Boxes Boxes + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Boxes ? (global::Protobuf.Messages.Boxes)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Boxes; } @@ -6834,9 +7816,11 @@ public WebSocketResponse Clone() { public const int BoxFieldNumber = 12; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Box Box { - get { return responseTypeCase_ == ResponseTypeOneofCase.Box ? (global::Protobuf.Messages.Box) responseType_ : null; } - set { + public global::Protobuf.Messages.Box Box + { + get { return responseTypeCase_ == ResponseTypeOneofCase.Box ? (global::Protobuf.Messages.Box)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.Box; } @@ -6846,9 +7830,11 @@ public WebSocketResponse Clone() { public const int UserAndUnitFieldNumber = 13; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.UserAndUnit UserAndUnit { - get { return responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit ? (global::Protobuf.Messages.UserAndUnit) responseType_ : null; } - set { + public global::Protobuf.Messages.UserAndUnit UserAndUnit + { + get { return responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit ? (global::Protobuf.Messages.UserAndUnit)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.UserAndUnit; } @@ -6858,9 +7844,11 @@ public WebSocketResponse Clone() { public const int AfkRewardsFieldNumber = 14; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.AfkRewards AfkRewards { - get { return responseTypeCase_ == ResponseTypeOneofCase.AfkRewards ? (global::Protobuf.Messages.AfkRewards) responseType_ : null; } - set { + public global::Protobuf.Messages.AfkRewards AfkRewards + { + get { return responseTypeCase_ == ResponseTypeOneofCase.AfkRewards ? (global::Protobuf.Messages.AfkRewards)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.AfkRewards; } @@ -6870,9 +7858,11 @@ public WebSocketResponse Clone() { public const int SuperCampaignProgressesFieldNumber = 15; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.SuperCampaignProgresses SuperCampaignProgresses { - get { return responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses ? (global::Protobuf.Messages.SuperCampaignProgresses) responseType_ : null; } - set { + public global::Protobuf.Messages.SuperCampaignProgresses SuperCampaignProgresses + { + get { return responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses ? (global::Protobuf.Messages.SuperCampaignProgresses)responseType_ : null; } + set + { responseType_ = value; responseTypeCase_ = value == null ? ResponseTypeOneofCase.None : ResponseTypeOneofCase.SuperCampaignProgresses; } @@ -6880,7 +7870,8 @@ public WebSocketResponse Clone() { private object responseType_; /// Enum of possible cases for the "response_type" oneof. - public enum ResponseTypeOneofCase { + public enum ResponseTypeOneofCase + { None = 0, User = 1, Unit = 2, @@ -6901,30 +7892,36 @@ public enum ResponseTypeOneofCase { private ResponseTypeOneofCase responseTypeCase_ = ResponseTypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponseTypeOneofCase ResponseTypeCase { + public ResponseTypeOneofCase ResponseTypeCase + { get { return responseTypeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearResponseType() { + public void ClearResponseType() + { responseTypeCase_ = ResponseTypeOneofCase.None; responseType_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as WebSocketResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebSocketResponse other) { - if (ReferenceEquals(other, null)) { + public bool Equals(WebSocketResponse other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(User, other.User)) return false; @@ -6948,7 +7945,8 @@ public bool Equals(WebSocketResponse other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (responseTypeCase_ == ResponseTypeOneofCase.User) hash ^= User.GetHashCode(); if (responseTypeCase_ == ResponseTypeOneofCase.Unit) hash ^= Unit.GetHashCode(); @@ -6965,8 +7963,9 @@ public override int GetHashCode() { if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) hash ^= UserAndUnit.GetHashCode(); if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) hash ^= AfkRewards.GetHashCode(); if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) hash ^= SuperCampaignProgresses.GetHashCode(); - hash ^= (int) responseTypeCase_; - if (_unknownFields != null) { + hash ^= (int)responseTypeCase_; + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -6974,16 +7973,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (responseTypeCase_ == ResponseTypeOneofCase.User) { output.WriteRawTag(10); output.WriteMessage(User); @@ -7047,129 +8048,163 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (responseTypeCase_ == ResponseTypeOneofCase.User) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (responseTypeCase_ == ResponseTypeOneofCase.User) + { output.WriteRawTag(10); output.WriteMessage(User); } - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) + { output.WriteRawTag(18); output.WriteMessage(Unit); } - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + if (responseTypeCase_ == ResponseTypeOneofCase.Units) + { output.WriteRawTag(26); output.WriteMessage(Units); } - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) + { output.WriteRawTag(34); output.WriteMessage(UnitAndCurrencies); } - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + if (responseTypeCase_ == ResponseTypeOneofCase.Item) + { output.WriteRawTag(42); output.WriteMessage(Item); } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) + { output.WriteRawTag(50); output.WriteMessage(Campaigns); } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) + { output.WriteRawTag(58); output.WriteMessage(Campaign); } - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + if (responseTypeCase_ == ResponseTypeOneofCase.Level) + { output.WriteRawTag(66); output.WriteMessage(Level); } - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) + { output.WriteRawTag(74); output.WriteMessage(BattleResult); } - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + if (responseTypeCase_ == ResponseTypeOneofCase.Error) + { output.WriteRawTag(82); output.WriteMessage(Error); } - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) + { output.WriteRawTag(90); output.WriteMessage(Boxes); } - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + if (responseTypeCase_ == ResponseTypeOneofCase.Box) + { output.WriteRawTag(98); output.WriteMessage(Box); } - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) + { output.WriteRawTag(106); output.WriteMessage(UserAndUnit); } - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) + { output.WriteRawTag(114); output.WriteMessage(AfkRewards); } - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) + { output.WriteRawTag(122); output.WriteMessage(SuperCampaignProgresses); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (responseTypeCase_ == ResponseTypeOneofCase.User) { + if (responseTypeCase_ == ResponseTypeOneofCase.User) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); } - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unit); } - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { + if (responseTypeCase_ == ResponseTypeOneofCase.Units) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Units); } - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnitAndCurrencies); } - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { + if (responseTypeCase_ == ResponseTypeOneofCase.Item) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item); } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaigns); } - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); } - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { + if (responseTypeCase_ == ResponseTypeOneofCase.Level) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Level); } - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BattleResult); } - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { + if (responseTypeCase_ == ResponseTypeOneofCase.Error) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Boxes); } - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { + if (responseTypeCase_ == ResponseTypeOneofCase.Box) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Box); } - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserAndUnit); } - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AfkRewards); } - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuperCampaignProgresses); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -7177,97 +8212,115 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebSocketResponse other) { - if (other == null) { + public void MergeFrom(WebSocketResponse other) + { + if (other == null) + { return; } - switch (other.ResponseTypeCase) { + switch (other.ResponseTypeCase) + { case ResponseTypeOneofCase.User: - if (User == null) { + if (User == null) + { User = new global::Protobuf.Messages.User(); } User.MergeFrom(other.User); break; case ResponseTypeOneofCase.Unit: - if (Unit == null) { + if (Unit == null) + { Unit = new global::Protobuf.Messages.Unit(); } Unit.MergeFrom(other.Unit); break; case ResponseTypeOneofCase.Units: - if (Units == null) { + if (Units == null) + { Units = new global::Protobuf.Messages.Units(); } Units.MergeFrom(other.Units); break; case ResponseTypeOneofCase.UnitAndCurrencies: - if (UnitAndCurrencies == null) { + if (UnitAndCurrencies == null) + { UnitAndCurrencies = new global::Protobuf.Messages.UnitAndCurrencies(); } UnitAndCurrencies.MergeFrom(other.UnitAndCurrencies); break; case ResponseTypeOneofCase.Item: - if (Item == null) { + if (Item == null) + { Item = new global::Protobuf.Messages.Item(); } Item.MergeFrom(other.Item); break; case ResponseTypeOneofCase.Campaigns: - if (Campaigns == null) { + if (Campaigns == null) + { Campaigns = new global::Protobuf.Messages.Campaigns(); } Campaigns.MergeFrom(other.Campaigns); break; case ResponseTypeOneofCase.Campaign: - if (Campaign == null) { + if (Campaign == null) + { Campaign = new global::Protobuf.Messages.Campaign(); } Campaign.MergeFrom(other.Campaign); break; case ResponseTypeOneofCase.Level: - if (Level == null) { + if (Level == null) + { Level = new global::Protobuf.Messages.Level(); } Level.MergeFrom(other.Level); break; case ResponseTypeOneofCase.BattleResult: - if (BattleResult == null) { + if (BattleResult == null) + { BattleResult = new global::Protobuf.Messages.BattleResult(); } BattleResult.MergeFrom(other.BattleResult); break; case ResponseTypeOneofCase.Error: - if (Error == null) { + if (Error == null) + { Error = new global::Protobuf.Messages.Error(); } Error.MergeFrom(other.Error); break; case ResponseTypeOneofCase.Boxes: - if (Boxes == null) { + if (Boxes == null) + { Boxes = new global::Protobuf.Messages.Boxes(); } Boxes.MergeFrom(other.Boxes); break; case ResponseTypeOneofCase.Box: - if (Box == null) { + if (Box == null) + { Box = new global::Protobuf.Messages.Box(); } Box.MergeFrom(other.Box); break; case ResponseTypeOneofCase.UserAndUnit: - if (UserAndUnit == null) { + if (UserAndUnit == null) + { UserAndUnit = new global::Protobuf.Messages.UserAndUnit(); } UserAndUnit.MergeFrom(other.UserAndUnit); break; case ResponseTypeOneofCase.AfkRewards: - if (AfkRewards == null) { + if (AfkRewards == null) + { AfkRewards = new global::Protobuf.Messages.AfkRewards(); } AfkRewards.MergeFrom(other.AfkRewards); break; case ResponseTypeOneofCase.SuperCampaignProgresses: - if (SuperCampaignProgresses == null) { + if (SuperCampaignProgresses == null) + { SuperCampaignProgresses = new global::Protobuf.Messages.SuperCampaignProgresses(); } SuperCampaignProgresses.MergeFrom(other.SuperCampaignProgresses); @@ -7279,10 +8332,11 @@ public void MergeFrom(WebSocketResponse other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7426,166 +8480,199 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); - if (responseTypeCase_ == ResponseTypeOneofCase.User) { - subBuilder.MergeFrom(User); + case 10: + { + global::Protobuf.Messages.User subBuilder = new global::Protobuf.Messages.User(); + if (responseTypeCase_ == ResponseTypeOneofCase.User) + { + subBuilder.MergeFrom(User); + } + input.ReadMessage(subBuilder); + User = subBuilder; + break; } - input.ReadMessage(subBuilder); - User = subBuilder; - break; - } - case 18: { - global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); - if (responseTypeCase_ == ResponseTypeOneofCase.Unit) { - subBuilder.MergeFrom(Unit); + case 18: + { + global::Protobuf.Messages.Unit subBuilder = new global::Protobuf.Messages.Unit(); + if (responseTypeCase_ == ResponseTypeOneofCase.Unit) + { + subBuilder.MergeFrom(Unit); + } + input.ReadMessage(subBuilder); + Unit = subBuilder; + break; } - input.ReadMessage(subBuilder); - Unit = subBuilder; - break; - } - case 26: { - global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); - if (responseTypeCase_ == ResponseTypeOneofCase.Units) { - subBuilder.MergeFrom(Units); + case 26: + { + global::Protobuf.Messages.Units subBuilder = new global::Protobuf.Messages.Units(); + if (responseTypeCase_ == ResponseTypeOneofCase.Units) + { + subBuilder.MergeFrom(Units); + } + input.ReadMessage(subBuilder); + Units = subBuilder; + break; } - input.ReadMessage(subBuilder); - Units = subBuilder; - break; - } - case 34: { - global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); - if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) { - subBuilder.MergeFrom(UnitAndCurrencies); + case 34: + { + global::Protobuf.Messages.UnitAndCurrencies subBuilder = new global::Protobuf.Messages.UnitAndCurrencies(); + if (responseTypeCase_ == ResponseTypeOneofCase.UnitAndCurrencies) + { + subBuilder.MergeFrom(UnitAndCurrencies); + } + input.ReadMessage(subBuilder); + UnitAndCurrencies = subBuilder; + break; } - input.ReadMessage(subBuilder); - UnitAndCurrencies = subBuilder; - break; - } - case 42: { - global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); - if (responseTypeCase_ == ResponseTypeOneofCase.Item) { - subBuilder.MergeFrom(Item); + case 42: + { + global::Protobuf.Messages.Item subBuilder = new global::Protobuf.Messages.Item(); + if (responseTypeCase_ == ResponseTypeOneofCase.Item) + { + subBuilder.MergeFrom(Item); + } + input.ReadMessage(subBuilder); + Item = subBuilder; + break; } - input.ReadMessage(subBuilder); - Item = subBuilder; - break; - } - case 50: { - global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) { - subBuilder.MergeFrom(Campaigns); + case 50: + { + global::Protobuf.Messages.Campaigns subBuilder = new global::Protobuf.Messages.Campaigns(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaigns) + { + subBuilder.MergeFrom(Campaigns); + } + input.ReadMessage(subBuilder); + Campaigns = subBuilder; + break; } - input.ReadMessage(subBuilder); - Campaigns = subBuilder; - break; - } - case 58: { - global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); - if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) { - subBuilder.MergeFrom(Campaign); + case 58: + { + global::Protobuf.Messages.Campaign subBuilder = new global::Protobuf.Messages.Campaign(); + if (responseTypeCase_ == ResponseTypeOneofCase.Campaign) + { + subBuilder.MergeFrom(Campaign); + } + input.ReadMessage(subBuilder); + Campaign = subBuilder; + break; } - input.ReadMessage(subBuilder); - Campaign = subBuilder; - break; - } - case 66: { - global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); - if (responseTypeCase_ == ResponseTypeOneofCase.Level) { - subBuilder.MergeFrom(Level); + case 66: + { + global::Protobuf.Messages.Level subBuilder = new global::Protobuf.Messages.Level(); + if (responseTypeCase_ == ResponseTypeOneofCase.Level) + { + subBuilder.MergeFrom(Level); + } + input.ReadMessage(subBuilder); + Level = subBuilder; + break; } - input.ReadMessage(subBuilder); - Level = subBuilder; - break; - } - case 74: { - global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); - if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) { - subBuilder.MergeFrom(BattleResult); + case 74: + { + global::Protobuf.Messages.BattleResult subBuilder = new global::Protobuf.Messages.BattleResult(); + if (responseTypeCase_ == ResponseTypeOneofCase.BattleResult) + { + subBuilder.MergeFrom(BattleResult); + } + input.ReadMessage(subBuilder); + BattleResult = subBuilder; + break; } - input.ReadMessage(subBuilder); - BattleResult = subBuilder; - break; - } - case 82: { - global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); - if (responseTypeCase_ == ResponseTypeOneofCase.Error) { - subBuilder.MergeFrom(Error); + case 82: + { + global::Protobuf.Messages.Error subBuilder = new global::Protobuf.Messages.Error(); + if (responseTypeCase_ == ResponseTypeOneofCase.Error) + { + subBuilder.MergeFrom(Error); + } + input.ReadMessage(subBuilder); + Error = subBuilder; + break; } - input.ReadMessage(subBuilder); - Error = subBuilder; - break; - } - case 90: { - global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); - if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) { - subBuilder.MergeFrom(Boxes); + case 90: + { + global::Protobuf.Messages.Boxes subBuilder = new global::Protobuf.Messages.Boxes(); + if (responseTypeCase_ == ResponseTypeOneofCase.Boxes) + { + subBuilder.MergeFrom(Boxes); + } + input.ReadMessage(subBuilder); + Boxes = subBuilder; + break; } - input.ReadMessage(subBuilder); - Boxes = subBuilder; - break; - } - case 98: { - global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); - if (responseTypeCase_ == ResponseTypeOneofCase.Box) { - subBuilder.MergeFrom(Box); + case 98: + { + global::Protobuf.Messages.Box subBuilder = new global::Protobuf.Messages.Box(); + if (responseTypeCase_ == ResponseTypeOneofCase.Box) + { + subBuilder.MergeFrom(Box); + } + input.ReadMessage(subBuilder); + Box = subBuilder; + break; } - input.ReadMessage(subBuilder); - Box = subBuilder; - break; - } - case 106: { - global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); - if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) { - subBuilder.MergeFrom(UserAndUnit); + case 106: + { + global::Protobuf.Messages.UserAndUnit subBuilder = new global::Protobuf.Messages.UserAndUnit(); + if (responseTypeCase_ == ResponseTypeOneofCase.UserAndUnit) + { + subBuilder.MergeFrom(UserAndUnit); + } + input.ReadMessage(subBuilder); + UserAndUnit = subBuilder; + break; } - input.ReadMessage(subBuilder); - UserAndUnit = subBuilder; - break; - } - case 114: { - global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); - if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) { - subBuilder.MergeFrom(AfkRewards); + case 114: + { + global::Protobuf.Messages.AfkRewards subBuilder = new global::Protobuf.Messages.AfkRewards(); + if (responseTypeCase_ == ResponseTypeOneofCase.AfkRewards) + { + subBuilder.MergeFrom(AfkRewards); + } + input.ReadMessage(subBuilder); + AfkRewards = subBuilder; + break; } - input.ReadMessage(subBuilder); - AfkRewards = subBuilder; - break; - } - case 122: { - global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); - if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) { - subBuilder.MergeFrom(SuperCampaignProgresses); + case 122: + { + global::Protobuf.Messages.SuperCampaignProgresses subBuilder = new global::Protobuf.Messages.SuperCampaignProgresses(); + if (responseTypeCase_ == ResponseTypeOneofCase.SuperCampaignProgresses) + { + subBuilder.MergeFrom(SuperCampaignProgresses); + } + input.ReadMessage(subBuilder); + SuperCampaignProgresses = subBuilder; + break; } - input.ReadMessage(subBuilder); - SuperCampaignProgresses = subBuilder; - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class User : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); private pb::UnknownFieldSet _unknownFields; @@ -7595,19 +8682,22 @@ public sealed partial class User : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User() { + public User() + { OnConstruction(); } @@ -7615,7 +8705,8 @@ public User() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User(User other) : this() { + public User(User other) : this() + { id_ = other.id_; username_ = other.username_; level_ = other.level_; @@ -7629,7 +8720,8 @@ public User(User other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public User Clone() { + public User Clone() + { return new User(this); } @@ -7638,9 +8730,11 @@ public User Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -7650,9 +8744,11 @@ public string Id { private string username_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Username { + public string Username + { get { return username_; } - set { + set + { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -7662,9 +8758,11 @@ public string Username { private ulong level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Level { + public ulong Level + { get { return level_; } - set { + set + { level_ = value; } } @@ -7674,9 +8772,11 @@ public ulong Level { private ulong experience_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Experience { + public ulong Experience + { get { return experience_; } - set { + set + { experience_ = value; } } @@ -7688,7 +8788,8 @@ public ulong Experience { private readonly pbc::RepeatedField currencies_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Currencies { + public pbc::RepeatedField Currencies + { get { return currencies_; } } @@ -7699,7 +8800,8 @@ public ulong Experience { private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Units { + public pbc::RepeatedField Units + { get { return units_; } } @@ -7710,7 +8812,8 @@ public ulong Experience { private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { + public pbc::RepeatedField Items + { get { return items_; } } @@ -7719,42 +8822,49 @@ public ulong Experience { private global::Protobuf.Messages.KalineTreeLevel kalineTreeLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.KalineTreeLevel KalineTreeLevel { + public global::Protobuf.Messages.KalineTreeLevel KalineTreeLevel + { get { return kalineTreeLevel_; } - set { + set + { kalineTreeLevel_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as User); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(User other) { - if (ReferenceEquals(other, null)) { + public bool Equals(User other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; if (Username != other.Username) return false; if (Level != other.Level) return false; if (Experience != other.Experience) return false; - if(!currencies_.Equals(other.currencies_)) return false; - if(!units_.Equals(other.units_)) return false; - if(!items_.Equals(other.items_)) return false; + if (!currencies_.Equals(other.currencies_)) return false; + if (!units_.Equals(other.units_)) return false; + if (!items_.Equals(other.items_)) return false; if (!object.Equals(KalineTreeLevel, other.KalineTreeLevel)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); @@ -7764,7 +8874,8 @@ public override int GetHashCode() { hash ^= units_.GetHashCode(); hash ^= items_.GetHashCode(); if (kalineTreeLevel_ != null) hash ^= KalineTreeLevel.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -7772,16 +8883,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -7808,65 +8921,79 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Username.Length != 0) { + if (Username.Length != 0) + { output.WriteRawTag(18); output.WriteString(Username); } - if (Level != 0UL) { + if (Level != 0UL) + { output.WriteRawTag(24); output.WriteUInt64(Level); } - if (Experience != 0UL) { + if (Experience != 0UL) + { output.WriteRawTag(32); output.WriteUInt64(Experience); } currencies_.WriteTo(ref output, _repeated_currencies_codec); units_.WriteTo(ref output, _repeated_units_codec); items_.WriteTo(ref output, _repeated_items_codec); - if (kalineTreeLevel_ != null) { + if (kalineTreeLevel_ != null) + { output.WriteRawTag(82); output.WriteMessage(KalineTreeLevel); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Username.Length != 0) { + if (Username.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } - if (Level != 0UL) { + if (Level != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Level); } - if (Experience != 0UL) { + if (Experience != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Experience); } size += currencies_.CalculateSize(_repeated_currencies_codec); size += units_.CalculateSize(_repeated_units_codec); size += items_.CalculateSize(_repeated_items_codec); - if (kalineTreeLevel_ != null) { + if (kalineTreeLevel_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(KalineTreeLevel); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -7874,27 +9001,35 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(User other) { - if (other == null) { + public void MergeFrom(User other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Username.Length != 0) { + if (other.Username.Length != 0) + { Username = other.Username; } - if (other.Level != 0UL) { + if (other.Level != 0UL) + { Level = other.Level; } - if (other.Experience != 0UL) { + if (other.Experience != 0UL) + { Experience = other.Experience; } currencies_.Add(other.currencies_); units_.Add(other.units_); items_.Add(other.items_); - if (other.kalineTreeLevel_ != null) { - if (kalineTreeLevel_ == null) { + if (other.kalineTreeLevel_ != null) + { + if (kalineTreeLevel_ == null) + { KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); } KalineTreeLevel.MergeFrom(other.KalineTreeLevel); @@ -7904,10 +9039,11 @@ public void MergeFrom(User other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7951,66 +9087,78 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Username = input.ReadString(); - break; - } - case 24: { - Level = input.ReadUInt64(); - break; - } - case 32: { - Experience = input.ReadUInt64(); - break; - } - case 58: { - currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); - break; - } - case 66: { - units_.AddEntriesFrom(ref input, _repeated_units_codec); - break; - } - case 74: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 82: { - if (kalineTreeLevel_ == null) { - KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); + case 10: + { + Id = input.ReadString(); + break; + } + case 18: + { + Username = input.ReadString(); + break; + } + case 24: + { + Level = input.ReadUInt64(); + break; + } + case 32: + { + Experience = input.ReadUInt64(); + break; + } + case 58: + { + currencies_.AddEntriesFrom(ref input, _repeated_currencies_codec); + break; + } + case 66: + { + units_.AddEntriesFrom(ref input, _repeated_units_codec); + break; + } + case 74: + { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 82: + { + if (kalineTreeLevel_ == null) + { + KalineTreeLevel = new global::Protobuf.Messages.KalineTreeLevel(); + } + input.ReadMessage(KalineTreeLevel); + break; } - input.ReadMessage(KalineTreeLevel); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class KalineTreeLevel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KalineTreeLevel()); private pb::UnknownFieldSet _unknownFields; @@ -8020,19 +9168,22 @@ public sealed partial class KalineTreeLevel : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel() { + public KalineTreeLevel() + { OnConstruction(); } @@ -8040,7 +9191,8 @@ public KalineTreeLevel() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel(KalineTreeLevel other) : this() { + public KalineTreeLevel(KalineTreeLevel other) : this() + { id_ = other.id_; level_ = other.level_; fertilizerLevelUpCost_ = other.fertilizerLevelUpCost_; @@ -8052,7 +9204,8 @@ public KalineTreeLevel(KalineTreeLevel other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KalineTreeLevel Clone() { + public KalineTreeLevel Clone() + { return new KalineTreeLevel(this); } @@ -8061,9 +9214,11 @@ public KalineTreeLevel Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -8073,9 +9228,11 @@ public string Id { private ulong level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Level { + public ulong Level + { get { return level_; } - set { + set + { level_ = value; } } @@ -8085,9 +9242,11 @@ public ulong Level { private ulong fertilizerLevelUpCost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong FertilizerLevelUpCost { + public ulong FertilizerLevelUpCost + { get { return fertilizerLevelUpCost_; } - set { + set + { fertilizerLevelUpCost_ = value; } } @@ -8097,9 +9256,11 @@ public ulong FertilizerLevelUpCost { private ulong goldLevelUpCost_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong GoldLevelUpCost { + public ulong GoldLevelUpCost + { get { return goldLevelUpCost_; } - set { + set + { goldLevelUpCost_ = value; } } @@ -8111,7 +9272,8 @@ public ulong GoldLevelUpCost { private readonly pbc::RepeatedField unlockFeatures_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UnlockFeatures { + public pbc::RepeatedField UnlockFeatures + { get { return unlockFeatures_; } } @@ -8122,37 +9284,43 @@ public ulong GoldLevelUpCost { private readonly pbc::RepeatedField afkRewardRates_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AfkRewardRates { + public pbc::RepeatedField AfkRewardRates + { get { return afkRewardRates_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as KalineTreeLevel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KalineTreeLevel other) { - if (ReferenceEquals(other, null)) { + public bool Equals(KalineTreeLevel other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; if (Level != other.Level) return false; if (FertilizerLevelUpCost != other.FertilizerLevelUpCost) return false; if (GoldLevelUpCost != other.GoldLevelUpCost) return false; - if(!unlockFeatures_.Equals(other.unlockFeatures_)) return false; - if(!afkRewardRates_.Equals(other.afkRewardRates_)) return false; + if (!unlockFeatures_.Equals(other.unlockFeatures_)) return false; + if (!afkRewardRates_.Equals(other.afkRewardRates_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Level != 0UL) hash ^= Level.GetHashCode(); @@ -8160,7 +9328,8 @@ public override int GetHashCode() { if (GoldLevelUpCost != 0UL) hash ^= GoldLevelUpCost.GetHashCode(); hash ^= unlockFeatures_.GetHashCode(); hash ^= afkRewardRates_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -8168,16 +9337,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -8199,56 +9370,68 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Level != 0UL) { + if (Level != 0UL) + { output.WriteRawTag(16); output.WriteUInt64(Level); } - if (FertilizerLevelUpCost != 0UL) { + if (FertilizerLevelUpCost != 0UL) + { output.WriteRawTag(24); output.WriteUInt64(FertilizerLevelUpCost); } - if (GoldLevelUpCost != 0UL) { + if (GoldLevelUpCost != 0UL) + { output.WriteRawTag(32); output.WriteUInt64(GoldLevelUpCost); } unlockFeatures_.WriteTo(ref output, _repeated_unlockFeatures_codec); afkRewardRates_.WriteTo(ref output, _repeated_afkRewardRates_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Level != 0UL) { + if (Level != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Level); } - if (FertilizerLevelUpCost != 0UL) { + if (FertilizerLevelUpCost != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FertilizerLevelUpCost); } - if (GoldLevelUpCost != 0UL) { + if (GoldLevelUpCost != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(GoldLevelUpCost); } size += unlockFeatures_.CalculateSize(_repeated_unlockFeatures_codec); size += afkRewardRates_.CalculateSize(_repeated_afkRewardRates_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -8256,20 +9439,26 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KalineTreeLevel other) { - if (other == null) { + public void MergeFrom(KalineTreeLevel other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Level != 0UL) { + if (other.Level != 0UL) + { Level = other.Level; } - if (other.FertilizerLevelUpCost != 0UL) { + if (other.FertilizerLevelUpCost != 0UL) + { FertilizerLevelUpCost = other.FertilizerLevelUpCost; } - if (other.GoldLevelUpCost != 0UL) { + if (other.GoldLevelUpCost != 0UL) + { GoldLevelUpCost = other.GoldLevelUpCost; } unlockFeatures_.Add(other.unlockFeatures_); @@ -8279,10 +9468,11 @@ public void MergeFrom(KalineTreeLevel other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8315,55 +9505,64 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Level = input.ReadUInt64(); - break; - } - case 24: { - FertilizerLevelUpCost = input.ReadUInt64(); - break; - } - case 32: { - GoldLevelUpCost = input.ReadUInt64(); - break; - } - case 42: { - unlockFeatures_.AddEntriesFrom(ref input, _repeated_unlockFeatures_codec); - break; - } - case 50: { - afkRewardRates_.AddEntriesFrom(ref input, _repeated_afkRewardRates_codec); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 16: + { + Level = input.ReadUInt64(); + break; + } + case 24: + { + FertilizerLevelUpCost = input.ReadUInt64(); + break; + } + case 32: + { + GoldLevelUpCost = input.ReadUInt64(); + break; + } + case 42: + { + unlockFeatures_.AddEntriesFrom(ref input, _repeated_unlockFeatures_codec); + break; + } + case 50: + { + afkRewardRates_.AddEntriesFrom(ref input, _repeated_afkRewardRates_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SuperCampaignProgresses : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuperCampaignProgresses()); private pb::UnknownFieldSet _unknownFields; @@ -8373,19 +9572,22 @@ public sealed partial class SuperCampaignProgresses : pb::IMessage superCampaignProgresses_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SuperCampaignProgresses_ { + public pbc::RepeatedField SuperCampaignProgresses_ + { get { return superCampaignProgresses_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as SuperCampaignProgresses); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuperCampaignProgresses other) { - if (ReferenceEquals(other, null)) { + public bool Equals(SuperCampaignProgresses other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!superCampaignProgresses_.Equals(other.superCampaignProgresses_)) return false; + if (!superCampaignProgresses_.Equals(other.superCampaignProgresses_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= superCampaignProgresses_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -8447,40 +9658,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else superCampaignProgresses_.WriteTo(output, _repeated_superCampaignProgresses_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { superCampaignProgresses_.WriteTo(ref output, _repeated_superCampaignProgresses_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += superCampaignProgresses_.CalculateSize(_repeated_superCampaignProgresses_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -8488,8 +9705,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuperCampaignProgresses other) { - if (other == null) { + public void MergeFrom(SuperCampaignProgresses other) + { + if (other == null) + { return; } superCampaignProgresses_.Add(other.superCampaignProgresses_); @@ -8498,10 +9717,11 @@ public void MergeFrom(SuperCampaignProgresses other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8514,35 +9734,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - superCampaignProgresses_.AddEntriesFrom(ref input, _repeated_superCampaignProgresses_codec); - break; - } + case 10: + { + superCampaignProgresses_.AddEntriesFrom(ref input, _repeated_superCampaignProgresses_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SuperCampaignProgress : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuperCampaignProgress()); private pb::UnknownFieldSet _unknownFields; @@ -8552,19 +9776,22 @@ public sealed partial class SuperCampaignProgress : pb::IMessageField number for the "super_campaign_id" field. - public const int SuperCampaignIdFieldNumber = 4; - private string superCampaignId_ = ""; + /// Field number for the "super_campaign_name" field. + public const int SuperCampaignNameFieldNumber = 4; + private string superCampaignName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SuperCampaignId { - get { return superCampaignId_; } - set { - superCampaignId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + public string SuperCampaignName + { + get { return superCampaignName_; } + set + { + superCampaignName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as SuperCampaignProgress); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuperCampaignProgress other) { - if (ReferenceEquals(other, null)) { + public bool Equals(SuperCampaignProgress other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UserId != other.UserId) return false; if (CampaignId != other.CampaignId) return false; if (LevelId != other.LevelId) return false; - if (SuperCampaignId != other.SuperCampaignId) return false; + if (SuperCampaignName != other.SuperCampaignName) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (CampaignId.Length != 0) hash ^= CampaignId.GetHashCode(); if (LevelId.Length != 0) hash ^= LevelId.GetHashCode(); - if (SuperCampaignId.Length != 0) hash ^= SuperCampaignId.GetHashCode(); - if (_unknownFields != null) { + if (SuperCampaignName.Length != 0) hash ^= SuperCampaignName.GetHashCode(); + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -8672,16 +9915,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UserId.Length != 0) { output.WriteRawTag(10); output.WriteString(UserId); @@ -8694,59 +9939,71 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(LevelId); } - if (SuperCampaignId.Length != 0) { + if (SuperCampaignName.Length != 0) { output.WriteRawTag(34); - output.WriteString(SuperCampaignId); + output.WriteString(SuperCampaignName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UserId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UserId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UserId); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { output.WriteRawTag(18); output.WriteString(CampaignId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { output.WriteRawTag(26); output.WriteString(LevelId); } - if (SuperCampaignId.Length != 0) { + if (SuperCampaignName.Length != 0) + { output.WriteRawTag(34); - output.WriteString(SuperCampaignId); + output.WriteString(SuperCampaignName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignId); } - if (LevelId.Length != 0) { + if (LevelId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(LevelId); } - if (SuperCampaignId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuperCampaignId); + if (SuperCampaignName.Length != 0) + { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SuperCampaignName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -8754,31 +10011,38 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuperCampaignProgress other) { - if (other == null) { + public void MergeFrom(SuperCampaignProgress other) + { + if (other == null) + { return; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.CampaignId.Length != 0) { + if (other.CampaignId.Length != 0) + { CampaignId = other.CampaignId; } - if (other.LevelId.Length != 0) { + if (other.LevelId.Length != 0) + { LevelId = other.LevelId; } - if (other.SuperCampaignId.Length != 0) { - SuperCampaignId = other.SuperCampaignId; + if (other.SuperCampaignName.Length != 0) + { + SuperCampaignName = other.SuperCampaignName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8798,52 +10062,59 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { - SuperCampaignId = input.ReadString(); + SuperCampaignName = input.ReadString(); break; } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - UserId = input.ReadString(); - break; - } - case 18: { - CampaignId = input.ReadString(); - break; - } - case 26: { - LevelId = input.ReadString(); - break; - } - case 34: { - SuperCampaignId = input.ReadString(); + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } + case 10: + { + UserId = input.ReadString(); + break; + } + case 18: + { + CampaignId = input.ReadString(); + break; + } + case 26: + { + LevelId = input.ReadString(); + break; + } + case 34: + { + SuperCampaignName = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AfkRewardRate : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AfkRewardRate()); private pb::UnknownFieldSet _unknownFields; @@ -8853,19 +10124,22 @@ public sealed partial class AfkRewardRate : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewardRate() { + public AfkRewardRate() + { OnConstruction(); } @@ -8873,7 +10147,8 @@ public AfkRewardRate() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewardRate(AfkRewardRate other) : this() { + public AfkRewardRate(AfkRewardRate other) : this() + { kalineTreeLevelId_ = other.kalineTreeLevelId_; currency_ = other.currency_ != null ? other.currency_.Clone() : null; rate_ = other.rate_; @@ -8882,7 +10157,8 @@ public AfkRewardRate(AfkRewardRate other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewardRate Clone() { + public AfkRewardRate Clone() + { return new AfkRewardRate(this); } @@ -8891,9 +10167,11 @@ public AfkRewardRate Clone() { private string kalineTreeLevelId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KalineTreeLevelId { + public string KalineTreeLevelId + { get { return kalineTreeLevelId_; } - set { + set + { kalineTreeLevelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -8903,9 +10181,11 @@ public string KalineTreeLevelId { private global::Protobuf.Messages.Currency currency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Currency Currency { + public global::Protobuf.Messages.Currency Currency + { get { return currency_; } - set { + set + { currency_ = value; } } @@ -8915,26 +10195,32 @@ public string KalineTreeLevelId { private float rate_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Rate { + public float Rate + { get { return rate_; } - set { + set + { rate_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as AfkRewardRate); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AfkRewardRate other) { - if (ReferenceEquals(other, null)) { + public bool Equals(AfkRewardRate other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (KalineTreeLevelId != other.KalineTreeLevelId) return false; @@ -8945,12 +10231,14 @@ public bool Equals(AfkRewardRate other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (KalineTreeLevelId.Length != 0) hash ^= KalineTreeLevelId.GetHashCode(); if (currency_ != null) hash ^= Currency.GetHashCode(); if (Rate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rate); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -8958,16 +10246,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (KalineTreeLevelId.Length != 0) { output.WriteRawTag(10); output.WriteString(KalineTreeLevelId); @@ -8983,45 +10273,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KalineTreeLevelId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (KalineTreeLevelId.Length != 0) + { output.WriteRawTag(10); output.WriteString(KalineTreeLevelId); } - if (currency_ != null) { + if (currency_ != null) + { output.WriteRawTag(18); output.WriteMessage(Currency); } - if (Rate != 0F) { + if (Rate != 0F) + { output.WriteRawTag(29); output.WriteFloat(Rate); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (KalineTreeLevelId.Length != 0) { + if (KalineTreeLevelId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(KalineTreeLevelId); } - if (currency_ != null) { + if (currency_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Currency); } - if (Rate != 0F) { + if (Rate != 0F) + { size += 1 + 4; } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -9029,20 +10329,26 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AfkRewardRate other) { - if (other == null) { + public void MergeFrom(AfkRewardRate other) + { + if (other == null) + { return; } - if (other.KalineTreeLevelId.Length != 0) { + if (other.KalineTreeLevelId.Length != 0) + { KalineTreeLevelId = other.KalineTreeLevelId; } - if (other.currency_ != null) { - if (currency_ == null) { + if (other.currency_ != null) + { + if (currency_ == null) + { Currency = new global::Protobuf.Messages.Currency(); } Currency.MergeFrom(other.Currency); } - if (other.Rate != 0F) { + if (other.Rate != 0F) + { Rate = other.Rate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -9050,10 +10356,11 @@ public void MergeFrom(AfkRewardRate other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9077,46 +10384,53 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - KalineTreeLevelId = input.ReadString(); - break; - } - case 18: { - if (currency_ == null) { - Currency = new global::Protobuf.Messages.Currency(); + case 10: + { + KalineTreeLevelId = input.ReadString(); + break; + } + case 18: + { + if (currency_ == null) + { + Currency = new global::Protobuf.Messages.Currency(); + } + input.ReadMessage(Currency); + break; + } + case 29: + { + Rate = input.ReadFloat(); + break; } - input.ReadMessage(Currency); - break; - } - case 29: { - Rate = input.ReadFloat(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UserCurrency : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserCurrency()); private pb::UnknownFieldSet _unknownFields; @@ -9126,19 +10440,22 @@ public sealed partial class UserCurrency : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserCurrency() { + public UserCurrency() + { OnConstruction(); } @@ -9146,7 +10463,8 @@ public UserCurrency() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserCurrency(UserCurrency other) : this() { + public UserCurrency(UserCurrency other) : this() + { currency_ = other.currency_ != null ? other.currency_.Clone() : null; amount_ = other.amount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -9154,7 +10472,8 @@ public UserCurrency(UserCurrency other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserCurrency Clone() { + public UserCurrency Clone() + { return new UserCurrency(this); } @@ -9163,9 +10482,11 @@ public UserCurrency Clone() { private global::Protobuf.Messages.Currency currency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Currency Currency { + public global::Protobuf.Messages.Currency Currency + { get { return currency_; } - set { + set + { currency_ = value; } } @@ -9175,26 +10496,32 @@ public UserCurrency Clone() { private uint amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Amount { + public uint Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as UserCurrency); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserCurrency other) { - if (ReferenceEquals(other, null)) { + public bool Equals(UserCurrency other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(Currency, other.Currency)) return false; @@ -9204,11 +10531,13 @@ public bool Equals(UserCurrency other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (currency_ != null) hash ^= Currency.GetHashCode(); if (Amount != 0) hash ^= Amount.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -9216,16 +10545,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (currency_ != null) { output.WriteRawTag(10); output.WriteMessage(Currency); @@ -9237,38 +10568,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (currency_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (currency_ != null) + { output.WriteRawTag(10); output.WriteMessage(Currency); } - if (Amount != 0) { + if (Amount != 0) + { output.WriteRawTag(16); output.WriteUInt32(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (currency_ != null) { + if (currency_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Currency); } - if (Amount != 0) { + if (Amount != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -9276,17 +10615,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserCurrency other) { - if (other == null) { + public void MergeFrom(UserCurrency other) + { + if (other == null) + { return; } - if (other.currency_ != null) { - if (currency_ == null) { + if (other.currency_ != null) + { + if (currency_ == null) + { Currency = new global::Protobuf.Messages.Currency(); } Currency.MergeFrom(other.Currency); } - if (other.Amount != 0) { + if (other.Amount != 0) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -9294,10 +10638,11 @@ public void MergeFrom(UserCurrency other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9317,42 +10662,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (currency_ == null) { - Currency = new global::Protobuf.Messages.Currency(); + case 10: + { + if (currency_ == null) + { + Currency = new global::Protobuf.Messages.Currency(); + } + input.ReadMessage(Currency); + break; + } + case 16: + { + Amount = input.ReadUInt32(); + break; } - input.ReadMessage(Currency); - break; - } - case 16: { - Amount = input.ReadUInt32(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Currency : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Currency()); private pb::UnknownFieldSet _unknownFields; @@ -9362,19 +10713,22 @@ public sealed partial class Currency : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Currency() { + public Currency() + { OnConstruction(); } @@ -9382,14 +10736,16 @@ public Currency() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Currency(Currency other) : this() { + public Currency(Currency other) : this() + { name_ = other.name_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Currency Clone() { + public Currency Clone() + { return new Currency(this); } @@ -9398,26 +10754,32 @@ public Currency Clone() { private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { + public string Name + { get { return name_; } - set { + set + { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Currency); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Currency other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Currency other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Name != other.Name) return false; @@ -9426,10 +10788,12 @@ public bool Equals(Currency other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -9437,16 +10801,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); @@ -9454,31 +10820,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Name.Length != 0) + { output.WriteRawTag(10); output.WriteString(Name); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Name.Length != 0) { + if (Name.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -9486,11 +10858,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Currency other) { - if (other == null) { + public void MergeFrom(Currency other) + { + if (other == null) + { return; } - if (other.Name.Length != 0) { + if (other.Name.Length != 0) + { Name = other.Name; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -9498,10 +10873,11 @@ public void MergeFrom(Currency other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9514,35 +10890,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Name = input.ReadString(); - break; - } + case 10: + { + Name = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Unit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unit()); private pb::UnknownFieldSet _unknownFields; @@ -9552,19 +10932,22 @@ public sealed partial class Unit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Unit() { + public Unit() + { OnConstruction(); } @@ -9572,7 +10955,8 @@ public Unit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Unit(Unit other) : this() { + public Unit(Unit other) : this() + { id_ = other.id_; level_ = other.level_; tier_ = other.tier_; @@ -9588,7 +10972,8 @@ public Unit(Unit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Unit Clone() { + public Unit Clone() + { return new Unit(this); } @@ -9597,9 +10982,11 @@ public Unit Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -9609,9 +10996,11 @@ public string Id { private uint level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Level { + public uint Level + { get { return level_; } - set { + set + { level_ = value; } } @@ -9621,9 +11010,11 @@ public uint Level { private uint tier_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Tier { + public uint Tier + { get { return tier_; } - set { + set + { tier_ = value; } } @@ -9633,9 +11024,11 @@ public uint Tier { private uint rank_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Rank { + public uint Rank + { get { return rank_; } - set { + set + { rank_ = value; } } @@ -9645,9 +11038,11 @@ public uint Rank { private bool selected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Selected { + public bool Selected + { get { return selected_; } - set { + set + { selected_ = value; } } @@ -9657,9 +11052,11 @@ public bool Selected { private uint slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Slot { + public uint Slot + { get { return slot_; } - set { + set + { slot_ = value; } } @@ -9669,9 +11066,11 @@ public uint Slot { private string campaignLevelId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignLevelId { + public string CampaignLevelId + { get { return campaignLevelId_; } - set { + set + { campaignLevelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -9681,9 +11080,11 @@ public string CampaignLevelId { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -9693,9 +11094,11 @@ public string UserId { private global::Protobuf.Messages.Character character_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Character Character { + public global::Protobuf.Messages.Character Character + { get { return character_; } - set { + set + { character_ = value; } } @@ -9707,23 +11110,28 @@ public string UserId { private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { + public pbc::RepeatedField Items + { get { return items_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Unit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Unit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Unit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; @@ -9735,13 +11143,14 @@ public bool Equals(Unit other) { if (CampaignLevelId != other.CampaignLevelId) return false; if (UserId != other.UserId) return false; if (!object.Equals(Character, other.Character)) return false; - if(!items_.Equals(other.items_)) return false; + if (!items_.Equals(other.items_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Level != 0) hash ^= Level.GetHashCode(); @@ -9753,7 +11162,8 @@ public override int GetHashCode() { if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (character_ != null) hash ^= Character.GetHashCode(); hash ^= items_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -9761,16 +11171,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -9811,89 +11223,111 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Level != 0) { + if (Level != 0) + { output.WriteRawTag(16); output.WriteUInt32(Level); } - if (Tier != 0) { + if (Tier != 0) + { output.WriteRawTag(24); output.WriteUInt32(Tier); } - if (Rank != 0) { + if (Rank != 0) + { output.WriteRawTag(32); output.WriteUInt32(Rank); } - if (Selected != false) { + if (Selected != false) + { output.WriteRawTag(40); output.WriteBool(Selected); } - if (Slot != 0) { + if (Slot != 0) + { output.WriteRawTag(48); output.WriteUInt32(Slot); } - if (CampaignLevelId.Length != 0) { + if (CampaignLevelId.Length != 0) + { output.WriteRawTag(58); output.WriteString(CampaignLevelId); } - if (UserId.Length != 0) { + if (UserId.Length != 0) + { output.WriteRawTag(66); output.WriteString(UserId); } - if (character_ != null) { + if (character_ != null) + { output.WriteRawTag(74); output.WriteMessage(Character); } items_.WriteTo(ref output, _repeated_items_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Level != 0) { + if (Level != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); } - if (Tier != 0) { + if (Tier != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Tier); } - if (Rank != 0) { + if (Rank != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Rank); } - if (Selected != false) { + if (Selected != false) + { size += 1 + 1; } - if (Slot != 0) { + if (Slot != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); } - if (CampaignLevelId.Length != 0) { + if (CampaignLevelId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignLevelId); } - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (character_ != null) { + if (character_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Character); } size += items_.CalculateSize(_repeated_items_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -9901,36 +11335,48 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Unit other) { - if (other == null) { + public void MergeFrom(Unit other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Level != 0) { + if (other.Level != 0) + { Level = other.Level; } - if (other.Tier != 0) { + if (other.Tier != 0) + { Tier = other.Tier; } - if (other.Rank != 0) { + if (other.Rank != 0) + { Rank = other.Rank; } - if (other.Selected != false) { + if (other.Selected != false) + { Selected = other.Selected; } - if (other.Slot != 0) { + if (other.Slot != 0) + { Slot = other.Slot; } - if (other.CampaignLevelId.Length != 0) { + if (other.CampaignLevelId.Length != 0) + { CampaignLevelId = other.CampaignLevelId; } - if (other.UserId.Length != 0) { + if (other.UserId.Length != 0) + { UserId = other.UserId; } - if (other.character_ != null) { - if (character_ == null) { + if (other.character_ != null) + { + if (character_ == null) + { Character = new global::Protobuf.Messages.Character(); } Character.MergeFrom(other.Character); @@ -9941,10 +11387,11 @@ public void MergeFrom(Unit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9996,74 +11443,88 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Level = input.ReadUInt32(); - break; - } - case 24: { - Tier = input.ReadUInt32(); - break; - } - case 32: { - Rank = input.ReadUInt32(); - break; - } - case 40: { - Selected = input.ReadBool(); - break; - } - case 48: { - Slot = input.ReadUInt32(); - break; - } - case 58: { - CampaignLevelId = input.ReadString(); - break; - } - case 66: { - UserId = input.ReadString(); - break; - } - case 74: { - if (character_ == null) { - Character = new global::Protobuf.Messages.Character(); + case 10: + { + Id = input.ReadString(); + break; + } + case 16: + { + Level = input.ReadUInt32(); + break; + } + case 24: + { + Tier = input.ReadUInt32(); + break; + } + case 32: + { + Rank = input.ReadUInt32(); + break; + } + case 40: + { + Selected = input.ReadBool(); + break; + } + case 48: + { + Slot = input.ReadUInt32(); + break; + } + case 58: + { + CampaignLevelId = input.ReadString(); + break; + } + case 66: + { + UserId = input.ReadString(); + break; + } + case 74: + { + if (character_ == null) + { + Character = new global::Protobuf.Messages.Character(); + } + input.ReadMessage(Character); + break; + } + case 82: + { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; } - input.ReadMessage(Character); - break; - } - case 82: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Units : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Units()); private pb::UnknownFieldSet _unknownFields; @@ -10073,19 +11534,22 @@ public sealed partial class Units : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Units() { + public Units() + { OnConstruction(); } @@ -10093,14 +11557,16 @@ public Units() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Units(Units other) : this() { + public Units(Units other) : this() + { units_ = other.units_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Units Clone() { + public Units Clone() + { return new Units(this); } @@ -10111,35 +11577,42 @@ public Units Clone() { private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Units_ { + public pbc::RepeatedField Units_ + { get { return units_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Units); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Units other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Units other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!units_.Equals(other.units_)) return false; + if (!units_.Equals(other.units_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= units_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -10147,40 +11620,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else units_.WriteTo(output, _repeated_units_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { units_.WriteTo(ref output, _repeated_units_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += units_.CalculateSize(_repeated_units_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -10188,8 +11667,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Units other) { - if (other == null) { + public void MergeFrom(Units other) + { + if (other == null) + { return; } units_.Add(other.units_); @@ -10198,10 +11679,11 @@ public void MergeFrom(Units other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10214,35 +11696,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - units_.AddEntriesFrom(ref input, _repeated_units_codec); - break; - } + case 10: + { + units_.AddEntriesFrom(ref input, _repeated_units_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UnitAndCurrencies : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnitAndCurrencies()); private pb::UnknownFieldSet _unknownFields; @@ -10252,19 +11738,22 @@ public sealed partial class UnitAndCurrencies : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnitAndCurrencies() { + public UnitAndCurrencies() + { OnConstruction(); } @@ -10272,7 +11761,8 @@ public UnitAndCurrencies() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnitAndCurrencies(UnitAndCurrencies other) : this() { + public UnitAndCurrencies(UnitAndCurrencies other) : this() + { unit_ = other.unit_ != null ? other.unit_.Clone() : null; userCurrency_ = other.userCurrency_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -10280,7 +11770,8 @@ public UnitAndCurrencies(UnitAndCurrencies other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnitAndCurrencies Clone() { + public UnitAndCurrencies Clone() + { return new UnitAndCurrencies(this); } @@ -10289,9 +11780,11 @@ public UnitAndCurrencies Clone() { private global::Protobuf.Messages.Unit unit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Unit Unit { + public global::Protobuf.Messages.Unit Unit + { get { return unit_; } - set { + set + { unit_ = value; } } @@ -10303,37 +11796,44 @@ public UnitAndCurrencies Clone() { private readonly pbc::RepeatedField userCurrency_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserCurrency { + public pbc::RepeatedField UserCurrency + { get { return userCurrency_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as UnitAndCurrencies); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnitAndCurrencies other) { - if (ReferenceEquals(other, null)) { + public bool Equals(UnitAndCurrencies other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(Unit, other.Unit)) return false; - if(!userCurrency_.Equals(other.userCurrency_)) return false; + if (!userCurrency_.Equals(other.userCurrency_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (unit_ != null) hash ^= Unit.GetHashCode(); hash ^= userCurrency_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -10341,16 +11841,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (unit_ != null) { output.WriteRawTag(10); output.WriteMessage(Unit); @@ -10359,33 +11861,39 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (unit_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (unit_ != null) + { output.WriteRawTag(10); output.WriteMessage(Unit); } userCurrency_.WriteTo(ref output, _repeated_userCurrency_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (unit_ != null) { + if (unit_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unit); } size += userCurrency_.CalculateSize(_repeated_userCurrency_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -10393,12 +11901,16 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnitAndCurrencies other) { - if (other == null) { + public void MergeFrom(UnitAndCurrencies other) + { + if (other == null) + { return; } - if (other.unit_ != null) { - if (unit_ == null) { + if (other.unit_ != null) + { + if (unit_ == null) + { Unit = new global::Protobuf.Messages.Unit(); } Unit.MergeFrom(other.Unit); @@ -10409,10 +11921,11 @@ public void MergeFrom(UnitAndCurrencies other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10432,42 +11945,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (unit_ == null) { - Unit = new global::Protobuf.Messages.Unit(); + case 10: + { + if (unit_ == null) + { + Unit = new global::Protobuf.Messages.Unit(); + } + input.ReadMessage(Unit); + break; + } + case 18: + { + userCurrency_.AddEntriesFrom(ref input, _repeated_userCurrency_codec); + break; } - input.ReadMessage(Unit); - break; - } - case 18: { - userCurrency_.AddEntriesFrom(ref input, _repeated_userCurrency_codec); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Character : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Character()); private pb::UnknownFieldSet _unknownFields; @@ -10477,19 +11996,22 @@ public sealed partial class Character : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Character() { + public Character() + { OnConstruction(); } @@ -10497,7 +12019,8 @@ public Character() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Character(Character other) : this() { + public Character(Character other) : this() + { active_ = other.active_; name_ = other.name_; faction_ = other.faction_; @@ -10507,7 +12030,8 @@ public Character(Character other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Character Clone() { + public Character Clone() + { return new Character(this); } @@ -10516,9 +12040,11 @@ public Character Clone() { private bool active_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Active { + public bool Active + { get { return active_; } - set { + set + { active_ = value; } } @@ -10528,9 +12054,11 @@ public bool Active { private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { + public string Name + { get { return name_; } - set { + set + { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -10540,9 +12068,11 @@ public string Name { private string faction_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Faction { + public string Faction + { get { return faction_; } - set { + set + { faction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -10552,26 +12082,32 @@ public string Faction { private uint quality_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Quality { + public uint Quality + { get { return quality_; } - set { + set + { quality_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Character); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Character other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Character other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Active != other.Active) return false; @@ -10583,13 +12119,15 @@ public bool Equals(Character other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Active != false) hash ^= Active.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Faction.Length != 0) hash ^= Faction.GetHashCode(); if (Quality != 0) hash ^= Quality.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -10597,16 +12135,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Active != false) { output.WriteRawTag(8); output.WriteBool(Active); @@ -10626,52 +12166,64 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Active != false) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Active != false) + { output.WriteRawTag(8); output.WriteBool(Active); } - if (Name.Length != 0) { + if (Name.Length != 0) + { output.WriteRawTag(18); output.WriteString(Name); } - if (Faction.Length != 0) { + if (Faction.Length != 0) + { output.WriteRawTag(26); output.WriteString(Faction); } - if (Quality != 0) { + if (Quality != 0) + { output.WriteRawTag(32); output.WriteUInt32(Quality); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Active != false) { + if (Active != false) + { size += 1 + 1; } - if (Name.Length != 0) { + if (Name.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Faction.Length != 0) { + if (Faction.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Faction); } - if (Quality != 0) { + if (Quality != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Quality); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -10679,20 +12231,26 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Character other) { - if (other == null) { + public void MergeFrom(Character other) + { + if (other == null) + { return; } - if (other.Active != false) { + if (other.Active != false) + { Active = other.Active; } - if (other.Name.Length != 0) { + if (other.Name.Length != 0) + { Name = other.Name; } - if (other.Faction.Length != 0) { + if (other.Faction.Length != 0) + { Faction = other.Faction; } - if (other.Quality != 0) { + if (other.Quality != 0) + { Quality = other.Quality; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -10700,10 +12258,11 @@ public void MergeFrom(Character other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10728,47 +12287,54 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Active = input.ReadBool(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Faction = input.ReadString(); - break; - } - case 32: { - Quality = input.ReadUInt32(); - break; - } + case 8: + { + Active = input.ReadBool(); + break; + } + case 18: + { + Name = input.ReadString(); + break; + } + case 26: + { + Faction = input.ReadString(); + break; + } + case 32: + { + Quality = input.ReadUInt32(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Item : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); private pb::UnknownFieldSet _unknownFields; @@ -10778,19 +12344,22 @@ public sealed partial class Item : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item() { + public Item() + { OnConstruction(); } @@ -10798,7 +12367,8 @@ public Item() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item(Item other) : this() { + public Item(Item other) : this() + { id_ = other.id_; level_ = other.level_; template_ = other.template_ != null ? other.template_.Clone() : null; @@ -10809,7 +12379,8 @@ public Item(Item other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item Clone() { + public Item Clone() + { return new Item(this); } @@ -10818,9 +12389,11 @@ public Item Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -10830,9 +12403,11 @@ public string Id { private uint level_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Level { + public uint Level + { get { return level_; } - set { + set + { level_ = value; } } @@ -10842,9 +12417,11 @@ public uint Level { private global::Protobuf.Messages.ItemTemplate template_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.ItemTemplate Template { + public global::Protobuf.Messages.ItemTemplate Template + { get { return template_; } - set { + set + { template_ = value; } } @@ -10854,9 +12431,11 @@ public uint Level { private string userId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserId { + public string UserId + { get { return userId_; } - set { + set + { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -10866,26 +12445,32 @@ public string UserId { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Item); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Item other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Item other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; @@ -10898,14 +12483,16 @@ public bool Equals(Item other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Level != 0) hash ^= Level.GetHashCode(); if (template_ != null) hash ^= Template.GetHashCode(); if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -10913,16 +12500,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -10946,59 +12535,73 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Level != 0) { + if (Level != 0) + { output.WriteRawTag(16); output.WriteUInt32(Level); } - if (template_ != null) { + if (template_ != null) + { output.WriteRawTag(26); output.WriteMessage(Template); } - if (UserId.Length != 0) { + if (UserId.Length != 0) + { output.WriteRawTag(34); output.WriteString(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { output.WriteRawTag(42); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Level != 0) { + if (Level != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Level); } - if (template_ != null) { + if (template_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Template); } - if (UserId.Length != 0) { + if (UserId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -11006,80 +12609,51 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Item other) { - if (other == null) { + public void MergeFrom(Item other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Level != 0) { - Level = other.Level; - } - if (other.template_ != null) { - if (template_ == null) { - Template = new global::Protobuf.Messages.ItemTemplate(); - } - Template.MergeFrom(other.Template); - } - if (other.UserId.Length != 0) { - UserId = other.UserId; - } - if (other.UnitId.Length != 0) { - UnitId = other.UnitId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Level = input.ReadUInt32(); - break; - } - case 26: { - if (template_ == null) { - Template = new global::Protobuf.Messages.ItemTemplate(); - } - input.ReadMessage(Template); - break; - } - case 34: { - UserId = input.ReadString(); - break; - } - case 42: { - UnitId = input.ReadString(); - break; - } + if (other.Level != 0) + { + Level = other.Level; + } + if (other.template_ != null) + { + if (template_ == null) + { + Template = new global::Protobuf.Messages.ItemTemplate(); } + Template.MergeFrom(other.Template); + } + if (other.UserId.Length != 0) + { + UserId = other.UserId; + } + if (other.UnitId.Length != 0) + { + UnitId = other.UnitId; } - #endif + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); @@ -11106,16 +12680,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { + uint tag; + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + { + Id = input.ReadString(); + break; + } + case 16: + { + Level = input.ReadUInt32(); + break; + } + case 26: + { + if (template_ == null) + { + Template = new global::Protobuf.Messages.ItemTemplate(); + } + input.ReadMessage(Template); + break; + } + case 34: + { + UserId = input.ReadString(); + break; + } + case 42: + { + UnitId = input.ReadString(); + break; + } + } + } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ItemTemplate : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemTemplate()); private pb::UnknownFieldSet _unknownFields; @@ -11125,19 +12746,22 @@ public sealed partial class ItemTemplate : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ItemTemplate() { + public ItemTemplate() + { OnConstruction(); } @@ -11145,7 +12769,8 @@ public ItemTemplate() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ItemTemplate(ItemTemplate other) : this() { + public ItemTemplate(ItemTemplate other) : this() + { id_ = other.id_; name_ = other.name_; type_ = other.type_; @@ -11154,7 +12779,8 @@ public ItemTemplate(ItemTemplate other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ItemTemplate Clone() { + public ItemTemplate Clone() + { return new ItemTemplate(this); } @@ -11163,9 +12789,11 @@ public ItemTemplate Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -11175,9 +12803,11 @@ public string Id { private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { + public string Name + { get { return name_; } - set { + set + { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -11187,26 +12817,32 @@ public string Name { private string type_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Type { + public string Type + { get { return type_; } - set { + set + { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as ItemTemplate); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ItemTemplate other) { - if (ReferenceEquals(other, null)) { + public bool Equals(ItemTemplate other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; @@ -11217,12 +12853,14 @@ public bool Equals(ItemTemplate other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Type.Length != 0) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -11230,16 +12868,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -11255,45 +12895,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Name.Length != 0) { + if (Name.Length != 0) + { output.WriteRawTag(18); output.WriteString(Name); } - if (Type.Length != 0) { + if (Type.Length != 0) + { output.WriteRawTag(26); output.WriteString(Type); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Name.Length != 0) { + if (Name.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Type.Length != 0) { + if (Type.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Type); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -11301,17 +12951,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ItemTemplate other) { - if (other == null) { + public void MergeFrom(ItemTemplate other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Name.Length != 0) { + if (other.Name.Length != 0) + { Name = other.Name; } - if (other.Type.Length != 0) { + if (other.Type.Length != 0) + { Type = other.Type; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -11319,10 +12974,11 @@ public void MergeFrom(ItemTemplate other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11343,43 +12999,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Type = input.ReadString(); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 18: + { + Name = input.ReadString(); + break; + } + case 26: + { + Type = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Campaigns : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Campaigns()); private pb::UnknownFieldSet _unknownFields; @@ -11389,19 +13051,22 @@ public sealed partial class Campaigns : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaigns() { + public Campaigns() + { OnConstruction(); } @@ -11409,14 +13074,16 @@ public Campaigns() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaigns(Campaigns other) : this() { + public Campaigns(Campaigns other) : this() + { campaigns_ = other.campaigns_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaigns Clone() { + public Campaigns Clone() + { return new Campaigns(this); } @@ -11427,35 +13094,42 @@ public Campaigns Clone() { private readonly pbc::RepeatedField campaigns_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Campaigns_ { + public pbc::RepeatedField Campaigns_ + { get { return campaigns_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Campaigns); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Campaigns other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Campaigns other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!campaigns_.Equals(other.campaigns_)) return false; + if (!campaigns_.Equals(other.campaigns_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= campaigns_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -11463,40 +13137,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else campaigns_.WriteTo(output, _repeated_campaigns_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { campaigns_.WriteTo(ref output, _repeated_campaigns_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += campaigns_.CalculateSize(_repeated_campaigns_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -11504,8 +13184,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Campaigns other) { - if (other == null) { + public void MergeFrom(Campaigns other) + { + if (other == null) + { return; } campaigns_.Add(other.campaigns_); @@ -11514,10 +13196,11 @@ public void MergeFrom(Campaigns other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11530,35 +13213,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - campaigns_.AddEntriesFrom(ref input, _repeated_campaigns_codec); - break; - } + case 10: + { + campaigns_.AddEntriesFrom(ref input, _repeated_campaigns_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Campaign : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Campaign()); private pb::UnknownFieldSet _unknownFields; @@ -11568,19 +13255,22 @@ public sealed partial class Campaign : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign() { + public Campaign() + { OnConstruction(); } @@ -11588,9 +13278,10 @@ public Campaign() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign(Campaign other) : this() { + public Campaign(Campaign other) : this() + { id_ = other.id_; - superCampaignId_ = other.superCampaignId_; + superCampaignName_ = other.superCampaignName_; campaignNumber_ = other.campaignNumber_; levels_ = other.levels_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -11598,7 +13289,8 @@ public Campaign(Campaign other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign Clone() { + public Campaign Clone() + { return new Campaign(this); } @@ -11607,22 +13299,26 @@ public Campaign Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "super_campaign_id" field. - public const int SuperCampaignIdFieldNumber = 2; - private string superCampaignId_ = ""; + /// Field number for the "super_campaign_name" field. + public const int SuperCampaignNameFieldNumber = 2; + private string superCampaignName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SuperCampaignId { - get { return superCampaignId_; } - set { - superCampaignId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + public string SuperCampaignName + { + get { return superCampaignName_; } + set + { + superCampaignName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -11631,9 +13327,11 @@ public string SuperCampaignId { private uint campaignNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint CampaignNumber { + public uint CampaignNumber + { get { return campaignNumber_; } - set { + set + { campaignNumber_ = value; } } @@ -11645,41 +13343,48 @@ public uint CampaignNumber { private readonly pbc::RepeatedField levels_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Levels { + public pbc::RepeatedField Levels + { get { return levels_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Campaign); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Campaign other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Campaign other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; - if (SuperCampaignId != other.SuperCampaignId) return false; + if (SuperCampaignName != other.SuperCampaignName) return false; if (CampaignNumber != other.CampaignNumber) return false; - if(!levels_.Equals(other.levels_)) return false; + if (!levels_.Equals(other.levels_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (SuperCampaignId.Length != 0) hash ^= SuperCampaignId.GetHashCode(); + if (SuperCampaignName.Length != 0) hash ^= SuperCampaignName.GetHashCode(); if (CampaignNumber != 0) hash ^= CampaignNumber.GetHashCode(); hash ^= levels_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -11687,23 +13392,25 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } - if (SuperCampaignId.Length != 0) { + if (SuperCampaignName.Length != 0) { output.WriteRawTag(18); - output.WriteString(SuperCampaignId); + output.WriteString(SuperCampaignName); } if (CampaignNumber != 0) { output.WriteRawTag(24); @@ -11713,47 +13420,57 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (SuperCampaignId.Length != 0) { + if (SuperCampaignName.Length != 0) + { output.WriteRawTag(18); - output.WriteString(SuperCampaignId); + output.WriteString(SuperCampaignName); } - if (CampaignNumber != 0) { + if (CampaignNumber != 0) + { output.WriteRawTag(24); output.WriteUInt32(CampaignNumber); } levels_.WriteTo(ref output, _repeated_levels_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (SuperCampaignId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuperCampaignId); + if (SuperCampaignName.Length != 0) + { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SuperCampaignName); } - if (CampaignNumber != 0) { + if (CampaignNumber != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CampaignNumber); } size += levels_.CalculateSize(_repeated_levels_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -11761,17 +13478,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Campaign other) { - if (other == null) { + public void MergeFrom(Campaign other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.SuperCampaignId.Length != 0) { - SuperCampaignId = other.SuperCampaignId; + if (other.SuperCampaignName.Length != 0) + { + SuperCampaignName = other.SuperCampaignName; } - if (other.CampaignNumber != 0) { + if (other.CampaignNumber != 0) + { CampaignNumber = other.CampaignNumber; } levels_.Add(other.levels_); @@ -11780,10 +13502,11 @@ public void MergeFrom(Campaign other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11795,7 +13518,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - SuperCampaignId = input.ReadString(); + SuperCampaignName = input.ReadString(); break; } case 24: { @@ -11808,47 +13531,54 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - SuperCampaignId = input.ReadString(); - break; - } - case 24: { - CampaignNumber = input.ReadUInt32(); - break; - } - case 34: { - levels_.AddEntriesFrom(ref input, _repeated_levels_codec); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 18: + { + SuperCampaignName = input.ReadString(); + break; + } + case 24: + { + CampaignNumber = input.ReadUInt32(); + break; + } + case 34: + { + levels_.AddEntriesFrom(ref input, _repeated_levels_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Level : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Level()); private pb::UnknownFieldSet _unknownFields; @@ -11858,19 +13588,22 @@ public sealed partial class Level : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Level() { + public Level() + { OnConstruction(); } @@ -11878,7 +13611,8 @@ public Level() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Level(Level other) : this() { + public Level(Level other) : this() + { id_ = other.id_; campaignId_ = other.campaignId_; levelNumber_ = other.levelNumber_; @@ -11890,7 +13624,8 @@ public Level(Level other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Level Clone() { + public Level Clone() + { return new Level(this); } @@ -11899,9 +13634,11 @@ public Level Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -11911,9 +13648,11 @@ public string Id { private string campaignId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignId { + public string CampaignId + { get { return campaignId_; } - set { + set + { campaignId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -11923,9 +13662,11 @@ public string CampaignId { private uint levelNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint LevelNumber { + public uint LevelNumber + { get { return levelNumber_; } - set { + set + { levelNumber_ = value; } } @@ -11937,7 +13678,8 @@ public uint LevelNumber { private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Units { + public pbc::RepeatedField Units + { get { return units_; } } @@ -11948,7 +13690,8 @@ public uint LevelNumber { private readonly pbc::RepeatedField currencyRewards_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CurrencyRewards { + public pbc::RepeatedField CurrencyRewards + { get { return currencyRewards_; } } @@ -11957,40 +13700,47 @@ public uint LevelNumber { private uint experienceReward_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ExperienceReward { + public uint ExperienceReward + { get { return experienceReward_; } - set { + set + { experienceReward_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Level); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Level other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Level other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; if (CampaignId != other.CampaignId) return false; if (LevelNumber != other.LevelNumber) return false; - if(!units_.Equals(other.units_)) return false; - if(!currencyRewards_.Equals(other.currencyRewards_)) return false; + if (!units_.Equals(other.units_)) return false; + if (!currencyRewards_.Equals(other.currencyRewards_)) return false; if (ExperienceReward != other.ExperienceReward) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (CampaignId.Length != 0) hash ^= CampaignId.GetHashCode(); @@ -11998,7 +13748,8 @@ public override int GetHashCode() { hash ^= units_.GetHashCode(); hash ^= currencyRewards_.GetHashCode(); if (ExperienceReward != 0) hash ^= ExperienceReward.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -12006,16 +13757,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -12037,56 +13790,68 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { output.WriteRawTag(18); output.WriteString(CampaignId); } - if (LevelNumber != 0) { + if (LevelNumber != 0) + { output.WriteRawTag(24); output.WriteUInt32(LevelNumber); } units_.WriteTo(ref output, _repeated_units_codec); currencyRewards_.WriteTo(ref output, _repeated_currencyRewards_codec); - if (ExperienceReward != 0) { + if (ExperienceReward != 0) + { output.WriteRawTag(48); output.WriteUInt32(ExperienceReward); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (CampaignId.Length != 0) { + if (CampaignId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignId); } - if (LevelNumber != 0) { + if (LevelNumber != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LevelNumber); } size += units_.CalculateSize(_repeated_units_codec); size += currencyRewards_.CalculateSize(_repeated_currencyRewards_codec); - if (ExperienceReward != 0) { + if (ExperienceReward != 0) + { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ExperienceReward); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -12094,22 +13859,28 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Level other) { - if (other == null) { + public void MergeFrom(Level other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.CampaignId.Length != 0) { + if (other.CampaignId.Length != 0) + { CampaignId = other.CampaignId; } - if (other.LevelNumber != 0) { + if (other.LevelNumber != 0) + { LevelNumber = other.LevelNumber; } units_.Add(other.units_); currencyRewards_.Add(other.currencyRewards_); - if (other.ExperienceReward != 0) { + if (other.ExperienceReward != 0) + { ExperienceReward = other.ExperienceReward; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12117,10 +13888,11 @@ public void MergeFrom(Level other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12153,55 +13925,64 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - CampaignId = input.ReadString(); - break; - } - case 24: { - LevelNumber = input.ReadUInt32(); - break; - } - case 34: { - units_.AddEntriesFrom(ref input, _repeated_units_codec); - break; - } - case 42: { - currencyRewards_.AddEntriesFrom(ref input, _repeated_currencyRewards_codec); - break; - } - case 48: { - ExperienceReward = input.ReadUInt32(); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 18: + { + CampaignId = input.ReadString(); + break; + } + case 24: + { + LevelNumber = input.ReadUInt32(); + break; + } + case 34: + { + units_.AddEntriesFrom(ref input, _repeated_units_codec); + break; + } + case 42: + { + currencyRewards_.AddEntriesFrom(ref input, _repeated_currencyRewards_codec); + break; + } + case 48: + { + ExperienceReward = input.ReadUInt32(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CurrencyReward : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrencyReward()); private pb::UnknownFieldSet _unknownFields; @@ -12211,19 +13992,22 @@ public sealed partial class CurrencyReward : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[41]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyReward() { + public CurrencyReward() + { OnConstruction(); } @@ -12231,7 +14015,8 @@ public CurrencyReward() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyReward(CurrencyReward other) : this() { + public CurrencyReward(CurrencyReward other) : this() + { currency_ = other.currency_ != null ? other.currency_.Clone() : null; amount_ = other.amount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -12239,7 +14024,8 @@ public CurrencyReward(CurrencyReward other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyReward Clone() { + public CurrencyReward Clone() + { return new CurrencyReward(this); } @@ -12248,9 +14034,11 @@ public CurrencyReward Clone() { private global::Protobuf.Messages.Currency currency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Currency Currency { + public global::Protobuf.Messages.Currency Currency + { get { return currency_; } - set { + set + { currency_ = value; } } @@ -12260,26 +14048,32 @@ public CurrencyReward Clone() { private ulong amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Amount { + public ulong Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as CurrencyReward); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CurrencyReward other) { - if (ReferenceEquals(other, null)) { + public bool Equals(CurrencyReward other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(Currency, other.Currency)) return false; @@ -12289,11 +14083,13 @@ public bool Equals(CurrencyReward other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (currency_ != null) hash ^= Currency.GetHashCode(); if (Amount != 0UL) hash ^= Amount.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -12301,16 +14097,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (currency_ != null) { output.WriteRawTag(10); output.WriteMessage(Currency); @@ -12322,38 +14120,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (currency_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (currency_ != null) + { output.WriteRawTag(10); output.WriteMessage(Currency); } - if (Amount != 0UL) { + if (Amount != 0UL) + { output.WriteRawTag(24); output.WriteUInt64(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (currency_ != null) { + if (currency_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Currency); } - if (Amount != 0UL) { + if (Amount != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -12361,17 +14167,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CurrencyReward other) { - if (other == null) { + public void MergeFrom(CurrencyReward other) + { + if (other == null) + { return; } - if (other.currency_ != null) { - if (currency_ == null) { + if (other.currency_ != null) + { + if (currency_ == null) + { Currency = new global::Protobuf.Messages.Currency(); } Currency.MergeFrom(other.Currency); } - if (other.Amount != 0UL) { + if (other.Amount != 0UL) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12379,10 +14190,11 @@ public void MergeFrom(CurrencyReward other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12402,42 +14214,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (currency_ == null) { - Currency = new global::Protobuf.Messages.Currency(); + case 10: + { + if (currency_ == null) + { + Currency = new global::Protobuf.Messages.Currency(); + } + input.ReadMessage(Currency); + break; + } + case 24: + { + Amount = input.ReadUInt64(); + break; } - input.ReadMessage(Currency); - break; - } - case 24: { - Amount = input.ReadUInt64(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AfkRewards : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AfkRewards()); private pb::UnknownFieldSet _unknownFields; @@ -12447,19 +14265,22 @@ public sealed partial class AfkRewards : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[42]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewards() { + public AfkRewards() + { OnConstruction(); } @@ -12467,14 +14288,16 @@ public AfkRewards() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewards(AfkRewards other) : this() { + public AfkRewards(AfkRewards other) : this() + { afkRewards_ = other.afkRewards_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkRewards Clone() { + public AfkRewards Clone() + { return new AfkRewards(this); } @@ -12485,35 +14308,42 @@ public AfkRewards Clone() { private readonly pbc::RepeatedField afkRewards_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AfkRewards_ { + public pbc::RepeatedField AfkRewards_ + { get { return afkRewards_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as AfkRewards); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AfkRewards other) { - if (ReferenceEquals(other, null)) { + public bool Equals(AfkRewards other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!afkRewards_.Equals(other.afkRewards_)) return false; + if (!afkRewards_.Equals(other.afkRewards_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= afkRewards_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -12521,40 +14351,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else afkRewards_.WriteTo(output, _repeated_afkRewards_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { afkRewards_.WriteTo(ref output, _repeated_afkRewards_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += afkRewards_.CalculateSize(_repeated_afkRewards_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -12562,8 +14398,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AfkRewards other) { - if (other == null) { + public void MergeFrom(AfkRewards other) + { + if (other == null) + { return; } afkRewards_.Add(other.afkRewards_); @@ -12572,10 +14410,11 @@ public void MergeFrom(AfkRewards other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12588,35 +14427,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - afkRewards_.AddEntriesFrom(ref input, _repeated_afkRewards_codec); - break; - } + case 10: + { + afkRewards_.AddEntriesFrom(ref input, _repeated_afkRewards_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class AfkReward : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AfkReward()); private pb::UnknownFieldSet _unknownFields; @@ -12626,19 +14469,22 @@ public sealed partial class AfkReward : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkReward() { + public AfkReward() + { OnConstruction(); } @@ -12646,7 +14492,8 @@ public AfkReward() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkReward(AfkReward other) : this() { + public AfkReward(AfkReward other) : this() + { currency_ = other.currency_ != null ? other.currency_.Clone() : null; amount_ = other.amount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -12654,7 +14501,8 @@ public AfkReward(AfkReward other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AfkReward Clone() { + public AfkReward Clone() + { return new AfkReward(this); } @@ -12663,9 +14511,11 @@ public AfkReward Clone() { private global::Protobuf.Messages.Currency currency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Currency Currency { + public global::Protobuf.Messages.Currency Currency + { get { return currency_; } - set { + set + { currency_ = value; } } @@ -12675,26 +14525,32 @@ public AfkReward Clone() { private ulong amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Amount { + public ulong Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as AfkReward); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AfkReward other) { - if (ReferenceEquals(other, null)) { + public bool Equals(AfkReward other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(Currency, other.Currency)) return false; @@ -12704,11 +14560,13 @@ public bool Equals(AfkReward other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (currency_ != null) hash ^= Currency.GetHashCode(); if (Amount != 0UL) hash ^= Amount.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -12716,16 +14574,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (currency_ != null) { output.WriteRawTag(10); output.WriteMessage(Currency); @@ -12737,38 +14597,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (currency_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (currency_ != null) + { output.WriteRawTag(10); output.WriteMessage(Currency); } - if (Amount != 0UL) { + if (Amount != 0UL) + { output.WriteRawTag(16); output.WriteUInt64(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (currency_ != null) { + if (currency_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Currency); } - if (Amount != 0UL) { + if (Amount != 0UL) + { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -12776,17 +14644,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AfkReward other) { - if (other == null) { + public void MergeFrom(AfkReward other) + { + if (other == null) + { return; } - if (other.currency_ != null) { - if (currency_ == null) { + if (other.currency_ != null) + { + if (currency_ == null) + { Currency = new global::Protobuf.Messages.Currency(); } Currency.MergeFrom(other.Currency); } - if (other.Amount != 0UL) { + if (other.Amount != 0UL) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12794,10 +14667,11 @@ public void MergeFrom(AfkReward other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12817,42 +14691,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (currency_ == null) { - Currency = new global::Protobuf.Messages.Currency(); + case 10: + { + if (currency_ == null) + { + Currency = new global::Protobuf.Messages.Currency(); + } + input.ReadMessage(Currency); + break; + } + case 16: + { + Amount = input.ReadUInt64(); + break; } - input.ReadMessage(Currency); - break; - } - case 16: { - Amount = input.ReadUInt64(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Error : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; @@ -12862,19 +14742,22 @@ public sealed partial class Error : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error() { + public Error() + { OnConstruction(); } @@ -12882,14 +14765,16 @@ public Error() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error(Error other) : this() { + public Error(Error other) : this() + { reason_ = other.reason_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error Clone() { + public Error Clone() + { return new Error(this); } @@ -12898,26 +14783,32 @@ public Error Clone() { private string reason_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Reason { + public string Reason + { get { return reason_; } - set { + set + { reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Error other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Error other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Reason != other.Reason) return false; @@ -12926,10 +14817,12 @@ public bool Equals(Error other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Reason.Length != 0) hash ^= Reason.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -12937,16 +14830,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Reason.Length != 0) { output.WriteRawTag(10); output.WriteString(Reason); @@ -12954,31 +14849,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Reason.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Reason.Length != 0) + { output.WriteRawTag(10); output.WriteString(Reason); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Reason.Length != 0) { + if (Reason.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -12986,11 +14887,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Error other) { - if (other == null) { + public void MergeFrom(Error other) + { + if (other == null) + { return; } - if (other.Reason.Length != 0) { + if (other.Reason.Length != 0) + { Reason = other.Reason; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -12998,10 +14902,11 @@ public void MergeFrom(Error other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -13014,35 +14919,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Reason = input.ReadString(); - break; - } + case 10: + { + Reason = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Boxes : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Boxes()); private pb::UnknownFieldSet _unknownFields; @@ -13052,19 +14961,22 @@ public sealed partial class Boxes : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Boxes() { + public Boxes() + { OnConstruction(); } @@ -13072,14 +14984,16 @@ public Boxes() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Boxes(Boxes other) : this() { + public Boxes(Boxes other) : this() + { boxes_ = other.boxes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Boxes Clone() { + public Boxes Clone() + { return new Boxes(this); } @@ -13090,35 +15004,42 @@ public Boxes Clone() { private readonly pbc::RepeatedField boxes_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Boxes_ { + public pbc::RepeatedField Boxes_ + { get { return boxes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Boxes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Boxes other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Boxes other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!boxes_.Equals(other.boxes_)) return false; + if (!boxes_.Equals(other.boxes_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= boxes_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -13126,40 +15047,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else boxes_.WriteTo(output, _repeated_boxes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { boxes_.WriteTo(ref output, _repeated_boxes_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += boxes_.CalculateSize(_repeated_boxes_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -13167,8 +15094,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Boxes other) { - if (other == null) { + public void MergeFrom(Boxes other) + { + if (other == null) + { return; } boxes_.Add(other.boxes_); @@ -13177,10 +15106,11 @@ public void MergeFrom(Boxes other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -13193,35 +15123,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - boxes_.AddEntriesFrom(ref input, _repeated_boxes_codec); - break; - } + case 10: + { + boxes_.AddEntriesFrom(ref input, _repeated_boxes_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Box : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Box()); private pb::UnknownFieldSet _unknownFields; @@ -13231,19 +15165,22 @@ public sealed partial class Box : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box() { + public Box() + { OnConstruction(); } @@ -13251,7 +15188,8 @@ public Box() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box(Box other) : this() { + public Box(Box other) : this() + { id_ = other.id_; name_ = other.name_; description_ = other.description_; @@ -13263,7 +15201,8 @@ public Box(Box other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box Clone() { + public Box Clone() + { return new Box(this); } @@ -13272,9 +15211,11 @@ public Box Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -13284,9 +15225,11 @@ public string Id { private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { + public string Name + { get { return name_; } - set { + set + { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -13296,9 +15239,11 @@ public string Name { private string description_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { + public string Description + { get { return description_; } - set { + set + { description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -13310,7 +15255,8 @@ public string Description { private readonly pbc::RepeatedField factions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Factions { + public pbc::RepeatedField Factions + { get { return factions_; } } @@ -13321,7 +15267,8 @@ public string Description { private readonly pbc::RepeatedField rankWeights_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RankWeights { + public pbc::RepeatedField RankWeights + { get { return rankWeights_; } } @@ -13332,37 +15279,43 @@ public string Description { private readonly pbc::RepeatedField cost_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Cost { + public pbc::RepeatedField Cost + { get { return cost_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Box); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Box other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Box other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; if (Name != other.Name) return false; if (Description != other.Description) return false; - if(!factions_.Equals(other.factions_)) return false; - if(!rankWeights_.Equals(other.rankWeights_)) return false; - if(!cost_.Equals(other.cost_)) return false; + if (!factions_.Equals(other.factions_)) return false; + if (!rankWeights_.Equals(other.rankWeights_)) return false; + if (!cost_.Equals(other.cost_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); @@ -13370,7 +15323,8 @@ public override int GetHashCode() { hash ^= factions_.GetHashCode(); hash ^= rankWeights_.GetHashCode(); hash ^= cost_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -13378,16 +15332,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -13406,51 +15362,61 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Name.Length != 0) { + if (Name.Length != 0) + { output.WriteRawTag(18); output.WriteString(Name); } - if (Description.Length != 0) { + if (Description.Length != 0) + { output.WriteRawTag(26); output.WriteString(Description); } factions_.WriteTo(ref output, _repeated_factions_codec); rankWeights_.WriteTo(ref output, _repeated_rankWeights_codec); cost_.WriteTo(ref output, _repeated_cost_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Name.Length != 0) { + if (Name.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Description.Length != 0) { + if (Description.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); } size += factions_.CalculateSize(_repeated_factions_codec); size += rankWeights_.CalculateSize(_repeated_rankWeights_codec); size += cost_.CalculateSize(_repeated_cost_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -13458,17 +15424,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Box other) { - if (other == null) { + public void MergeFrom(Box other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Name.Length != 0) { + if (other.Name.Length != 0) + { Name = other.Name; } - if (other.Description.Length != 0) { + if (other.Description.Length != 0) + { Description = other.Description; } factions_.Add(other.factions_); @@ -13479,10 +15450,11 @@ public void MergeFrom(Box other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -13515,55 +15487,64 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - factions_.AddEntriesFrom(ref input, _repeated_factions_codec); - break; - } - case 42: { - rankWeights_.AddEntriesFrom(ref input, _repeated_rankWeights_codec); - break; - } - case 50: { - cost_.AddEntriesFrom(ref input, _repeated_cost_codec); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 18: + { + Name = input.ReadString(); + break; + } + case 26: + { + Description = input.ReadString(); + break; + } + case 34: + { + factions_.AddEntriesFrom(ref input, _repeated_factions_codec); + break; + } + case 42: + { + rankWeights_.AddEntriesFrom(ref input, _repeated_rankWeights_codec); + break; + } + case 50: + { + cost_.AddEntriesFrom(ref input, _repeated_cost_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class RankWeights : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RankWeights()); private pb::UnknownFieldSet _unknownFields; @@ -13573,19 +15554,22 @@ public sealed partial class RankWeights : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RankWeights() { + public RankWeights() + { OnConstruction(); } @@ -13593,7 +15577,8 @@ public RankWeights() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RankWeights(RankWeights other) : this() { + public RankWeights(RankWeights other) : this() + { rank_ = other.rank_; weight_ = other.weight_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -13601,7 +15586,8 @@ public RankWeights(RankWeights other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RankWeights Clone() { + public RankWeights Clone() + { return new RankWeights(this); } @@ -13610,9 +15596,11 @@ public RankWeights Clone() { private int rank_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Rank { + public int Rank + { get { return rank_; } - set { + set + { rank_ = value; } } @@ -13622,26 +15610,32 @@ public int Rank { private int weight_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Weight { + public int Weight + { get { return weight_; } - set { + set + { weight_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as RankWeights); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RankWeights other) { - if (ReferenceEquals(other, null)) { + public bool Equals(RankWeights other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Rank != other.Rank) return false; @@ -13651,11 +15645,13 @@ public bool Equals(RankWeights other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Rank != 0) hash ^= Rank.GetHashCode(); if (Weight != 0) hash ^= Weight.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -13663,16 +15659,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Rank != 0) { output.WriteRawTag(8); output.WriteInt32(Rank); @@ -13684,38 +15682,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Rank != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Rank != 0) + { output.WriteRawTag(8); output.WriteInt32(Rank); } - if (Weight != 0) { + if (Weight != 0) + { output.WriteRawTag(16); output.WriteInt32(Weight); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Rank != 0) { + if (Rank != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank); } - if (Weight != 0) { + if (Weight != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Weight); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -13723,14 +15729,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RankWeights other) { - if (other == null) { + public void MergeFrom(RankWeights other) + { + if (other == null) + { return; } - if (other.Rank != 0) { + if (other.Rank != 0) + { Rank = other.Rank; } - if (other.Weight != 0) { + if (other.Weight != 0) + { Weight = other.Weight; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -13738,10 +15748,11 @@ public void MergeFrom(RankWeights other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -13758,39 +15769,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Rank = input.ReadInt32(); - break; - } - case 16: { - Weight = input.ReadInt32(); + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } + case 8: + { + Rank = input.ReadInt32(); + break; + } + case 16: + { + Weight = input.ReadInt32(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class CurrencyCost : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrencyCost()); private pb::UnknownFieldSet _unknownFields; @@ -13800,19 +15816,22 @@ public sealed partial class CurrencyCost : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCost() { + public CurrencyCost() + { OnConstruction(); } @@ -13820,7 +15839,8 @@ public CurrencyCost() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCost(CurrencyCost other) : this() { + public CurrencyCost(CurrencyCost other) : this() + { currency_ = other.currency_ != null ? other.currency_.Clone() : null; amount_ = other.amount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -13828,7 +15848,8 @@ public CurrencyCost(CurrencyCost other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCost Clone() { + public CurrencyCost Clone() + { return new CurrencyCost(this); } @@ -13837,9 +15858,11 @@ public CurrencyCost Clone() { private global::Protobuf.Messages.Currency currency_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Currency Currency { + public global::Protobuf.Messages.Currency Currency + { get { return currency_; } - set { + set + { currency_ = value; } } @@ -13849,26 +15872,32 @@ public CurrencyCost Clone() { private int amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Amount { + public int Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as CurrencyCost); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CurrencyCost other) { - if (ReferenceEquals(other, null)) { + public bool Equals(CurrencyCost other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(Currency, other.Currency)) return false; @@ -13878,11 +15907,13 @@ public bool Equals(CurrencyCost other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (currency_ != null) hash ^= Currency.GetHashCode(); if (Amount != 0) hash ^= Amount.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -13890,16 +15921,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (currency_ != null) { output.WriteRawTag(10); output.WriteMessage(Currency); @@ -13911,38 +15944,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (currency_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (currency_ != null) + { output.WriteRawTag(10); output.WriteMessage(Currency); } - if (Amount != 0) { + if (Amount != 0) + { output.WriteRawTag(16); output.WriteInt32(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (currency_ != null) { + if (currency_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Currency); } - if (Amount != 0) { + if (Amount != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -13950,17 +15991,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CurrencyCost other) { - if (other == null) { + public void MergeFrom(CurrencyCost other) + { + if (other == null) + { return; } - if (other.currency_ != null) { - if (currency_ == null) { + if (other.currency_ != null) + { + if (currency_ == null) + { Currency = new global::Protobuf.Messages.Currency(); } Currency.MergeFrom(other.Currency); } - if (other.Amount != 0) { + if (other.Amount != 0) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -13968,10 +16014,11 @@ public void MergeFrom(CurrencyCost other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -13991,42 +16038,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (currency_ == null) { - Currency = new global::Protobuf.Messages.Currency(); + case 10: + { + if (currency_ == null) + { + Currency = new global::Protobuf.Messages.Currency(); + } + input.ReadMessage(Currency); + break; + } + case 16: + { + Amount = input.ReadInt32(); + break; } - input.ReadMessage(Currency); - break; - } - case 16: { - Amount = input.ReadInt32(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class UserAndUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserAndUnit()); private pb::UnknownFieldSet _unknownFields; @@ -14036,19 +16089,22 @@ public sealed partial class UserAndUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserAndUnit() { + public UserAndUnit() + { OnConstruction(); } @@ -14056,7 +16112,8 @@ public UserAndUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserAndUnit(UserAndUnit other) : this() { + public UserAndUnit(UserAndUnit other) : this() + { user_ = other.user_ != null ? other.user_.Clone() : null; unit_ = other.unit_ != null ? other.unit_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -14064,7 +16121,8 @@ public UserAndUnit(UserAndUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserAndUnit Clone() { + public UserAndUnit Clone() + { return new UserAndUnit(this); } @@ -14073,9 +16131,11 @@ public UserAndUnit Clone() { private global::Protobuf.Messages.User user_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.User User { + public global::Protobuf.Messages.User User + { get { return user_; } - set { + set + { user_ = value; } } @@ -14085,26 +16145,32 @@ public UserAndUnit Clone() { private global::Protobuf.Messages.Unit unit_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Unit Unit { + public global::Protobuf.Messages.Unit Unit + { get { return unit_; } - set { + set + { unit_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as UserAndUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserAndUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(UserAndUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(User, other.User)) return false; @@ -14114,11 +16180,13 @@ public bool Equals(UserAndUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (user_ != null) hash ^= User.GetHashCode(); if (unit_ != null) hash ^= Unit.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -14126,16 +16194,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (user_ != null) { output.WriteRawTag(10); output.WriteMessage(User); @@ -14147,38 +16217,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (user_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (user_ != null) + { output.WriteRawTag(10); output.WriteMessage(User); } - if (unit_ != null) { + if (unit_ != null) + { output.WriteRawTag(18); output.WriteMessage(Unit); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (user_ != null) { + if (user_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); } - if (unit_ != null) { + if (unit_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unit); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -14186,18 +16264,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserAndUnit other) { - if (other == null) { + public void MergeFrom(UserAndUnit other) + { + if (other == null) + { return; } - if (other.user_ != null) { - if (user_ == null) { + if (other.user_ != null) + { + if (user_ == null) + { User = new global::Protobuf.Messages.User(); } User.MergeFrom(other.User); } - if (other.unit_ != null) { - if (unit_ == null) { + if (other.unit_ != null) + { + if (unit_ == null) + { Unit = new global::Protobuf.Messages.Unit(); } Unit.MergeFrom(other.Unit); @@ -14207,10 +16291,11 @@ public void MergeFrom(UserAndUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -14233,45 +16318,52 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (user_ == null) { - User = new global::Protobuf.Messages.User(); + case 10: + { + if (user_ == null) + { + User = new global::Protobuf.Messages.User(); + } + input.ReadMessage(User); + break; } - input.ReadMessage(User); - break; - } - case 18: { - if (unit_ == null) { - Unit = new global::Protobuf.Messages.Unit(); + case 18: + { + if (unit_ == null) + { + Unit = new global::Protobuf.Messages.Unit(); + } + input.ReadMessage(Unit); + break; } - input.ReadMessage(Unit); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class BattleResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleResult()); private pb::UnknownFieldSet _unknownFields; @@ -14281,19 +16373,22 @@ public sealed partial class BattleResult : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleResult() { + public BattleResult() + { OnConstruction(); } @@ -14301,7 +16396,8 @@ public BattleResult() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleResult(BattleResult other) : this() { + public BattleResult(BattleResult other) : this() + { initialState_ = other.initialState_ != null ? other.initialState_.Clone() : null; steps_ = other.steps_.Clone(); result_ = other.result_; @@ -14310,7 +16406,8 @@ public BattleResult(BattleResult other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleResult Clone() { + public BattleResult Clone() + { return new BattleResult(this); } @@ -14319,9 +16416,11 @@ public BattleResult Clone() { private global::Protobuf.Messages.State initialState_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.State InitialState { + public global::Protobuf.Messages.State InitialState + { get { return initialState_; } - set { + set + { initialState_ = value; } } @@ -14333,7 +16432,8 @@ public BattleResult Clone() { private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Steps { + public pbc::RepeatedField Steps + { get { return steps_; } } @@ -14342,42 +16442,50 @@ public BattleResult Clone() { private string result_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Result { + public string Result + { get { return result_; } - set { + set + { result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as BattleResult); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BattleResult other) { - if (ReferenceEquals(other, null)) { + public bool Equals(BattleResult other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(InitialState, other.InitialState)) return false; - if(!steps_.Equals(other.steps_)) return false; + if (!steps_.Equals(other.steps_)) return false; if (Result != other.Result) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (initialState_ != null) hash ^= InitialState.GetHashCode(); hash ^= steps_.GetHashCode(); if (Result.Length != 0) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -14385,16 +16493,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (initialState_ != null) { output.WriteRawTag(10); output.WriteMessage(InitialState); @@ -14407,40 +16517,48 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (initialState_ != null) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (initialState_ != null) + { output.WriteRawTag(10); output.WriteMessage(InitialState); } steps_.WriteTo(ref output, _repeated_steps_codec); - if (Result.Length != 0) { + if (Result.Length != 0) + { output.WriteRawTag(26); output.WriteString(Result); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (initialState_ != null) { + if (initialState_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitialState); } size += steps_.CalculateSize(_repeated_steps_codec); - if (Result.Length != 0) { + if (Result.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Result); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -14448,18 +16566,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BattleResult other) { - if (other == null) { + public void MergeFrom(BattleResult other) + { + if (other == null) + { return; } - if (other.initialState_ != null) { - if (initialState_ == null) { + if (other.initialState_ != null) + { + if (initialState_ == null) + { InitialState = new global::Protobuf.Messages.State(); } InitialState.MergeFrom(other.InitialState); } steps_.Add(other.steps_); - if (other.Result.Length != 0) { + if (other.Result.Length != 0) + { Result = other.Result; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -14467,10 +16590,11 @@ public void MergeFrom(BattleResult other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -14494,46 +16618,53 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - if (initialState_ == null) { - InitialState = new global::Protobuf.Messages.State(); + case 10: + { + if (initialState_ == null) + { + InitialState = new global::Protobuf.Messages.State(); + } + input.ReadMessage(InitialState); + break; + } + case 18: + { + steps_.AddEntriesFrom(ref input, _repeated_steps_codec); + break; + } + case 26: + { + Result = input.ReadString(); + break; } - input.ReadMessage(InitialState); - break; - } - case 18: { - steps_.AddEntriesFrom(ref input, _repeated_steps_codec); - break; - } - case 26: { - Result = input.ReadString(); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class State : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new State()); private pb::UnknownFieldSet _unknownFields; @@ -14543,19 +16674,22 @@ public sealed partial class State : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public State() { + public State() + { OnConstruction(); } @@ -14563,14 +16697,16 @@ public State() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public State(State other) : this() { + public State(State other) : this() + { units_ = other.units_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public State Clone() { + public State Clone() + { return new State(this); } @@ -14581,35 +16717,42 @@ public State Clone() { private readonly pbc::RepeatedField units_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Units { + public pbc::RepeatedField Units + { get { return units_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as State); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(State other) { - if (ReferenceEquals(other, null)) { + public bool Equals(State other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } - if(!units_.Equals(other.units_)) return false; + if (!units_.Equals(other.units_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; hash ^= units_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -14617,40 +16760,46 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else units_.WriteTo(output, _repeated_units_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { units_.WriteTo(ref output, _repeated_units_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; size += units_.CalculateSize(_repeated_units_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -14658,8 +16807,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(State other) { - if (other == null) { + public void MergeFrom(State other) + { + if (other == null) + { return; } units_.Add(other.units_); @@ -14668,10 +16819,11 @@ public void MergeFrom(State other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -14684,35 +16836,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - units_.AddEntriesFrom(ref input, _repeated_units_codec); - break; - } + case 10: + { + units_.AddEntriesFrom(ref input, _repeated_units_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class BattleUnit : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BattleUnit()); private pb::UnknownFieldSet _unknownFields; @@ -14722,19 +16878,22 @@ public sealed partial class BattleUnit : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleUnit() { + public BattleUnit() + { OnConstruction(); } @@ -14742,7 +16901,8 @@ public BattleUnit() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleUnit(BattleUnit other) : this() { + public BattleUnit(BattleUnit other) : this() + { id_ = other.id_; health_ = other.health_; energy_ = other.energy_; @@ -14754,7 +16914,8 @@ public BattleUnit(BattleUnit other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BattleUnit Clone() { + public BattleUnit Clone() + { return new BattleUnit(this); } @@ -14763,9 +16924,11 @@ public BattleUnit Clone() { private string id_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { + public string Id + { get { return id_; } - set { + set + { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -14775,9 +16938,11 @@ public string Id { private int health_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Health { + public int Health + { get { return health_; } - set { + set + { health_ = value; } } @@ -14787,9 +16952,11 @@ public int Health { private int energy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Energy { + public int Energy + { get { return energy_; } - set { + set + { energy_ = value; } } @@ -14799,9 +16966,11 @@ public int Energy { private int slot_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Slot { + public int Slot + { get { return slot_; } - set { + set + { slot_ = value; } } @@ -14811,9 +16980,11 @@ public int Slot { private string characterId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CharacterId { + public string CharacterId + { get { return characterId_; } - set { + set + { characterId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -14823,26 +16994,32 @@ public string CharacterId { private int team_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Team { + public int Team + { get { return team_; } - set { + set + { team_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as BattleUnit); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BattleUnit other) { - if (ReferenceEquals(other, null)) { + public bool Equals(BattleUnit other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Id != other.Id) return false; @@ -14856,7 +17033,8 @@ public bool Equals(BattleUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Health != 0) hash ^= Health.GetHashCode(); @@ -14864,7 +17042,8 @@ public override int GetHashCode() { if (Slot != 0) hash ^= Slot.GetHashCode(); if (CharacterId.Length != 0) hash ^= CharacterId.GetHashCode(); if (Team != 0) hash ^= Team.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -14872,16 +17051,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); @@ -14909,66 +17090,82 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Id.Length != 0) + { output.WriteRawTag(10); output.WriteString(Id); } - if (Health != 0) { + if (Health != 0) + { output.WriteRawTag(16); output.WriteInt32(Health); } - if (Energy != 0) { + if (Energy != 0) + { output.WriteRawTag(24); output.WriteInt32(Energy); } - if (Slot != 0) { + if (Slot != 0) + { output.WriteRawTag(32); output.WriteInt32(Slot); } - if (CharacterId.Length != 0) { + if (CharacterId.Length != 0) + { output.WriteRawTag(42); output.WriteString(CharacterId); } - if (Team != 0) { + if (Team != 0) + { output.WriteRawTag(48); output.WriteInt32(Team); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Id.Length != 0) { + if (Id.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } - if (Health != 0) { + if (Health != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Health); } - if (Energy != 0) { + if (Energy != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Energy); } - if (Slot != 0) { + if (Slot != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Slot); } - if (CharacterId.Length != 0) { + if (CharacterId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CharacterId); } - if (Team != 0) { + if (Team != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Team); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -14976,26 +17173,34 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BattleUnit other) { - if (other == null) { + public void MergeFrom(BattleUnit other) + { + if (other == null) + { return; } - if (other.Id.Length != 0) { + if (other.Id.Length != 0) + { Id = other.Id; } - if (other.Health != 0) { + if (other.Health != 0) + { Health = other.Health; } - if (other.Energy != 0) { + if (other.Energy != 0) + { Energy = other.Energy; } - if (other.Slot != 0) { + if (other.Slot != 0) + { Slot = other.Slot; } - if (other.CharacterId.Length != 0) { + if (other.CharacterId.Length != 0) + { CharacterId = other.CharacterId; } - if (other.Team != 0) { + if (other.Team != 0) + { Team = other.Team; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -15003,10 +17208,11 @@ public void MergeFrom(BattleUnit other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -15039,55 +17245,64 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Id = input.ReadString(); - break; - } - case 16: { - Health = input.ReadInt32(); - break; - } - case 24: { - Energy = input.ReadInt32(); - break; - } - case 32: { - Slot = input.ReadInt32(); - break; - } - case 42: { - CharacterId = input.ReadString(); - break; - } - case 48: { - Team = input.ReadInt32(); - break; - } + case 10: + { + Id = input.ReadString(); + break; + } + case 16: + { + Health = input.ReadInt32(); + break; + } + case 24: + { + Energy = input.ReadInt32(); + break; + } + case 32: + { + Slot = input.ReadInt32(); + break; + } + case 42: + { + CharacterId = input.ReadString(); + break; + } + case 48: + { + Team = input.ReadInt32(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Step : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Step()); private pb::UnknownFieldSet _unknownFields; @@ -15097,19 +17312,22 @@ public sealed partial class Step : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Step() { + public Step() + { OnConstruction(); } @@ -15117,7 +17335,8 @@ public Step() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Step(Step other) : this() { + public Step(Step other) : this() + { stepNumber_ = other.stepNumber_; actions_ = other.actions_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -15125,7 +17344,8 @@ public Step(Step other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Step Clone() { + public Step Clone() + { return new Step(this); } @@ -15134,9 +17354,11 @@ public Step Clone() { private int stepNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StepNumber { + public int StepNumber + { get { return stepNumber_; } - set { + set + { stepNumber_ = value; } } @@ -15148,37 +17370,44 @@ public int StepNumber { private readonly pbc::RepeatedField actions_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Actions { + public pbc::RepeatedField Actions + { get { return actions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Step); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Step other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Step other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (StepNumber != other.StepNumber) return false; - if(!actions_.Equals(other.actions_)) return false; + if (!actions_.Equals(other.actions_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (StepNumber != 0) hash ^= StepNumber.GetHashCode(); hash ^= actions_.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -15186,16 +17415,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (StepNumber != 0) { output.WriteRawTag(8); output.WriteInt32(StepNumber); @@ -15204,33 +17435,39 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (StepNumber != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (StepNumber != 0) + { output.WriteRawTag(8); output.WriteInt32(StepNumber); } actions_.WriteTo(ref output, _repeated_actions_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (StepNumber != 0) { + if (StepNumber != 0) + { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StepNumber); } size += actions_.CalculateSize(_repeated_actions_codec); - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -15238,11 +17475,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Step other) { - if (other == null) { + public void MergeFrom(Step other) + { + if (other == null) + { return; } - if (other.StepNumber != 0) { + if (other.StepNumber != 0) + { StepNumber = other.StepNumber; } actions_.Add(other.actions_); @@ -15251,10 +17491,11 @@ public void MergeFrom(Step other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -15271,39 +17512,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - StepNumber = input.ReadInt32(); - break; - } - case 18: { - actions_.AddEntriesFrom(ref input, _repeated_actions_codec); - break; - } + case 8: + { + StepNumber = input.ReadInt32(); + break; + } + case 18: + { + actions_.AddEntriesFrom(ref input, _repeated_actions_codec); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Action : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Action()); private pb::UnknownFieldSet _unknownFields; @@ -15313,19 +17559,22 @@ public sealed partial class Action : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Action() { + public Action() + { OnConstruction(); } @@ -15333,8 +17582,10 @@ public Action() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Action(Action other) : this() { - switch (other.ActionTypeCase) { + public Action(Action other) : this() + { + switch (other.ActionTypeCase) + { case ActionTypeOneofCase.SkillAction: SkillAction = other.SkillAction.Clone(); break; @@ -15369,7 +17620,8 @@ public Action(Action other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Action Clone() { + public Action Clone() + { return new Action(this); } @@ -15377,9 +17629,11 @@ public Action Clone() { public const int SkillActionFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.SkillAction SkillAction { - get { return actionTypeCase_ == ActionTypeOneofCase.SkillAction ? (global::Protobuf.Messages.SkillAction) actionType_ : null; } - set { + public global::Protobuf.Messages.SkillAction SkillAction + { + get { return actionTypeCase_ == ActionTypeOneofCase.SkillAction ? (global::Protobuf.Messages.SkillAction)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.SkillAction; } @@ -15389,9 +17643,11 @@ public Action Clone() { public const int ModifierReceivedFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.ModifierReceived ModifierReceived { - get { return actionTypeCase_ == ActionTypeOneofCase.ModifierReceived ? (global::Protobuf.Messages.ModifierReceived) actionType_ : null; } - set { + public global::Protobuf.Messages.ModifierReceived ModifierReceived + { + get { return actionTypeCase_ == ActionTypeOneofCase.ModifierReceived ? (global::Protobuf.Messages.ModifierReceived)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.ModifierReceived; } @@ -15401,9 +17657,11 @@ public Action Clone() { public const int TagReceivedFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.TagReceived TagReceived { - get { return actionTypeCase_ == ActionTypeOneofCase.TagReceived ? (global::Protobuf.Messages.TagReceived) actionType_ : null; } - set { + public global::Protobuf.Messages.TagReceived TagReceived + { + get { return actionTypeCase_ == ActionTypeOneofCase.TagReceived ? (global::Protobuf.Messages.TagReceived)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.TagReceived; } @@ -15413,9 +17671,11 @@ public Action Clone() { public const int ModifierExpiredFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.ModifierExpired ModifierExpired { - get { return actionTypeCase_ == ActionTypeOneofCase.ModifierExpired ? (global::Protobuf.Messages.ModifierExpired) actionType_ : null; } - set { + public global::Protobuf.Messages.ModifierExpired ModifierExpired + { + get { return actionTypeCase_ == ActionTypeOneofCase.ModifierExpired ? (global::Protobuf.Messages.ModifierExpired)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.ModifierExpired; } @@ -15425,9 +17685,11 @@ public Action Clone() { public const int TagExpiredFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.TagExpired TagExpired { - get { return actionTypeCase_ == ActionTypeOneofCase.TagExpired ? (global::Protobuf.Messages.TagExpired) actionType_ : null; } - set { + public global::Protobuf.Messages.TagExpired TagExpired + { + get { return actionTypeCase_ == ActionTypeOneofCase.TagExpired ? (global::Protobuf.Messages.TagExpired)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.TagExpired; } @@ -15437,9 +17699,11 @@ public Action Clone() { public const int DeathFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Death Death { - get { return actionTypeCase_ == ActionTypeOneofCase.Death ? (global::Protobuf.Messages.Death) actionType_ : null; } - set { + public global::Protobuf.Messages.Death Death + { + get { return actionTypeCase_ == ActionTypeOneofCase.Death ? (global::Protobuf.Messages.Death)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.Death; } @@ -15449,9 +17713,11 @@ public Action Clone() { public const int ExecutionReceivedFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.ExecutionReceived ExecutionReceived { - get { return actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived ? (global::Protobuf.Messages.ExecutionReceived) actionType_ : null; } - set { + public global::Protobuf.Messages.ExecutionReceived ExecutionReceived + { + get { return actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived ? (global::Protobuf.Messages.ExecutionReceived)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.ExecutionReceived; } @@ -15461,9 +17727,11 @@ public Action Clone() { public const int EnergyRegenFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.EnergyRegen EnergyRegen { - get { return actionTypeCase_ == ActionTypeOneofCase.EnergyRegen ? (global::Protobuf.Messages.EnergyRegen) actionType_ : null; } - set { + public global::Protobuf.Messages.EnergyRegen EnergyRegen + { + get { return actionTypeCase_ == ActionTypeOneofCase.EnergyRegen ? (global::Protobuf.Messages.EnergyRegen)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.EnergyRegen; } @@ -15473,9 +17741,11 @@ public Action Clone() { public const int StatOverrideFieldNumber = 9; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.StatOverride StatOverride { - get { return actionTypeCase_ == ActionTypeOneofCase.StatOverride ? (global::Protobuf.Messages.StatOverride) actionType_ : null; } - set { + public global::Protobuf.Messages.StatOverride StatOverride + { + get { return actionTypeCase_ == ActionTypeOneofCase.StatOverride ? (global::Protobuf.Messages.StatOverride)actionType_ : null; } + set + { actionType_ = value; actionTypeCase_ = value == null ? ActionTypeOneofCase.None : ActionTypeOneofCase.StatOverride; } @@ -15483,7 +17753,8 @@ public Action Clone() { private object actionType_; /// Enum of possible cases for the "action_type" oneof. - public enum ActionTypeOneofCase { + public enum ActionTypeOneofCase + { None = 0, SkillAction = 1, ModifierReceived = 2, @@ -15498,30 +17769,36 @@ public enum ActionTypeOneofCase { private ActionTypeOneofCase actionTypeCase_ = ActionTypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ActionTypeOneofCase ActionTypeCase { + public ActionTypeOneofCase ActionTypeCase + { get { return actionTypeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearActionType() { + public void ClearActionType() + { actionTypeCase_ = ActionTypeOneofCase.None; actionType_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Action); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Action other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Action other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (!object.Equals(SkillAction, other.SkillAction)) return false; @@ -15539,7 +17816,8 @@ public bool Equals(Action other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) hash ^= SkillAction.GetHashCode(); if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) hash ^= ModifierReceived.GetHashCode(); @@ -15550,8 +17828,9 @@ public override int GetHashCode() { if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) hash ^= ExecutionReceived.GetHashCode(); if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) hash ^= EnergyRegen.GetHashCode(); if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) hash ^= StatOverride.GetHashCode(); - hash ^= (int) actionTypeCase_; - if (_unknownFields != null) { + hash ^= (int)actionTypeCase_; + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -15559,16 +17838,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) { output.WriteRawTag(10); output.WriteMessage(SkillAction); @@ -15608,87 +17889,109 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) + { output.WriteRawTag(10); output.WriteMessage(SkillAction); } - if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) + { output.WriteRawTag(18); output.WriteMessage(ModifierReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) + { output.WriteRawTag(26); output.WriteMessage(TagReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) { + if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) + { output.WriteRawTag(34); output.WriteMessage(ModifierExpired); } - if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) { + if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) + { output.WriteRawTag(42); output.WriteMessage(TagExpired); } - if (actionTypeCase_ == ActionTypeOneofCase.Death) { + if (actionTypeCase_ == ActionTypeOneofCase.Death) + { output.WriteRawTag(50); output.WriteMessage(Death); } - if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) + { output.WriteRawTag(58); output.WriteMessage(ExecutionReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) { + if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) + { output.WriteRawTag(66); output.WriteMessage(EnergyRegen); } - if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) { + if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) + { output.WriteRawTag(74); output.WriteMessage(StatOverride); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) { + if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkillAction); } - if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModifierReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TagReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) { + if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModifierExpired); } - if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) { + if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TagExpired); } - if (actionTypeCase_ == ActionTypeOneofCase.Death) { + if (actionTypeCase_ == ActionTypeOneofCase.Death) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Death); } - if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) { + if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionReceived); } - if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) { + if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnergyRegen); } - if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) { + if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatOverride); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -15696,61 +17999,73 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Action other) { - if (other == null) { + public void MergeFrom(Action other) + { + if (other == null) + { return; } - switch (other.ActionTypeCase) { + switch (other.ActionTypeCase) + { case ActionTypeOneofCase.SkillAction: - if (SkillAction == null) { + if (SkillAction == null) + { SkillAction = new global::Protobuf.Messages.SkillAction(); } SkillAction.MergeFrom(other.SkillAction); break; case ActionTypeOneofCase.ModifierReceived: - if (ModifierReceived == null) { + if (ModifierReceived == null) + { ModifierReceived = new global::Protobuf.Messages.ModifierReceived(); } ModifierReceived.MergeFrom(other.ModifierReceived); break; case ActionTypeOneofCase.TagReceived: - if (TagReceived == null) { + if (TagReceived == null) + { TagReceived = new global::Protobuf.Messages.TagReceived(); } TagReceived.MergeFrom(other.TagReceived); break; case ActionTypeOneofCase.ModifierExpired: - if (ModifierExpired == null) { + if (ModifierExpired == null) + { ModifierExpired = new global::Protobuf.Messages.ModifierExpired(); } ModifierExpired.MergeFrom(other.ModifierExpired); break; case ActionTypeOneofCase.TagExpired: - if (TagExpired == null) { + if (TagExpired == null) + { TagExpired = new global::Protobuf.Messages.TagExpired(); } TagExpired.MergeFrom(other.TagExpired); break; case ActionTypeOneofCase.Death: - if (Death == null) { + if (Death == null) + { Death = new global::Protobuf.Messages.Death(); } Death.MergeFrom(other.Death); break; case ActionTypeOneofCase.ExecutionReceived: - if (ExecutionReceived == null) { + if (ExecutionReceived == null) + { ExecutionReceived = new global::Protobuf.Messages.ExecutionReceived(); } ExecutionReceived.MergeFrom(other.ExecutionReceived); break; case ActionTypeOneofCase.EnergyRegen: - if (EnergyRegen == null) { + if (EnergyRegen == null) + { EnergyRegen = new global::Protobuf.Messages.EnergyRegen(); } EnergyRegen.MergeFrom(other.EnergyRegen); break; case ActionTypeOneofCase.StatOverride: - if (StatOverride == null) { + if (StatOverride == null) + { StatOverride = new global::Protobuf.Messages.StatOverride(); } StatOverride.MergeFrom(other.StatOverride); @@ -15762,111 +18077,16 @@ public void MergeFrom(Action other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Protobuf.Messages.SkillAction subBuilder = new global::Protobuf.Messages.SkillAction(); - if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) { - subBuilder.MergeFrom(SkillAction); - } - input.ReadMessage(subBuilder); - SkillAction = subBuilder; - break; - } - case 18: { - global::Protobuf.Messages.ModifierReceived subBuilder = new global::Protobuf.Messages.ModifierReceived(); - if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) { - subBuilder.MergeFrom(ModifierReceived); - } - input.ReadMessage(subBuilder); - ModifierReceived = subBuilder; - break; - } - case 26: { - global::Protobuf.Messages.TagReceived subBuilder = new global::Protobuf.Messages.TagReceived(); - if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) { - subBuilder.MergeFrom(TagReceived); - } - input.ReadMessage(subBuilder); - TagReceived = subBuilder; - break; - } - case 34: { - global::Protobuf.Messages.ModifierExpired subBuilder = new global::Protobuf.Messages.ModifierExpired(); - if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) { - subBuilder.MergeFrom(ModifierExpired); - } - input.ReadMessage(subBuilder); - ModifierExpired = subBuilder; - break; - } - case 42: { - global::Protobuf.Messages.TagExpired subBuilder = new global::Protobuf.Messages.TagExpired(); - if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) { - subBuilder.MergeFrom(TagExpired); - } - input.ReadMessage(subBuilder); - TagExpired = subBuilder; - break; - } - case 50: { - global::Protobuf.Messages.Death subBuilder = new global::Protobuf.Messages.Death(); - if (actionTypeCase_ == ActionTypeOneofCase.Death) { - subBuilder.MergeFrom(Death); - } - input.ReadMessage(subBuilder); - Death = subBuilder; - break; - } - case 58: { - global::Protobuf.Messages.ExecutionReceived subBuilder = new global::Protobuf.Messages.ExecutionReceived(); - if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) { - subBuilder.MergeFrom(ExecutionReceived); - } - input.ReadMessage(subBuilder); - ExecutionReceived = subBuilder; - break; - } - case 66: { - global::Protobuf.Messages.EnergyRegen subBuilder = new global::Protobuf.Messages.EnergyRegen(); - if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) { - subBuilder.MergeFrom(EnergyRegen); - } - input.ReadMessage(subBuilder); - EnergyRegen = subBuilder; - break; - } - case 74: { - global::Protobuf.Messages.StatOverride subBuilder = new global::Protobuf.Messages.StatOverride(); - if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) { - subBuilder.MergeFrom(StatOverride); - } - input.ReadMessage(subBuilder); - StatOverride = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Protobuf.Messages.SkillAction subBuilder = new global::Protobuf.Messages.SkillAction(); @@ -15951,16 +18171,133 @@ public void MergeFrom(pb::CodedInputStream input) { } } } +#endif + } + +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { + uint tag; + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + { + global::Protobuf.Messages.SkillAction subBuilder = new global::Protobuf.Messages.SkillAction(); + if (actionTypeCase_ == ActionTypeOneofCase.SkillAction) + { + subBuilder.MergeFrom(SkillAction); + } + input.ReadMessage(subBuilder); + SkillAction = subBuilder; + break; + } + case 18: + { + global::Protobuf.Messages.ModifierReceived subBuilder = new global::Protobuf.Messages.ModifierReceived(); + if (actionTypeCase_ == ActionTypeOneofCase.ModifierReceived) + { + subBuilder.MergeFrom(ModifierReceived); + } + input.ReadMessage(subBuilder); + ModifierReceived = subBuilder; + break; + } + case 26: + { + global::Protobuf.Messages.TagReceived subBuilder = new global::Protobuf.Messages.TagReceived(); + if (actionTypeCase_ == ActionTypeOneofCase.TagReceived) + { + subBuilder.MergeFrom(TagReceived); + } + input.ReadMessage(subBuilder); + TagReceived = subBuilder; + break; + } + case 34: + { + global::Protobuf.Messages.ModifierExpired subBuilder = new global::Protobuf.Messages.ModifierExpired(); + if (actionTypeCase_ == ActionTypeOneofCase.ModifierExpired) + { + subBuilder.MergeFrom(ModifierExpired); + } + input.ReadMessage(subBuilder); + ModifierExpired = subBuilder; + break; + } + case 42: + { + global::Protobuf.Messages.TagExpired subBuilder = new global::Protobuf.Messages.TagExpired(); + if (actionTypeCase_ == ActionTypeOneofCase.TagExpired) + { + subBuilder.MergeFrom(TagExpired); + } + input.ReadMessage(subBuilder); + TagExpired = subBuilder; + break; + } + case 50: + { + global::Protobuf.Messages.Death subBuilder = new global::Protobuf.Messages.Death(); + if (actionTypeCase_ == ActionTypeOneofCase.Death) + { + subBuilder.MergeFrom(Death); + } + input.ReadMessage(subBuilder); + Death = subBuilder; + break; + } + case 58: + { + global::Protobuf.Messages.ExecutionReceived subBuilder = new global::Protobuf.Messages.ExecutionReceived(); + if (actionTypeCase_ == ActionTypeOneofCase.ExecutionReceived) + { + subBuilder.MergeFrom(ExecutionReceived); + } + input.ReadMessage(subBuilder); + ExecutionReceived = subBuilder; + break; + } + case 66: + { + global::Protobuf.Messages.EnergyRegen subBuilder = new global::Protobuf.Messages.EnergyRegen(); + if (actionTypeCase_ == ActionTypeOneofCase.EnergyRegen) + { + subBuilder.MergeFrom(EnergyRegen); + } + input.ReadMessage(subBuilder); + EnergyRegen = subBuilder; + break; + } + case 74: + { + global::Protobuf.Messages.StatOverride subBuilder = new global::Protobuf.Messages.StatOverride(); + if (actionTypeCase_ == ActionTypeOneofCase.StatOverride) + { + subBuilder.MergeFrom(StatOverride); + } + input.ReadMessage(subBuilder); + StatOverride = subBuilder; + break; + } + } + } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class StatAffected : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StatAffected()); private pb::UnknownFieldSet _unknownFields; @@ -15970,19 +18307,22 @@ public sealed partial class StatAffected : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatAffected() { + public StatAffected() + { OnConstruction(); } @@ -15990,7 +18330,8 @@ public StatAffected() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatAffected(StatAffected other) : this() { + public StatAffected(StatAffected other) : this() + { stat_ = other.stat_; amount_ = other.amount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -15998,7 +18339,8 @@ public StatAffected(StatAffected other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatAffected Clone() { + public StatAffected Clone() + { return new StatAffected(this); } @@ -16007,9 +18349,11 @@ public StatAffected Clone() { private global::Protobuf.Messages.Stat stat_ = global::Protobuf.Messages.Stat.Health; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.Stat Stat { + public global::Protobuf.Messages.Stat Stat + { get { return stat_; } - set { + set + { stat_ = value; } } @@ -16019,26 +18363,32 @@ public StatAffected Clone() { private float amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Amount { + public float Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as StatAffected); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StatAffected other) { - if (ReferenceEquals(other, null)) { + public bool Equals(StatAffected other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (Stat != other.Stat) return false; @@ -16048,11 +18398,13 @@ public bool Equals(StatAffected other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (Stat != global::Protobuf.Messages.Stat.Health) hash ^= Stat.GetHashCode(); if (Amount != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -16060,16 +18412,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (Stat != global::Protobuf.Messages.Stat.Health) { output.WriteRawTag(8); output.WriteEnum((int) Stat); @@ -16081,38 +18435,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Stat != global::Protobuf.Messages.Stat.Health) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (Stat != global::Protobuf.Messages.Stat.Health) + { output.WriteRawTag(8); - output.WriteEnum((int) Stat); + output.WriteEnum((int)Stat); } - if (Amount != 0F) { + if (Amount != 0F) + { output.WriteRawTag(21); output.WriteFloat(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (Stat != global::Protobuf.Messages.Stat.Health) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Stat); + if (Stat != global::Protobuf.Messages.Stat.Health) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Stat); } - if (Amount != 0F) { + if (Amount != 0F) + { size += 1 + 4; } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -16120,14 +18482,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StatAffected other) { - if (other == null) { + public void MergeFrom(StatAffected other) + { + if (other == null) + { return; } - if (other.Stat != global::Protobuf.Messages.Stat.Health) { + if (other.Stat != global::Protobuf.Messages.Stat.Health) + { Stat = other.Stat; } - if (other.Amount != 0F) { + if (other.Amount != 0F) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -16135,10 +18501,11 @@ public void MergeFrom(StatAffected other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -16155,39 +18522,44 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Stat = (global::Protobuf.Messages.Stat) input.ReadEnum(); - break; - } - case 21: { - Amount = input.ReadFloat(); - break; - } + case 8: + { + Stat = (global::Protobuf.Messages.Stat)input.ReadEnum(); + break; + } + case 21: + { + Amount = input.ReadFloat(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SkillAction : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SkillAction()); private pb::UnknownFieldSet _unknownFields; @@ -16197,19 +18569,22 @@ public sealed partial class SkillAction : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SkillAction() { + public SkillAction() + { OnConstruction(); } @@ -16217,7 +18592,8 @@ public SkillAction() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SkillAction(SkillAction other) : this() { + public SkillAction(SkillAction other) : this() + { casterId_ = other.casterId_; targetIds_ = other.targetIds_.Clone(); skillId_ = other.skillId_; @@ -16227,7 +18603,8 @@ public SkillAction(SkillAction other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SkillAction Clone() { + public SkillAction Clone() + { return new SkillAction(this); } @@ -16236,9 +18613,11 @@ public SkillAction Clone() { private string casterId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CasterId { + public string CasterId + { get { return casterId_; } - set { + set + { casterId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -16250,7 +18629,8 @@ public string CasterId { private readonly pbc::RepeatedField targetIds_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TargetIds { + public pbc::RepeatedField TargetIds + { get { return targetIds_; } } @@ -16259,9 +18639,11 @@ public string CasterId { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -16271,30 +18653,36 @@ public string SkillId { private global::Protobuf.Messages.SkillActionType skillActionType_ = global::Protobuf.Messages.SkillActionType.AnimationStart; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.SkillActionType SkillActionType { + public global::Protobuf.Messages.SkillActionType SkillActionType + { get { return skillActionType_; } - set { + set + { skillActionType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as SkillAction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SkillAction other) { - if (ReferenceEquals(other, null)) { + public bool Equals(SkillAction other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (CasterId != other.CasterId) return false; - if(!targetIds_.Equals(other.targetIds_)) return false; + if (!targetIds_.Equals(other.targetIds_)) return false; if (SkillId != other.SkillId) return false; if (SkillActionType != other.SkillActionType) return false; return Equals(_unknownFields, other._unknownFields); @@ -16302,13 +18690,15 @@ public bool Equals(SkillAction other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (CasterId.Length != 0) hash ^= CasterId.GetHashCode(); hash ^= targetIds_.GetHashCode(); if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) hash ^= SkillActionType.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -16316,16 +18706,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (CasterId.Length != 0) { output.WriteRawTag(10); output.WriteString(CasterId); @@ -16342,47 +18734,57 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CasterId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (CasterId.Length != 0) + { output.WriteRawTag(10); output.WriteString(CasterId); } targetIds_.WriteTo(ref output, _repeated_targetIds_codec); - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { output.WriteRawTag(26); output.WriteString(SkillId); } - if (SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) { + if (SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) + { output.WriteRawTag(32); - output.WriteEnum((int) SkillActionType); + output.WriteEnum((int)SkillActionType); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (CasterId.Length != 0) { + if (CasterId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(CasterId); } size += targetIds_.CalculateSize(_repeated_targetIds_codec); - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SkillActionType); + if (SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) + { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)SkillActionType); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -16390,18 +18792,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SkillAction other) { - if (other == null) { + public void MergeFrom(SkillAction other) + { + if (other == null) + { return; } - if (other.CasterId.Length != 0) { + if (other.CasterId.Length != 0) + { CasterId = other.CasterId; } targetIds_.Add(other.targetIds_); - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) { + if (other.SkillActionType != global::Protobuf.Messages.SkillActionType.AnimationStart) + { SkillActionType = other.SkillActionType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -16409,10 +18816,11 @@ public void MergeFrom(SkillAction other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -16437,47 +18845,54 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - CasterId = input.ReadString(); - break; - } - case 18: { - targetIds_.AddEntriesFrom(ref input, _repeated_targetIds_codec); - break; - } - case 26: { - SkillId = input.ReadString(); - break; - } - case 32: { - SkillActionType = (global::Protobuf.Messages.SkillActionType) input.ReadEnum(); - break; - } + case 10: + { + CasterId = input.ReadString(); + break; + } + case 18: + { + targetIds_.AddEntriesFrom(ref input, _repeated_targetIds_codec); + break; + } + case 26: + { + SkillId = input.ReadString(); + break; + } + case 32: + { + SkillActionType = (global::Protobuf.Messages.SkillActionType)input.ReadEnum(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ExecutionReceived : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionReceived()); private pb::UnknownFieldSet _unknownFields; @@ -16487,19 +18902,22 @@ public sealed partial class ExecutionReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionReceived() { + public ExecutionReceived() + { OnConstruction(); } @@ -16507,7 +18925,8 @@ public ExecutionReceived() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionReceived(ExecutionReceived other) : this() { + public ExecutionReceived(ExecutionReceived other) : this() + { targetId_ = other.targetId_; statAffected_ = other.statAffected_ != null ? other.statAffected_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -16515,7 +18934,8 @@ public ExecutionReceived(ExecutionReceived other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionReceived Clone() { + public ExecutionReceived Clone() + { return new ExecutionReceived(this); } @@ -16524,9 +18944,11 @@ public ExecutionReceived Clone() { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -16536,26 +18958,32 @@ public string TargetId { private global::Protobuf.Messages.StatAffected statAffected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.StatAffected StatAffected { + public global::Protobuf.Messages.StatAffected StatAffected + { get { return statAffected_; } - set { + set + { statAffected_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as ExecutionReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionReceived other) { - if (ReferenceEquals(other, null)) { + public bool Equals(ExecutionReceived other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (TargetId != other.TargetId) return false; @@ -16565,11 +18993,13 @@ public bool Equals(ExecutionReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (statAffected_ != null) hash ^= StatAffected.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -16577,16 +19007,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (TargetId.Length != 0) { output.WriteRawTag(10); output.WriteString(TargetId); @@ -16598,38 +19030,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (TargetId.Length != 0) + { output.WriteRawTag(10); output.WriteString(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { output.WriteRawTag(18); output.WriteMessage(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -16637,15 +19077,20 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionReceived other) { - if (other == null) { + public void MergeFrom(ExecutionReceived other) + { + if (other == null) + { return; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.statAffected_ != null) { - if (statAffected_ == null) { + if (other.statAffected_ != null) + { + if (statAffected_ == null) + { StatAffected = new global::Protobuf.Messages.StatAffected(); } StatAffected.MergeFrom(other.StatAffected); @@ -16655,10 +19100,11 @@ public void MergeFrom(ExecutionReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -16678,42 +19124,48 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - TargetId = input.ReadString(); - break; - } - case 18: { - if (statAffected_ == null) { - StatAffected = new global::Protobuf.Messages.StatAffected(); + case 10: + { + TargetId = input.ReadString(); + break; + } + case 18: + { + if (statAffected_ == null) + { + StatAffected = new global::Protobuf.Messages.StatAffected(); + } + input.ReadMessage(StatAffected); + break; } - input.ReadMessage(StatAffected); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ModifierReceived : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifierReceived()); private pb::UnknownFieldSet _unknownFields; @@ -16723,19 +19175,22 @@ public sealed partial class ModifierReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierReceived() { + public ModifierReceived() + { OnConstruction(); } @@ -16743,7 +19198,8 @@ public ModifierReceived() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierReceived(ModifierReceived other) : this() { + public ModifierReceived(ModifierReceived other) : this() + { skillId_ = other.skillId_; targetId_ = other.targetId_; statAffected_ = other.statAffected_ != null ? other.statAffected_.Clone() : null; @@ -16752,7 +19208,8 @@ public ModifierReceived(ModifierReceived other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierReceived Clone() { + public ModifierReceived Clone() + { return new ModifierReceived(this); } @@ -16761,9 +19218,11 @@ public ModifierReceived Clone() { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -16773,9 +19232,11 @@ public string SkillId { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -16785,26 +19246,32 @@ public string TargetId { private global::Protobuf.Messages.StatAffected statAffected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.StatAffected StatAffected { + public global::Protobuf.Messages.StatAffected StatAffected + { get { return statAffected_; } - set { + set + { statAffected_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as ModifierReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ModifierReceived other) { - if (ReferenceEquals(other, null)) { + public bool Equals(ModifierReceived other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (SkillId != other.SkillId) return false; @@ -16815,12 +19282,14 @@ public bool Equals(ModifierReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (statAffected_ != null) hash ^= StatAffected.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -16828,16 +19297,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (SkillId.Length != 0) { output.WriteRawTag(10); output.WriteString(SkillId); @@ -16853,45 +19324,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SkillId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (SkillId.Length != 0) + { output.WriteRawTag(10); output.WriteString(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { output.WriteRawTag(18); output.WriteString(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { output.WriteRawTag(26); output.WriteMessage(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -16899,18 +19380,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ModifierReceived other) { - if (other == null) { + public void MergeFrom(ModifierReceived other) + { + if (other == null) + { return; } - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.statAffected_ != null) { - if (statAffected_ == null) { + if (other.statAffected_ != null) + { + if (statAffected_ == null) + { StatAffected = new global::Protobuf.Messages.StatAffected(); } StatAffected.MergeFrom(other.StatAffected); @@ -16920,10 +19407,11 @@ public void MergeFrom(ModifierReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -16947,46 +19435,53 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - SkillId = input.ReadString(); - break; - } - case 18: { - TargetId = input.ReadString(); - break; - } - case 26: { - if (statAffected_ == null) { - StatAffected = new global::Protobuf.Messages.StatAffected(); + case 10: + { + SkillId = input.ReadString(); + break; + } + case 18: + { + TargetId = input.ReadString(); + break; + } + case 26: + { + if (statAffected_ == null) + { + StatAffected = new global::Protobuf.Messages.StatAffected(); + } + input.ReadMessage(StatAffected); + break; } - input.ReadMessage(StatAffected); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class TagReceived : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagReceived()); private pb::UnknownFieldSet _unknownFields; @@ -16996,19 +19491,22 @@ public sealed partial class TagReceived : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagReceived() { + public TagReceived() + { OnConstruction(); } @@ -17016,7 +19514,8 @@ public TagReceived() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagReceived(TagReceived other) : this() { + public TagReceived(TagReceived other) : this() + { skillId_ = other.skillId_; targetId_ = other.targetId_; tagName_ = other.tagName_; @@ -17025,7 +19524,8 @@ public TagReceived(TagReceived other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagReceived Clone() { + public TagReceived Clone() + { return new TagReceived(this); } @@ -17034,9 +19534,11 @@ public TagReceived Clone() { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17046,9 +19548,11 @@ public string SkillId { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17058,26 +19562,32 @@ public string TargetId { private string tagName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TagName { + public string TagName + { get { return tagName_; } - set { + set + { tagName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as TagReceived); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TagReceived other) { - if (ReferenceEquals(other, null)) { + public bool Equals(TagReceived other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (SkillId != other.SkillId) return false; @@ -17088,12 +19598,14 @@ public bool Equals(TagReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (TagName.Length != 0) hash ^= TagName.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -17101,16 +19613,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (SkillId.Length != 0) { output.WriteRawTag(10); output.WriteString(SkillId); @@ -17126,45 +19640,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SkillId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (SkillId.Length != 0) + { output.WriteRawTag(10); output.WriteString(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { output.WriteRawTag(18); output.WriteString(TargetId); } - if (TagName.Length != 0) { + if (TagName.Length != 0) + { output.WriteRawTag(26); output.WriteString(TagName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (TagName.Length != 0) { + if (TagName.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TagName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -17172,17 +19696,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TagReceived other) { - if (other == null) { + public void MergeFrom(TagReceived other) + { + if (other == null) + { return; } - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.TagName.Length != 0) { + if (other.TagName.Length != 0) + { TagName = other.TagName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -17190,10 +19719,11 @@ public void MergeFrom(TagReceived other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -17214,43 +19744,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - SkillId = input.ReadString(); - break; - } - case 18: { - TargetId = input.ReadString(); - break; - } - case 26: { - TagName = input.ReadString(); - break; - } + case 10: + { + SkillId = input.ReadString(); + break; + } + case 18: + { + TargetId = input.ReadString(); + break; + } + case 26: + { + TagName = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ModifierExpired : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifierExpired()); private pb::UnknownFieldSet _unknownFields; @@ -17260,19 +19796,22 @@ public sealed partial class ModifierExpired : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierExpired() { + public ModifierExpired() + { OnConstruction(); } @@ -17280,7 +19819,8 @@ public ModifierExpired() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierExpired(ModifierExpired other) : this() { + public ModifierExpired(ModifierExpired other) : this() + { skillId_ = other.skillId_; targetId_ = other.targetId_; statAffected_ = other.statAffected_ != null ? other.statAffected_.Clone() : null; @@ -17289,7 +19829,8 @@ public ModifierExpired(ModifierExpired other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ModifierExpired Clone() { + public ModifierExpired Clone() + { return new ModifierExpired(this); } @@ -17298,9 +19839,11 @@ public ModifierExpired Clone() { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17310,9 +19853,11 @@ public string SkillId { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17322,26 +19867,32 @@ public string TargetId { private global::Protobuf.Messages.StatAffected statAffected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.StatAffected StatAffected { + public global::Protobuf.Messages.StatAffected StatAffected + { get { return statAffected_; } - set { + set + { statAffected_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as ModifierExpired); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ModifierExpired other) { - if (ReferenceEquals(other, null)) { + public bool Equals(ModifierExpired other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (SkillId != other.SkillId) return false; @@ -17352,12 +19903,14 @@ public bool Equals(ModifierExpired other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (statAffected_ != null) hash ^= StatAffected.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -17365,16 +19918,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (SkillId.Length != 0) { output.WriteRawTag(10); output.WriteString(SkillId); @@ -17390,45 +19945,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SkillId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (SkillId.Length != 0) + { output.WriteRawTag(10); output.WriteString(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { output.WriteRawTag(18); output.WriteString(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { output.WriteRawTag(26); output.WriteMessage(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -17436,18 +20001,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ModifierExpired other) { - if (other == null) { + public void MergeFrom(ModifierExpired other) + { + if (other == null) + { return; } - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.statAffected_ != null) { - if (statAffected_ == null) { + if (other.statAffected_ != null) + { + if (statAffected_ == null) + { StatAffected = new global::Protobuf.Messages.StatAffected(); } StatAffected.MergeFrom(other.StatAffected); @@ -17457,10 +20028,11 @@ public void MergeFrom(ModifierExpired other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -17484,46 +20056,53 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - SkillId = input.ReadString(); - break; - } - case 18: { - TargetId = input.ReadString(); - break; - } - case 26: { - if (statAffected_ == null) { - StatAffected = new global::Protobuf.Messages.StatAffected(); + case 10: + { + SkillId = input.ReadString(); + break; + } + case 18: + { + TargetId = input.ReadString(); + break; + } + case 26: + { + if (statAffected_ == null) + { + StatAffected = new global::Protobuf.Messages.StatAffected(); + } + input.ReadMessage(StatAffected); + break; } - input.ReadMessage(StatAffected); - break; - } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class TagExpired : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TagExpired()); private pb::UnknownFieldSet _unknownFields; @@ -17533,19 +20112,22 @@ public sealed partial class TagExpired : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagExpired() { + public TagExpired() + { OnConstruction(); } @@ -17553,7 +20135,8 @@ public TagExpired() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagExpired(TagExpired other) : this() { + public TagExpired(TagExpired other) : this() + { skillId_ = other.skillId_; targetId_ = other.targetId_; tagName_ = other.tagName_; @@ -17562,7 +20145,8 @@ public TagExpired(TagExpired other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TagExpired Clone() { + public TagExpired Clone() + { return new TagExpired(this); } @@ -17571,9 +20155,11 @@ public TagExpired Clone() { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17583,9 +20169,11 @@ public string SkillId { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -17595,26 +20183,32 @@ public string TargetId { private string tagName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TagName { + public string TagName + { get { return tagName_; } - set { + set + { tagName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as TagExpired); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TagExpired other) { - if (ReferenceEquals(other, null)) { + public bool Equals(TagExpired other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (SkillId != other.SkillId) return false; @@ -17625,12 +20219,14 @@ public bool Equals(TagExpired other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (TagName.Length != 0) hash ^= TagName.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -17638,16 +20234,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (SkillId.Length != 0) { output.WriteRawTag(10); output.WriteString(SkillId); @@ -17663,45 +20261,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SkillId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (SkillId.Length != 0) + { output.WriteRawTag(10); output.WriteString(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { output.WriteRawTag(18); output.WriteString(TargetId); } - if (TagName.Length != 0) { + if (TagName.Length != 0) + { output.WriteRawTag(26); output.WriteString(TagName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (TagName.Length != 0) { + if (TagName.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TagName); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -17709,17 +20317,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TagExpired other) { - if (other == null) { + public void MergeFrom(TagExpired other) + { + if (other == null) + { return; } - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.TagName.Length != 0) { + if (other.TagName.Length != 0) + { TagName = other.TagName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -17727,10 +20340,11 @@ public void MergeFrom(TagExpired other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -17751,43 +20365,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - SkillId = input.ReadString(); - break; - } - case 18: { - TargetId = input.ReadString(); - break; - } - case 26: { - TagName = input.ReadString(); - break; - } + case 10: + { + SkillId = input.ReadString(); + break; + } + case 18: + { + TargetId = input.ReadString(); + break; + } + case 26: + { + TagName = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class Death : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Death()); private pb::UnknownFieldSet _unknownFields; @@ -17797,19 +20417,22 @@ public sealed partial class Death : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Death() { + public Death() + { OnConstruction(); } @@ -17817,14 +20440,16 @@ public Death() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Death(Death other) : this() { + public Death(Death other) : this() + { unitId_ = other.unitId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Death Clone() { + public Death Clone() + { return new Death(this); } @@ -17833,26 +20458,32 @@ public Death Clone() { private string unitId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnitId { + public string UnitId + { get { return unitId_; } - set { + set + { unitId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as Death); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Death other) { - if (ReferenceEquals(other, null)) { + public bool Equals(Death other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (UnitId != other.UnitId) return false; @@ -17861,10 +20492,12 @@ public bool Equals(Death other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (UnitId.Length != 0) hash ^= UnitId.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -17872,16 +20505,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (UnitId.Length != 0) { output.WriteRawTag(10); output.WriteString(UnitId); @@ -17889,31 +20524,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UnitId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (UnitId.Length != 0) + { output.WriteRawTag(10); output.WriteString(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (UnitId.Length != 0) { + if (UnitId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(UnitId); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -17921,11 +20562,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Death other) { - if (other == null) { + public void MergeFrom(Death other) + { + if (other == null) + { return; } - if (other.UnitId.Length != 0) { + if (other.UnitId.Length != 0) + { UnitId = other.UnitId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -17933,10 +20577,11 @@ public void MergeFrom(Death other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -17949,35 +20594,39 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - UnitId = input.ReadString(); - break; - } + case 10: + { + UnitId = input.ReadString(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class EnergyRegen : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnergyRegen()); private pb::UnknownFieldSet _unknownFields; @@ -17987,19 +20636,22 @@ public sealed partial class EnergyRegen : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[63]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnergyRegen() { + public EnergyRegen() + { OnConstruction(); } @@ -18007,7 +20659,8 @@ public EnergyRegen() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnergyRegen(EnergyRegen other) : this() { + public EnergyRegen(EnergyRegen other) : this() + { targetId_ = other.targetId_; skillId_ = other.skillId_; amount_ = other.amount_; @@ -18016,7 +20669,8 @@ public EnergyRegen(EnergyRegen other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnergyRegen Clone() { + public EnergyRegen Clone() + { return new EnergyRegen(this); } @@ -18025,9 +20679,11 @@ public EnergyRegen Clone() { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -18037,9 +20693,11 @@ public string TargetId { private string skillId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkillId { + public string SkillId + { get { return skillId_; } - set { + set + { skillId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -18049,26 +20707,32 @@ public string SkillId { private float amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Amount { + public float Amount + { get { return amount_; } - set { + set + { amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as EnergyRegen); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnergyRegen other) { - if (ReferenceEquals(other, null)) { + public bool Equals(EnergyRegen other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (TargetId != other.TargetId) return false; @@ -18079,12 +20743,14 @@ public bool Equals(EnergyRegen other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (SkillId.Length != 0) hash ^= SkillId.GetHashCode(); if (Amount != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -18092,16 +20758,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (TargetId.Length != 0) { output.WriteRawTag(10); output.WriteString(TargetId); @@ -18117,45 +20785,55 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (TargetId.Length != 0) + { output.WriteRawTag(10); output.WriteString(TargetId); } - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { output.WriteRawTag(18); output.WriteString(SkillId); } - if (Amount != 0F) { + if (Amount != 0F) + { output.WriteRawTag(29); output.WriteFloat(Amount); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (SkillId.Length != 0) { + if (SkillId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(SkillId); } - if (Amount != 0F) { + if (Amount != 0F) + { size += 1 + 4; } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -18163,17 +20841,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnergyRegen other) { - if (other == null) { + public void MergeFrom(EnergyRegen other) + { + if (other == null) + { return; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.SkillId.Length != 0) { + if (other.SkillId.Length != 0) + { SkillId = other.SkillId; } - if (other.Amount != 0F) { + if (other.Amount != 0F) + { Amount = other.Amount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -18181,10 +20864,11 @@ public void MergeFrom(EnergyRegen other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -18205,43 +20889,49 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - TargetId = input.ReadString(); - break; - } - case 18: { - SkillId = input.ReadString(); - break; - } - case 29: { - Amount = input.ReadFloat(); - break; - } + case 10: + { + TargetId = input.ReadString(); + break; + } + case 18: + { + SkillId = input.ReadString(); + break; + } + case 29: + { + Amount = input.ReadFloat(); + break; + } } } } - #endif +#endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class StatOverride : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage - #endif +#endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StatOverride()); private pb::UnknownFieldSet _unknownFields; @@ -18251,19 +20941,22 @@ public sealed partial class StatOverride : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { + public static pbr::MessageDescriptor Descriptor + { get { return global::Protobuf.Messages.GatewayReflection.Descriptor.MessageTypes[64]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { + pbr::MessageDescriptor pb::IMessage.Descriptor + { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatOverride() { + public StatOverride() + { OnConstruction(); } @@ -18271,7 +20964,8 @@ public StatOverride() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatOverride(StatOverride other) : this() { + public StatOverride(StatOverride other) : this() + { targetId_ = other.targetId_; statAffected_ = other.statAffected_ != null ? other.statAffected_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -18279,7 +20973,8 @@ public StatOverride(StatOverride other) : this() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StatOverride Clone() { + public StatOverride Clone() + { return new StatOverride(this); } @@ -18288,9 +20983,11 @@ public StatOverride Clone() { private string targetId_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetId { + public string TargetId + { get { return targetId_; } - set { + set + { targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -18300,26 +20997,32 @@ public string TargetId { private global::Protobuf.Messages.StatAffected statAffected_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Protobuf.Messages.StatAffected StatAffected { + public global::Protobuf.Messages.StatAffected StatAffected + { get { return statAffected_; } - set { + set + { statAffected_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { + public override bool Equals(object other) + { return Equals(other as StatOverride); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StatOverride other) { - if (ReferenceEquals(other, null)) { + public bool Equals(StatOverride other) + { + if (ReferenceEquals(other, null)) + { return false; } - if (ReferenceEquals(other, this)) { + if (ReferenceEquals(other, this)) + { return true; } if (TargetId != other.TargetId) return false; @@ -18329,11 +21032,13 @@ public bool Equals(StatOverride other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { + public override int GetHashCode() + { int hash = 1; if (TargetId.Length != 0) hash ^= TargetId.GetHashCode(); if (statAffected_ != null) hash ^= StatAffected.GetHashCode(); - if (_unknownFields != null) { + if (_unknownFields != null) + { hash ^= _unknownFields.GetHashCode(); } return hash; @@ -18341,16 +21046,18 @@ public override int GetHashCode() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + public override string ToString() + { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void WriteTo(pb::CodedOutputStream output) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); - #else +#else if (TargetId.Length != 0) { output.WriteRawTag(10); output.WriteString(TargetId); @@ -18362,38 +21069,46 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetId.Length != 0) { + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) + { + if (TargetId.Length != 0) + { output.WriteRawTag(10); output.WriteString(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { output.WriteRawTag(18); output.WriteMessage(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { _unknownFields.WriteTo(ref output); } } - #endif +#endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { + public int CalculateSize() + { int size = 0; - if (TargetId.Length != 0) { + if (TargetId.Length != 0) + { size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId); } - if (statAffected_ != null) { + if (statAffected_ != null) + { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatAffected); } - if (_unknownFields != null) { + if (_unknownFields != null) + { size += _unknownFields.CalculateSize(); } return size; @@ -18401,15 +21116,20 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StatOverride other) { - if (other == null) { + public void MergeFrom(StatOverride other) + { + if (other == null) + { return; } - if (other.TargetId.Length != 0) { + if (other.TargetId.Length != 0) + { TargetId = other.TargetId; } - if (other.statAffected_ != null) { - if (statAffected_ == null) { + if (other.statAffected_ != null) + { + if (statAffected_ == null) + { StatAffected = new global::Protobuf.Messages.StatAffected(); } StatAffected.MergeFrom(other.StatAffected); @@ -18419,10 +21139,11 @@ public void MergeFrom(StatOverride other) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + public void MergeFrom(pb::CodedInputStream input) + { +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); - #else +#else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -18442,34 +21163,40 @@ public void MergeFrom(pb::CodedInputStream input) { } } } - #endif +#endif } - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE +#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) + { uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + while ((tag = input.ReadTag()) != 0) + { + switch (tag) + { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - TargetId = input.ReadString(); - break; - } - case 18: { - if (statAffected_ == null) { - StatAffected = new global::Protobuf.Messages.StatAffected(); + case 10: + { + TargetId = input.ReadString(); + break; + } + case 18: + { + if (statAffected_ == null) + { + StatAffected = new global::Protobuf.Messages.StatAffected(); + } + input.ReadMessage(StatAffected); + break; } - input.ReadMessage(StatAffected); - break; - } } } } - #endif +#endif } diff --git a/client/Assets/Scripts/Shared/LevelManager.cs b/client/Assets/Scripts/Shared/LevelManager.cs index 8d1a2422a..8a50988cf 100644 --- a/client/Assets/Scripts/Shared/LevelManager.cs +++ b/client/Assets/Scripts/Shared/LevelManager.cs @@ -19,4 +19,11 @@ public IEnumerator ChangeToSceneAfterSeconds(string sceneName, float seconds) yield return new WaitForSeconds(seconds); ChangeToScene(sceneName); } + + public void ChangeToSuperCampaign(string superCampaignName) + { + CampaignsMapManager.selectedSuperCampaign = superCampaignName; + StartCoroutine(ChangeToSceneAfterSeconds("CampaignsMap", 0.1f)); + } + } diff --git a/client/Assets/Scripts/User/User.cs b/client/Assets/Scripts/User/User.cs index f60dd607f..84963b635 100644 --- a/client/Assets/Scripts/User/User.cs +++ b/client/Assets/Scripts/User/User.cs @@ -31,5 +31,5 @@ public class User public Dictionary afkMaxCurrencyReward = new Dictionary(); public int afkMaxExperienceReward = 0; - public List<(string superCampaignId, string campaignId, string levelId)> campaignsProgresses = new List<(string, string, string)>(); + public List<(string superCampaignName, string campaignId, string levelId)> campaignsProgresses = new List<(string, string, string)>(); } diff --git a/gateway.proto b/gateway.proto index 34d61eb38..377a8bcaa 100644 --- a/gateway.proto +++ b/gateway.proto @@ -188,7 +188,7 @@ option csharp_namespace = "Protobuf.Messages"; string user_id = 1; string campaign_id = 2; string level_id = 3; - string super_campaign_id = 4; + string super_campaign_name = 4; } message AfkRewardRate { @@ -255,7 +255,7 @@ option csharp_namespace = "Protobuf.Messages"; message Campaign { string id = 1; - string super_campaign_id = 2; + string super_campaign_name = 2; uint32 campaign_number = 3; repeated Level levels = 4; }