From 35b80c90bbecbc975c44ea0b76bff917c42f3cdd Mon Sep 17 00:00:00 2001 From: Clergue Valentin Date: Fri, 29 Mar 2024 01:05:19 +0100 Subject: [PATCH] v1.0.2 (#1) * update workflows * move and improve examples * update project * remove useless nuget * update readme * v1.0.2 --- .github/workflows/{dotnet.yml => CD.yml} | 30 +- .github/workflows/CI.yml | 29 + README.md | 24 +- RustPlusApi.sln | 81 +- .../GetEntityInfo/GetEntityInfo.csproj} | 0 RustPlusApi/Examples/GetEntityInfo/Program.cs | 20 + .../GetInfo/GetInfo.csproj} | 0 RustPlusApi/Examples/GetInfo/Program.cs | 19 + .../GetMap/GetMap.csproj} | 0 RustPlusApi/Examples/GetMap/Program.cs | 19 + .../GetTeamInfo/GetTeamInfo.csproj} | 0 .../GetTeamInfo/Program.cs | 8 +- .../GetTime/GetTime.csproj} | 0 .../{Exemples => Examples}/GetTime/Program.cs | 8 +- RustPlusApi/Examples/SendTeamChat/Program.cs | 13 + .../Examples/SendTeamChat/SendTeamChat.csproj | 15 + .../Examples/__Constants/RustPlusConst.cs | 18 + .../__Constants/__Constants.csproj | 4 + RustPlusApi/Exemples/GetInfo/Program.cs | 17 - RustPlusApi/Exemples/GetMap/Program.cs | 16 - RustPlusApi/Exemples/SendTeamChat/Program.cs | 11 - .../Exemples/__Constants/RustPlusConst.cs | 10 - RustPlusApi/RustPlusApi/README.md | 6 +- RustPlusApi/RustPlusApi/RustPlus.cs | 20817 +--------------- RustPlusApi/RustPlusApi/RustPlusApi.cs | 239 - RustPlusApi/RustPlusApi/RustPlusApi.csproj | 12 +- RustPlusApi/RustPlusApi/RustPlusContracts.cs | 20548 +++++++++++++++ rustplus.proto => RustPlusContracts.proto | 2 +- 28 files changed, 21009 insertions(+), 20957 deletions(-) rename .github/workflows/{dotnet.yml => CD.yml} (52%) create mode 100644 .github/workflows/CI.yml rename RustPlusApi/{Exemples/GetInfo/GetInfo.csproj => Examples/GetEntityInfo/GetEntityInfo.csproj} (100%) create mode 100644 RustPlusApi/Examples/GetEntityInfo/Program.cs rename RustPlusApi/{Exemples/GetMap/GetMap.csproj => Examples/GetInfo/GetInfo.csproj} (100%) create mode 100644 RustPlusApi/Examples/GetInfo/Program.cs rename RustPlusApi/{Exemples/GetTeamInfo/GetTeamInfo.csproj => Examples/GetMap/GetMap.csproj} (100%) create mode 100644 RustPlusApi/Examples/GetMap/Program.cs rename RustPlusApi/{Exemples/GetTime/GetTime.csproj => Examples/GetTeamInfo/GetTeamInfo.csproj} (100%) rename RustPlusApi/{Exemples => Examples}/GetTeamInfo/Program.cs (64%) rename RustPlusApi/{Exemples/SendTeamChat/SendTeamChat.csproj => Examples/GetTime/GetTime.csproj} (100%) rename RustPlusApi/{Exemples => Examples}/GetTime/Program.cs (51%) create mode 100644 RustPlusApi/Examples/SendTeamChat/Program.cs create mode 100644 RustPlusApi/Examples/SendTeamChat/SendTeamChat.csproj create mode 100644 RustPlusApi/Examples/__Constants/RustPlusConst.cs rename RustPlusApi/{Exemples => Examples}/__Constants/__Constants.csproj (68%) delete mode 100644 RustPlusApi/Exemples/GetInfo/Program.cs delete mode 100644 RustPlusApi/Exemples/GetMap/Program.cs delete mode 100644 RustPlusApi/Exemples/SendTeamChat/Program.cs delete mode 100644 RustPlusApi/Exemples/__Constants/RustPlusConst.cs delete mode 100644 RustPlusApi/RustPlusApi/RustPlusApi.cs create mode 100644 RustPlusApi/RustPlusApi/RustPlusContracts.cs rename rustplus.proto => RustPlusContracts.proto (99%) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/CD.yml similarity index 52% rename from .github/workflows/dotnet.yml rename to .github/workflows/CD.yml index 76c477b..e4753f4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/CD.yml @@ -1,12 +1,20 @@ -name: .NET +name: Continuous Deployment on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + workflow_run: + workflows: ["CI.yml Continuous Integration"] + types: + - completed jobs: + check_branch: + runs-on: ubuntu-latest + outputs: + is_main: ${{ steps.check.outputs.is_main }} + steps: + - id: check + run: echo "::set-output name=is_main::${{ github.event.workflow_run.head_branch == 'main' }}" + build-and-deploy: runs-on: ubuntu-latest @@ -19,15 +27,6 @@ jobs: with: dotnet-version: 8.0.x - - name: Restore dependencies - run: dotnet restore - - - name: Build - run: dotnet build --no-restore - - - name: Test - run: dotnet test --no-build --verbosity normal - - name: Pack NuGet Package run: cd ./RustPlusApi/RustPlusApi/ && dotnet pack --configuration Release @@ -36,5 +35,8 @@ jobs: with: path: ./**/*.nupkg + - name: Publish NuGet Package to GitHub Packages + run: dotnet nuget push ./**/*.nupkg --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/${{github.repository_owner}}/index.json + - name: Publish NuGet Package run: dotnet nuget push ./**/*.nupkg --api-key ${{secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..1d9570c --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,29 @@ +name: Continuous Integration + +on: + push: + branches: [ "main", "develop" ] + pull_request: + branches: [ "main", "develop"] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/README.md b/README.md index 4232e76..3ee7c7b 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,16 @@ ## 📊 Features -This is a non exhaustive list of the features that the Rust+ API provides: +This is a list of the features that the Rust+ API provides: -- `sendTeamMessage` Send messages to Team Chat -- `getEntityInfo` Get current state of a Smart Device -- `setEntityValue` Set the value of a Smart Device -- `getMap` Fetch map info, which inclues a jpeg image -- `getMapMarkers` Get map markers, such as vending machines and cargo/heli -- `getTime` Get the current in game time -- `getInfo` Get info about the Rust Server -- `getTeamInfo` Get list of team members and positions on map +- `SetEntityValue` Set the value of a Smart Device +- `StrobeAsync` Strobe a Smart Device +- `SendTeamMessage` Send messages to Team Chat +- `GetEntityInfo` Get current state of a Smart Device +- `GetMap` Fetch map info, which inclues a jpg image +- `GetTime` Get the current in game time +- `GetInfo` Get info about the Rust Server +- `GetTeamInfo` Get list of team members and positions on map Feel free to **explore** the `./RustPlusApi/Exemples/` folder to see how to **use** the API. @@ -31,10 +31,10 @@ dotnet add package RustPlusApi ## ⚙️ Usage -First, instantiate the `RustPlusApi` class with the necessary parameters: +First, instantiate the `RustPlus` class with the necessary parameters: ```csharp -var rustPlusApi = new RustPlusApi(server, port, playerId, playerToken, useFacepunchProxy); +var rustPlusApi = new RustPlus(server, port, playerId, playerToken, useFacepunchProxy); ``` Parameters: @@ -61,7 +61,7 @@ rustPlusApi.ErrorOccurred += (sender, e) => { /* handle error event */ }; rustPlusApi.MessageReceived += (sender, e) => { /* handle received message event */ }; ``` -Remember to dispose of the `RustPlusApi` instance when you're done: +Remember to dispose of the `RustPlus` instance when you're done: ## 🖼️ Credits diff --git a/RustPlusApi.sln b/RustPlusApi.sln index e5b8331..a0a45dd 100644 --- a/RustPlusApi.sln +++ b/RustPlusApi.sln @@ -5,19 +5,21 @@ VisualStudioVersion = 17.9.34701.34 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RustPlusApi", "RustPlusApi\RustPlusApi\RustPlusApi.csproj", "{2E744AA2-4D20-4B44-A79E-AC1CC56E848E}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Exemples", "Exemples", "{BC948ADE-1674-4955-B27C-F0E96100978E}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{BC948ADE-1674-4955-B27C-F0E96100978E}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SendTeamChat", "RustPlusApi\Exemples\SendTeamChat\SendTeamChat.csproj", "{FC788BAA-BB25-48AD-BE3D-2046C111AD00}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetEntityInfo", "RustPlusApi\Examples\GetEntityInfo\GetEntityInfo.csproj", "{A53B0FAC-F59B-4021-9A67-997D1F5727D7}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetTime", "RustPlusApi\Exemples\GetTime\GetTime.csproj", "{C0EB15FC-CB79-4F37-9459-78E9CAEF3647}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "__Constants", "RustPlusApi\Examples\__Constants\__Constants.csproj", "{DF3F9213-6F6D-4832-8738-CA106BE49860}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetMap", "RustPlusApi\Exemples\GetMap\GetMap.csproj", "{7F5365D9-7E71-452D-8534-4B3A69B5B7E4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetInfo", "RustPlusApi\Examples\GetInfo\GetInfo.csproj", "{AB17A661-1D1D-496C-A39C-B31F3BAEADA1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetTeamInfo", "RustPlusApi\Exemples\GetTeamInfo\GetTeamInfo.csproj", "{D23BC4F3-47DF-4E31-96BE-9A4C730D308F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetMap", "RustPlusApi\Examples\GetMap\GetMap.csproj", "{4E87360D-AC39-4475-957F-D49018DB2DC8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "__Constants", "RustPlusApi\Exemples\__Constants\__Constants.csproj", "{9CDFDCBE-7EC1-4951-B685-62D5EFB79D15}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetTeamInfo", "RustPlusApi\Examples\GetTeamInfo\GetTeamInfo.csproj", "{70453D6E-9C19-41BC-8C96-0E20F919DB11}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetInfo", "RustPlusApi\Exemples\GetInfo\GetInfo.csproj", "{50B6AABF-6BC2-4B7B-BB48-27200B05476F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetTime", "RustPlusApi\Examples\GetTime\GetTime.csproj", "{E9F90342-34DE-4166-9769-483A3FA1F144}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SendTeamChat", "RustPlusApi\Examples\SendTeamChat\SendTeamChat.csproj", "{D70DD514-081F-4055-8779-6626DA96D18D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -29,41 +31,46 @@ Global {2E744AA2-4D20-4B44-A79E-AC1CC56E848E}.Debug|Any CPU.Build.0 = Debug|Any CPU {2E744AA2-4D20-4B44-A79E-AC1CC56E848E}.Release|Any CPU.ActiveCfg = Release|Any CPU {2E744AA2-4D20-4B44-A79E-AC1CC56E848E}.Release|Any CPU.Build.0 = Release|Any CPU - {FC788BAA-BB25-48AD-BE3D-2046C111AD00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC788BAA-BB25-48AD-BE3D-2046C111AD00}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC788BAA-BB25-48AD-BE3D-2046C111AD00}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FC788BAA-BB25-48AD-BE3D-2046C111AD00}.Release|Any CPU.Build.0 = Release|Any CPU - {C0EB15FC-CB79-4F37-9459-78E9CAEF3647}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C0EB15FC-CB79-4F37-9459-78E9CAEF3647}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C0EB15FC-CB79-4F37-9459-78E9CAEF3647}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C0EB15FC-CB79-4F37-9459-78E9CAEF3647}.Release|Any CPU.Build.0 = Release|Any CPU - {7F5365D9-7E71-452D-8534-4B3A69B5B7E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7F5365D9-7E71-452D-8534-4B3A69B5B7E4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7F5365D9-7E71-452D-8534-4B3A69B5B7E4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7F5365D9-7E71-452D-8534-4B3A69B5B7E4}.Release|Any CPU.Build.0 = Release|Any CPU - {D23BC4F3-47DF-4E31-96BE-9A4C730D308F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D23BC4F3-47DF-4E31-96BE-9A4C730D308F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D23BC4F3-47DF-4E31-96BE-9A4C730D308F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D23BC4F3-47DF-4E31-96BE-9A4C730D308F}.Release|Any CPU.Build.0 = Release|Any CPU - {9CDFDCBE-7EC1-4951-B685-62D5EFB79D15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9CDFDCBE-7EC1-4951-B685-62D5EFB79D15}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9CDFDCBE-7EC1-4951-B685-62D5EFB79D15}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9CDFDCBE-7EC1-4951-B685-62D5EFB79D15}.Release|Any CPU.Build.0 = Release|Any CPU - {50B6AABF-6BC2-4B7B-BB48-27200B05476F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {50B6AABF-6BC2-4B7B-BB48-27200B05476F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {50B6AABF-6BC2-4B7B-BB48-27200B05476F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {50B6AABF-6BC2-4B7B-BB48-27200B05476F}.Release|Any CPU.Build.0 = Release|Any CPU + {A53B0FAC-F59B-4021-9A67-997D1F5727D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A53B0FAC-F59B-4021-9A67-997D1F5727D7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A53B0FAC-F59B-4021-9A67-997D1F5727D7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A53B0FAC-F59B-4021-9A67-997D1F5727D7}.Release|Any CPU.Build.0 = Release|Any CPU + {DF3F9213-6F6D-4832-8738-CA106BE49860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF3F9213-6F6D-4832-8738-CA106BE49860}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF3F9213-6F6D-4832-8738-CA106BE49860}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF3F9213-6F6D-4832-8738-CA106BE49860}.Release|Any CPU.Build.0 = Release|Any CPU + {AB17A661-1D1D-496C-A39C-B31F3BAEADA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AB17A661-1D1D-496C-A39C-B31F3BAEADA1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AB17A661-1D1D-496C-A39C-B31F3BAEADA1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AB17A661-1D1D-496C-A39C-B31F3BAEADA1}.Release|Any CPU.Build.0 = Release|Any CPU + {4E87360D-AC39-4475-957F-D49018DB2DC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4E87360D-AC39-4475-957F-D49018DB2DC8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4E87360D-AC39-4475-957F-D49018DB2DC8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4E87360D-AC39-4475-957F-D49018DB2DC8}.Release|Any CPU.Build.0 = Release|Any CPU + {70453D6E-9C19-41BC-8C96-0E20F919DB11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70453D6E-9C19-41BC-8C96-0E20F919DB11}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70453D6E-9C19-41BC-8C96-0E20F919DB11}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70453D6E-9C19-41BC-8C96-0E20F919DB11}.Release|Any CPU.Build.0 = Release|Any CPU + {E9F90342-34DE-4166-9769-483A3FA1F144}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E9F90342-34DE-4166-9769-483A3FA1F144}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E9F90342-34DE-4166-9769-483A3FA1F144}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E9F90342-34DE-4166-9769-483A3FA1F144}.Release|Any CPU.Build.0 = Release|Any CPU + {D70DD514-081F-4055-8779-6626DA96D18D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D70DD514-081F-4055-8779-6626DA96D18D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D70DD514-081F-4055-8779-6626DA96D18D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D70DD514-081F-4055-8779-6626DA96D18D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {FC788BAA-BB25-48AD-BE3D-2046C111AD00} = {BC948ADE-1674-4955-B27C-F0E96100978E} - {C0EB15FC-CB79-4F37-9459-78E9CAEF3647} = {BC948ADE-1674-4955-B27C-F0E96100978E} - {7F5365D9-7E71-452D-8534-4B3A69B5B7E4} = {BC948ADE-1674-4955-B27C-F0E96100978E} - {D23BC4F3-47DF-4E31-96BE-9A4C730D308F} = {BC948ADE-1674-4955-B27C-F0E96100978E} - {9CDFDCBE-7EC1-4951-B685-62D5EFB79D15} = {BC948ADE-1674-4955-B27C-F0E96100978E} - {50B6AABF-6BC2-4B7B-BB48-27200B05476F} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {A53B0FAC-F59B-4021-9A67-997D1F5727D7} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {DF3F9213-6F6D-4832-8738-CA106BE49860} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {AB17A661-1D1D-496C-A39C-B31F3BAEADA1} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {4E87360D-AC39-4475-957F-D49018DB2DC8} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {70453D6E-9C19-41BC-8C96-0E20F919DB11} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {E9F90342-34DE-4166-9769-483A3FA1F144} = {BC948ADE-1674-4955-B27C-F0E96100978E} + {D70DD514-081F-4055-8779-6626DA96D18D} = {BC948ADE-1674-4955-B27C-F0E96100978E} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A4B4251F-ADA4-418D-95B5-27BA99A307A3} diff --git a/RustPlusApi/Exemples/GetInfo/GetInfo.csproj b/RustPlusApi/Examples/GetEntityInfo/GetEntityInfo.csproj similarity index 100% rename from RustPlusApi/Exemples/GetInfo/GetInfo.csproj rename to RustPlusApi/Examples/GetEntityInfo/GetEntityInfo.csproj diff --git a/RustPlusApi/Examples/GetEntityInfo/Program.cs b/RustPlusApi/Examples/GetEntityInfo/Program.cs new file mode 100644 index 0000000..e2e77e0 --- /dev/null +++ b/RustPlusApi/Examples/GetEntityInfo/Program.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; + +using RustPlusApi; + +using static __Constants.RustPlusConst; + +const int entityId = 232773; +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => +{ + await rustPlus.GetEntityInfoAsync(entityId, message => + { + Console.WriteLine($"Infos:\n{JsonConvert.SerializeObject(message, JsonSettings)}"); + rustPlus.Dispose(); + return true; + }); +}; + +await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/GetMap/GetMap.csproj b/RustPlusApi/Examples/GetInfo/GetInfo.csproj similarity index 100% rename from RustPlusApi/Exemples/GetMap/GetMap.csproj rename to RustPlusApi/Examples/GetInfo/GetInfo.csproj diff --git a/RustPlusApi/Examples/GetInfo/Program.cs b/RustPlusApi/Examples/GetInfo/Program.cs new file mode 100644 index 0000000..1f7a04b --- /dev/null +++ b/RustPlusApi/Examples/GetInfo/Program.cs @@ -0,0 +1,19 @@ +using Newtonsoft.Json; + +using RustPlusApi; + +using static __Constants.RustPlusConst; + +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => +{ + await rustPlus.GetInfoAsync(message => + { + Console.WriteLine($"Infos:\n{JsonConvert.SerializeObject(message, JsonSettings)}"); + rustPlus.Dispose(); + return true; + }); +}; + +await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/GetTeamInfo/GetTeamInfo.csproj b/RustPlusApi/Examples/GetMap/GetMap.csproj similarity index 100% rename from RustPlusApi/Exemples/GetTeamInfo/GetTeamInfo.csproj rename to RustPlusApi/Examples/GetMap/GetMap.csproj diff --git a/RustPlusApi/Examples/GetMap/Program.cs b/RustPlusApi/Examples/GetMap/Program.cs new file mode 100644 index 0000000..cc2e334 --- /dev/null +++ b/RustPlusApi/Examples/GetMap/Program.cs @@ -0,0 +1,19 @@ +using RustPlusApi; + +using static __Constants.RustPlusConst; + +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => +{ + await rustPlus.GetMapAsync(message => + { + var imageData = message.Response.Map.JpgImage.ToByteArray(); + if (imageData == null) return false; + File.WriteAllBytes("map.jpg", imageData); // Save under RustPlusApi\RustPlusApi\Examples\GetMap\bin\Debug\net8.0 + rustPlus.Dispose(); + return true; + }); +}; + +await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/GetTime/GetTime.csproj b/RustPlusApi/Examples/GetTeamInfo/GetTeamInfo.csproj similarity index 100% rename from RustPlusApi/Exemples/GetTime/GetTime.csproj rename to RustPlusApi/Examples/GetTeamInfo/GetTeamInfo.csproj diff --git a/RustPlusApi/Exemples/GetTeamInfo/Program.cs b/RustPlusApi/Examples/GetTeamInfo/Program.cs similarity index 64% rename from RustPlusApi/Exemples/GetTeamInfo/Program.cs rename to RustPlusApi/Examples/GetTeamInfo/Program.cs index ee7a0cc..9b9c3b8 100644 --- a/RustPlusApi/Exemples/GetTeamInfo/Program.cs +++ b/RustPlusApi/Examples/GetTeamInfo/Program.cs @@ -1,8 +1,10 @@ -using __Constants; +using RustPlusApi; -var rustPlus = new RustPlusApi.RustPlusApi(RustPlusConst.Ip, RustPlusConst.Port, RustPlusConst.PlayerId, RustPlusConst.PlayerToken); +using static __Constants.RustPlusConst; -rustPlus.Connected += async (sender, e) => +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => { await rustPlus.GetTeamInfoAsync(message => { diff --git a/RustPlusApi/Exemples/SendTeamChat/SendTeamChat.csproj b/RustPlusApi/Examples/GetTime/GetTime.csproj similarity index 100% rename from RustPlusApi/Exemples/SendTeamChat/SendTeamChat.csproj rename to RustPlusApi/Examples/GetTime/GetTime.csproj diff --git a/RustPlusApi/Exemples/GetTime/Program.cs b/RustPlusApi/Examples/GetTime/Program.cs similarity index 51% rename from RustPlusApi/Exemples/GetTime/Program.cs rename to RustPlusApi/Examples/GetTime/Program.cs index 8aeb58e..cb29a9f 100644 --- a/RustPlusApi/Exemples/GetTime/Program.cs +++ b/RustPlusApi/Examples/GetTime/Program.cs @@ -1,8 +1,10 @@ -using __Constants; +using RustPlusApi; -var rustPlus = new RustPlusApi.RustPlusApi(RustPlusConst.Ip, RustPlusConst.Port, RustPlusConst.PlayerId, RustPlusConst.PlayerToken); +using static __Constants.RustPlusConst; -rustPlus.Connected += async (sender, e) => +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => { await rustPlus.GetTimeAsync(message => { diff --git a/RustPlusApi/Examples/SendTeamChat/Program.cs b/RustPlusApi/Examples/SendTeamChat/Program.cs new file mode 100644 index 0000000..09a7567 --- /dev/null +++ b/RustPlusApi/Examples/SendTeamChat/Program.cs @@ -0,0 +1,13 @@ +using RustPlusApi; + +using static __Constants.RustPlusConst; + +var rustPlus = new RustPlus(Ip, Port, PlayerId, PlayerToken); + +rustPlus.Connected += async (_, _) => +{ + await rustPlus.SendTeamMessageAsync("Hello from RustPlusApi!"); + rustPlus.Dispose(); +}; + +await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Examples/SendTeamChat/SendTeamChat.csproj b/RustPlusApi/Examples/SendTeamChat/SendTeamChat.csproj new file mode 100644 index 0000000..0aa3ca6 --- /dev/null +++ b/RustPlusApi/Examples/SendTeamChat/SendTeamChat.csproj @@ -0,0 +1,15 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + diff --git a/RustPlusApi/Examples/__Constants/RustPlusConst.cs b/RustPlusApi/Examples/__Constants/RustPlusConst.cs new file mode 100644 index 0000000..780d7c6 --- /dev/null +++ b/RustPlusApi/Examples/__Constants/RustPlusConst.cs @@ -0,0 +1,18 @@ +using Newtonsoft.Json; + +namespace __Constants +{ + public record RustPlusConst + { + public const string Ip = "138.201.18.133"; + public const int Port = 28082; + public const ulong PlayerId = 76561198249527954; + public const int PlayerToken = 263698233; + + public static JsonSerializerSettings JsonSettings = new() + { + NullValueHandling = NullValueHandling.Ignore, + Formatting = Formatting.Indented, + }; + } +} diff --git a/RustPlusApi/Exemples/__Constants/__Constants.csproj b/RustPlusApi/Examples/__Constants/__Constants.csproj similarity index 68% rename from RustPlusApi/Exemples/__Constants/__Constants.csproj rename to RustPlusApi/Examples/__Constants/__Constants.csproj index fa71b7a..3b5b170 100644 --- a/RustPlusApi/Exemples/__Constants/__Constants.csproj +++ b/RustPlusApi/Examples/__Constants/__Constants.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/RustPlusApi/Exemples/GetInfo/Program.cs b/RustPlusApi/Exemples/GetInfo/Program.cs deleted file mode 100644 index 05fa1b9..0000000 --- a/RustPlusApi/Exemples/GetInfo/Program.cs +++ /dev/null @@ -1,17 +0,0 @@ -using __Constants; - -var rustPlus = new RustPlusApi.RustPlusApi(RustPlusConst.Ip, RustPlusConst.Port, RustPlusConst.PlayerId, RustPlusConst.PlayerToken); - -rustPlus.Connected += async (sender, e) => -{ - await rustPlus.GetInfoAsync(message => - { - Console.WriteLine($"Infos: " + - $"\nServer Name: {message.Response.Info.Name}" + - $"\nServer Url: {message.Response.Info.Url}"); - rustPlus.Dispose(); - return true; - }); -}; - -await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/GetMap/Program.cs b/RustPlusApi/Exemples/GetMap/Program.cs deleted file mode 100644 index 900e89d..0000000 --- a/RustPlusApi/Exemples/GetMap/Program.cs +++ /dev/null @@ -1,16 +0,0 @@ -using __Constants; - -var rustPlus = new RustPlusApi.RustPlusApi(RustPlusConst.Ip, RustPlusConst.Port, RustPlusConst.PlayerId, RustPlusConst.PlayerToken); - -rustPlus.Connected += async (sender, e) => -{ - await rustPlus.GetMapAsync(message => - { - var imageData = message.Response.Map.JpgImage.ToByteArray(); - File.WriteAllBytes("map.jpg", imageData); - rustPlus.Dispose(); - return true; - }); -}; - -await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/SendTeamChat/Program.cs b/RustPlusApi/Exemples/SendTeamChat/Program.cs deleted file mode 100644 index e0f1cfc..0000000 --- a/RustPlusApi/Exemples/SendTeamChat/Program.cs +++ /dev/null @@ -1,11 +0,0 @@ -using __Constants; - -var rustPlus = new RustPlusApi.RustPlusApi(RustPlusConst.Ip, RustPlusConst.Port, RustPlusConst.PlayerId, RustPlusConst.PlayerToken); - -rustPlus.Connected += async (sender, e) => -{ - await rustPlus.SendTeamMessageAsync("Hello from RustPlusApi!"); - rustPlus.Dispose(); -}; - -await rustPlus.ConnectAsync(); \ No newline at end of file diff --git a/RustPlusApi/Exemples/__Constants/RustPlusConst.cs b/RustPlusApi/Exemples/__Constants/RustPlusConst.cs deleted file mode 100644 index 9bb3b5c..0000000 --- a/RustPlusApi/Exemples/__Constants/RustPlusConst.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace __Constants -{ - public record RustPlusConst - { - public const string Ip = ""; - public const int Port = 0; - public const ulong PlayerId = 0; - public const int PlayerToken = 0; - } -} diff --git a/RustPlusApi/RustPlusApi/README.md b/RustPlusApi/RustPlusApi/README.md index 7f9d1e0..51dd9b5 100644 --- a/RustPlusApi/RustPlusApi/README.md +++ b/RustPlusApi/RustPlusApi/README.md @@ -8,10 +8,10 @@ This is a C# client for the Rust+ API. It allows you to interact with the Rust+ ## Usage -First, instantiate the `RustPlusApi` class with the necessary parameters: +First, instantiate the `RustPlus` class with the necessary parameters: ```csharp -var rustPlusApi = new RustPlusApi(server, port, playerId, playerToken, useFacepunchProxy); +var rustPlusApi = new RustPlus(server, port, playerId, playerToken, useFacepunchProxy); ``` Parameters: @@ -38,4 +38,4 @@ rustPlusApi.ErrorOccurred += (sender, e) => { /* handle error event */ }; rustPlusApi.MessageReceived += (sender, e) => { /* handle received message event */ }; ``` -Remember to dispose of the `RustPlusApi` instance when you're done: \ No newline at end of file +Remember to dispose of the `RustPlus` instance when you're done: \ No newline at end of file diff --git a/RustPlusApi/RustPlusApi/RustPlus.cs b/RustPlusApi/RustPlusApi/RustPlus.cs index cd97e20..f27375f 100644 --- a/RustPlusApi/RustPlusApi/RustPlus.cs +++ b/RustPlusApi/RustPlusApi/RustPlus.cs @@ -1,20588 +1,239 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: rustplus.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Rustplus { - - /// Holder for reflection information generated from rustplus.proto - public static partial class RustplusReflection { - - #region Descriptor - /// File descriptor for rustplus.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static RustplusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cg5ydXN0cGx1cy5wcm90bxIIcnVzdHBsdXMiHwoHVmVjdG9yMhIJCgF4GAEg", - "ASgCEgkKAXkYAiABKAIiKgoHVmVjdG9yMxIJCgF4GAEgASgCEgkKAXkYAiAB", - "KAISCQoBehgDIAEoAiI1CgdWZWN0b3I0EgkKAXgYASABKAISCQoBeRgCIAEo", - "AhIJCgF6GAMgASgCEgkKAXcYBCABKAIiKAoFSGFsZjMSCQoBeBgBIAEoAhIJ", - "CgF5GAIgASgCEgkKAXoYAyABKAIiMwoFQ29sb3ISCQoBchgBIAEoAhIJCgFn", - "GAIgASgCEgkKAWIYAyABKAISCQoBYRgEIAEoAiJOCgNSYXkSIQoGb3JpZ2lu", - "GAEgASgLMhEucnVzdHBsdXMuVmVjdG9yMxIkCglkaXJlY3Rpb24YAiABKAsy", - "ES5ydXN0cGx1cy5WZWN0b3IzInAKEENsYW5BY3Rpb25SZXN1bHQSEQoJcmVx", - "dWVzdElkGAEgAigFEg4KBnJlc3VsdBgCIAIoBRITCgtoYXNDbGFuSW5mbxgD", - "IAIoCBIkCghjbGFuSW5mbxgEIAEoCzISLnJ1c3RwbHVzLkNsYW5JbmZvIr8F", - "CghDbGFuSW5mbxIOCgZjbGFuSWQYASACKAMSDAoEbmFtZRgCIAIoCRIPCgdj", - "cmVhdGVkGAMgAigDEg8KB2NyZWF0b3IYBCACKAQSDAoEbW90ZBgFIAEoCRIV", - "Cg1tb3RkVGltZXN0YW1wGAYgASgDEhIKCm1vdGRBdXRob3IYByABKAQSDAoE", - "bG9nbxgIIAEoDBINCgVjb2xvchgJIAEoERImCgVyb2xlcxgKIAMoCzIXLnJ1", - "c3RwbHVzLkNsYW5JbmZvLlJvbGUSKgoHbWVtYmVycxgLIAMoCzIZLnJ1c3Rw", - "bHVzLkNsYW5JbmZvLk1lbWJlchIqCgdpbnZpdGVzGAwgAygLMhkucnVzdHBs", - "dXMuQ2xhbkluZm8uSW52aXRlEhYKDm1heE1lbWJlckNvdW50GA0gASgFGtcB", - "CgRSb2xlEg4KBnJvbGVJZBgBIAIoBRIMCgRyYW5rGAIgAigFEgwKBG5hbWUY", - "AyACKAkSEgoKY2FuU2V0TW90ZBgEIAIoCBISCgpjYW5TZXRMb2dvGAUgAigI", - "EhEKCWNhbkludml0ZRgGIAIoCBIPCgdjYW5LaWNrGAcgAigIEhIKCmNhblBy", - "b21vdGUYCCACKAgSEQoJY2FuRGVtb3RlGAkgAigIEhkKEWNhblNldFBsYXll", - "ck5vdGVzGAogAigIEhUKDWNhbkFjY2Vzc0xvZ3MYCyACKAgaagoGTWVtYmVy", - "Eg8KB3N0ZWFtSWQYASACKAQSDgoGcm9sZUlkGAIgAigFEg4KBmpvaW5lZBgD", - "IAIoAxIQCghsYXN0U2VlbhgEIAIoAxINCgVub3RlcxgFIAEoCRIOCgZvbmxp", - "bmUYBiABKAgaPwoGSW52aXRlEg8KB3N0ZWFtSWQYASACKAQSEQoJcmVjcnVp", - "dGVyGAIgAigEEhEKCXRpbWVzdGFtcBgDIAIoAyKsAQoHQ2xhbkxvZxIOCgZj", - "bGFuSWQYASACKAMSKwoKbG9nRW50cmllcxgCIAMoCzIXLnJ1c3RwbHVzLkNs", - "YW5Mb2cuRW50cnkaZAoFRW50cnkSEQoJdGltZXN0YW1wGAEgAigDEhAKCGV2", - "ZW50S2V5GAIgAigJEgwKBGFyZzEYAyABKAkSDAoEYXJnMhgEIAEoCRIMCgRh", - "cmczGAUgASgJEgwKBGFyZzQYBiABKAkikAEKD0NsYW5JbnZpdGF0aW9ucxI5", - "CgtpbnZpdGF0aW9ucxgBIAMoCzIkLnJ1c3RwbHVzLkNsYW5JbnZpdGF0aW9u", - "cy5JbnZpdGF0aW9uGkIKCkludml0YXRpb24SDgoGY2xhbklkGAEgAigDEhEK", - "CXJlY3J1aXRlchgCIAIoBBIRCgl0aW1lc3RhbXAYAyACKAMi3AcKCkFwcFJl", - "cXVlc3QSCwoDc2VxGAEgAigNEhAKCHBsYXllcklkGAIgAigEEhMKC3BsYXll", - "clRva2VuGAMgAigFEhAKCGVudGl0eUlkGAQgASgNEiMKB2dldEluZm8YCCAB", - "KAsyEi5ydXN0cGx1cy5BcHBFbXB0eRIjCgdnZXRUaW1lGAkgASgLMhIucnVz", - "dHBsdXMuQXBwRW1wdHkSIgoGZ2V0TWFwGAogASgLMhIucnVzdHBsdXMuQXBw", - "RW1wdHkSJwoLZ2V0VGVhbUluZm8YCyABKAsyEi5ydXN0cGx1cy5BcHBFbXB0", - "eRInCgtnZXRUZWFtQ2hhdBgMIAEoCzISLnJ1c3RwbHVzLkFwcEVtcHR5EjEK", - "D3NlbmRUZWFtTWVzc2FnZRgNIAEoCzIYLnJ1c3RwbHVzLkFwcFNlbmRNZXNz", - "YWdlEikKDWdldEVudGl0eUluZm8YDiABKAsyEi5ydXN0cGx1cy5BcHBFbXB0", - "eRIzCg5zZXRFbnRpdHlWYWx1ZRgPIAEoCzIbLnJ1c3RwbHVzLkFwcFNldEVu", - "dGl0eVZhbHVlEi0KEWNoZWNrU3Vic2NyaXB0aW9uGBAgASgLMhIucnVzdHBs", - "dXMuQXBwRW1wdHkSKgoPc2V0U3Vic2NyaXB0aW9uGBEgASgLMhEucnVzdHBs", - "dXMuQXBwRmxhZxIpCg1nZXRNYXBNYXJrZXJzGBIgASgLMhIucnVzdHBsdXMu", - "QXBwRW1wdHkSNQoPcHJvbW90ZVRvTGVhZGVyGBQgASgLMhwucnVzdHBsdXMu", - "QXBwUHJvbW90ZVRvTGVhZGVyEicKC2dldENsYW5JbmZvGBUgASgLMhIucnVz", - "dHBsdXMuQXBwRW1wdHkSLQoLc2V0Q2xhbk1vdGQYFiABKAsyGC5ydXN0cGx1", - "cy5BcHBTZW5kTWVzc2FnZRInCgtnZXRDbGFuQ2hhdBgXIAEoCzISLnJ1c3Rw", - "bHVzLkFwcEVtcHR5EjEKD3NlbmRDbGFuTWVzc2FnZRgYIAEoCzIYLnJ1c3Rw", - "bHVzLkFwcFNlbmRNZXNzYWdlEi8KDGdldE5leHVzQXV0aBgZIAEoCzIZLnJ1", - "c3RwbHVzLkFwcEdldE5leHVzQXV0aBI1Cg9jYW1lcmFTdWJzY3JpYmUYHiAB", - "KAsyHC5ydXN0cGx1cy5BcHBDYW1lcmFTdWJzY3JpYmUSLQoRY2FtZXJhVW5z", - "dWJzY3JpYmUYHyABKAsyEi5ydXN0cGx1cy5BcHBFbXB0eRItCgtjYW1lcmFJ", - "bnB1dBggIAEoCzIYLnJ1c3RwbHVzLkFwcENhbWVyYUlucHV0ImAKCkFwcE1l", - "c3NhZ2USJwoIcmVzcG9uc2UYASABKAsyFS5ydXN0cGx1cy5BcHBSZXNwb25z", - "ZRIpCglicm9hZGNhc3QYAiABKAsyFi5ydXN0cGx1cy5BcHBCcm9hZGNhc3Qi", - "xQQKC0FwcFJlc3BvbnNlEgsKA3NlcRgBIAIoDRIlCgdzdWNjZXNzGAQgASgL", - "MhQucnVzdHBsdXMuQXBwU3VjY2VzcxIhCgVlcnJvchgFIAEoCzISLnJ1c3Rw", - "bHVzLkFwcEVycm9yEh8KBGluZm8YBiABKAsyES5ydXN0cGx1cy5BcHBJbmZv", - "Eh8KBHRpbWUYByABKAsyES5ydXN0cGx1cy5BcHBUaW1lEh0KA21hcBgIIAEo", - "CzIQLnJ1c3RwbHVzLkFwcE1hcBInCgh0ZWFtSW5mbxgJIAEoCzIVLnJ1c3Rw", - "bHVzLkFwcFRlYW1JbmZvEicKCHRlYW1DaGF0GAogASgLMhUucnVzdHBsdXMu", - "QXBwVGVhbUNoYXQSKwoKZW50aXR5SW5mbxgLIAEoCzIXLnJ1c3RwbHVzLkFw", - "cEVudGl0eUluZm8SHwoEZmxhZxgMIAEoCzIRLnJ1c3RwbHVzLkFwcEZsYWcS", - "KwoKbWFwTWFya2VycxgNIAEoCzIXLnJ1c3RwbHVzLkFwcE1hcE1hcmtlcnMS", - "JwoIY2xhbkluZm8YDyABKAsyFS5ydXN0cGx1cy5BcHBDbGFuSW5mbxInCghj", - "bGFuQ2hhdBgQIAEoCzIVLnJ1c3RwbHVzLkFwcENsYW5DaGF0EikKCW5leHVz", - "QXV0aBgRIAEoCzIWLnJ1c3RwbHVzLkFwcE5leHVzQXV0aBI0ChNjYW1lcmFT", - "dWJzY3JpYmVJbmZvGBQgASgLMhcucnVzdHBsdXMuQXBwQ2FtZXJhSW5mbyKw", - "AgoMQXBwQnJvYWRjYXN0Ei0KC3RlYW1DaGFuZ2VkGAQgASgLMhgucnVzdHBs", - "dXMuQXBwVGVhbUNoYW5nZWQSMAoLdGVhbU1lc3NhZ2UYBSABKAsyGy5ydXN0", - "cGx1cy5BcHBOZXdUZWFtTWVzc2FnZRIxCg1lbnRpdHlDaGFuZ2VkGAYgASgL", - "MhoucnVzdHBsdXMuQXBwRW50aXR5Q2hhbmdlZBItCgtjbGFuQ2hhbmdlZBgH", - "IAEoCzIYLnJ1c3RwbHVzLkFwcENsYW5DaGFuZ2VkEjAKC2NsYW5NZXNzYWdl", - "GAggASgLMhsucnVzdHBsdXMuQXBwTmV3Q2xhbk1lc3NhZ2USKwoKY2FtZXJh", - "UmF5cxgKIAEoCzIXLnJ1c3RwbHVzLkFwcENhbWVyYVJheXMiCgoIQXBwRW1w", - "dHkiIQoOQXBwU2VuZE1lc3NhZ2USDwoHbWVzc2FnZRgBIAIoCSIiChFBcHBT", - "ZXRFbnRpdHlWYWx1ZRINCgV2YWx1ZRgBIAIoCCIlChJBcHBQcm9tb3RlVG9M", - "ZWFkZXISDwoHc3RlYW1JZBgBIAIoBCIhCg9BcHBHZXROZXh1c0F1dGgSDgoG", - "YXBwS2V5GAEgAigJIgwKCkFwcFN1Y2Nlc3MiGQoIQXBwRXJyb3ISDQoFZXJy", - "b3IYASACKAkiGAoHQXBwRmxhZxINCgV2YWx1ZRgBIAIoCCKHAgoHQXBwSW5m", - "bxIMCgRuYW1lGAEgAigJEhMKC2hlYWRlckltYWdlGAIgAigJEgsKA3VybBgD", - "IAIoCRILCgNtYXAYBCACKAkSDwoHbWFwU2l6ZRgFIAIoDRIQCgh3aXBlVGlt", - "ZRgGIAIoDRIPCgdwbGF5ZXJzGAcgAigNEhIKCm1heFBsYXllcnMYCCACKA0S", - "FQoNcXVldWVkUGxheWVycxgJIAIoDRIMCgRzZWVkGAogASgNEgwKBHNhbHQY", - "CyABKA0SEQoJbG9nb0ltYWdlGAwgASgJEg0KBW5leHVzGA0gASgJEg8KB25l", - "eHVzSWQYDiABKAUSEQoJbmV4dXNab25lGA8gASgJImUKB0FwcFRpbWUSGAoQ", - "ZGF5TGVuZ3RoTWludXRlcxgBIAIoAhIRCgl0aW1lU2NhbGUYAiACKAISDwoH", - "c3VucmlzZRgDIAIoAhIOCgZzdW5zZXQYBCACKAISDAoEdGltZRgFIAIoAiLB", - "AQoGQXBwTWFwEg0KBXdpZHRoGAEgAigNEg4KBmhlaWdodBgCIAIoDRIQCghq", - "cGdJbWFnZRgDIAIoDBITCgtvY2Vhbk1hcmdpbhgEIAIoBRIsCgltb251bWVu", - "dHMYBSADKAsyGS5ydXN0cGx1cy5BcHBNYXAuTW9udW1lbnQSEgoKYmFja2dy", - "b3VuZBgGIAEoCRovCghNb251bWVudBINCgV0b2tlbhgBIAIoCRIJCgF4GAIg", - "AigCEgkKAXkYAyACKAIiYwoNQXBwRW50aXR5SW5mbxIlCgR0eXBlGAEgAigO", - "MhcucnVzdHBsdXMuQXBwRW50aXR5VHlwZRIrCgdwYXlsb2FkGAMgAigLMhou", - "cnVzdHBsdXMuQXBwRW50aXR5UGF5bG9hZCLXAQoQQXBwRW50aXR5UGF5bG9h", - "ZBINCgV2YWx1ZRgBIAEoCBIuCgVpdGVtcxgCIAMoCzIfLnJ1c3RwbHVzLkFw", - "cEVudGl0eVBheWxvYWQuSXRlbRIQCghjYXBhY2l0eRgDIAEoBRIVCg1oYXNQ", - "cm90ZWN0aW9uGAQgASgIEhgKEHByb3RlY3Rpb25FeHBpcnkYBSABKA0aQQoE", - "SXRlbRIOCgZpdGVtSWQYASACKAUSEAoIcXVhbnRpdHkYAiACKAUSFwoPaXRl", - "bUlzQmx1ZXByaW50GAMgAigIIuoCCgtBcHBUZWFtSW5mbxIVCg1sZWFkZXJT", - "dGVhbUlkGAEgAigEEi0KB21lbWJlcnMYAiADKAsyHC5ydXN0cGx1cy5BcHBU", - "ZWFtSW5mby5NZW1iZXISLAoIbWFwTm90ZXMYAyADKAsyGi5ydXN0cGx1cy5B", - "cHBUZWFtSW5mby5Ob3RlEjIKDmxlYWRlck1hcE5vdGVzGAQgAygLMhoucnVz", - "dHBsdXMuQXBwVGVhbUluZm8uTm90ZRqGAQoGTWVtYmVyEg8KB3N0ZWFtSWQY", - "ASACKAQSDAoEbmFtZRgCIAIoCRIJCgF4GAMgAigCEgkKAXkYBCACKAISEAoI", - "aXNPbmxpbmUYBSACKAgSEQoJc3Bhd25UaW1lGAYgAigNEg8KB2lzQWxpdmUY", - "ByACKAgSEQoJZGVhdGhUaW1lGAggAigNGioKBE5vdGUSDAoEdHlwZRgCIAIo", - "BRIJCgF4GAMgAigCEgkKAXkYBCACKAIiXQoOQXBwVGVhbU1lc3NhZ2USDwoH", - "c3RlYW1JZBgBIAIoBBIMCgRuYW1lGAIgAigJEg8KB21lc3NhZ2UYAyACKAkS", - "DQoFY29sb3IYBCACKAkSDAoEdGltZRgFIAIoDSI5CgtBcHBUZWFtQ2hhdBIq", - "CghtZXNzYWdlcxgBIAMoCzIYLnJ1c3RwbHVzLkFwcFRlYW1NZXNzYWdlIogE", - "CglBcHBNYXJrZXISCgoCaWQYASACKA0SJQoEdHlwZRgCIAIoDjIXLnJ1c3Rw", - "bHVzLkFwcE1hcmtlclR5cGUSCQoBeBgDIAIoAhIJCgF5GAQgAigCEg8KB3N0", - "ZWFtSWQYBSABKAQSEAoIcm90YXRpb24YBiABKAISDgoGcmFkaXVzGAcgASgC", - "EiEKBmNvbG9yMRgIIAEoCzIRLnJ1c3RwbHVzLlZlY3RvcjQSIQoGY29sb3Iy", - "GAkgASgLMhEucnVzdHBsdXMuVmVjdG9yNBINCgVhbHBoYRgKIAEoAhIMCgRu", - "YW1lGAsgASgJEhIKCm91dE9mU3RvY2sYDCABKAgSMQoKc2VsbE9yZGVycxgN", - "IAMoCzIdLnJ1c3RwbHVzLkFwcE1hcmtlci5TZWxsT3JkZXIa1AEKCVNlbGxP", - "cmRlchIOCgZpdGVtSWQYASACKAUSEAoIcXVhbnRpdHkYAiACKAUSEgoKY3Vy", - "cmVuY3lJZBgDIAIoBRITCgtjb3N0UGVySXRlbRgEIAIoBRIVCg1hbW91bnRJ", - "blN0b2NrGAUgAigFEhcKD2l0ZW1Jc0JsdWVwcmludBgGIAIoCBIbChNjdXJy", - "ZW5jeUlzQmx1ZXByaW50GAcgAigIEhUKDWl0ZW1Db25kaXRpb24YCCABKAIS", - "GAoQaXRlbUNvbmRpdGlvbk1heBgJIAEoAiI1Cg1BcHBNYXBNYXJrZXJzEiQK", - "B21hcmtlcnMYASADKAsyEy5ydXN0cGx1cy5BcHBNYXJrZXIiMwoLQXBwQ2xh", - "bkluZm8SJAoIY2xhbkluZm8YASABKAsyEi5ydXN0cGx1cy5DbGFuSW5mbyJO", - "Cg5BcHBDbGFuTWVzc2FnZRIPCgdzdGVhbUlkGAEgAigEEgwKBG5hbWUYAiAC", - "KAkSDwoHbWVzc2FnZRgDIAIoCRIMCgR0aW1lGAQgAigDIjkKC0FwcENsYW5D", - "aGF0EioKCG1lc3NhZ2VzGAEgAygLMhgucnVzdHBsdXMuQXBwQ2xhbk1lc3Nh", - "Z2UiNQoMQXBwTmV4dXNBdXRoEhAKCHNlcnZlcklkGAEgAigJEhMKC3BsYXll", - "clRva2VuGAIgAigFIksKDkFwcFRlYW1DaGFuZ2VkEhAKCHBsYXllcklkGAEg", - "AigEEicKCHRlYW1JbmZvGAIgAigLMhUucnVzdHBsdXMuQXBwVGVhbUluZm8i", - "PgoRQXBwTmV3VGVhbU1lc3NhZ2USKQoHbWVzc2FnZRgBIAIoCzIYLnJ1c3Rw", - "bHVzLkFwcFRlYW1NZXNzYWdlIlEKEEFwcEVudGl0eUNoYW5nZWQSEAoIZW50", - "aXR5SWQYASACKA0SKwoHcGF5bG9hZBgCIAIoCzIaLnJ1c3RwbHVzLkFwcEVu", - "dGl0eVBheWxvYWQiNgoOQXBwQ2xhbkNoYW5nZWQSJAoIY2xhbkluZm8YASAB", - "KAsyEi5ydXN0cGx1cy5DbGFuSW5mbyJOChFBcHBOZXdDbGFuTWVzc2FnZRIO", - "CgZjbGFuSWQYASACKAMSKQoHbWVzc2FnZRgCIAIoCzIYLnJ1c3RwbHVzLkFw", - "cENsYW5NZXNzYWdlIiYKEkFwcENhbWVyYVN1YnNjcmliZRIQCghjYW1lcmFJ", - "ZBgBIAIoCSJICg5BcHBDYW1lcmFJbnB1dBIPCgdidXR0b25zGAEgAigFEiUK", - "Cm1vdXNlRGVsdGEYAiACKAsyES5ydXN0cGx1cy5WZWN0b3IyImkKDUFwcENh", - "bWVyYUluZm8SDQoFd2lkdGgYASACKAUSDgoGaGVpZ2h0GAIgAigFEhEKCW5l", - "YXJQbGFuZRgDIAIoAhIQCghmYXJQbGFuZRgEIAIoAhIUCgxjb250cm9sRmxh", - "Z3MYBSACKAUi+wIKDUFwcENhbWVyYVJheXMSEwoLdmVydGljYWxGb3YYASAC", - "KAISFAoMc2FtcGxlT2Zmc2V0GAIgAigFEg8KB3JheURhdGEYAyACKAwSEAoI", - "ZGlzdGFuY2UYBCACKAISMAoIZW50aXRpZXMYBSADKAsyHi5ydXN0cGx1cy5B", - "cHBDYW1lcmFSYXlzLkVudGl0eRrFAQoGRW50aXR5EhAKCGVudGl0eUlkGAEg", - "AigNEjAKBHR5cGUYAiACKA4yIi5ydXN0cGx1cy5BcHBDYW1lcmFSYXlzLkVu", - "dGl0eVR5cGUSIwoIcG9zaXRpb24YAyACKAsyES5ydXN0cGx1cy5WZWN0b3Iz", - "EiMKCHJvdGF0aW9uGAQgAigLMhEucnVzdHBsdXMuVmVjdG9yMxIfCgRzaXpl", - "GAUgAigLMhEucnVzdHBsdXMuVmVjdG9yMxIMCgRuYW1lGAYgASgJIiIKCkVu", - "dGl0eVR5cGUSCAoEVHJlZRABEgoKBlBsYXllchACKjoKDUFwcEVudGl0eVR5", - "cGUSCgoGU3dpdGNoEAESCQoFQWxhcm0QAhISCg5TdG9yYWdlTW9uaXRvchAD", - "KpoBCg1BcHBNYXJrZXJUeXBlEg0KCVVuZGVmaW5lZBAAEgoKBlBsYXllchAB", - "Eg0KCUV4cGxvc2lvbhACEhIKDlZlbmRpbmdNYWNoaW5lEAMSCAoEQ0g0NxAE", - "Eg0KCUNhcmdvU2hpcBAFEgkKBUNyYXRlEAYSEQoNR2VuZXJpY1JhZGl1cxAH", - "EhQKEFBhdHJvbEhlbGljb3B0ZXIQCA==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Rustplus.AppEntityType), typeof(global::Rustplus.AppMarkerType), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Vector2), global::Rustplus.Vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Vector3), global::Rustplus.Vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Vector4), global::Rustplus.Vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Half3), global::Rustplus.Half3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Color), global::Rustplus.Color.Parser, new[]{ "R", "G", "B", "A" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.Ray), global::Rustplus.Ray.Parser, new[]{ "Origin", "Direction" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanActionResult), global::Rustplus.ClanActionResult.Parser, new[]{ "RequestId", "Result", "HasClanInfo", "ClanInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInfo), global::Rustplus.ClanInfo.Parser, new[]{ "ClanId", "Name", "Created", "Creator", "Motd", "MotdTimestamp", "MotdAuthor", "Logo", "Color", "Roles", "Members", "Invites", "MaxMemberCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInfo.Types.Role), global::Rustplus.ClanInfo.Types.Role.Parser, new[]{ "RoleId", "Rank", "Name", "CanSetMotd", "CanSetLogo", "CanInvite", "CanKick", "CanPromote", "CanDemote", "CanSetPlayerNotes", "CanAccessLogs" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInfo.Types.Member), global::Rustplus.ClanInfo.Types.Member.Parser, new[]{ "SteamId", "RoleId", "Joined", "LastSeen", "Notes", "Online" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInfo.Types.Invite), global::Rustplus.ClanInfo.Types.Invite.Parser, new[]{ "SteamId", "Recruiter", "Timestamp" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanLog), global::Rustplus.ClanLog.Parser, new[]{ "ClanId", "LogEntries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanLog.Types.Entry), global::Rustplus.ClanLog.Types.Entry.Parser, new[]{ "Timestamp", "EventKey", "Arg1", "Arg2", "Arg3", "Arg4" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInvitations), global::Rustplus.ClanInvitations.Parser, new[]{ "Invitations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.ClanInvitations.Types.Invitation), global::Rustplus.ClanInvitations.Types.Invitation.Parser, new[]{ "ClanId", "Recruiter", "Timestamp" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppRequest), global::Rustplus.AppRequest.Parser, new[]{ "Seq", "PlayerId", "PlayerToken", "EntityId", "GetInfo", "GetTime", "GetMap", "GetTeamInfo", "GetTeamChat", "SendTeamMessage", "GetEntityInfo", "SetEntityValue", "CheckSubscription", "SetSubscription", "GetMapMarkers", "PromoteToLeader", "GetClanInfo", "SetClanMotd", "GetClanChat", "SendClanMessage", "GetNexusAuth", "CameraSubscribe", "CameraUnsubscribe", "CameraInput" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMessage), global::Rustplus.AppMessage.Parser, new[]{ "Response", "Broadcast" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppResponse), global::Rustplus.AppResponse.Parser, new[]{ "Seq", "Success", "Error", "Info", "Time", "Map", "TeamInfo", "TeamChat", "EntityInfo", "Flag", "MapMarkers", "ClanInfo", "ClanChat", "NexusAuth", "CameraSubscribeInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppBroadcast), global::Rustplus.AppBroadcast.Parser, new[]{ "TeamChanged", "TeamMessage", "EntityChanged", "ClanChanged", "ClanMessage", "CameraRays" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppEmpty), global::Rustplus.AppEmpty.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppSendMessage), global::Rustplus.AppSendMessage.Parser, new[]{ "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppSetEntityValue), global::Rustplus.AppSetEntityValue.Parser, new[]{ "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppPromoteToLeader), global::Rustplus.AppPromoteToLeader.Parser, new[]{ "SteamId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppGetNexusAuth), global::Rustplus.AppGetNexusAuth.Parser, new[]{ "AppKey" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppSuccess), global::Rustplus.AppSuccess.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppError), global::Rustplus.AppError.Parser, new[]{ "Error" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppFlag), global::Rustplus.AppFlag.Parser, new[]{ "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppInfo), global::Rustplus.AppInfo.Parser, new[]{ "Name", "HeaderImage", "Url", "Map", "MapSize", "WipeTime", "Players", "MaxPlayers", "QueuedPlayers", "Seed", "Salt", "LogoImage", "Nexus", "NexusId", "NexusZone" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTime), global::Rustplus.AppTime.Parser, new[]{ "DayLengthMinutes", "TimeScale", "Sunrise", "Sunset", "Time" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMap), global::Rustplus.AppMap.Parser, new[]{ "Width", "Height", "JpgImage", "OceanMargin", "Monuments", "Background" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMap.Types.Monument), global::Rustplus.AppMap.Types.Monument.Parser, new[]{ "Token", "X", "Y" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppEntityInfo), global::Rustplus.AppEntityInfo.Parser, new[]{ "Type", "Payload" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppEntityPayload), global::Rustplus.AppEntityPayload.Parser, new[]{ "Value", "Items", "Capacity", "HasProtection", "ProtectionExpiry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppEntityPayload.Types.Item), global::Rustplus.AppEntityPayload.Types.Item.Parser, new[]{ "ItemId", "Quantity", "ItemIsBlueprint" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamInfo), global::Rustplus.AppTeamInfo.Parser, new[]{ "LeaderSteamId", "Members", "MapNotes", "LeaderMapNotes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamInfo.Types.Member), global::Rustplus.AppTeamInfo.Types.Member.Parser, new[]{ "SteamId", "Name", "X", "Y", "IsOnline", "SpawnTime", "IsAlive", "DeathTime" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamInfo.Types.Note), global::Rustplus.AppTeamInfo.Types.Note.Parser, new[]{ "Type", "X", "Y" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamMessage), global::Rustplus.AppTeamMessage.Parser, new[]{ "SteamId", "Name", "Message", "Color", "Time" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamChat), global::Rustplus.AppTeamChat.Parser, new[]{ "Messages" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMarker), global::Rustplus.AppMarker.Parser, new[]{ "Id", "Type", "X", "Y", "SteamId", "Rotation", "Radius", "Color1", "Color2", "Alpha", "Name", "OutOfStock", "SellOrders" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMarker.Types.SellOrder), global::Rustplus.AppMarker.Types.SellOrder.Parser, new[]{ "ItemId", "Quantity", "CurrencyId", "CostPerItem", "AmountInStock", "ItemIsBlueprint", "CurrencyIsBlueprint", "ItemCondition", "ItemConditionMax" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppMapMarkers), global::Rustplus.AppMapMarkers.Parser, new[]{ "Markers" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppClanInfo), global::Rustplus.AppClanInfo.Parser, new[]{ "ClanInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppClanMessage), global::Rustplus.AppClanMessage.Parser, new[]{ "SteamId", "Name", "Message", "Time" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppClanChat), global::Rustplus.AppClanChat.Parser, new[]{ "Messages" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppNexusAuth), global::Rustplus.AppNexusAuth.Parser, new[]{ "ServerId", "PlayerToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppTeamChanged), global::Rustplus.AppTeamChanged.Parser, new[]{ "PlayerId", "TeamInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppNewTeamMessage), global::Rustplus.AppNewTeamMessage.Parser, new[]{ "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppEntityChanged), global::Rustplus.AppEntityChanged.Parser, new[]{ "EntityId", "Payload" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppClanChanged), global::Rustplus.AppClanChanged.Parser, new[]{ "ClanInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppNewClanMessage), global::Rustplus.AppNewClanMessage.Parser, new[]{ "ClanId", "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppCameraSubscribe), global::Rustplus.AppCameraSubscribe.Parser, new[]{ "CameraId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppCameraInput), global::Rustplus.AppCameraInput.Parser, new[]{ "Buttons", "MouseDelta" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppCameraInfo), global::Rustplus.AppCameraInfo.Parser, new[]{ "Width", "Height", "NearPlane", "FarPlane", "ControlFlags" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppCameraRays), global::Rustplus.AppCameraRays.Parser, new[]{ "VerticalFov", "SampleOffset", "RayData", "Distance", "Entities" }, null, new[]{ typeof(global::Rustplus.AppCameraRays.Types.EntityType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Rustplus.AppCameraRays.Types.Entity), global::Rustplus.AppCameraRays.Types.Entity.Parser, new[]{ "EntityId", "Type", "Position", "Rotation", "Size", "Name" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Enums - public enum AppEntityType { - [pbr::OriginalName("Switch")] Switch = 1, - [pbr::OriginalName("Alarm")] Alarm = 2, - [pbr::OriginalName("StorageMonitor")] StorageMonitor = 3, - } - - public enum AppMarkerType { - [pbr::OriginalName("Undefined")] Undefined = 0, - [pbr::OriginalName("Player")] Player = 1, - [pbr::OriginalName("Explosion")] Explosion = 2, - [pbr::OriginalName("VendingMachine")] VendingMachine = 3, - [pbr::OriginalName("CH47")] Ch47 = 4, - [pbr::OriginalName("CargoShip")] CargoShip = 5, - [pbr::OriginalName("Crate")] Crate = 6, - [pbr::OriginalName("GenericRadius")] GenericRadius = 7, - [pbr::OriginalName("PatrolHelicopter")] PatrolHelicopter = 8, - } - - #endregion - - #region Messages - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Vector2 : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector2()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector2(Vector2 other) : this() { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector2 Clone() { - return new Vector2(this); - } - - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~1; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Vector2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Vector2 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Vector2 other) { - if (other == null) { - return; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - _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 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Vector3 : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector3()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector3() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector3(Vector3 other) : this() { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector3 Clone() { - return new Vector3(this); - } - - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~1; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~2; - } - - /// Field number for the "z" field. - public const int ZFieldNumber = 3; - private readonly static float ZDefaultValue = 0F; - - private float z_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Z { - get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } - set { - _hasBits0 |= 4; - z_ = value; - } - } - /// Gets whether the "z" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasZ { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "z" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearZ() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Vector3); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Vector3 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (HasZ) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Vector3 other) { - if (other == null) { - return; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - if (other.HasZ) { - Z = other.Z; - } - _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 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Vector4 : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector4()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector4() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector4(Vector4 other) : this() { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - w_ = other.w_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Vector4 Clone() { - return new Vector4(this); - } - - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~1; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~2; - } - - /// Field number for the "z" field. - public const int ZFieldNumber = 3; - private readonly static float ZDefaultValue = 0F; - - private float z_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Z { - get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } - set { - _hasBits0 |= 4; - z_ = value; - } - } - /// Gets whether the "z" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasZ { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "z" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearZ() { - _hasBits0 &= ~4; - } - - /// Field number for the "w" field. - public const int WFieldNumber = 4; - private readonly static float WDefaultValue = 0F; - - private float w_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float W { - get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } - set { - _hasBits0 |= 8; - w_ = value; - } - } - /// Gets whether the "w" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasW { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "w" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearW() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Vector4); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Vector4 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); - if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (HasW) { - output.WriteRawTag(37); - output.WriteFloat(W); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (HasW) { - output.WriteRawTag(37); - output.WriteFloat(W); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (HasZ) { - size += 1 + 4; - } - if (HasW) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Vector4 other) { - if (other == null) { - return; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - if (other.HasZ) { - Z = other.Z; - } - if (other.HasW) { - W = other.W; - } - _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 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - case 37: { - W = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - case 37: { - W = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Half3 : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Half3()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Half3() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Half3(Half3 other) : this() { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Half3 Clone() { - return new Half3(this); - } - - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~1; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~2; - } - - /// Field number for the "z" field. - public const int ZFieldNumber = 3; - private readonly static float ZDefaultValue = 0F; - - private float z_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Z { - get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } - set { - _hasBits0 |= 4; - z_ = value; - } - } - /// Gets whether the "z" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasZ { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "z" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearZ() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Half3); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Half3 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasX) { - output.WriteRawTag(13); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(21); - output.WriteFloat(Y); - } - if (HasZ) { - output.WriteRawTag(29); - output.WriteFloat(Z); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (HasZ) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Half3 other) { - if (other == null) { - return; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - if (other.HasZ) { - Z = other.Z; - } - _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 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - X = input.ReadFloat(); - break; - } - case 21: { - Y = input.ReadFloat(); - break; - } - case 29: { - Z = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Color : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Color()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Color() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Color(Color other) : this() { - _hasBits0 = other._hasBits0; - r_ = other.r_; - g_ = other.g_; - b_ = other.b_; - a_ = other.a_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Color Clone() { - return new Color(this); - } - - /// Field number for the "r" field. - public const int RFieldNumber = 1; - private readonly static float RDefaultValue = 0F; - - private float r_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float R { - get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } } - set { - _hasBits0 |= 1; - r_ = value; - } - } - /// Gets whether the "r" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasR { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "r" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearR() { - _hasBits0 &= ~1; - } - - /// Field number for the "g" field. - public const int GFieldNumber = 2; - private readonly static float GDefaultValue = 0F; - - private float g_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float G { - get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } } - set { - _hasBits0 |= 2; - g_ = value; - } - } - /// Gets whether the "g" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasG { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "g" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearG() { - _hasBits0 &= ~2; - } - - /// Field number for the "b" field. - public const int BFieldNumber = 3; - private readonly static float BDefaultValue = 0F; - - private float b_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float B { - get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } - set { - _hasBits0 |= 4; - b_ = value; - } - } - /// Gets whether the "b" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasB { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "b" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearB() { - _hasBits0 &= ~4; - } - - /// Field number for the "a" field. - public const int AFieldNumber = 4; - private readonly static float ADefaultValue = 0F; - - private float a_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float A { - get { if ((_hasBits0 & 8) != 0) { return a_; } else { return ADefaultValue; } } - set { - _hasBits0 |= 8; - a_ = value; - } - } - /// Gets whether the "a" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasA { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "a" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearA() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Color); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Color other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasR) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); - if (HasG) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); - if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); - if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasR) { - output.WriteRawTag(13); - output.WriteFloat(R); - } - if (HasG) { - output.WriteRawTag(21); - output.WriteFloat(G); - } - if (HasB) { - output.WriteRawTag(29); - output.WriteFloat(B); - } - if (HasA) { - output.WriteRawTag(37); - output.WriteFloat(A); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasR) { - output.WriteRawTag(13); - output.WriteFloat(R); - } - if (HasG) { - output.WriteRawTag(21); - output.WriteFloat(G); - } - if (HasB) { - output.WriteRawTag(29); - output.WriteFloat(B); - } - if (HasA) { - output.WriteRawTag(37); - output.WriteFloat(A); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasR) { - size += 1 + 4; - } - if (HasG) { - size += 1 + 4; - } - if (HasB) { - size += 1 + 4; - } - if (HasA) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Color other) { - if (other == null) { - return; - } - if (other.HasR) { - R = other.R; - } - if (other.HasG) { - G = other.G; - } - if (other.HasB) { - B = other.B; - } - if (other.HasA) { - A = other.A; - } - _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 13: { - R = input.ReadFloat(); - break; - } - case 21: { - G = input.ReadFloat(); - break; - } - case 29: { - B = input.ReadFloat(); - break; - } - case 37: { - A = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - R = input.ReadFloat(); - break; - } - case 21: { - G = input.ReadFloat(); - break; - } - case 29: { - B = input.ReadFloat(); - break; - } - case 37: { - A = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Ray : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ray()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ray() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ray(Ray other) : this() { - origin_ = other.origin_ != null ? other.origin_.Clone() : null; - direction_ = other.direction_ != null ? other.direction_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ray Clone() { - return new Ray(this); - } - - /// Field number for the "origin" field. - public const int OriginFieldNumber = 1; - private global::Rustplus.Vector3 origin_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector3 Origin { - get { return origin_; } - set { - origin_ = value; - } - } - - /// Field number for the "direction" field. - public const int DirectionFieldNumber = 2; - private global::Rustplus.Vector3 direction_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector3 Direction { - get { return direction_; } - set { - direction_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Ray); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Ray other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Origin, other.Origin)) return false; - if (!object.Equals(Direction, other.Direction)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (origin_ != null) hash ^= Origin.GetHashCode(); - if (direction_ != null) hash ^= Direction.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (origin_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Origin); - } - if (direction_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Direction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (origin_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Origin); - } - if (direction_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Direction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (origin_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); - } - if (direction_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Ray other) { - if (other == null) { - return; - } - if (other.origin_ != null) { - if (origin_ == null) { - Origin = new global::Rustplus.Vector3(); - } - Origin.MergeFrom(other.Origin); - } - if (other.direction_ != null) { - if (direction_ == null) { - Direction = new global::Rustplus.Vector3(); - } - Direction.MergeFrom(other.Direction); - } - _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: { - if (origin_ == null) { - Origin = new global::Rustplus.Vector3(); - } - input.ReadMessage(Origin); - break; - } - case 18: { - if (direction_ == null) { - Direction = new global::Rustplus.Vector3(); - } - input.ReadMessage(Direction); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (origin_ == null) { - Origin = new global::Rustplus.Vector3(); - } - input.ReadMessage(Origin); - break; - } - case 18: { - if (direction_ == null) { - Direction = new global::Rustplus.Vector3(); - } - input.ReadMessage(Direction); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ClanActionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanActionResult()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanActionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanActionResult(ClanActionResult other) : this() { - _hasBits0 = other._hasBits0; - requestId_ = other.requestId_; - result_ = other.result_; - hasClanInfo_ = other.hasClanInfo_; - clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanActionResult Clone() { - return new ClanActionResult(this); - } - - /// Field number for the "requestId" field. - public const int RequestIdFieldNumber = 1; - private readonly static int RequestIdDefaultValue = 0; - - private int requestId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RequestId { - get { if ((_hasBits0 & 1) != 0) { return requestId_; } else { return RequestIdDefaultValue; } } - set { - _hasBits0 |= 1; - requestId_ = value; - } - } - /// Gets whether the "requestId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRequestId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "requestId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRequestId() { - _hasBits0 &= ~1; - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private readonly static int ResultDefaultValue = 0; - - private int result_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Result { - get { if ((_hasBits0 & 2) != 0) { return result_; } else { return ResultDefaultValue; } } - set { - _hasBits0 |= 2; - result_ = value; - } - } - /// Gets whether the "result" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasResult { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "result" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearResult() { - _hasBits0 &= ~2; - } - - /// Field number for the "hasClanInfo" field. - public const int HasClanInfoFieldNumber = 3; - private readonly static bool HasClanInfoDefaultValue = false; - - private bool hasClanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClanInfo { - get { if ((_hasBits0 & 4) != 0) { return hasClanInfo_; } else { return HasClanInfoDefaultValue; } } - set { - _hasBits0 |= 4; - hasClanInfo_ = value; - } - } - /// Gets whether the "hasClanInfo" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasClanInfo { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "hasClanInfo" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasClanInfo() { - _hasBits0 &= ~4; - } - - /// Field number for the "clanInfo" field. - public const int ClanInfoFieldNumber = 4; - private global::Rustplus.ClanInfo clanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.ClanInfo ClanInfo { - get { return clanInfo_; } - set { - clanInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClanActionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClanActionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RequestId != other.RequestId) return false; - if (Result != other.Result) return false; - if (HasClanInfo != other.HasClanInfo) return false; - if (!object.Equals(ClanInfo, other.ClanInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasRequestId) hash ^= RequestId.GetHashCode(); - if (HasResult) hash ^= Result.GetHashCode(); - if (HasHasClanInfo) hash ^= HasClanInfo.GetHashCode(); - if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasRequestId) { - output.WriteRawTag(8); - output.WriteInt32(RequestId); - } - if (HasResult) { - output.WriteRawTag(16); - output.WriteInt32(Result); - } - if (HasHasClanInfo) { - output.WriteRawTag(24); - output.WriteBool(HasClanInfo); - } - if (clanInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasRequestId) { - output.WriteRawTag(8); - output.WriteInt32(RequestId); - } - if (HasResult) { - output.WriteRawTag(16); - output.WriteInt32(Result); - } - if (HasHasClanInfo) { - output.WriteRawTag(24); - output.WriteBool(HasClanInfo); - } - if (clanInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasRequestId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequestId); - } - if (HasResult) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Result); - } - if (HasHasClanInfo) { - size += 1 + 1; - } - if (clanInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClanActionResult other) { - if (other == null) { - return; - } - if (other.HasRequestId) { - RequestId = other.RequestId; - } - if (other.HasResult) { - Result = other.Result; - } - if (other.HasHasClanInfo) { - HasClanInfo = other.HasClanInfo; - } - if (other.clanInfo_ != null) { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - ClanInfo.MergeFrom(other.ClanInfo); - } - _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 8: { - RequestId = input.ReadInt32(); - break; - } - case 16: { - Result = input.ReadInt32(); - break; - } - case 24: { - HasClanInfo = input.ReadBool(); - break; - } - case 34: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - RequestId = input.ReadInt32(); - break; - } - case 16: { - Result = input.ReadInt32(); - break; - } - case 24: { - HasClanInfo = input.ReadBool(); - break; - } - case 34: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ClanInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInfo(ClanInfo other) : this() { - _hasBits0 = other._hasBits0; - clanId_ = other.clanId_; - name_ = other.name_; - created_ = other.created_; - creator_ = other.creator_; - motd_ = other.motd_; - motdTimestamp_ = other.motdTimestamp_; - motdAuthor_ = other.motdAuthor_; - logo_ = other.logo_; - color_ = other.color_; - roles_ = other.roles_.Clone(); - members_ = other.members_.Clone(); - invites_ = other.invites_.Clone(); - maxMemberCount_ = other.maxMemberCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInfo Clone() { - return new ClanInfo(this); - } - - /// Field number for the "clanId" field. - public const int ClanIdFieldNumber = 1; - private readonly static long ClanIdDefaultValue = 0L; - - private long clanId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ClanId { - get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } - set { - _hasBits0 |= 1; - clanId_ = value; - } - } - /// Gets whether the "clanId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClanId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "clanId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClanId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "created" field. - public const int CreatedFieldNumber = 3; - private readonly static long CreatedDefaultValue = 0L; - - private long created_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Created { - get { if ((_hasBits0 & 2) != 0) { return created_; } else { return CreatedDefaultValue; } } - set { - _hasBits0 |= 2; - created_ = value; - } - } - /// Gets whether the "created" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreated { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "created" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreated() { - _hasBits0 &= ~2; - } - - /// Field number for the "creator" field. - public const int CreatorFieldNumber = 4; - private readonly static ulong CreatorDefaultValue = 0UL; - - private ulong creator_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Creator { - get { if ((_hasBits0 & 4) != 0) { return creator_; } else { return CreatorDefaultValue; } } - set { - _hasBits0 |= 4; - creator_ = value; - } - } - /// Gets whether the "creator" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreator { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "creator" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreator() { - _hasBits0 &= ~4; - } - - /// Field number for the "motd" field. - public const int MotdFieldNumber = 5; - private readonly static string MotdDefaultValue = ""; - - private string motd_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Motd { - get { return motd_ ?? MotdDefaultValue; } - set { - motd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "motd" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMotd { - get { return motd_ != null; } - } - /// Clears the value of the "motd" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMotd() { - motd_ = null; - } - - /// Field number for the "motdTimestamp" field. - public const int MotdTimestampFieldNumber = 6; - private readonly static long MotdTimestampDefaultValue = 0L; - - private long motdTimestamp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MotdTimestamp { - get { if ((_hasBits0 & 8) != 0) { return motdTimestamp_; } else { return MotdTimestampDefaultValue; } } - set { - _hasBits0 |= 8; - motdTimestamp_ = value; - } - } - /// Gets whether the "motdTimestamp" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMotdTimestamp { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "motdTimestamp" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMotdTimestamp() { - _hasBits0 &= ~8; - } - - /// Field number for the "motdAuthor" field. - public const int MotdAuthorFieldNumber = 7; - private readonly static ulong MotdAuthorDefaultValue = 0UL; - - private ulong motdAuthor_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong MotdAuthor { - get { if ((_hasBits0 & 16) != 0) { return motdAuthor_; } else { return MotdAuthorDefaultValue; } } - set { - _hasBits0 |= 16; - motdAuthor_ = value; - } - } - /// Gets whether the "motdAuthor" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMotdAuthor { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "motdAuthor" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMotdAuthor() { - _hasBits0 &= ~16; - } - - /// Field number for the "logo" field. - public const int LogoFieldNumber = 8; - private readonly static pb::ByteString LogoDefaultValue = pb::ByteString.Empty; - - private pb::ByteString logo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Logo { - get { return logo_ ?? LogoDefaultValue; } - set { - logo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "logo" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLogo { - get { return logo_ != null; } - } - /// Clears the value of the "logo" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLogo() { - logo_ = null; - } - - /// Field number for the "color" field. - public const int ColorFieldNumber = 9; - private readonly static int ColorDefaultValue = 0; - - private int color_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Color { - get { if ((_hasBits0 & 32) != 0) { return color_; } else { return ColorDefaultValue; } } - set { - _hasBits0 |= 32; - color_ = value; - } - } - /// Gets whether the "color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasColor { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearColor() { - _hasBits0 &= ~32; - } - - /// Field number for the "roles" field. - public const int RolesFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_roles_codec - = pb::FieldCodec.ForMessage(82, global::Rustplus.ClanInfo.Types.Role.Parser); - private readonly pbc::RepeatedField roles_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Roles { - get { return roles_; } - } - - /// Field number for the "members" field. - public const int MembersFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_members_codec - = pb::FieldCodec.ForMessage(90, global::Rustplus.ClanInfo.Types.Member.Parser); - private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Members { - get { return members_; } - } - - /// Field number for the "invites" field. - public const int InvitesFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_invites_codec - = pb::FieldCodec.ForMessage(98, global::Rustplus.ClanInfo.Types.Invite.Parser); - private readonly pbc::RepeatedField invites_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Invites { - get { return invites_; } - } - - /// Field number for the "maxMemberCount" field. - public const int MaxMemberCountFieldNumber = 13; - private readonly static int MaxMemberCountDefaultValue = 0; - - private int maxMemberCount_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MaxMemberCount { - get { if ((_hasBits0 & 64) != 0) { return maxMemberCount_; } else { return MaxMemberCountDefaultValue; } } - set { - _hasBits0 |= 64; - maxMemberCount_ = value; - } - } - /// Gets whether the "maxMemberCount" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxMemberCount { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "maxMemberCount" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxMemberCount() { - _hasBits0 &= ~64; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClanInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClanInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ClanId != other.ClanId) return false; - if (Name != other.Name) return false; - if (Created != other.Created) return false; - if (Creator != other.Creator) return false; - if (Motd != other.Motd) return false; - if (MotdTimestamp != other.MotdTimestamp) return false; - if (MotdAuthor != other.MotdAuthor) return false; - if (Logo != other.Logo) return false; - if (Color != other.Color) return false; - if(!roles_.Equals(other.roles_)) return false; - if(!members_.Equals(other.members_)) return false; - if(!invites_.Equals(other.invites_)) return false; - if (MaxMemberCount != other.MaxMemberCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasClanId) hash ^= ClanId.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasCreated) hash ^= Created.GetHashCode(); - if (HasCreator) hash ^= Creator.GetHashCode(); - if (HasMotd) hash ^= Motd.GetHashCode(); - if (HasMotdTimestamp) hash ^= MotdTimestamp.GetHashCode(); - if (HasMotdAuthor) hash ^= MotdAuthor.GetHashCode(); - if (HasLogo) hash ^= Logo.GetHashCode(); - if (HasColor) hash ^= Color.GetHashCode(); - hash ^= roles_.GetHashCode(); - hash ^= members_.GetHashCode(); - hash ^= invites_.GetHashCode(); - if (HasMaxMemberCount) hash ^= MaxMemberCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasCreated) { - output.WriteRawTag(24); - output.WriteInt64(Created); - } - if (HasCreator) { - output.WriteRawTag(32); - output.WriteUInt64(Creator); - } - if (HasMotd) { - output.WriteRawTag(42); - output.WriteString(Motd); - } - if (HasMotdTimestamp) { - output.WriteRawTag(48); - output.WriteInt64(MotdTimestamp); - } - if (HasMotdAuthor) { - output.WriteRawTag(56); - output.WriteUInt64(MotdAuthor); - } - if (HasLogo) { - output.WriteRawTag(66); - output.WriteBytes(Logo); - } - if (HasColor) { - output.WriteRawTag(72); - output.WriteSInt32(Color); - } - roles_.WriteTo(output, _repeated_roles_codec); - members_.WriteTo(output, _repeated_members_codec); - invites_.WriteTo(output, _repeated_invites_codec); - if (HasMaxMemberCount) { - output.WriteRawTag(104); - output.WriteInt32(MaxMemberCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasCreated) { - output.WriteRawTag(24); - output.WriteInt64(Created); - } - if (HasCreator) { - output.WriteRawTag(32); - output.WriteUInt64(Creator); - } - if (HasMotd) { - output.WriteRawTag(42); - output.WriteString(Motd); - } - if (HasMotdTimestamp) { - output.WriteRawTag(48); - output.WriteInt64(MotdTimestamp); - } - if (HasMotdAuthor) { - output.WriteRawTag(56); - output.WriteUInt64(MotdAuthor); - } - if (HasLogo) { - output.WriteRawTag(66); - output.WriteBytes(Logo); - } - if (HasColor) { - output.WriteRawTag(72); - output.WriteSInt32(Color); - } - roles_.WriteTo(ref output, _repeated_roles_codec); - members_.WriteTo(ref output, _repeated_members_codec); - invites_.WriteTo(ref output, _repeated_invites_codec); - if (HasMaxMemberCount) { - output.WriteRawTag(104); - output.WriteInt32(MaxMemberCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasClanId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasCreated) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Created); - } - if (HasCreator) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Creator); - } - if (HasMotd) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Motd); - } - if (HasMotdTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MotdTimestamp); - } - if (HasMotdAuthor) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MotdAuthor); - } - if (HasLogo) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Logo); - } - if (HasColor) { - size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Color); - } - size += roles_.CalculateSize(_repeated_roles_codec); - size += members_.CalculateSize(_repeated_members_codec); - size += invites_.CalculateSize(_repeated_invites_codec); - if (HasMaxMemberCount) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxMemberCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClanInfo other) { - if (other == null) { - return; - } - if (other.HasClanId) { - ClanId = other.ClanId; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasCreated) { - Created = other.Created; - } - if (other.HasCreator) { - Creator = other.Creator; - } - if (other.HasMotd) { - Motd = other.Motd; - } - if (other.HasMotdTimestamp) { - MotdTimestamp = other.MotdTimestamp; - } - if (other.HasMotdAuthor) { - MotdAuthor = other.MotdAuthor; - } - if (other.HasLogo) { - Logo = other.Logo; - } - if (other.HasColor) { - Color = other.Color; - } - roles_.Add(other.roles_); - members_.Add(other.members_); - invites_.Add(other.invites_); - if (other.HasMaxMemberCount) { - MaxMemberCount = other.MaxMemberCount; - } - _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 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Created = input.ReadInt64(); - break; - } - case 32: { - Creator = input.ReadUInt64(); - break; - } - case 42: { - Motd = input.ReadString(); - break; - } - case 48: { - MotdTimestamp = input.ReadInt64(); - break; - } - case 56: { - MotdAuthor = input.ReadUInt64(); - break; - } - case 66: { - Logo = input.ReadBytes(); - break; - } - case 72: { - Color = input.ReadSInt32(); - break; - } - case 82: { - roles_.AddEntriesFrom(input, _repeated_roles_codec); - break; - } - case 90: { - members_.AddEntriesFrom(input, _repeated_members_codec); - break; - } - case 98: { - invites_.AddEntriesFrom(input, _repeated_invites_codec); - break; - } - case 104: { - MaxMemberCount = input.ReadInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Created = input.ReadInt64(); - break; - } - case 32: { - Creator = input.ReadUInt64(); - break; - } - case 42: { - Motd = input.ReadString(); - break; - } - case 48: { - MotdTimestamp = input.ReadInt64(); - break; - } - case 56: { - MotdAuthor = input.ReadUInt64(); - break; - } - case 66: { - Logo = input.ReadBytes(); - break; - } - case 72: { - Color = input.ReadSInt32(); - break; - } - case 82: { - roles_.AddEntriesFrom(ref input, _repeated_roles_codec); - break; - } - case 90: { - members_.AddEntriesFrom(ref input, _repeated_members_codec); - break; - } - case 98: { - invites_.AddEntriesFrom(ref input, _repeated_invites_codec); - break; - } - case 104: { - MaxMemberCount = input.ReadInt32(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ClanInfo message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Role : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Role()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.ClanInfo.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Role() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Role(Role other) : this() { - _hasBits0 = other._hasBits0; - roleId_ = other.roleId_; - rank_ = other.rank_; - name_ = other.name_; - canSetMotd_ = other.canSetMotd_; - canSetLogo_ = other.canSetLogo_; - canInvite_ = other.canInvite_; - canKick_ = other.canKick_; - canPromote_ = other.canPromote_; - canDemote_ = other.canDemote_; - canSetPlayerNotes_ = other.canSetPlayerNotes_; - canAccessLogs_ = other.canAccessLogs_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Role Clone() { - return new Role(this); - } - - /// Field number for the "roleId" field. - public const int RoleIdFieldNumber = 1; - private readonly static int RoleIdDefaultValue = 0; - - private int roleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoleId { - get { if ((_hasBits0 & 1) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } - set { - _hasBits0 |= 1; - roleId_ = value; - } - } - /// Gets whether the "roleId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRoleId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "roleId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRoleId() { - _hasBits0 &= ~1; - } - - /// Field number for the "rank" field. - public const int RankFieldNumber = 2; - private readonly static int RankDefaultValue = 0; - - private int rank_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Rank { - get { if ((_hasBits0 & 2) != 0) { return rank_; } else { return RankDefaultValue; } } - set { - _hasBits0 |= 2; - rank_ = value; - } - } - /// Gets whether the "rank" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRank { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "rank" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRank() { - _hasBits0 &= ~2; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "canSetMotd" field. - public const int CanSetMotdFieldNumber = 4; - private readonly static bool CanSetMotdDefaultValue = false; - - private bool canSetMotd_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanSetMotd { - get { if ((_hasBits0 & 4) != 0) { return canSetMotd_; } else { return CanSetMotdDefaultValue; } } - set { - _hasBits0 |= 4; - canSetMotd_ = value; - } - } - /// Gets whether the "canSetMotd" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanSetMotd { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "canSetMotd" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanSetMotd() { - _hasBits0 &= ~4; - } - - /// Field number for the "canSetLogo" field. - public const int CanSetLogoFieldNumber = 5; - private readonly static bool CanSetLogoDefaultValue = false; - - private bool canSetLogo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanSetLogo { - get { if ((_hasBits0 & 8) != 0) { return canSetLogo_; } else { return CanSetLogoDefaultValue; } } - set { - _hasBits0 |= 8; - canSetLogo_ = value; - } - } - /// Gets whether the "canSetLogo" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanSetLogo { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "canSetLogo" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanSetLogo() { - _hasBits0 &= ~8; - } - - /// Field number for the "canInvite" field. - public const int CanInviteFieldNumber = 6; - private readonly static bool CanInviteDefaultValue = false; - - private bool canInvite_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanInvite { - get { if ((_hasBits0 & 16) != 0) { return canInvite_; } else { return CanInviteDefaultValue; } } - set { - _hasBits0 |= 16; - canInvite_ = value; - } - } - /// Gets whether the "canInvite" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanInvite { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "canInvite" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanInvite() { - _hasBits0 &= ~16; - } - - /// Field number for the "canKick" field. - public const int CanKickFieldNumber = 7; - private readonly static bool CanKickDefaultValue = false; - - private bool canKick_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanKick { - get { if ((_hasBits0 & 32) != 0) { return canKick_; } else { return CanKickDefaultValue; } } - set { - _hasBits0 |= 32; - canKick_ = value; - } - } - /// Gets whether the "canKick" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanKick { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "canKick" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanKick() { - _hasBits0 &= ~32; - } - - /// Field number for the "canPromote" field. - public const int CanPromoteFieldNumber = 8; - private readonly static bool CanPromoteDefaultValue = false; - - private bool canPromote_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanPromote { - get { if ((_hasBits0 & 64) != 0) { return canPromote_; } else { return CanPromoteDefaultValue; } } - set { - _hasBits0 |= 64; - canPromote_ = value; - } - } - /// Gets whether the "canPromote" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanPromote { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "canPromote" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanPromote() { - _hasBits0 &= ~64; - } - - /// Field number for the "canDemote" field. - public const int CanDemoteFieldNumber = 9; - private readonly static bool CanDemoteDefaultValue = false; - - private bool canDemote_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanDemote { - get { if ((_hasBits0 & 128) != 0) { return canDemote_; } else { return CanDemoteDefaultValue; } } - set { - _hasBits0 |= 128; - canDemote_ = value; - } - } - /// Gets whether the "canDemote" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanDemote { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "canDemote" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanDemote() { - _hasBits0 &= ~128; - } - - /// Field number for the "canSetPlayerNotes" field. - public const int CanSetPlayerNotesFieldNumber = 10; - private readonly static bool CanSetPlayerNotesDefaultValue = false; - - private bool canSetPlayerNotes_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanSetPlayerNotes { - get { if ((_hasBits0 & 256) != 0) { return canSetPlayerNotes_; } else { return CanSetPlayerNotesDefaultValue; } } - set { - _hasBits0 |= 256; - canSetPlayerNotes_ = value; - } - } - /// Gets whether the "canSetPlayerNotes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanSetPlayerNotes { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "canSetPlayerNotes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanSetPlayerNotes() { - _hasBits0 &= ~256; - } - - /// Field number for the "canAccessLogs" field. - public const int CanAccessLogsFieldNumber = 11; - private readonly static bool CanAccessLogsDefaultValue = false; - - private bool canAccessLogs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CanAccessLogs { - get { if ((_hasBits0 & 512) != 0) { return canAccessLogs_; } else { return CanAccessLogsDefaultValue; } } - set { - _hasBits0 |= 512; - canAccessLogs_ = value; - } - } - /// Gets whether the "canAccessLogs" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanAccessLogs { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "canAccessLogs" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanAccessLogs() { - _hasBits0 &= ~512; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Role); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Role other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RoleId != other.RoleId) return false; - if (Rank != other.Rank) return false; - if (Name != other.Name) return false; - if (CanSetMotd != other.CanSetMotd) return false; - if (CanSetLogo != other.CanSetLogo) return false; - if (CanInvite != other.CanInvite) return false; - if (CanKick != other.CanKick) return false; - if (CanPromote != other.CanPromote) return false; - if (CanDemote != other.CanDemote) return false; - if (CanSetPlayerNotes != other.CanSetPlayerNotes) return false; - if (CanAccessLogs != other.CanAccessLogs) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasRoleId) hash ^= RoleId.GetHashCode(); - if (HasRank) hash ^= Rank.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasCanSetMotd) hash ^= CanSetMotd.GetHashCode(); - if (HasCanSetLogo) hash ^= CanSetLogo.GetHashCode(); - if (HasCanInvite) hash ^= CanInvite.GetHashCode(); - if (HasCanKick) hash ^= CanKick.GetHashCode(); - if (HasCanPromote) hash ^= CanPromote.GetHashCode(); - if (HasCanDemote) hash ^= CanDemote.GetHashCode(); - if (HasCanSetPlayerNotes) hash ^= CanSetPlayerNotes.GetHashCode(); - if (HasCanAccessLogs) hash ^= CanAccessLogs.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasRoleId) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - if (HasRank) { - output.WriteRawTag(16); - output.WriteInt32(Rank); - } - if (HasName) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (HasCanSetMotd) { - output.WriteRawTag(32); - output.WriteBool(CanSetMotd); - } - if (HasCanSetLogo) { - output.WriteRawTag(40); - output.WriteBool(CanSetLogo); - } - if (HasCanInvite) { - output.WriteRawTag(48); - output.WriteBool(CanInvite); - } - if (HasCanKick) { - output.WriteRawTag(56); - output.WriteBool(CanKick); - } - if (HasCanPromote) { - output.WriteRawTag(64); - output.WriteBool(CanPromote); - } - if (HasCanDemote) { - output.WriteRawTag(72); - output.WriteBool(CanDemote); - } - if (HasCanSetPlayerNotes) { - output.WriteRawTag(80); - output.WriteBool(CanSetPlayerNotes); - } - if (HasCanAccessLogs) { - output.WriteRawTag(88); - output.WriteBool(CanAccessLogs); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasRoleId) { - output.WriteRawTag(8); - output.WriteInt32(RoleId); - } - if (HasRank) { - output.WriteRawTag(16); - output.WriteInt32(Rank); - } - if (HasName) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (HasCanSetMotd) { - output.WriteRawTag(32); - output.WriteBool(CanSetMotd); - } - if (HasCanSetLogo) { - output.WriteRawTag(40); - output.WriteBool(CanSetLogo); - } - if (HasCanInvite) { - output.WriteRawTag(48); - output.WriteBool(CanInvite); - } - if (HasCanKick) { - output.WriteRawTag(56); - output.WriteBool(CanKick); - } - if (HasCanPromote) { - output.WriteRawTag(64); - output.WriteBool(CanPromote); - } - if (HasCanDemote) { - output.WriteRawTag(72); - output.WriteBool(CanDemote); - } - if (HasCanSetPlayerNotes) { - output.WriteRawTag(80); - output.WriteBool(CanSetPlayerNotes); - } - if (HasCanAccessLogs) { - output.WriteRawTag(88); - output.WriteBool(CanAccessLogs); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasRoleId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); - } - if (HasRank) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasCanSetMotd) { - size += 1 + 1; - } - if (HasCanSetLogo) { - size += 1 + 1; - } - if (HasCanInvite) { - size += 1 + 1; - } - if (HasCanKick) { - size += 1 + 1; - } - if (HasCanPromote) { - size += 1 + 1; - } - if (HasCanDemote) { - size += 1 + 1; - } - if (HasCanSetPlayerNotes) { - size += 1 + 1; - } - if (HasCanAccessLogs) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Role other) { - if (other == null) { - return; - } - if (other.HasRoleId) { - RoleId = other.RoleId; - } - if (other.HasRank) { - Rank = other.Rank; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasCanSetMotd) { - CanSetMotd = other.CanSetMotd; - } - if (other.HasCanSetLogo) { - CanSetLogo = other.CanSetLogo; - } - if (other.HasCanInvite) { - CanInvite = other.CanInvite; - } - if (other.HasCanKick) { - CanKick = other.CanKick; - } - if (other.HasCanPromote) { - CanPromote = other.CanPromote; - } - if (other.HasCanDemote) { - CanDemote = other.CanDemote; - } - if (other.HasCanSetPlayerNotes) { - CanSetPlayerNotes = other.CanSetPlayerNotes; - } - if (other.HasCanAccessLogs) { - CanAccessLogs = other.CanAccessLogs; - } - _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 8: { - RoleId = input.ReadInt32(); - break; - } - case 16: { - Rank = input.ReadInt32(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - CanSetMotd = input.ReadBool(); - break; - } - case 40: { - CanSetLogo = input.ReadBool(); - break; - } - case 48: { - CanInvite = input.ReadBool(); - break; - } - case 56: { - CanKick = input.ReadBool(); - break; - } - case 64: { - CanPromote = input.ReadBool(); - break; - } - case 72: { - CanDemote = input.ReadBool(); - break; - } - case 80: { - CanSetPlayerNotes = input.ReadBool(); - break; - } - case 88: { - CanAccessLogs = input.ReadBool(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - RoleId = input.ReadInt32(); - break; - } - case 16: { - Rank = input.ReadInt32(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - CanSetMotd = input.ReadBool(); - break; - } - case 40: { - CanSetLogo = input.ReadBool(); - break; - } - case 48: { - CanInvite = input.ReadBool(); - break; - } - case 56: { - CanKick = input.ReadBool(); - break; - } - case 64: { - CanPromote = input.ReadBool(); - break; - } - case 72: { - CanDemote = input.ReadBool(); - break; - } - case 80: { - CanSetPlayerNotes = input.ReadBool(); - break; - } - case 88: { - CanAccessLogs = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Member : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.ClanInfo.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member(Member other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - roleId_ = other.roleId_; - joined_ = other.joined_; - lastSeen_ = other.lastSeen_; - notes_ = other.notes_; - online_ = other.online_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member Clone() { - return new Member(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "roleId" field. - public const int RoleIdFieldNumber = 2; - private readonly static int RoleIdDefaultValue = 0; - - private int roleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RoleId { - get { if ((_hasBits0 & 2) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } - set { - _hasBits0 |= 2; - roleId_ = value; - } - } - /// Gets whether the "roleId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRoleId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "roleId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRoleId() { - _hasBits0 &= ~2; - } - - /// Field number for the "joined" field. - public const int JoinedFieldNumber = 3; - private readonly static long JoinedDefaultValue = 0L; - - private long joined_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Joined { - get { if ((_hasBits0 & 4) != 0) { return joined_; } else { return JoinedDefaultValue; } } - set { - _hasBits0 |= 4; - joined_ = value; - } - } - /// Gets whether the "joined" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasJoined { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "joined" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearJoined() { - _hasBits0 &= ~4; - } - - /// Field number for the "lastSeen" field. - public const int LastSeenFieldNumber = 4; - private readonly static long LastSeenDefaultValue = 0L; - - private long lastSeen_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long LastSeen { - get { if ((_hasBits0 & 8) != 0) { return lastSeen_; } else { return LastSeenDefaultValue; } } - set { - _hasBits0 |= 8; - lastSeen_ = value; - } - } - /// Gets whether the "lastSeen" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLastSeen { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "lastSeen" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLastSeen() { - _hasBits0 &= ~8; - } - - /// Field number for the "notes" field. - public const int NotesFieldNumber = 5; - private readonly static string NotesDefaultValue = ""; - - private string notes_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Notes { - get { return notes_ ?? NotesDefaultValue; } - set { - notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "notes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNotes { - get { return notes_ != null; } - } - /// Clears the value of the "notes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNotes() { - notes_ = null; - } - - /// Field number for the "online" field. - public const int OnlineFieldNumber = 6; - private readonly static bool OnlineDefaultValue = false; - - private bool online_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Online { - get { if ((_hasBits0 & 16) != 0) { return online_; } else { return OnlineDefaultValue; } } - set { - _hasBits0 |= 16; - online_ = value; - } - } - /// Gets whether the "online" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOnline { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "online" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOnline() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Member); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Member other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - if (RoleId != other.RoleId) return false; - if (Joined != other.Joined) return false; - if (LastSeen != other.LastSeen) return false; - if (Notes != other.Notes) return false; - if (Online != other.Online) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasRoleId) hash ^= RoleId.GetHashCode(); - if (HasJoined) hash ^= Joined.GetHashCode(); - if (HasLastSeen) hash ^= LastSeen.GetHashCode(); - if (HasNotes) hash ^= Notes.GetHashCode(); - if (HasOnline) hash ^= Online.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasRoleId) { - output.WriteRawTag(16); - output.WriteInt32(RoleId); - } - if (HasJoined) { - output.WriteRawTag(24); - output.WriteInt64(Joined); - } - if (HasLastSeen) { - output.WriteRawTag(32); - output.WriteInt64(LastSeen); - } - if (HasNotes) { - output.WriteRawTag(42); - output.WriteString(Notes); - } - if (HasOnline) { - output.WriteRawTag(48); - output.WriteBool(Online); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasRoleId) { - output.WriteRawTag(16); - output.WriteInt32(RoleId); - } - if (HasJoined) { - output.WriteRawTag(24); - output.WriteInt64(Joined); - } - if (HasLastSeen) { - output.WriteRawTag(32); - output.WriteInt64(LastSeen); - } - if (HasNotes) { - output.WriteRawTag(42); - output.WriteString(Notes); - } - if (HasOnline) { - output.WriteRawTag(48); - output.WriteBool(Online); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasRoleId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); - } - if (HasJoined) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Joined); - } - if (HasLastSeen) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastSeen); - } - if (HasNotes) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Notes); - } - if (HasOnline) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Member other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasRoleId) { - RoleId = other.RoleId; - } - if (other.HasJoined) { - Joined = other.Joined; - } - if (other.HasLastSeen) { - LastSeen = other.LastSeen; - } - if (other.HasNotes) { - Notes = other.Notes; - } - if (other.HasOnline) { - Online = other.Online; - } - _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 8: { - SteamId = input.ReadUInt64(); - break; - } - case 16: { - RoleId = input.ReadInt32(); - break; - } - case 24: { - Joined = input.ReadInt64(); - break; - } - case 32: { - LastSeen = input.ReadInt64(); - break; - } - case 42: { - Notes = input.ReadString(); - break; - } - case 48: { - Online = input.ReadBool(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - case 16: { - RoleId = input.ReadInt32(); - break; - } - case 24: { - Joined = input.ReadInt64(); - break; - } - case 32: { - LastSeen = input.ReadInt64(); - break; - } - case 42: { - Notes = input.ReadString(); - break; - } - case 48: { - Online = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Invite : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invite()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.ClanInfo.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invite() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invite(Invite other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - recruiter_ = other.recruiter_; - timestamp_ = other.timestamp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invite Clone() { - return new Invite(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "recruiter" field. - public const int RecruiterFieldNumber = 2; - private readonly static ulong RecruiterDefaultValue = 0UL; - - private ulong recruiter_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Recruiter { - get { if ((_hasBits0 & 2) != 0) { return recruiter_; } else { return RecruiterDefaultValue; } } - set { - _hasBits0 |= 2; - recruiter_ = value; - } - } - /// Gets whether the "recruiter" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecruiter { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "recruiter" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecruiter() { - _hasBits0 &= ~2; - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 3; - private readonly static long TimestampDefaultValue = 0L; - - private long timestamp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Timestamp { - get { if ((_hasBits0 & 4) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } - set { - _hasBits0 |= 4; - timestamp_ = value; - } - } - /// Gets whether the "timestamp" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimestamp { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "timestamp" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimestamp() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Invite); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Invite other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - if (Recruiter != other.Recruiter) return false; - if (Timestamp != other.Timestamp) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasRecruiter) hash ^= Recruiter.GetHashCode(); - if (HasTimestamp) hash ^= Timestamp.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasRecruiter) { - output.WriteRawTag(16); - output.WriteUInt64(Recruiter); - } - if (HasTimestamp) { - output.WriteRawTag(24); - output.WriteInt64(Timestamp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasRecruiter) { - output.WriteRawTag(16); - output.WriteUInt64(Recruiter); - } - if (HasTimestamp) { - output.WriteRawTag(24); - output.WriteInt64(Timestamp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasRecruiter) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Recruiter); - } - if (HasTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Invite other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasRecruiter) { - Recruiter = other.Recruiter; - } - if (other.HasTimestamp) { - Timestamp = other.Timestamp; - } - _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 8: { - SteamId = input.ReadUInt64(); - break; - } - case 16: { - Recruiter = input.ReadUInt64(); - break; - } - case 24: { - Timestamp = input.ReadInt64(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - case 16: { - Recruiter = input.ReadUInt64(); - break; - } - case 24: { - Timestamp = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ClanLog : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanLog()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanLog() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanLog(ClanLog other) : this() { - _hasBits0 = other._hasBits0; - clanId_ = other.clanId_; - logEntries_ = other.logEntries_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanLog Clone() { - return new ClanLog(this); - } - - /// Field number for the "clanId" field. - public const int ClanIdFieldNumber = 1; - private readonly static long ClanIdDefaultValue = 0L; - - private long clanId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ClanId { - get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } - set { - _hasBits0 |= 1; - clanId_ = value; - } - } - /// Gets whether the "clanId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClanId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "clanId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClanId() { - _hasBits0 &= ~1; - } - - /// Field number for the "logEntries" field. - public const int LogEntriesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_logEntries_codec - = pb::FieldCodec.ForMessage(18, global::Rustplus.ClanLog.Types.Entry.Parser); - private readonly pbc::RepeatedField logEntries_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LogEntries { - get { return logEntries_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClanLog); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClanLog other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ClanId != other.ClanId) return false; - if(!logEntries_.Equals(other.logEntries_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasClanId) hash ^= ClanId.GetHashCode(); - hash ^= logEntries_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - logEntries_.WriteTo(output, _repeated_logEntries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - logEntries_.WriteTo(ref output, _repeated_logEntries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasClanId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); - } - size += logEntries_.CalculateSize(_repeated_logEntries_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClanLog other) { - if (other == null) { - return; - } - if (other.HasClanId) { - ClanId = other.ClanId; - } - logEntries_.Add(other.logEntries_); - _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 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - logEntries_.AddEntriesFrom(input, _repeated_logEntries_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - logEntries_.AddEntriesFrom(ref input, _repeated_logEntries_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ClanLog message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Entry : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.ClanLog.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entry() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entry(Entry other) : this() { - _hasBits0 = other._hasBits0; - timestamp_ = other.timestamp_; - eventKey_ = other.eventKey_; - arg1_ = other.arg1_; - arg2_ = other.arg2_; - arg3_ = other.arg3_; - arg4_ = other.arg4_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entry Clone() { - return new Entry(this); - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 1; - private readonly static long TimestampDefaultValue = 0L; - - private long timestamp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Timestamp { - get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } - set { - _hasBits0 |= 1; - timestamp_ = value; - } - } - /// Gets whether the "timestamp" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimestamp { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "timestamp" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimestamp() { - _hasBits0 &= ~1; - } - - /// Field number for the "eventKey" field. - public const int EventKeyFieldNumber = 2; - private readonly static string EventKeyDefaultValue = ""; - - private string eventKey_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventKey { - get { return eventKey_ ?? EventKeyDefaultValue; } - set { - eventKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "eventKey" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEventKey { - get { return eventKey_ != null; } - } - /// Clears the value of the "eventKey" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEventKey() { - eventKey_ = null; - } - - /// Field number for the "arg1" field. - public const int Arg1FieldNumber = 3; - private readonly static string Arg1DefaultValue = ""; - - private string arg1_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Arg1 { - get { return arg1_ ?? Arg1DefaultValue; } - set { - arg1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "arg1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasArg1 { - get { return arg1_ != null; } - } - /// Clears the value of the "arg1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearArg1() { - arg1_ = null; - } - - /// Field number for the "arg2" field. - public const int Arg2FieldNumber = 4; - private readonly static string Arg2DefaultValue = ""; - - private string arg2_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Arg2 { - get { return arg2_ ?? Arg2DefaultValue; } - set { - arg2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "arg2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasArg2 { - get { return arg2_ != null; } - } - /// Clears the value of the "arg2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearArg2() { - arg2_ = null; - } - - /// Field number for the "arg3" field. - public const int Arg3FieldNumber = 5; - private readonly static string Arg3DefaultValue = ""; - - private string arg3_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Arg3 { - get { return arg3_ ?? Arg3DefaultValue; } - set { - arg3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "arg3" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasArg3 { - get { return arg3_ != null; } - } - /// Clears the value of the "arg3" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearArg3() { - arg3_ = null; - } - - /// Field number for the "arg4" field. - public const int Arg4FieldNumber = 6; - private readonly static string Arg4DefaultValue = ""; - - private string arg4_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Arg4 { - get { return arg4_ ?? Arg4DefaultValue; } - set { - arg4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "arg4" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasArg4 { - get { return arg4_ != null; } - } - /// Clears the value of the "arg4" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearArg4() { - arg4_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Entry); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Entry other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Timestamp != other.Timestamp) return false; - if (EventKey != other.EventKey) return false; - if (Arg1 != other.Arg1) return false; - if (Arg2 != other.Arg2) return false; - if (Arg3 != other.Arg3) return false; - if (Arg4 != other.Arg4) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTimestamp) hash ^= Timestamp.GetHashCode(); - if (HasEventKey) hash ^= EventKey.GetHashCode(); - if (HasArg1) hash ^= Arg1.GetHashCode(); - if (HasArg2) hash ^= Arg2.GetHashCode(); - if (HasArg3) hash ^= Arg3.GetHashCode(); - if (HasArg4) hash ^= Arg4.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasTimestamp) { - output.WriteRawTag(8); - output.WriteInt64(Timestamp); - } - if (HasEventKey) { - output.WriteRawTag(18); - output.WriteString(EventKey); - } - if (HasArg1) { - output.WriteRawTag(26); - output.WriteString(Arg1); - } - if (HasArg2) { - output.WriteRawTag(34); - output.WriteString(Arg2); - } - if (HasArg3) { - output.WriteRawTag(42); - output.WriteString(Arg3); - } - if (HasArg4) { - output.WriteRawTag(50); - output.WriteString(Arg4); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasTimestamp) { - output.WriteRawTag(8); - output.WriteInt64(Timestamp); - } - if (HasEventKey) { - output.WriteRawTag(18); - output.WriteString(EventKey); - } - if (HasArg1) { - output.WriteRawTag(26); - output.WriteString(Arg1); - } - if (HasArg2) { - output.WriteRawTag(34); - output.WriteString(Arg2); - } - if (HasArg3) { - output.WriteRawTag(42); - output.WriteString(Arg3); - } - if (HasArg4) { - output.WriteRawTag(50); - output.WriteString(Arg4); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); - } - if (HasEventKey) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventKey); - } - if (HasArg1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg1); - } - if (HasArg2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg2); - } - if (HasArg3) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg3); - } - if (HasArg4) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg4); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Entry other) { - if (other == null) { - return; - } - if (other.HasTimestamp) { - Timestamp = other.Timestamp; - } - if (other.HasEventKey) { - EventKey = other.EventKey; - } - if (other.HasArg1) { - Arg1 = other.Arg1; - } - if (other.HasArg2) { - Arg2 = other.Arg2; - } - if (other.HasArg3) { - Arg3 = other.Arg3; - } - if (other.HasArg4) { - Arg4 = other.Arg4; - } - _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 8: { - Timestamp = input.ReadInt64(); - break; - } - case 18: { - EventKey = input.ReadString(); - break; - } - case 26: { - Arg1 = input.ReadString(); - break; - } - case 34: { - Arg2 = input.ReadString(); - break; - } - case 42: { - Arg3 = input.ReadString(); - break; - } - case 50: { - Arg4 = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Timestamp = input.ReadInt64(); - break; - } - case 18: { - EventKey = input.ReadString(); - break; - } - case 26: { - Arg1 = input.ReadString(); - break; - } - case 34: { - Arg2 = input.ReadString(); - break; - } - case 42: { - Arg3 = input.ReadString(); - break; - } - case 50: { - Arg4 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ClanInvitations : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanInvitations()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInvitations() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInvitations(ClanInvitations other) : this() { - invitations_ = other.invitations_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClanInvitations Clone() { - return new ClanInvitations(this); - } - - /// Field number for the "invitations" field. - public const int InvitationsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_invitations_codec - = pb::FieldCodec.ForMessage(10, global::Rustplus.ClanInvitations.Types.Invitation.Parser); - private readonly pbc::RepeatedField invitations_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Invitations { - get { return invitations_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClanInvitations); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClanInvitations other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!invitations_.Equals(other.invitations_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= invitations_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - invitations_.WriteTo(output, _repeated_invitations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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) { - invitations_.WriteTo(ref output, _repeated_invitations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += invitations_.CalculateSize(_repeated_invitations_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClanInvitations other) { - if (other == null) { - return; - } - invitations_.Add(other.invitations_); - _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: { - invitations_.AddEntriesFrom(input, _repeated_invitations_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - invitations_.AddEntriesFrom(ref input, _repeated_invitations_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ClanInvitations message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Invitation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invitation()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.ClanInvitations.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invitation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invitation(Invitation other) : this() { - _hasBits0 = other._hasBits0; - clanId_ = other.clanId_; - recruiter_ = other.recruiter_; - timestamp_ = other.timestamp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invitation Clone() { - return new Invitation(this); - } - - /// Field number for the "clanId" field. - public const int ClanIdFieldNumber = 1; - private readonly static long ClanIdDefaultValue = 0L; - - private long clanId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ClanId { - get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } - set { - _hasBits0 |= 1; - clanId_ = value; - } - } - /// Gets whether the "clanId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClanId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "clanId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClanId() { - _hasBits0 &= ~1; - } - - /// Field number for the "recruiter" field. - public const int RecruiterFieldNumber = 2; - private readonly static ulong RecruiterDefaultValue = 0UL; - - private ulong recruiter_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong Recruiter { - get { if ((_hasBits0 & 2) != 0) { return recruiter_; } else { return RecruiterDefaultValue; } } - set { - _hasBits0 |= 2; - recruiter_ = value; - } - } - /// Gets whether the "recruiter" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecruiter { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "recruiter" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecruiter() { - _hasBits0 &= ~2; - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 3; - private readonly static long TimestampDefaultValue = 0L; - - private long timestamp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Timestamp { - get { if ((_hasBits0 & 4) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } - set { - _hasBits0 |= 4; - timestamp_ = value; - } - } - /// Gets whether the "timestamp" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimestamp { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "timestamp" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimestamp() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Invitation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Invitation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ClanId != other.ClanId) return false; - if (Recruiter != other.Recruiter) return false; - if (Timestamp != other.Timestamp) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasClanId) hash ^= ClanId.GetHashCode(); - if (HasRecruiter) hash ^= Recruiter.GetHashCode(); - if (HasTimestamp) hash ^= Timestamp.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (HasRecruiter) { - output.WriteRawTag(16); - output.WriteUInt64(Recruiter); - } - if (HasTimestamp) { - output.WriteRawTag(24); - output.WriteInt64(Timestamp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (HasRecruiter) { - output.WriteRawTag(16); - output.WriteUInt64(Recruiter); - } - if (HasTimestamp) { - output.WriteRawTag(24); - output.WriteInt64(Timestamp); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasClanId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); - } - if (HasRecruiter) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Recruiter); - } - if (HasTimestamp) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Invitation other) { - if (other == null) { - return; - } - if (other.HasClanId) { - ClanId = other.ClanId; - } - if (other.HasRecruiter) { - Recruiter = other.Recruiter; - } - if (other.HasTimestamp) { - Timestamp = other.Timestamp; - } - _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 8: { - ClanId = input.ReadInt64(); - break; - } - case 16: { - Recruiter = input.ReadUInt64(); - break; - } - case 24: { - Timestamp = input.ReadInt64(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ClanId = input.ReadInt64(); - break; - } - case 16: { - Recruiter = input.ReadUInt64(); - break; - } - case 24: { - Timestamp = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppRequest()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppRequest(AppRequest other) : this() { - _hasBits0 = other._hasBits0; - seq_ = other.seq_; - playerId_ = other.playerId_; - playerToken_ = other.playerToken_; - entityId_ = other.entityId_; - getInfo_ = other.getInfo_ != null ? other.getInfo_.Clone() : null; - getTime_ = other.getTime_ != null ? other.getTime_.Clone() : null; - getMap_ = other.getMap_ != null ? other.getMap_.Clone() : null; - getTeamInfo_ = other.getTeamInfo_ != null ? other.getTeamInfo_.Clone() : null; - getTeamChat_ = other.getTeamChat_ != null ? other.getTeamChat_.Clone() : null; - sendTeamMessage_ = other.sendTeamMessage_ != null ? other.sendTeamMessage_.Clone() : null; - getEntityInfo_ = other.getEntityInfo_ != null ? other.getEntityInfo_.Clone() : null; - setEntityValue_ = other.setEntityValue_ != null ? other.setEntityValue_.Clone() : null; - checkSubscription_ = other.checkSubscription_ != null ? other.checkSubscription_.Clone() : null; - setSubscription_ = other.setSubscription_ != null ? other.setSubscription_.Clone() : null; - getMapMarkers_ = other.getMapMarkers_ != null ? other.getMapMarkers_.Clone() : null; - promoteToLeader_ = other.promoteToLeader_ != null ? other.promoteToLeader_.Clone() : null; - getClanInfo_ = other.getClanInfo_ != null ? other.getClanInfo_.Clone() : null; - setClanMotd_ = other.setClanMotd_ != null ? other.setClanMotd_.Clone() : null; - getClanChat_ = other.getClanChat_ != null ? other.getClanChat_.Clone() : null; - sendClanMessage_ = other.sendClanMessage_ != null ? other.sendClanMessage_.Clone() : null; - getNexusAuth_ = other.getNexusAuth_ != null ? other.getNexusAuth_.Clone() : null; - cameraSubscribe_ = other.cameraSubscribe_ != null ? other.cameraSubscribe_.Clone() : null; - cameraUnsubscribe_ = other.cameraUnsubscribe_ != null ? other.cameraUnsubscribe_.Clone() : null; - cameraInput_ = other.cameraInput_ != null ? other.cameraInput_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppRequest Clone() { - return new AppRequest(this); - } - - /// Field number for the "seq" field. - public const int SeqFieldNumber = 1; - private readonly static uint SeqDefaultValue = 0; - - private uint seq_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Seq { - get { if ((_hasBits0 & 1) != 0) { return seq_; } else { return SeqDefaultValue; } } - set { - _hasBits0 |= 1; - seq_ = value; - } - } - /// Gets whether the "seq" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSeq { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "seq" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSeq() { - _hasBits0 &= ~1; - } - - /// Field number for the "playerId" field. - public const int PlayerIdFieldNumber = 2; - private readonly static ulong PlayerIdDefaultValue = 0UL; - - private ulong playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong PlayerId { - get { if ((_hasBits0 & 2) != 0) { return playerId_; } else { return PlayerIdDefaultValue; } } - set { - _hasBits0 |= 2; - playerId_ = value; - } - } - /// Gets whether the "playerId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayerId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "playerId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayerId() { - _hasBits0 &= ~2; - } - - /// Field number for the "playerToken" field. - public const int PlayerTokenFieldNumber = 3; - private readonly static int PlayerTokenDefaultValue = 0; - - private int playerToken_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PlayerToken { - get { if ((_hasBits0 & 4) != 0) { return playerToken_; } else { return PlayerTokenDefaultValue; } } - set { - _hasBits0 |= 4; - playerToken_ = value; - } - } - /// Gets whether the "playerToken" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayerToken { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "playerToken" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayerToken() { - _hasBits0 &= ~4; - } - - /// Field number for the "entityId" field. - public const int EntityIdFieldNumber = 4; - private readonly static uint EntityIdDefaultValue = 0; - - private uint entityId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint EntityId { - get { if ((_hasBits0 & 8) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } - set { - _hasBits0 |= 8; - entityId_ = value; - } - } - /// Gets whether the "entityId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEntityId { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "entityId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEntityId() { - _hasBits0 &= ~8; - } - - /// Field number for the "getInfo" field. - public const int GetInfoFieldNumber = 8; - private global::Rustplus.AppEmpty getInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetInfo { - get { return getInfo_; } - set { - getInfo_ = value; - } - } - - /// Field number for the "getTime" field. - public const int GetTimeFieldNumber = 9; - private global::Rustplus.AppEmpty getTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetTime { - get { return getTime_; } - set { - getTime_ = value; - } - } - - /// Field number for the "getMap" field. - public const int GetMapFieldNumber = 10; - private global::Rustplus.AppEmpty getMap_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetMap { - get { return getMap_; } - set { - getMap_ = value; - } - } - - /// Field number for the "getTeamInfo" field. - public const int GetTeamInfoFieldNumber = 11; - private global::Rustplus.AppEmpty getTeamInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetTeamInfo { - get { return getTeamInfo_; } - set { - getTeamInfo_ = value; - } - } - - /// Field number for the "getTeamChat" field. - public const int GetTeamChatFieldNumber = 12; - private global::Rustplus.AppEmpty getTeamChat_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetTeamChat { - get { return getTeamChat_; } - set { - getTeamChat_ = value; - } - } - - /// Field number for the "sendTeamMessage" field. - public const int SendTeamMessageFieldNumber = 13; - private global::Rustplus.AppSendMessage sendTeamMessage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppSendMessage SendTeamMessage { - get { return sendTeamMessage_; } - set { - sendTeamMessage_ = value; - } - } - - /// Field number for the "getEntityInfo" field. - public const int GetEntityInfoFieldNumber = 14; - private global::Rustplus.AppEmpty getEntityInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetEntityInfo { - get { return getEntityInfo_; } - set { - getEntityInfo_ = value; - } - } - - /// Field number for the "setEntityValue" field. - public const int SetEntityValueFieldNumber = 15; - private global::Rustplus.AppSetEntityValue setEntityValue_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppSetEntityValue SetEntityValue { - get { return setEntityValue_; } - set { - setEntityValue_ = value; - } - } - - /// Field number for the "checkSubscription" field. - public const int CheckSubscriptionFieldNumber = 16; - private global::Rustplus.AppEmpty checkSubscription_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty CheckSubscription { - get { return checkSubscription_; } - set { - checkSubscription_ = value; - } - } - - /// Field number for the "setSubscription" field. - public const int SetSubscriptionFieldNumber = 17; - private global::Rustplus.AppFlag setSubscription_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppFlag SetSubscription { - get { return setSubscription_; } - set { - setSubscription_ = value; - } - } - - /// Field number for the "getMapMarkers" field. - public const int GetMapMarkersFieldNumber = 18; - private global::Rustplus.AppEmpty getMapMarkers_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetMapMarkers { - get { return getMapMarkers_; } - set { - getMapMarkers_ = value; - } - } - - /// Field number for the "promoteToLeader" field. - public const int PromoteToLeaderFieldNumber = 20; - private global::Rustplus.AppPromoteToLeader promoteToLeader_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppPromoteToLeader PromoteToLeader { - get { return promoteToLeader_; } - set { - promoteToLeader_ = value; - } - } - - /// Field number for the "getClanInfo" field. - public const int GetClanInfoFieldNumber = 21; - private global::Rustplus.AppEmpty getClanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetClanInfo { - get { return getClanInfo_; } - set { - getClanInfo_ = value; - } - } - - /// Field number for the "setClanMotd" field. - public const int SetClanMotdFieldNumber = 22; - private global::Rustplus.AppSendMessage setClanMotd_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppSendMessage SetClanMotd { - get { return setClanMotd_; } - set { - setClanMotd_ = value; - } - } - - /// Field number for the "getClanChat" field. - public const int GetClanChatFieldNumber = 23; - private global::Rustplus.AppEmpty getClanChat_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty GetClanChat { - get { return getClanChat_; } - set { - getClanChat_ = value; - } - } - - /// Field number for the "sendClanMessage" field. - public const int SendClanMessageFieldNumber = 24; - private global::Rustplus.AppSendMessage sendClanMessage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppSendMessage SendClanMessage { - get { return sendClanMessage_; } - set { - sendClanMessage_ = value; - } - } - - /// Field number for the "getNexusAuth" field. - public const int GetNexusAuthFieldNumber = 25; - private global::Rustplus.AppGetNexusAuth getNexusAuth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppGetNexusAuth GetNexusAuth { - get { return getNexusAuth_; } - set { - getNexusAuth_ = value; - } - } - - /// Field number for the "cameraSubscribe" field. - public const int CameraSubscribeFieldNumber = 30; - private global::Rustplus.AppCameraSubscribe cameraSubscribe_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppCameraSubscribe CameraSubscribe { - get { return cameraSubscribe_; } - set { - cameraSubscribe_ = value; - } - } - - /// Field number for the "cameraUnsubscribe" field. - public const int CameraUnsubscribeFieldNumber = 31; - private global::Rustplus.AppEmpty cameraUnsubscribe_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEmpty CameraUnsubscribe { - get { return cameraUnsubscribe_; } - set { - cameraUnsubscribe_ = value; - } - } - - /// Field number for the "cameraInput" field. - public const int CameraInputFieldNumber = 32; - private global::Rustplus.AppCameraInput cameraInput_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppCameraInput CameraInput { - get { return cameraInput_; } - set { - cameraInput_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Seq != other.Seq) return false; - if (PlayerId != other.PlayerId) return false; - if (PlayerToken != other.PlayerToken) return false; - if (EntityId != other.EntityId) return false; - if (!object.Equals(GetInfo, other.GetInfo)) return false; - if (!object.Equals(GetTime, other.GetTime)) return false; - if (!object.Equals(GetMap, other.GetMap)) return false; - if (!object.Equals(GetTeamInfo, other.GetTeamInfo)) return false; - if (!object.Equals(GetTeamChat, other.GetTeamChat)) return false; - if (!object.Equals(SendTeamMessage, other.SendTeamMessage)) return false; - if (!object.Equals(GetEntityInfo, other.GetEntityInfo)) return false; - if (!object.Equals(SetEntityValue, other.SetEntityValue)) return false; - if (!object.Equals(CheckSubscription, other.CheckSubscription)) return false; - if (!object.Equals(SetSubscription, other.SetSubscription)) return false; - if (!object.Equals(GetMapMarkers, other.GetMapMarkers)) return false; - if (!object.Equals(PromoteToLeader, other.PromoteToLeader)) return false; - if (!object.Equals(GetClanInfo, other.GetClanInfo)) return false; - if (!object.Equals(SetClanMotd, other.SetClanMotd)) return false; - if (!object.Equals(GetClanChat, other.GetClanChat)) return false; - if (!object.Equals(SendClanMessage, other.SendClanMessage)) return false; - if (!object.Equals(GetNexusAuth, other.GetNexusAuth)) return false; - if (!object.Equals(CameraSubscribe, other.CameraSubscribe)) return false; - if (!object.Equals(CameraUnsubscribe, other.CameraUnsubscribe)) return false; - if (!object.Equals(CameraInput, other.CameraInput)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSeq) hash ^= Seq.GetHashCode(); - if (HasPlayerId) hash ^= PlayerId.GetHashCode(); - if (HasPlayerToken) hash ^= PlayerToken.GetHashCode(); - if (HasEntityId) hash ^= EntityId.GetHashCode(); - if (getInfo_ != null) hash ^= GetInfo.GetHashCode(); - if (getTime_ != null) hash ^= GetTime.GetHashCode(); - if (getMap_ != null) hash ^= GetMap.GetHashCode(); - if (getTeamInfo_ != null) hash ^= GetTeamInfo.GetHashCode(); - if (getTeamChat_ != null) hash ^= GetTeamChat.GetHashCode(); - if (sendTeamMessage_ != null) hash ^= SendTeamMessage.GetHashCode(); - if (getEntityInfo_ != null) hash ^= GetEntityInfo.GetHashCode(); - if (setEntityValue_ != null) hash ^= SetEntityValue.GetHashCode(); - if (checkSubscription_ != null) hash ^= CheckSubscription.GetHashCode(); - if (setSubscription_ != null) hash ^= SetSubscription.GetHashCode(); - if (getMapMarkers_ != null) hash ^= GetMapMarkers.GetHashCode(); - if (promoteToLeader_ != null) hash ^= PromoteToLeader.GetHashCode(); - if (getClanInfo_ != null) hash ^= GetClanInfo.GetHashCode(); - if (setClanMotd_ != null) hash ^= SetClanMotd.GetHashCode(); - if (getClanChat_ != null) hash ^= GetClanChat.GetHashCode(); - if (sendClanMessage_ != null) hash ^= SendClanMessage.GetHashCode(); - if (getNexusAuth_ != null) hash ^= GetNexusAuth.GetHashCode(); - if (cameraSubscribe_ != null) hash ^= CameraSubscribe.GetHashCode(); - if (cameraUnsubscribe_ != null) hash ^= CameraUnsubscribe.GetHashCode(); - if (cameraInput_ != null) hash ^= CameraInput.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSeq) { - output.WriteRawTag(8); - output.WriteUInt32(Seq); - } - if (HasPlayerId) { - output.WriteRawTag(16); - output.WriteUInt64(PlayerId); - } - if (HasPlayerToken) { - output.WriteRawTag(24); - output.WriteInt32(PlayerToken); - } - if (HasEntityId) { - output.WriteRawTag(32); - output.WriteUInt32(EntityId); - } - if (getInfo_ != null) { - output.WriteRawTag(66); - output.WriteMessage(GetInfo); - } - if (getTime_ != null) { - output.WriteRawTag(74); - output.WriteMessage(GetTime); - } - if (getMap_ != null) { - output.WriteRawTag(82); - output.WriteMessage(GetMap); - } - if (getTeamInfo_ != null) { - output.WriteRawTag(90); - output.WriteMessage(GetTeamInfo); - } - if (getTeamChat_ != null) { - output.WriteRawTag(98); - output.WriteMessage(GetTeamChat); - } - if (sendTeamMessage_ != null) { - output.WriteRawTag(106); - output.WriteMessage(SendTeamMessage); - } - if (getEntityInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(GetEntityInfo); - } - if (setEntityValue_ != null) { - output.WriteRawTag(122); - output.WriteMessage(SetEntityValue); - } - if (checkSubscription_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(CheckSubscription); - } - if (setSubscription_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(SetSubscription); - } - if (getMapMarkers_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(GetMapMarkers); - } - if (promoteToLeader_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(PromoteToLeader); - } - if (getClanInfo_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(GetClanInfo); - } - if (setClanMotd_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(SetClanMotd); - } - if (getClanChat_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(GetClanChat); - } - if (sendClanMessage_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(SendClanMessage); - } - if (getNexusAuth_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(GetNexusAuth); - } - if (cameraSubscribe_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CameraSubscribe); - } - if (cameraUnsubscribe_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(CameraUnsubscribe); - } - if (cameraInput_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(CameraInput); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSeq) { - output.WriteRawTag(8); - output.WriteUInt32(Seq); - } - if (HasPlayerId) { - output.WriteRawTag(16); - output.WriteUInt64(PlayerId); - } - if (HasPlayerToken) { - output.WriteRawTag(24); - output.WriteInt32(PlayerToken); - } - if (HasEntityId) { - output.WriteRawTag(32); - output.WriteUInt32(EntityId); - } - if (getInfo_ != null) { - output.WriteRawTag(66); - output.WriteMessage(GetInfo); - } - if (getTime_ != null) { - output.WriteRawTag(74); - output.WriteMessage(GetTime); - } - if (getMap_ != null) { - output.WriteRawTag(82); - output.WriteMessage(GetMap); - } - if (getTeamInfo_ != null) { - output.WriteRawTag(90); - output.WriteMessage(GetTeamInfo); - } - if (getTeamChat_ != null) { - output.WriteRawTag(98); - output.WriteMessage(GetTeamChat); - } - if (sendTeamMessage_ != null) { - output.WriteRawTag(106); - output.WriteMessage(SendTeamMessage); - } - if (getEntityInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(GetEntityInfo); - } - if (setEntityValue_ != null) { - output.WriteRawTag(122); - output.WriteMessage(SetEntityValue); - } - if (checkSubscription_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(CheckSubscription); - } - if (setSubscription_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(SetSubscription); - } - if (getMapMarkers_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(GetMapMarkers); - } - if (promoteToLeader_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(PromoteToLeader); - } - if (getClanInfo_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(GetClanInfo); - } - if (setClanMotd_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(SetClanMotd); - } - if (getClanChat_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(GetClanChat); - } - if (sendClanMessage_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(SendClanMessage); - } - if (getNexusAuth_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(GetNexusAuth); - } - if (cameraSubscribe_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CameraSubscribe); - } - if (cameraUnsubscribe_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(CameraUnsubscribe); - } - if (cameraInput_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(CameraInput); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSeq) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seq); - } - if (HasPlayerId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayerId); - } - if (HasPlayerToken) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerToken); - } - if (HasEntityId) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); - } - if (getInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetInfo); - } - if (getTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTime); - } - if (getMap_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetMap); - } - if (getTeamInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTeamInfo); - } - if (getTeamChat_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTeamChat); - } - if (sendTeamMessage_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SendTeamMessage); - } - if (getEntityInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetEntityInfo); - } - if (setEntityValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetEntityValue); - } - if (checkSubscription_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CheckSubscription); - } - if (setSubscription_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetSubscription); - } - if (getMapMarkers_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetMapMarkers); - } - if (promoteToLeader_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PromoteToLeader); - } - if (getClanInfo_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetClanInfo); - } - if (setClanMotd_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetClanMotd); - } - if (getClanChat_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetClanChat); - } - if (sendClanMessage_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SendClanMessage); - } - if (getNexusAuth_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetNexusAuth); - } - if (cameraSubscribe_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraSubscribe); - } - if (cameraUnsubscribe_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraUnsubscribe); - } - if (cameraInput_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraInput); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppRequest other) { - if (other == null) { - return; - } - if (other.HasSeq) { - Seq = other.Seq; - } - if (other.HasPlayerId) { - PlayerId = other.PlayerId; - } - if (other.HasPlayerToken) { - PlayerToken = other.PlayerToken; - } - if (other.HasEntityId) { - EntityId = other.EntityId; - } - if (other.getInfo_ != null) { - if (getInfo_ == null) { - GetInfo = new global::Rustplus.AppEmpty(); - } - GetInfo.MergeFrom(other.GetInfo); - } - if (other.getTime_ != null) { - if (getTime_ == null) { - GetTime = new global::Rustplus.AppEmpty(); - } - GetTime.MergeFrom(other.GetTime); - } - if (other.getMap_ != null) { - if (getMap_ == null) { - GetMap = new global::Rustplus.AppEmpty(); - } - GetMap.MergeFrom(other.GetMap); - } - if (other.getTeamInfo_ != null) { - if (getTeamInfo_ == null) { - GetTeamInfo = new global::Rustplus.AppEmpty(); - } - GetTeamInfo.MergeFrom(other.GetTeamInfo); - } - if (other.getTeamChat_ != null) { - if (getTeamChat_ == null) { - GetTeamChat = new global::Rustplus.AppEmpty(); - } - GetTeamChat.MergeFrom(other.GetTeamChat); - } - if (other.sendTeamMessage_ != null) { - if (sendTeamMessage_ == null) { - SendTeamMessage = new global::Rustplus.AppSendMessage(); - } - SendTeamMessage.MergeFrom(other.SendTeamMessage); - } - if (other.getEntityInfo_ != null) { - if (getEntityInfo_ == null) { - GetEntityInfo = new global::Rustplus.AppEmpty(); - } - GetEntityInfo.MergeFrom(other.GetEntityInfo); - } - if (other.setEntityValue_ != null) { - if (setEntityValue_ == null) { - SetEntityValue = new global::Rustplus.AppSetEntityValue(); - } - SetEntityValue.MergeFrom(other.SetEntityValue); - } - if (other.checkSubscription_ != null) { - if (checkSubscription_ == null) { - CheckSubscription = new global::Rustplus.AppEmpty(); - } - CheckSubscription.MergeFrom(other.CheckSubscription); - } - if (other.setSubscription_ != null) { - if (setSubscription_ == null) { - SetSubscription = new global::Rustplus.AppFlag(); - } - SetSubscription.MergeFrom(other.SetSubscription); - } - if (other.getMapMarkers_ != null) { - if (getMapMarkers_ == null) { - GetMapMarkers = new global::Rustplus.AppEmpty(); - } - GetMapMarkers.MergeFrom(other.GetMapMarkers); - } - if (other.promoteToLeader_ != null) { - if (promoteToLeader_ == null) { - PromoteToLeader = new global::Rustplus.AppPromoteToLeader(); - } - PromoteToLeader.MergeFrom(other.PromoteToLeader); - } - if (other.getClanInfo_ != null) { - if (getClanInfo_ == null) { - GetClanInfo = new global::Rustplus.AppEmpty(); - } - GetClanInfo.MergeFrom(other.GetClanInfo); - } - if (other.setClanMotd_ != null) { - if (setClanMotd_ == null) { - SetClanMotd = new global::Rustplus.AppSendMessage(); - } - SetClanMotd.MergeFrom(other.SetClanMotd); - } - if (other.getClanChat_ != null) { - if (getClanChat_ == null) { - GetClanChat = new global::Rustplus.AppEmpty(); - } - GetClanChat.MergeFrom(other.GetClanChat); - } - if (other.sendClanMessage_ != null) { - if (sendClanMessage_ == null) { - SendClanMessage = new global::Rustplus.AppSendMessage(); - } - SendClanMessage.MergeFrom(other.SendClanMessage); - } - if (other.getNexusAuth_ != null) { - if (getNexusAuth_ == null) { - GetNexusAuth = new global::Rustplus.AppGetNexusAuth(); - } - GetNexusAuth.MergeFrom(other.GetNexusAuth); - } - if (other.cameraSubscribe_ != null) { - if (cameraSubscribe_ == null) { - CameraSubscribe = new global::Rustplus.AppCameraSubscribe(); - } - CameraSubscribe.MergeFrom(other.CameraSubscribe); - } - if (other.cameraUnsubscribe_ != null) { - if (cameraUnsubscribe_ == null) { - CameraUnsubscribe = new global::Rustplus.AppEmpty(); - } - CameraUnsubscribe.MergeFrom(other.CameraUnsubscribe); - } - if (other.cameraInput_ != null) { - if (cameraInput_ == null) { - CameraInput = new global::Rustplus.AppCameraInput(); - } - CameraInput.MergeFrom(other.CameraInput); - } - _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 8: { - Seq = input.ReadUInt32(); - break; - } - case 16: { - PlayerId = input.ReadUInt64(); - break; - } - case 24: { - PlayerToken = input.ReadInt32(); - break; - } - case 32: { - EntityId = input.ReadUInt32(); - break; - } - case 66: { - if (getInfo_ == null) { - GetInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetInfo); - break; - } - case 74: { - if (getTime_ == null) { - GetTime = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTime); - break; - } - case 82: { - if (getMap_ == null) { - GetMap = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetMap); - break; - } - case 90: { - if (getTeamInfo_ == null) { - GetTeamInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTeamInfo); - break; - } - case 98: { - if (getTeamChat_ == null) { - GetTeamChat = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTeamChat); - break; - } - case 106: { - if (sendTeamMessage_ == null) { - SendTeamMessage = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SendTeamMessage); - break; - } - case 114: { - if (getEntityInfo_ == null) { - GetEntityInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetEntityInfo); - break; - } - case 122: { - if (setEntityValue_ == null) { - SetEntityValue = new global::Rustplus.AppSetEntityValue(); - } - input.ReadMessage(SetEntityValue); - break; - } - case 130: { - if (checkSubscription_ == null) { - CheckSubscription = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(CheckSubscription); - break; - } - case 138: { - if (setSubscription_ == null) { - SetSubscription = new global::Rustplus.AppFlag(); - } - input.ReadMessage(SetSubscription); - break; - } - case 146: { - if (getMapMarkers_ == null) { - GetMapMarkers = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetMapMarkers); - break; - } - case 162: { - if (promoteToLeader_ == null) { - PromoteToLeader = new global::Rustplus.AppPromoteToLeader(); - } - input.ReadMessage(PromoteToLeader); - break; - } - case 170: { - if (getClanInfo_ == null) { - GetClanInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetClanInfo); - break; - } - case 178: { - if (setClanMotd_ == null) { - SetClanMotd = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SetClanMotd); - break; - } - case 186: { - if (getClanChat_ == null) { - GetClanChat = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetClanChat); - break; - } - case 194: { - if (sendClanMessage_ == null) { - SendClanMessage = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SendClanMessage); - break; - } - case 202: { - if (getNexusAuth_ == null) { - GetNexusAuth = new global::Rustplus.AppGetNexusAuth(); - } - input.ReadMessage(GetNexusAuth); - break; - } - case 242: { - if (cameraSubscribe_ == null) { - CameraSubscribe = new global::Rustplus.AppCameraSubscribe(); - } - input.ReadMessage(CameraSubscribe); - break; - } - case 250: { - if (cameraUnsubscribe_ == null) { - CameraUnsubscribe = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(CameraUnsubscribe); - break; - } - case 258: { - if (cameraInput_ == null) { - CameraInput = new global::Rustplus.AppCameraInput(); - } - input.ReadMessage(CameraInput); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Seq = input.ReadUInt32(); - break; - } - case 16: { - PlayerId = input.ReadUInt64(); - break; - } - case 24: { - PlayerToken = input.ReadInt32(); - break; - } - case 32: { - EntityId = input.ReadUInt32(); - break; - } - case 66: { - if (getInfo_ == null) { - GetInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetInfo); - break; - } - case 74: { - if (getTime_ == null) { - GetTime = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTime); - break; - } - case 82: { - if (getMap_ == null) { - GetMap = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetMap); - break; - } - case 90: { - if (getTeamInfo_ == null) { - GetTeamInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTeamInfo); - break; - } - case 98: { - if (getTeamChat_ == null) { - GetTeamChat = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetTeamChat); - break; - } - case 106: { - if (sendTeamMessage_ == null) { - SendTeamMessage = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SendTeamMessage); - break; - } - case 114: { - if (getEntityInfo_ == null) { - GetEntityInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetEntityInfo); - break; - } - case 122: { - if (setEntityValue_ == null) { - SetEntityValue = new global::Rustplus.AppSetEntityValue(); - } - input.ReadMessage(SetEntityValue); - break; - } - case 130: { - if (checkSubscription_ == null) { - CheckSubscription = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(CheckSubscription); - break; - } - case 138: { - if (setSubscription_ == null) { - SetSubscription = new global::Rustplus.AppFlag(); - } - input.ReadMessage(SetSubscription); - break; - } - case 146: { - if (getMapMarkers_ == null) { - GetMapMarkers = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetMapMarkers); - break; - } - case 162: { - if (promoteToLeader_ == null) { - PromoteToLeader = new global::Rustplus.AppPromoteToLeader(); - } - input.ReadMessage(PromoteToLeader); - break; - } - case 170: { - if (getClanInfo_ == null) { - GetClanInfo = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetClanInfo); - break; - } - case 178: { - if (setClanMotd_ == null) { - SetClanMotd = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SetClanMotd); - break; - } - case 186: { - if (getClanChat_ == null) { - GetClanChat = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(GetClanChat); - break; - } - case 194: { - if (sendClanMessage_ == null) { - SendClanMessage = new global::Rustplus.AppSendMessage(); - } - input.ReadMessage(SendClanMessage); - break; - } - case 202: { - if (getNexusAuth_ == null) { - GetNexusAuth = new global::Rustplus.AppGetNexusAuth(); - } - input.ReadMessage(GetNexusAuth); - break; - } - case 242: { - if (cameraSubscribe_ == null) { - CameraSubscribe = new global::Rustplus.AppCameraSubscribe(); - } - input.ReadMessage(CameraSubscribe); - break; - } - case 250: { - if (cameraUnsubscribe_ == null) { - CameraUnsubscribe = new global::Rustplus.AppEmpty(); - } - input.ReadMessage(CameraUnsubscribe); - break; - } - case 258: { - if (cameraInput_ == null) { - CameraInput = new global::Rustplus.AppCameraInput(); - } - input.ReadMessage(CameraInput); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMessage()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMessage(AppMessage other) : this() { - response_ = other.response_ != null ? other.response_.Clone() : null; - broadcast_ = other.broadcast_ != null ? other.broadcast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMessage Clone() { - return new AppMessage(this); - } - - /// Field number for the "response" field. - public const int ResponseFieldNumber = 1; - private global::Rustplus.AppResponse response_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppResponse Response { - get { return response_; } - set { - response_ = value; - } - } - - /// Field number for the "broadcast" field. - public const int BroadcastFieldNumber = 2; - private global::Rustplus.AppBroadcast broadcast_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppBroadcast Broadcast { - get { return broadcast_; } - set { - broadcast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Response, other.Response)) return false; - if (!object.Equals(Broadcast, other.Broadcast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (response_ != null) hash ^= Response.GetHashCode(); - if (broadcast_ != null) hash ^= Broadcast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (response_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Response); - } - if (broadcast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Broadcast); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (response_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Response); - } - if (broadcast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Broadcast); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (response_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Response); - } - if (broadcast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Broadcast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppMessage other) { - if (other == null) { - return; - } - if (other.response_ != null) { - if (response_ == null) { - Response = new global::Rustplus.AppResponse(); - } - Response.MergeFrom(other.Response); - } - if (other.broadcast_ != null) { - if (broadcast_ == null) { - Broadcast = new global::Rustplus.AppBroadcast(); - } - Broadcast.MergeFrom(other.Broadcast); - } - _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: { - if (response_ == null) { - Response = new global::Rustplus.AppResponse(); - } - input.ReadMessage(Response); - break; - } - case 18: { - if (broadcast_ == null) { - Broadcast = new global::Rustplus.AppBroadcast(); - } - input.ReadMessage(Broadcast); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (response_ == null) { - Response = new global::Rustplus.AppResponse(); - } - input.ReadMessage(Response); - break; - } - case 18: { - if (broadcast_ == null) { - Broadcast = new global::Rustplus.AppBroadcast(); - } - input.ReadMessage(Broadcast); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppResponse()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppResponse(AppResponse other) : this() { - _hasBits0 = other._hasBits0; - seq_ = other.seq_; - success_ = other.success_ != null ? other.success_.Clone() : null; - error_ = other.error_ != null ? other.error_.Clone() : null; - info_ = other.info_ != null ? other.info_.Clone() : null; - time_ = other.time_ != null ? other.time_.Clone() : null; - map_ = other.map_ != null ? other.map_.Clone() : null; - teamInfo_ = other.teamInfo_ != null ? other.teamInfo_.Clone() : null; - teamChat_ = other.teamChat_ != null ? other.teamChat_.Clone() : null; - entityInfo_ = other.entityInfo_ != null ? other.entityInfo_.Clone() : null; - flag_ = other.flag_ != null ? other.flag_.Clone() : null; - mapMarkers_ = other.mapMarkers_ != null ? other.mapMarkers_.Clone() : null; - clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; - clanChat_ = other.clanChat_ != null ? other.clanChat_.Clone() : null; - nexusAuth_ = other.nexusAuth_ != null ? other.nexusAuth_.Clone() : null; - cameraSubscribeInfo_ = other.cameraSubscribeInfo_ != null ? other.cameraSubscribeInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppResponse Clone() { - return new AppResponse(this); - } - - /// Field number for the "seq" field. - public const int SeqFieldNumber = 1; - private readonly static uint SeqDefaultValue = 0; - - private uint seq_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Seq { - get { if ((_hasBits0 & 1) != 0) { return seq_; } else { return SeqDefaultValue; } } - set { - _hasBits0 |= 1; - seq_ = value; - } - } - /// Gets whether the "seq" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSeq { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "seq" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSeq() { - _hasBits0 &= ~1; - } - - /// Field number for the "success" field. - public const int SuccessFieldNumber = 4; - private global::Rustplus.AppSuccess success_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppSuccess Success { - get { return success_; } - set { - success_ = value; - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 5; - private global::Rustplus.AppError error_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppError Error { - get { return error_; } - set { - error_ = value; - } - } - - /// Field number for the "info" field. - public const int InfoFieldNumber = 6; - private global::Rustplus.AppInfo info_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppInfo Info { - get { return info_; } - set { - info_ = value; - } - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 7; - private global::Rustplus.AppTime time_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTime Time { - get { return time_; } - set { - time_ = value; - } - } - - /// Field number for the "map" field. - public const int MapFieldNumber = 8; - private global::Rustplus.AppMap map_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppMap Map { - get { return map_; } - set { - map_ = value; - } - } - - /// Field number for the "teamInfo" field. - public const int TeamInfoFieldNumber = 9; - private global::Rustplus.AppTeamInfo teamInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTeamInfo TeamInfo { - get { return teamInfo_; } - set { - teamInfo_ = value; - } - } - - /// Field number for the "teamChat" field. - public const int TeamChatFieldNumber = 10; - private global::Rustplus.AppTeamChat teamChat_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTeamChat TeamChat { - get { return teamChat_; } - set { - teamChat_ = value; - } - } - - /// Field number for the "entityInfo" field. - public const int EntityInfoFieldNumber = 11; - private global::Rustplus.AppEntityInfo entityInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEntityInfo EntityInfo { - get { return entityInfo_; } - set { - entityInfo_ = value; - } - } - - /// Field number for the "flag" field. - public const int FlagFieldNumber = 12; - private global::Rustplus.AppFlag flag_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppFlag Flag { - get { return flag_; } - set { - flag_ = value; - } - } - - /// Field number for the "mapMarkers" field. - public const int MapMarkersFieldNumber = 13; - private global::Rustplus.AppMapMarkers mapMarkers_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppMapMarkers MapMarkers { - get { return mapMarkers_; } - set { - mapMarkers_ = value; - } - } - - /// Field number for the "clanInfo" field. - public const int ClanInfoFieldNumber = 15; - private global::Rustplus.AppClanInfo clanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppClanInfo ClanInfo { - get { return clanInfo_; } - set { - clanInfo_ = value; - } - } - - /// Field number for the "clanChat" field. - public const int ClanChatFieldNumber = 16; - private global::Rustplus.AppClanChat clanChat_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppClanChat ClanChat { - get { return clanChat_; } - set { - clanChat_ = value; - } - } - - /// Field number for the "nexusAuth" field. - public const int NexusAuthFieldNumber = 17; - private global::Rustplus.AppNexusAuth nexusAuth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppNexusAuth NexusAuth { - get { return nexusAuth_; } - set { - nexusAuth_ = value; - } - } - - /// Field number for the "cameraSubscribeInfo" field. - public const int CameraSubscribeInfoFieldNumber = 20; - private global::Rustplus.AppCameraInfo cameraSubscribeInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppCameraInfo CameraSubscribeInfo { - get { return cameraSubscribeInfo_; } - set { - cameraSubscribeInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Seq != other.Seq) return false; - if (!object.Equals(Success, other.Success)) return false; - if (!object.Equals(Error, other.Error)) return false; - if (!object.Equals(Info, other.Info)) return false; - if (!object.Equals(Time, other.Time)) return false; - if (!object.Equals(Map, other.Map)) return false; - if (!object.Equals(TeamInfo, other.TeamInfo)) return false; - if (!object.Equals(TeamChat, other.TeamChat)) return false; - if (!object.Equals(EntityInfo, other.EntityInfo)) return false; - if (!object.Equals(Flag, other.Flag)) return false; - if (!object.Equals(MapMarkers, other.MapMarkers)) return false; - if (!object.Equals(ClanInfo, other.ClanInfo)) return false; - if (!object.Equals(ClanChat, other.ClanChat)) return false; - if (!object.Equals(NexusAuth, other.NexusAuth)) return false; - if (!object.Equals(CameraSubscribeInfo, other.CameraSubscribeInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSeq) hash ^= Seq.GetHashCode(); - if (success_ != null) hash ^= Success.GetHashCode(); - if (error_ != null) hash ^= Error.GetHashCode(); - if (info_ != null) hash ^= Info.GetHashCode(); - if (time_ != null) hash ^= Time.GetHashCode(); - if (map_ != null) hash ^= Map.GetHashCode(); - if (teamInfo_ != null) hash ^= TeamInfo.GetHashCode(); - if (teamChat_ != null) hash ^= TeamChat.GetHashCode(); - if (entityInfo_ != null) hash ^= EntityInfo.GetHashCode(); - if (flag_ != null) hash ^= Flag.GetHashCode(); - if (mapMarkers_ != null) hash ^= MapMarkers.GetHashCode(); - if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); - if (clanChat_ != null) hash ^= ClanChat.GetHashCode(); - if (nexusAuth_ != null) hash ^= NexusAuth.GetHashCode(); - if (cameraSubscribeInfo_ != null) hash ^= CameraSubscribeInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSeq) { - output.WriteRawTag(8); - output.WriteUInt32(Seq); - } - if (success_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Success); - } - if (error_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Error); - } - if (info_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Info); - } - if (time_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Time); - } - if (map_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Map); - } - if (teamInfo_ != null) { - output.WriteRawTag(74); - output.WriteMessage(TeamInfo); - } - if (teamChat_ != null) { - output.WriteRawTag(82); - output.WriteMessage(TeamChat); - } - if (entityInfo_ != null) { - output.WriteRawTag(90); - output.WriteMessage(EntityInfo); - } - if (flag_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Flag); - } - if (mapMarkers_ != null) { - output.WriteRawTag(106); - output.WriteMessage(MapMarkers); - } - if (clanInfo_ != null) { - output.WriteRawTag(122); - output.WriteMessage(ClanInfo); - } - if (clanChat_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(ClanChat); - } - if (nexusAuth_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(NexusAuth); - } - if (cameraSubscribeInfo_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(CameraSubscribeInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSeq) { - output.WriteRawTag(8); - output.WriteUInt32(Seq); - } - if (success_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Success); - } - if (error_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Error); - } - if (info_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Info); - } - if (time_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Time); - } - if (map_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Map); - } - if (teamInfo_ != null) { - output.WriteRawTag(74); - output.WriteMessage(TeamInfo); - } - if (teamChat_ != null) { - output.WriteRawTag(82); - output.WriteMessage(TeamChat); - } - if (entityInfo_ != null) { - output.WriteRawTag(90); - output.WriteMessage(EntityInfo); - } - if (flag_ != null) { - output.WriteRawTag(98); - output.WriteMessage(Flag); - } - if (mapMarkers_ != null) { - output.WriteRawTag(106); - output.WriteMessage(MapMarkers); - } - if (clanInfo_ != null) { - output.WriteRawTag(122); - output.WriteMessage(ClanInfo); - } - if (clanChat_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(ClanChat); - } - if (nexusAuth_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(NexusAuth); - } - if (cameraSubscribeInfo_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(CameraSubscribeInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSeq) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seq); - } - if (success_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Success); - } - if (error_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); - } - if (info_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); - } - if (time_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); - } - if (map_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Map); - } - if (teamInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamInfo); - } - if (teamChat_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamChat); - } - if (entityInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityInfo); - } - if (flag_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Flag); - } - if (mapMarkers_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapMarkers); - } - if (clanInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); - } - if (clanChat_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClanChat); - } - if (nexusAuth_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(NexusAuth); - } - if (cameraSubscribeInfo_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraSubscribeInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppResponse other) { - if (other == null) { - return; - } - if (other.HasSeq) { - Seq = other.Seq; - } - if (other.success_ != null) { - if (success_ == null) { - Success = new global::Rustplus.AppSuccess(); - } - Success.MergeFrom(other.Success); - } - if (other.error_ != null) { - if (error_ == null) { - Error = new global::Rustplus.AppError(); - } - Error.MergeFrom(other.Error); - } - if (other.info_ != null) { - if (info_ == null) { - Info = new global::Rustplus.AppInfo(); - } - Info.MergeFrom(other.Info); - } - if (other.time_ != null) { - if (time_ == null) { - Time = new global::Rustplus.AppTime(); - } - Time.MergeFrom(other.Time); - } - if (other.map_ != null) { - if (map_ == null) { - Map = new global::Rustplus.AppMap(); - } - Map.MergeFrom(other.Map); - } - if (other.teamInfo_ != null) { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - TeamInfo.MergeFrom(other.TeamInfo); - } - if (other.teamChat_ != null) { - if (teamChat_ == null) { - TeamChat = new global::Rustplus.AppTeamChat(); - } - TeamChat.MergeFrom(other.TeamChat); - } - if (other.entityInfo_ != null) { - if (entityInfo_ == null) { - EntityInfo = new global::Rustplus.AppEntityInfo(); - } - EntityInfo.MergeFrom(other.EntityInfo); - } - if (other.flag_ != null) { - if (flag_ == null) { - Flag = new global::Rustplus.AppFlag(); - } - Flag.MergeFrom(other.Flag); - } - if (other.mapMarkers_ != null) { - if (mapMarkers_ == null) { - MapMarkers = new global::Rustplus.AppMapMarkers(); - } - MapMarkers.MergeFrom(other.MapMarkers); - } - if (other.clanInfo_ != null) { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.AppClanInfo(); - } - ClanInfo.MergeFrom(other.ClanInfo); - } - if (other.clanChat_ != null) { - if (clanChat_ == null) { - ClanChat = new global::Rustplus.AppClanChat(); - } - ClanChat.MergeFrom(other.ClanChat); - } - if (other.nexusAuth_ != null) { - if (nexusAuth_ == null) { - NexusAuth = new global::Rustplus.AppNexusAuth(); - } - NexusAuth.MergeFrom(other.NexusAuth); - } - if (other.cameraSubscribeInfo_ != null) { - if (cameraSubscribeInfo_ == null) { - CameraSubscribeInfo = new global::Rustplus.AppCameraInfo(); - } - CameraSubscribeInfo.MergeFrom(other.CameraSubscribeInfo); - } - _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 8: { - Seq = input.ReadUInt32(); - break; - } - case 34: { - if (success_ == null) { - Success = new global::Rustplus.AppSuccess(); - } - input.ReadMessage(Success); - break; - } - case 42: { - if (error_ == null) { - Error = new global::Rustplus.AppError(); - } - input.ReadMessage(Error); - break; - } - case 50: { - if (info_ == null) { - Info = new global::Rustplus.AppInfo(); - } - input.ReadMessage(Info); - break; - } - case 58: { - if (time_ == null) { - Time = new global::Rustplus.AppTime(); - } - input.ReadMessage(Time); - break; - } - case 66: { - if (map_ == null) { - Map = new global::Rustplus.AppMap(); - } - input.ReadMessage(Map); - break; - } - case 74: { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - input.ReadMessage(TeamInfo); - break; - } - case 82: { - if (teamChat_ == null) { - TeamChat = new global::Rustplus.AppTeamChat(); - } - input.ReadMessage(TeamChat); - break; - } - case 90: { - if (entityInfo_ == null) { - EntityInfo = new global::Rustplus.AppEntityInfo(); - } - input.ReadMessage(EntityInfo); - break; - } - case 98: { - if (flag_ == null) { - Flag = new global::Rustplus.AppFlag(); - } - input.ReadMessage(Flag); - break; - } - case 106: { - if (mapMarkers_ == null) { - MapMarkers = new global::Rustplus.AppMapMarkers(); - } - input.ReadMessage(MapMarkers); - break; - } - case 122: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.AppClanInfo(); - } - input.ReadMessage(ClanInfo); - break; - } - case 130: { - if (clanChat_ == null) { - ClanChat = new global::Rustplus.AppClanChat(); - } - input.ReadMessage(ClanChat); - break; - } - case 138: { - if (nexusAuth_ == null) { - NexusAuth = new global::Rustplus.AppNexusAuth(); - } - input.ReadMessage(NexusAuth); - break; - } - case 162: { - if (cameraSubscribeInfo_ == null) { - CameraSubscribeInfo = new global::Rustplus.AppCameraInfo(); - } - input.ReadMessage(CameraSubscribeInfo); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Seq = input.ReadUInt32(); - break; - } - case 34: { - if (success_ == null) { - Success = new global::Rustplus.AppSuccess(); - } - input.ReadMessage(Success); - break; - } - case 42: { - if (error_ == null) { - Error = new global::Rustplus.AppError(); - } - input.ReadMessage(Error); - break; - } - case 50: { - if (info_ == null) { - Info = new global::Rustplus.AppInfo(); - } - input.ReadMessage(Info); - break; - } - case 58: { - if (time_ == null) { - Time = new global::Rustplus.AppTime(); - } - input.ReadMessage(Time); - break; - } - case 66: { - if (map_ == null) { - Map = new global::Rustplus.AppMap(); - } - input.ReadMessage(Map); - break; - } - case 74: { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - input.ReadMessage(TeamInfo); - break; - } - case 82: { - if (teamChat_ == null) { - TeamChat = new global::Rustplus.AppTeamChat(); - } - input.ReadMessage(TeamChat); - break; - } - case 90: { - if (entityInfo_ == null) { - EntityInfo = new global::Rustplus.AppEntityInfo(); - } - input.ReadMessage(EntityInfo); - break; - } - case 98: { - if (flag_ == null) { - Flag = new global::Rustplus.AppFlag(); - } - input.ReadMessage(Flag); - break; - } - case 106: { - if (mapMarkers_ == null) { - MapMarkers = new global::Rustplus.AppMapMarkers(); - } - input.ReadMessage(MapMarkers); - break; - } - case 122: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.AppClanInfo(); - } - input.ReadMessage(ClanInfo); - break; - } - case 130: { - if (clanChat_ == null) { - ClanChat = new global::Rustplus.AppClanChat(); - } - input.ReadMessage(ClanChat); - break; - } - case 138: { - if (nexusAuth_ == null) { - NexusAuth = new global::Rustplus.AppNexusAuth(); - } - input.ReadMessage(NexusAuth); - break; - } - case 162: { - if (cameraSubscribeInfo_ == null) { - CameraSubscribeInfo = new global::Rustplus.AppCameraInfo(); - } - input.ReadMessage(CameraSubscribeInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppBroadcast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppBroadcast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppBroadcast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppBroadcast(AppBroadcast other) : this() { - teamChanged_ = other.teamChanged_ != null ? other.teamChanged_.Clone() : null; - teamMessage_ = other.teamMessage_ != null ? other.teamMessage_.Clone() : null; - entityChanged_ = other.entityChanged_ != null ? other.entityChanged_.Clone() : null; - clanChanged_ = other.clanChanged_ != null ? other.clanChanged_.Clone() : null; - clanMessage_ = other.clanMessage_ != null ? other.clanMessage_.Clone() : null; - cameraRays_ = other.cameraRays_ != null ? other.cameraRays_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppBroadcast Clone() { - return new AppBroadcast(this); - } - - /// Field number for the "teamChanged" field. - public const int TeamChangedFieldNumber = 4; - private global::Rustplus.AppTeamChanged teamChanged_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTeamChanged TeamChanged { - get { return teamChanged_; } - set { - teamChanged_ = value; - } - } - - /// Field number for the "teamMessage" field. - public const int TeamMessageFieldNumber = 5; - private global::Rustplus.AppNewTeamMessage teamMessage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppNewTeamMessage TeamMessage { - get { return teamMessage_; } - set { - teamMessage_ = value; - } - } - - /// Field number for the "entityChanged" field. - public const int EntityChangedFieldNumber = 6; - private global::Rustplus.AppEntityChanged entityChanged_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEntityChanged EntityChanged { - get { return entityChanged_; } - set { - entityChanged_ = value; - } - } - - /// Field number for the "clanChanged" field. - public const int ClanChangedFieldNumber = 7; - private global::Rustplus.AppClanChanged clanChanged_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppClanChanged ClanChanged { - get { return clanChanged_; } - set { - clanChanged_ = value; - } - } - - /// Field number for the "clanMessage" field. - public const int ClanMessageFieldNumber = 8; - private global::Rustplus.AppNewClanMessage clanMessage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppNewClanMessage ClanMessage { - get { return clanMessage_; } - set { - clanMessage_ = value; - } - } - - /// Field number for the "cameraRays" field. - public const int CameraRaysFieldNumber = 10; - private global::Rustplus.AppCameraRays cameraRays_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppCameraRays CameraRays { - get { return cameraRays_; } - set { - cameraRays_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppBroadcast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppBroadcast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(TeamChanged, other.TeamChanged)) return false; - if (!object.Equals(TeamMessage, other.TeamMessage)) return false; - if (!object.Equals(EntityChanged, other.EntityChanged)) return false; - if (!object.Equals(ClanChanged, other.ClanChanged)) return false; - if (!object.Equals(ClanMessage, other.ClanMessage)) return false; - if (!object.Equals(CameraRays, other.CameraRays)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (teamChanged_ != null) hash ^= TeamChanged.GetHashCode(); - if (teamMessage_ != null) hash ^= TeamMessage.GetHashCode(); - if (entityChanged_ != null) hash ^= EntityChanged.GetHashCode(); - if (clanChanged_ != null) hash ^= ClanChanged.GetHashCode(); - if (clanMessage_ != null) hash ^= ClanMessage.GetHashCode(); - if (cameraRays_ != null) hash ^= CameraRays.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (teamChanged_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TeamChanged); - } - if (teamMessage_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TeamMessage); - } - if (entityChanged_ != null) { - output.WriteRawTag(50); - output.WriteMessage(EntityChanged); - } - if (clanChanged_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ClanChanged); - } - if (clanMessage_ != null) { - output.WriteRawTag(66); - output.WriteMessage(ClanMessage); - } - if (cameraRays_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CameraRays); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (teamChanged_ != null) { - output.WriteRawTag(34); - output.WriteMessage(TeamChanged); - } - if (teamMessage_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TeamMessage); - } - if (entityChanged_ != null) { - output.WriteRawTag(50); - output.WriteMessage(EntityChanged); - } - if (clanChanged_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ClanChanged); - } - if (clanMessage_ != null) { - output.WriteRawTag(66); - output.WriteMessage(ClanMessage); - } - if (cameraRays_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CameraRays); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (teamChanged_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamChanged); - } - if (teamMessage_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamMessage); - } - if (entityChanged_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityChanged); - } - if (clanChanged_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanChanged); - } - if (clanMessage_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanMessage); - } - if (cameraRays_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CameraRays); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppBroadcast other) { - if (other == null) { - return; - } - if (other.teamChanged_ != null) { - if (teamChanged_ == null) { - TeamChanged = new global::Rustplus.AppTeamChanged(); - } - TeamChanged.MergeFrom(other.TeamChanged); - } - if (other.teamMessage_ != null) { - if (teamMessage_ == null) { - TeamMessage = new global::Rustplus.AppNewTeamMessage(); - } - TeamMessage.MergeFrom(other.TeamMessage); - } - if (other.entityChanged_ != null) { - if (entityChanged_ == null) { - EntityChanged = new global::Rustplus.AppEntityChanged(); - } - EntityChanged.MergeFrom(other.EntityChanged); - } - if (other.clanChanged_ != null) { - if (clanChanged_ == null) { - ClanChanged = new global::Rustplus.AppClanChanged(); - } - ClanChanged.MergeFrom(other.ClanChanged); - } - if (other.clanMessage_ != null) { - if (clanMessage_ == null) { - ClanMessage = new global::Rustplus.AppNewClanMessage(); - } - ClanMessage.MergeFrom(other.ClanMessage); - } - if (other.cameraRays_ != null) { - if (cameraRays_ == null) { - CameraRays = new global::Rustplus.AppCameraRays(); - } - CameraRays.MergeFrom(other.CameraRays); - } - _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 34: { - if (teamChanged_ == null) { - TeamChanged = new global::Rustplus.AppTeamChanged(); - } - input.ReadMessage(TeamChanged); - break; - } - case 42: { - if (teamMessage_ == null) { - TeamMessage = new global::Rustplus.AppNewTeamMessage(); - } - input.ReadMessage(TeamMessage); - break; - } - case 50: { - if (entityChanged_ == null) { - EntityChanged = new global::Rustplus.AppEntityChanged(); - } - input.ReadMessage(EntityChanged); - break; - } - case 58: { - if (clanChanged_ == null) { - ClanChanged = new global::Rustplus.AppClanChanged(); - } - input.ReadMessage(ClanChanged); - break; - } - case 66: { - if (clanMessage_ == null) { - ClanMessage = new global::Rustplus.AppNewClanMessage(); - } - input.ReadMessage(ClanMessage); - break; - } - case 82: { - if (cameraRays_ == null) { - CameraRays = new global::Rustplus.AppCameraRays(); - } - input.ReadMessage(CameraRays); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - if (teamChanged_ == null) { - TeamChanged = new global::Rustplus.AppTeamChanged(); - } - input.ReadMessage(TeamChanged); - break; - } - case 42: { - if (teamMessage_ == null) { - TeamMessage = new global::Rustplus.AppNewTeamMessage(); - } - input.ReadMessage(TeamMessage); - break; - } - case 50: { - if (entityChanged_ == null) { - EntityChanged = new global::Rustplus.AppEntityChanged(); - } - input.ReadMessage(EntityChanged); - break; - } - case 58: { - if (clanChanged_ == null) { - ClanChanged = new global::Rustplus.AppClanChanged(); - } - input.ReadMessage(ClanChanged); - break; - } - case 66: { - if (clanMessage_ == null) { - ClanMessage = new global::Rustplus.AppNewClanMessage(); - } - input.ReadMessage(ClanMessage); - break; - } - case 82: { - if (cameraRays_ == null) { - CameraRays = new global::Rustplus.AppCameraRays(); - } - input.ReadMessage(CameraRays); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppEmpty : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEmpty()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEmpty() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEmpty(AppEmpty other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEmpty Clone() { - return new AppEmpty(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppEmpty); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppEmpty other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppEmpty other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppSendMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSendMessage()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSendMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSendMessage(AppSendMessage other) : this() { - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSendMessage Clone() { - return new AppSendMessage(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - private readonly static string MessageDefaultValue = ""; - - private string message_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_ ?? MessageDefaultValue; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "message" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMessage { - get { return message_ != null; } - } - /// Clears the value of the "message" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMessage() { - message_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppSendMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppSendMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Message != other.Message) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMessage) hash ^= Message.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasMessage) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasMessage) { - output.WriteRawTag(10); - output.WriteString(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMessage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppSendMessage other) { - if (other == null) { - return; - } - if (other.HasMessage) { - Message = other.Message; - } - _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: { - Message = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Message = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppSetEntityValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSetEntityValue()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSetEntityValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSetEntityValue(AppSetEntityValue other) : this() { - _hasBits0 = other._hasBits0; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSetEntityValue Clone() { - return new AppSetEntityValue(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private readonly static bool ValueDefaultValue = false; - - private bool value_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Value { - get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } - set { - _hasBits0 |= 1; - value_ = value; - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppSetEntityValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppSetEntityValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppSetEntityValue other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _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 8: { - Value = input.ReadBool(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Value = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppPromoteToLeader : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPromoteToLeader()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPromoteToLeader() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPromoteToLeader(AppPromoteToLeader other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPromoteToLeader Clone() { - return new AppPromoteToLeader(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppPromoteToLeader); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppPromoteToLeader other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppPromoteToLeader other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - _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 8: { - SteamId = input.ReadUInt64(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppGetNexusAuth : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppGetNexusAuth()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppGetNexusAuth() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppGetNexusAuth(AppGetNexusAuth other) : this() { - appKey_ = other.appKey_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppGetNexusAuth Clone() { - return new AppGetNexusAuth(this); - } - - /// Field number for the "appKey" field. - public const int AppKeyFieldNumber = 1; - private readonly static string AppKeyDefaultValue = ""; - - private string appKey_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppKey { - get { return appKey_ ?? AppKeyDefaultValue; } - set { - appKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "appKey" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppKey { - get { return appKey_ != null; } - } - /// Clears the value of the "appKey" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppKey() { - appKey_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppGetNexusAuth); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppGetNexusAuth other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AppKey != other.AppKey) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAppKey) hash ^= AppKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasAppKey) { - output.WriteRawTag(10); - output.WriteString(AppKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasAppKey) { - output.WriteRawTag(10); - output.WriteString(AppKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAppKey) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppKey); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppGetNexusAuth other) { - if (other == null) { - return; - } - if (other.HasAppKey) { - AppKey = other.AppKey; - } - _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: { - AppKey = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - AppKey = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppSuccess : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSuccess()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSuccess() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSuccess(AppSuccess other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppSuccess Clone() { - return new AppSuccess(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppSuccess); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppSuccess other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppSuccess other) { - if (other == null) { - return; - } - _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; - } - } - #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; - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppError : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppError()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppError() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppError(AppError other) : this() { - error_ = other.error_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppError Clone() { - return new AppError(this); - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 1; - private readonly static string ErrorDefaultValue = ""; - - private string error_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_ ?? ErrorDefaultValue; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "error" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasError { - get { return error_ != null; } - } - /// Clears the value of the "error" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearError() { - error_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppError); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppError other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Error != other.Error) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasError) hash ^= Error.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasError) { - output.WriteRawTag(10); - output.WriteString(Error); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasError) { - output.WriteRawTag(10); - output.WriteString(Error); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasError) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppError other) { - if (other == null) { - return; - } - if (other.HasError) { - Error = other.Error; - } - _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: { - Error = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Error = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppFlag : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppFlag()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFlag() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFlag(AppFlag other) : this() { - _hasBits0 = other._hasBits0; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFlag Clone() { - return new AppFlag(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private readonly static bool ValueDefaultValue = false; - - private bool value_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Value { - get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } - set { - _hasBits0 |= 1; - value_ = value; - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppFlag); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppFlag other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppFlag other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _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 8: { - Value = input.ReadBool(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Value = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppInfo(AppInfo other) : this() { - _hasBits0 = other._hasBits0; - name_ = other.name_; - headerImage_ = other.headerImage_; - url_ = other.url_; - map_ = other.map_; - mapSize_ = other.mapSize_; - wipeTime_ = other.wipeTime_; - players_ = other.players_; - maxPlayers_ = other.maxPlayers_; - queuedPlayers_ = other.queuedPlayers_; - seed_ = other.seed_; - salt_ = other.salt_; - logoImage_ = other.logoImage_; - nexus_ = other.nexus_; - nexusId_ = other.nexusId_; - nexusZone_ = other.nexusZone_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppInfo Clone() { - return new AppInfo(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "headerImage" field. - public const int HeaderImageFieldNumber = 2; - private readonly static string HeaderImageDefaultValue = ""; - - private string headerImage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HeaderImage { - get { return headerImage_ ?? HeaderImageDefaultValue; } - set { - headerImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headerImage" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeaderImage { - get { return headerImage_ != null; } - } - /// Clears the value of the "headerImage" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeaderImage() { - headerImage_ = null; - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 3; - private readonly static string UrlDefaultValue = ""; - - private string url_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? UrlDefaultValue; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - /// Field number for the "map" field. - public const int MapFieldNumber = 4; - private readonly static string MapDefaultValue = ""; - - private string map_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Map { - get { return map_ ?? MapDefaultValue; } - set { - map_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "map" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMap { - get { return map_ != null; } - } - /// Clears the value of the "map" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMap() { - map_ = null; - } - - /// Field number for the "mapSize" field. - public const int MapSizeFieldNumber = 5; - private readonly static uint MapSizeDefaultValue = 0; - - private uint mapSize_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MapSize { - get { if ((_hasBits0 & 1) != 0) { return mapSize_; } else { return MapSizeDefaultValue; } } - set { - _hasBits0 |= 1; - mapSize_ = value; - } - } - /// Gets whether the "mapSize" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMapSize { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "mapSize" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMapSize() { - _hasBits0 &= ~1; - } - - /// Field number for the "wipeTime" field. - public const int WipeTimeFieldNumber = 6; - private readonly static uint WipeTimeDefaultValue = 0; - - private uint wipeTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint WipeTime { - get { if ((_hasBits0 & 2) != 0) { return wipeTime_; } else { return WipeTimeDefaultValue; } } - set { - _hasBits0 |= 2; - wipeTime_ = value; - } - } - /// Gets whether the "wipeTime" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWipeTime { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "wipeTime" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWipeTime() { - _hasBits0 &= ~2; - } - - /// Field number for the "players" field. - public const int PlayersFieldNumber = 7; - private readonly static uint PlayersDefaultValue = 0; - - private uint players_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Players { - get { if ((_hasBits0 & 4) != 0) { return players_; } else { return PlayersDefaultValue; } } - set { - _hasBits0 |= 4; - players_ = value; - } - } - /// Gets whether the "players" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayers { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "players" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayers() { - _hasBits0 &= ~4; - } - - /// Field number for the "maxPlayers" field. - public const int MaxPlayersFieldNumber = 8; - private readonly static uint MaxPlayersDefaultValue = 0; - - private uint maxPlayers_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxPlayers { - get { if ((_hasBits0 & 8) != 0) { return maxPlayers_; } else { return MaxPlayersDefaultValue; } } - set { - _hasBits0 |= 8; - maxPlayers_ = value; - } - } - /// Gets whether the "maxPlayers" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxPlayers { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "maxPlayers" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxPlayers() { - _hasBits0 &= ~8; - } - - /// Field number for the "queuedPlayers" field. - public const int QueuedPlayersFieldNumber = 9; - private readonly static uint QueuedPlayersDefaultValue = 0; - - private uint queuedPlayers_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint QueuedPlayers { - get { if ((_hasBits0 & 16) != 0) { return queuedPlayers_; } else { return QueuedPlayersDefaultValue; } } - set { - _hasBits0 |= 16; - queuedPlayers_ = value; - } - } - /// Gets whether the "queuedPlayers" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasQueuedPlayers { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "queuedPlayers" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearQueuedPlayers() { - _hasBits0 &= ~16; - } - - /// Field number for the "seed" field. - public const int SeedFieldNumber = 10; - private readonly static uint SeedDefaultValue = 0; - - private uint seed_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Seed { - get { if ((_hasBits0 & 32) != 0) { return seed_; } else { return SeedDefaultValue; } } - set { - _hasBits0 |= 32; - seed_ = value; - } - } - /// Gets whether the "seed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSeed { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "seed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSeed() { - _hasBits0 &= ~32; - } - - /// Field number for the "salt" field. - public const int SaltFieldNumber = 11; - private readonly static uint SaltDefaultValue = 0; - - private uint salt_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Salt { - get { if ((_hasBits0 & 64) != 0) { return salt_; } else { return SaltDefaultValue; } } - set { - _hasBits0 |= 64; - salt_ = value; - } - } - /// Gets whether the "salt" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSalt { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "salt" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSalt() { - _hasBits0 &= ~64; - } - - /// Field number for the "logoImage" field. - public const int LogoImageFieldNumber = 12; - private readonly static string LogoImageDefaultValue = ""; - - private string logoImage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LogoImage { - get { return logoImage_ ?? LogoImageDefaultValue; } - set { - logoImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "logoImage" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLogoImage { - get { return logoImage_ != null; } - } - /// Clears the value of the "logoImage" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLogoImage() { - logoImage_ = null; - } - - /// Field number for the "nexus" field. - public const int NexusFieldNumber = 13; - private readonly static string NexusDefaultValue = ""; - - private string nexus_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Nexus { - get { return nexus_ ?? NexusDefaultValue; } - set { - nexus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "nexus" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNexus { - get { return nexus_ != null; } - } - /// Clears the value of the "nexus" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNexus() { - nexus_ = null; - } - - /// Field number for the "nexusId" field. - public const int NexusIdFieldNumber = 14; - private readonly static int NexusIdDefaultValue = 0; - - private int nexusId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NexusId { - get { if ((_hasBits0 & 128) != 0) { return nexusId_; } else { return NexusIdDefaultValue; } } - set { - _hasBits0 |= 128; - nexusId_ = value; - } - } - /// Gets whether the "nexusId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNexusId { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "nexusId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNexusId() { - _hasBits0 &= ~128; - } - - /// Field number for the "nexusZone" field. - public const int NexusZoneFieldNumber = 15; - private readonly static string NexusZoneDefaultValue = ""; - - private string nexusZone_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NexusZone { - get { return nexusZone_ ?? NexusZoneDefaultValue; } - set { - nexusZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "nexusZone" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNexusZone { - get { return nexusZone_ != null; } - } - /// Clears the value of the "nexusZone" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNexusZone() { - nexusZone_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (HeaderImage != other.HeaderImage) return false; - if (Url != other.Url) return false; - if (Map != other.Map) return false; - if (MapSize != other.MapSize) return false; - if (WipeTime != other.WipeTime) return false; - if (Players != other.Players) return false; - if (MaxPlayers != other.MaxPlayers) return false; - if (QueuedPlayers != other.QueuedPlayers) return false; - if (Seed != other.Seed) return false; - if (Salt != other.Salt) return false; - if (LogoImage != other.LogoImage) return false; - if (Nexus != other.Nexus) return false; - if (NexusId != other.NexusId) return false; - if (NexusZone != other.NexusZone) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasName) hash ^= Name.GetHashCode(); - if (HasHeaderImage) hash ^= HeaderImage.GetHashCode(); - if (HasUrl) hash ^= Url.GetHashCode(); - if (HasMap) hash ^= Map.GetHashCode(); - if (HasMapSize) hash ^= MapSize.GetHashCode(); - if (HasWipeTime) hash ^= WipeTime.GetHashCode(); - if (HasPlayers) hash ^= Players.GetHashCode(); - if (HasMaxPlayers) hash ^= MaxPlayers.GetHashCode(); - if (HasQueuedPlayers) hash ^= QueuedPlayers.GetHashCode(); - if (HasSeed) hash ^= Seed.GetHashCode(); - if (HasSalt) hash ^= Salt.GetHashCode(); - if (HasLogoImage) hash ^= LogoImage.GetHashCode(); - if (HasNexus) hash ^= Nexus.GetHashCode(); - if (HasNexusId) hash ^= NexusId.GetHashCode(); - if (HasNexusZone) hash ^= NexusZone.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasName) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HasHeaderImage) { - output.WriteRawTag(18); - output.WriteString(HeaderImage); - } - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (HasMap) { - output.WriteRawTag(34); - output.WriteString(Map); - } - if (HasMapSize) { - output.WriteRawTag(40); - output.WriteUInt32(MapSize); - } - if (HasWipeTime) { - output.WriteRawTag(48); - output.WriteUInt32(WipeTime); - } - if (HasPlayers) { - output.WriteRawTag(56); - output.WriteUInt32(Players); - } - if (HasMaxPlayers) { - output.WriteRawTag(64); - output.WriteUInt32(MaxPlayers); - } - if (HasQueuedPlayers) { - output.WriteRawTag(72); - output.WriteUInt32(QueuedPlayers); - } - if (HasSeed) { - output.WriteRawTag(80); - output.WriteUInt32(Seed); - } - if (HasSalt) { - output.WriteRawTag(88); - output.WriteUInt32(Salt); - } - if (HasLogoImage) { - output.WriteRawTag(98); - output.WriteString(LogoImage); - } - if (HasNexus) { - output.WriteRawTag(106); - output.WriteString(Nexus); - } - if (HasNexusId) { - output.WriteRawTag(112); - output.WriteInt32(NexusId); - } - if (HasNexusZone) { - output.WriteRawTag(122); - output.WriteString(NexusZone); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasName) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (HasHeaderImage) { - output.WriteRawTag(18); - output.WriteString(HeaderImage); - } - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (HasMap) { - output.WriteRawTag(34); - output.WriteString(Map); - } - if (HasMapSize) { - output.WriteRawTag(40); - output.WriteUInt32(MapSize); - } - if (HasWipeTime) { - output.WriteRawTag(48); - output.WriteUInt32(WipeTime); - } - if (HasPlayers) { - output.WriteRawTag(56); - output.WriteUInt32(Players); - } - if (HasMaxPlayers) { - output.WriteRawTag(64); - output.WriteUInt32(MaxPlayers); - } - if (HasQueuedPlayers) { - output.WriteRawTag(72); - output.WriteUInt32(QueuedPlayers); - } - if (HasSeed) { - output.WriteRawTag(80); - output.WriteUInt32(Seed); - } - if (HasSalt) { - output.WriteRawTag(88); - output.WriteUInt32(Salt); - } - if (HasLogoImage) { - output.WriteRawTag(98); - output.WriteString(LogoImage); - } - if (HasNexus) { - output.WriteRawTag(106); - output.WriteString(Nexus); - } - if (HasNexusId) { - output.WriteRawTag(112); - output.WriteInt32(NexusId); - } - if (HasNexusZone) { - output.WriteRawTag(122); - output.WriteString(NexusZone); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasHeaderImage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeaderImage); - } - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (HasMap) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Map); - } - if (HasMapSize) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapSize); - } - if (HasWipeTime) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WipeTime); - } - if (HasPlayers) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Players); - } - if (HasMaxPlayers) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxPlayers); - } - if (HasQueuedPlayers) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QueuedPlayers); - } - if (HasSeed) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seed); - } - if (HasSalt) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Salt); - } - if (HasLogoImage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LogoImage); - } - if (HasNexus) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Nexus); - } - if (HasNexusId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NexusId); - } - if (HasNexusZone) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NexusZone); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppInfo other) { - if (other == null) { - return; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasHeaderImage) { - HeaderImage = other.HeaderImage; - } - if (other.HasUrl) { - Url = other.Url; - } - if (other.HasMap) { - Map = other.Map; - } - if (other.HasMapSize) { - MapSize = other.MapSize; - } - if (other.HasWipeTime) { - WipeTime = other.WipeTime; - } - if (other.HasPlayers) { - Players = other.Players; - } - if (other.HasMaxPlayers) { - MaxPlayers = other.MaxPlayers; - } - if (other.HasQueuedPlayers) { - QueuedPlayers = other.QueuedPlayers; - } - if (other.HasSeed) { - Seed = other.Seed; - } - if (other.HasSalt) { - Salt = other.Salt; - } - if (other.HasLogoImage) { - LogoImage = other.LogoImage; - } - if (other.HasNexus) { - Nexus = other.Nexus; - } - if (other.HasNexusId) { - NexusId = other.NexusId; - } - if (other.HasNexusZone) { - NexusZone = other.NexusZone; - } - _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: { - Name = input.ReadString(); - break; - } - case 18: { - HeaderImage = input.ReadString(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - case 34: { - Map = input.ReadString(); - break; - } - case 40: { - MapSize = input.ReadUInt32(); - break; - } - case 48: { - WipeTime = input.ReadUInt32(); - break; - } - case 56: { - Players = input.ReadUInt32(); - break; - } - case 64: { - MaxPlayers = input.ReadUInt32(); - break; - } - case 72: { - QueuedPlayers = input.ReadUInt32(); - break; - } - case 80: { - Seed = input.ReadUInt32(); - break; - } - case 88: { - Salt = input.ReadUInt32(); - break; - } - case 98: { - LogoImage = input.ReadString(); - break; - } - case 106: { - Nexus = input.ReadString(); - break; - } - case 112: { - NexusId = input.ReadInt32(); - break; - } - case 122: { - NexusZone = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - HeaderImage = input.ReadString(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - case 34: { - Map = input.ReadString(); - break; - } - case 40: { - MapSize = input.ReadUInt32(); - break; - } - case 48: { - WipeTime = input.ReadUInt32(); - break; - } - case 56: { - Players = input.ReadUInt32(); - break; - } - case 64: { - MaxPlayers = input.ReadUInt32(); - break; - } - case 72: { - QueuedPlayers = input.ReadUInt32(); - break; - } - case 80: { - Seed = input.ReadUInt32(); - break; - } - case 88: { - Salt = input.ReadUInt32(); - break; - } - case 98: { - LogoImage = input.ReadString(); - break; - } - case 106: { - Nexus = input.ReadString(); - break; - } - case 112: { - NexusId = input.ReadInt32(); - break; - } - case 122: { - NexusZone = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppTime : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTime()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTime() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTime(AppTime other) : this() { - _hasBits0 = other._hasBits0; - dayLengthMinutes_ = other.dayLengthMinutes_; - timeScale_ = other.timeScale_; - sunrise_ = other.sunrise_; - sunset_ = other.sunset_; - time_ = other.time_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTime Clone() { - return new AppTime(this); - } - - /// Field number for the "dayLengthMinutes" field. - public const int DayLengthMinutesFieldNumber = 1; - private readonly static float DayLengthMinutesDefaultValue = 0F; - - private float dayLengthMinutes_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float DayLengthMinutes { - get { if ((_hasBits0 & 1) != 0) { return dayLengthMinutes_; } else { return DayLengthMinutesDefaultValue; } } - set { - _hasBits0 |= 1; - dayLengthMinutes_ = value; - } - } - /// Gets whether the "dayLengthMinutes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDayLengthMinutes { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "dayLengthMinutes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDayLengthMinutes() { - _hasBits0 &= ~1; - } - - /// Field number for the "timeScale" field. - public const int TimeScaleFieldNumber = 2; - private readonly static float TimeScaleDefaultValue = 0F; - - private float timeScale_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float TimeScale { - get { if ((_hasBits0 & 2) != 0) { return timeScale_; } else { return TimeScaleDefaultValue; } } - set { - _hasBits0 |= 2; - timeScale_ = value; - } - } - /// Gets whether the "timeScale" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimeScale { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "timeScale" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimeScale() { - _hasBits0 &= ~2; - } - - /// Field number for the "sunrise" field. - public const int SunriseFieldNumber = 3; - private readonly static float SunriseDefaultValue = 0F; - - private float sunrise_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Sunrise { - get { if ((_hasBits0 & 4) != 0) { return sunrise_; } else { return SunriseDefaultValue; } } - set { - _hasBits0 |= 4; - sunrise_ = value; - } - } - /// Gets whether the "sunrise" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSunrise { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "sunrise" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSunrise() { - _hasBits0 &= ~4; - } - - /// Field number for the "sunset" field. - public const int SunsetFieldNumber = 4; - private readonly static float SunsetDefaultValue = 0F; - - private float sunset_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Sunset { - get { if ((_hasBits0 & 8) != 0) { return sunset_; } else { return SunsetDefaultValue; } } - set { - _hasBits0 |= 8; - sunset_ = value; - } - } - /// Gets whether the "sunset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSunset { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "sunset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSunset() { - _hasBits0 &= ~8; - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 5; - private readonly static float TimeDefaultValue = 0F; - - private float time_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Time { - get { if ((_hasBits0 & 16) != 0) { return time_; } else { return TimeDefaultValue; } } - set { - _hasBits0 |= 16; - time_ = value; - } - } - /// Gets whether the "time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTime { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTime() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppTime); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppTime other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DayLengthMinutes, other.DayLengthMinutes)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeScale, other.TimeScale)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Sunrise, other.Sunrise)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Sunset, other.Sunset)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Time, other.Time)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasDayLengthMinutes) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DayLengthMinutes); - if (HasTimeScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeScale); - if (HasSunrise) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Sunrise); - if (HasSunset) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Sunset); - if (HasTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Time); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasDayLengthMinutes) { - output.WriteRawTag(13); - output.WriteFloat(DayLengthMinutes); - } - if (HasTimeScale) { - output.WriteRawTag(21); - output.WriteFloat(TimeScale); - } - if (HasSunrise) { - output.WriteRawTag(29); - output.WriteFloat(Sunrise); - } - if (HasSunset) { - output.WriteRawTag(37); - output.WriteFloat(Sunset); - } - if (HasTime) { - output.WriteRawTag(45); - output.WriteFloat(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasDayLengthMinutes) { - output.WriteRawTag(13); - output.WriteFloat(DayLengthMinutes); - } - if (HasTimeScale) { - output.WriteRawTag(21); - output.WriteFloat(TimeScale); - } - if (HasSunrise) { - output.WriteRawTag(29); - output.WriteFloat(Sunrise); - } - if (HasSunset) { - output.WriteRawTag(37); - output.WriteFloat(Sunset); - } - if (HasTime) { - output.WriteRawTag(45); - output.WriteFloat(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasDayLengthMinutes) { - size += 1 + 4; - } - if (HasTimeScale) { - size += 1 + 4; - } - if (HasSunrise) { - size += 1 + 4; - } - if (HasSunset) { - size += 1 + 4; - } - if (HasTime) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppTime other) { - if (other == null) { - return; - } - if (other.HasDayLengthMinutes) { - DayLengthMinutes = other.DayLengthMinutes; - } - if (other.HasTimeScale) { - TimeScale = other.TimeScale; - } - if (other.HasSunrise) { - Sunrise = other.Sunrise; - } - if (other.HasSunset) { - Sunset = other.Sunset; - } - if (other.HasTime) { - Time = other.Time; - } - _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 13: { - DayLengthMinutes = input.ReadFloat(); - break; - } - case 21: { - TimeScale = input.ReadFloat(); - break; - } - case 29: { - Sunrise = input.ReadFloat(); - break; - } - case 37: { - Sunset = input.ReadFloat(); - break; - } - case 45: { - Time = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - DayLengthMinutes = input.ReadFloat(); - break; - } - case 21: { - TimeScale = input.ReadFloat(); - break; - } - case 29: { - Sunrise = input.ReadFloat(); - break; - } - case 37: { - Sunset = input.ReadFloat(); - break; - } - case 45: { - Time = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppMap : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMap()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMap() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMap(AppMap other) : this() { - _hasBits0 = other._hasBits0; - width_ = other.width_; - height_ = other.height_; - jpgImage_ = other.jpgImage_; - oceanMargin_ = other.oceanMargin_; - monuments_ = other.monuments_.Clone(); - background_ = other.background_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMap Clone() { - return new AppMap(this); - } - - /// Field number for the "width" field. - public const int WidthFieldNumber = 1; - private readonly static uint WidthDefaultValue = 0; - - private uint width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Width { - get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } - set { - _hasBits0 |= 1; - width_ = value; - } - } - /// Gets whether the "width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWidth { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWidth() { - _hasBits0 &= ~1; - } - - /// Field number for the "height" field. - public const int HeightFieldNumber = 2; - private readonly static uint HeightDefaultValue = 0; - - private uint height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Height { - get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } - set { - _hasBits0 |= 2; - height_ = value; - } - } - /// Gets whether the "height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeight { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeight() { - _hasBits0 &= ~2; - } - - /// Field number for the "jpgImage" field. - public const int JpgImageFieldNumber = 3; - private readonly static pb::ByteString JpgImageDefaultValue = pb::ByteString.Empty; - - private pb::ByteString jpgImage_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString JpgImage { - get { return jpgImage_ ?? JpgImageDefaultValue; } - set { - jpgImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "jpgImage" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasJpgImage { - get { return jpgImage_ != null; } - } - /// Clears the value of the "jpgImage" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearJpgImage() { - jpgImage_ = null; - } - - /// Field number for the "oceanMargin" field. - public const int OceanMarginFieldNumber = 4; - private readonly static int OceanMarginDefaultValue = 0; - - private int oceanMargin_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int OceanMargin { - get { if ((_hasBits0 & 4) != 0) { return oceanMargin_; } else { return OceanMarginDefaultValue; } } - set { - _hasBits0 |= 4; - oceanMargin_ = value; - } - } - /// Gets whether the "oceanMargin" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOceanMargin { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "oceanMargin" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOceanMargin() { - _hasBits0 &= ~4; - } - - /// Field number for the "monuments" field. - public const int MonumentsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_monuments_codec - = pb::FieldCodec.ForMessage(42, global::Rustplus.AppMap.Types.Monument.Parser); - private readonly pbc::RepeatedField monuments_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Monuments { - get { return monuments_; } - } - - /// Field number for the "background" field. - public const int BackgroundFieldNumber = 6; - private readonly static string BackgroundDefaultValue = ""; - - private string background_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Background { - get { return background_ ?? BackgroundDefaultValue; } - set { - background_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "background" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBackground { - get { return background_ != null; } - } - /// Clears the value of the "background" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBackground() { - background_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppMap); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppMap other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Width != other.Width) return false; - if (Height != other.Height) return false; - if (JpgImage != other.JpgImage) return false; - if (OceanMargin != other.OceanMargin) return false; - if(!monuments_.Equals(other.monuments_)) return false; - if (Background != other.Background) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasWidth) hash ^= Width.GetHashCode(); - if (HasHeight) hash ^= Height.GetHashCode(); - if (HasJpgImage) hash ^= JpgImage.GetHashCode(); - if (HasOceanMargin) hash ^= OceanMargin.GetHashCode(); - hash ^= monuments_.GetHashCode(); - if (HasBackground) hash ^= Background.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasWidth) { - output.WriteRawTag(8); - output.WriteUInt32(Width); - } - if (HasHeight) { - output.WriteRawTag(16); - output.WriteUInt32(Height); - } - if (HasJpgImage) { - output.WriteRawTag(26); - output.WriteBytes(JpgImage); - } - if (HasOceanMargin) { - output.WriteRawTag(32); - output.WriteInt32(OceanMargin); - } - monuments_.WriteTo(output, _repeated_monuments_codec); - if (HasBackground) { - output.WriteRawTag(50); - output.WriteString(Background); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasWidth) { - output.WriteRawTag(8); - output.WriteUInt32(Width); - } - if (HasHeight) { - output.WriteRawTag(16); - output.WriteUInt32(Height); - } - if (HasJpgImage) { - output.WriteRawTag(26); - output.WriteBytes(JpgImage); - } - if (HasOceanMargin) { - output.WriteRawTag(32); - output.WriteInt32(OceanMargin); - } - monuments_.WriteTo(ref output, _repeated_monuments_codec); - if (HasBackground) { - output.WriteRawTag(50); - output.WriteString(Background); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasWidth) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); - } - if (HasHeight) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); - } - if (HasJpgImage) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(JpgImage); - } - if (HasOceanMargin) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(OceanMargin); - } - size += monuments_.CalculateSize(_repeated_monuments_codec); - if (HasBackground) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Background); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppMap other) { - if (other == null) { - return; - } - if (other.HasWidth) { - Width = other.Width; - } - if (other.HasHeight) { - Height = other.Height; - } - if (other.HasJpgImage) { - JpgImage = other.JpgImage; - } - if (other.HasOceanMargin) { - OceanMargin = other.OceanMargin; - } - monuments_.Add(other.monuments_); - if (other.HasBackground) { - Background = other.Background; - } - _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 8: { - Width = input.ReadUInt32(); - break; - } - case 16: { - Height = input.ReadUInt32(); - break; - } - case 26: { - JpgImage = input.ReadBytes(); - break; - } - case 32: { - OceanMargin = input.ReadInt32(); - break; - } - case 42: { - monuments_.AddEntriesFrom(input, _repeated_monuments_codec); - break; - } - case 50: { - Background = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Width = input.ReadUInt32(); - break; - } - case 16: { - Height = input.ReadUInt32(); - break; - } - case 26: { - JpgImage = input.ReadBytes(); - break; - } - case 32: { - OceanMargin = input.ReadInt32(); - break; - } - case 42: { - monuments_.AddEntriesFrom(ref input, _repeated_monuments_codec); - break; - } - case 50: { - Background = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppMap message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Monument : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Monument()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppMap.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Monument() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Monument(Monument other) : this() { - _hasBits0 = other._hasBits0; - token_ = other.token_; - x_ = other.x_; - y_ = other.y_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Monument Clone() { - return new Monument(this); - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 1; - private readonly static string TokenDefaultValue = ""; - - private string token_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_ ?? TokenDefaultValue; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "token" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasToken { - get { return token_ != null; } - } - /// Clears the value of the "token" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearToken() { - token_ = null; - } - - /// Field number for the "x" field. - public const int XFieldNumber = 2; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~1; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 3; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Monument); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Monument other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Token != other.Token) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasToken) hash ^= Token.GetHashCode(); - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasToken) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (HasX) { - output.WriteRawTag(21); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(29); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasToken) { - output.WriteRawTag(10); - output.WriteString(Token); - } - if (HasX) { - output.WriteRawTag(21); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(29); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasToken) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Monument other) { - if (other == null) { - return; - } - if (other.HasToken) { - Token = other.Token; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - _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: { - Token = input.ReadString(); - break; - } - case 21: { - X = input.ReadFloat(); - break; - } - case 29: { - Y = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Token = input.ReadString(); - break; - } - case 21: { - X = input.ReadFloat(); - break; - } - case 29: { - Y = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppEntityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityInfo(AppEntityInfo other) : this() { - _hasBits0 = other._hasBits0; - type_ = other.type_; - payload_ = other.payload_ != null ? other.payload_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityInfo Clone() { - return new AppEntityInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private readonly static global::Rustplus.AppEntityType TypeDefaultValue = global::Rustplus.AppEntityType.Switch; - - private global::Rustplus.AppEntityType type_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEntityType Type { - get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } - set { - _hasBits0 |= 1; - type_ = value; - } - } - /// Gets whether the "type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasType { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearType() { - _hasBits0 &= ~1; - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 3; - private global::Rustplus.AppEntityPayload payload_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEntityPayload Payload { - get { return payload_; } - set { - payload_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppEntityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppEntityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (!object.Equals(Payload, other.Payload)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasType) hash ^= Type.GetHashCode(); - if (payload_ != null) hash ^= Payload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasType) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (payload_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Payload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasType) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (payload_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Payload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (payload_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppEntityInfo other) { - if (other == null) { - return; - } - if (other.HasType) { - Type = other.Type; - } - if (other.payload_ != null) { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - Payload.MergeFrom(other.Payload); - } - _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 8: { - Type = (global::Rustplus.AppEntityType) input.ReadEnum(); - break; - } - case 26: { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - input.ReadMessage(Payload); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Rustplus.AppEntityType) input.ReadEnum(); - break; - } - case 26: { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - input.ReadMessage(Payload); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppEntityPayload : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityPayload()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityPayload() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityPayload(AppEntityPayload other) : this() { - _hasBits0 = other._hasBits0; - value_ = other.value_; - items_ = other.items_.Clone(); - capacity_ = other.capacity_; - hasProtection_ = other.hasProtection_; - protectionExpiry_ = other.protectionExpiry_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityPayload Clone() { - return new AppEntityPayload(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private readonly static bool ValueDefaultValue = false; - - private bool value_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Value { - get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } - set { - _hasBits0 |= 1; - value_ = value; - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - _hasBits0 &= ~1; - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(18, global::Rustplus.AppEntityPayload.Types.Item.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - /// Field number for the "capacity" field. - public const int CapacityFieldNumber = 3; - private readonly static int CapacityDefaultValue = 0; - - private int capacity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Capacity { - get { if ((_hasBits0 & 2) != 0) { return capacity_; } else { return CapacityDefaultValue; } } - set { - _hasBits0 |= 2; - capacity_ = value; - } - } - /// Gets whether the "capacity" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCapacity { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "capacity" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCapacity() { - _hasBits0 &= ~2; - } - - /// Field number for the "hasProtection" field. - public const int HasProtectionFieldNumber = 4; - private readonly static bool HasProtectionDefaultValue = false; - - private bool hasProtection_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProtection { - get { if ((_hasBits0 & 4) != 0) { return hasProtection_; } else { return HasProtectionDefaultValue; } } - set { - _hasBits0 |= 4; - hasProtection_ = value; - } - } - /// Gets whether the "hasProtection" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasProtection { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "hasProtection" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasProtection() { - _hasBits0 &= ~4; - } - - /// Field number for the "protectionExpiry" field. - public const int ProtectionExpiryFieldNumber = 5; - private readonly static uint ProtectionExpiryDefaultValue = 0; - - private uint protectionExpiry_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ProtectionExpiry { - get { if ((_hasBits0 & 8) != 0) { return protectionExpiry_; } else { return ProtectionExpiryDefaultValue; } } - set { - _hasBits0 |= 8; - protectionExpiry_ = value; - } - } - /// Gets whether the "protectionExpiry" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProtectionExpiry { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "protectionExpiry" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProtectionExpiry() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppEntityPayload); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppEntityPayload other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - if(!items_.Equals(other.items_)) return false; - if (Capacity != other.Capacity) return false; - if (HasProtection != other.HasProtection) return false; - if (ProtectionExpiry != other.ProtectionExpiry) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - hash ^= items_.GetHashCode(); - if (HasCapacity) hash ^= Capacity.GetHashCode(); - if (HasHasProtection) hash ^= HasProtection.GetHashCode(); - if (HasProtectionExpiry) hash ^= ProtectionExpiry.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - items_.WriteTo(output, _repeated_items_codec); - if (HasCapacity) { - output.WriteRawTag(24); - output.WriteInt32(Capacity); - } - if (HasHasProtection) { - output.WriteRawTag(32); - output.WriteBool(HasProtection); - } - if (HasProtectionExpiry) { - output.WriteRawTag(40); - output.WriteUInt32(ProtectionExpiry); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasValue) { - output.WriteRawTag(8); - output.WriteBool(Value); - } - items_.WriteTo(ref output, _repeated_items_codec); - if (HasCapacity) { - output.WriteRawTag(24); - output.WriteInt32(Capacity); - } - if (HasHasProtection) { - output.WriteRawTag(32); - output.WriteBool(HasProtection); - } - if (HasProtectionExpiry) { - output.WriteRawTag(40); - output.WriteUInt32(ProtectionExpiry); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + 1; - } - size += items_.CalculateSize(_repeated_items_codec); - if (HasCapacity) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Capacity); - } - if (HasHasProtection) { - size += 1 + 1; - } - if (HasProtectionExpiry) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtectionExpiry); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppEntityPayload other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - items_.Add(other.items_); - if (other.HasCapacity) { - Capacity = other.Capacity; - } - if (other.HasHasProtection) { - HasProtection = other.HasProtection; - } - if (other.HasProtectionExpiry) { - ProtectionExpiry = other.ProtectionExpiry; - } - _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 8: { - Value = input.ReadBool(); - break; - } - case 18: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 24: { - Capacity = input.ReadInt32(); - break; - } - case 32: { - HasProtection = input.ReadBool(); - break; - } - case 40: { - ProtectionExpiry = input.ReadUInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Value = input.ReadBool(); - break; - } - case 18: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 24: { - Capacity = input.ReadInt32(); - break; - } - case 32: { - HasProtection = input.ReadBool(); - break; - } - case 40: { - ProtectionExpiry = input.ReadUInt32(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppEntityPayload message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Item : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppEntityPayload.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item(Item other) : this() { - _hasBits0 = other._hasBits0; - itemId_ = other.itemId_; - quantity_ = other.quantity_; - itemIsBlueprint_ = other.itemIsBlueprint_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item Clone() { - return new Item(this); - } - - /// Field number for the "itemId" field. - public const int ItemIdFieldNumber = 1; - private readonly static int ItemIdDefaultValue = 0; - - private int itemId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ItemId { - get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } - set { - _hasBits0 |= 1; - itemId_ = value; - } - } - /// Gets whether the "itemId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "itemId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemId() { - _hasBits0 &= ~1; - } - - /// Field number for the "quantity" field. - public const int QuantityFieldNumber = 2; - private readonly static int QuantityDefaultValue = 0; - - private int quantity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Quantity { - get { if ((_hasBits0 & 2) != 0) { return quantity_; } else { return QuantityDefaultValue; } } - set { - _hasBits0 |= 2; - quantity_ = value; - } - } - /// Gets whether the "quantity" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasQuantity { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "quantity" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearQuantity() { - _hasBits0 &= ~2; - } - - /// Field number for the "itemIsBlueprint" field. - public const int ItemIsBlueprintFieldNumber = 3; - private readonly static bool ItemIsBlueprintDefaultValue = false; - - private bool itemIsBlueprint_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ItemIsBlueprint { - get { if ((_hasBits0 & 4) != 0) { return itemIsBlueprint_; } else { return ItemIsBlueprintDefaultValue; } } - set { - _hasBits0 |= 4; - itemIsBlueprint_ = value; - } - } - /// Gets whether the "itemIsBlueprint" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemIsBlueprint { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "itemIsBlueprint" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemIsBlueprint() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ItemId != other.ItemId) return false; - if (Quantity != other.Quantity) return false; - if (ItemIsBlueprint != other.ItemIsBlueprint) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasItemId) hash ^= ItemId.GetHashCode(); - if (HasQuantity) hash ^= Quantity.GetHashCode(); - if (HasItemIsBlueprint) hash ^= ItemIsBlueprint.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasItemId) { - output.WriteRawTag(8); - output.WriteInt32(ItemId); - } - if (HasQuantity) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (HasItemIsBlueprint) { - output.WriteRawTag(24); - output.WriteBool(ItemIsBlueprint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasItemId) { - output.WriteRawTag(8); - output.WriteInt32(ItemId); - } - if (HasQuantity) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (HasItemIsBlueprint) { - output.WriteRawTag(24); - output.WriteBool(ItemIsBlueprint); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasItemId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); - } - if (HasQuantity) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity); - } - if (HasItemIsBlueprint) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Item other) { - if (other == null) { - return; - } - if (other.HasItemId) { - ItemId = other.ItemId; - } - if (other.HasQuantity) { - Quantity = other.Quantity; - } - if (other.HasItemIsBlueprint) { - ItemIsBlueprint = other.ItemIsBlueprint; - } - _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 8: { - ItemId = input.ReadInt32(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 24: { - ItemIsBlueprint = input.ReadBool(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ItemId = input.ReadInt32(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 24: { - ItemIsBlueprint = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppTeamInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamInfo(AppTeamInfo other) : this() { - _hasBits0 = other._hasBits0; - leaderSteamId_ = other.leaderSteamId_; - members_ = other.members_.Clone(); - mapNotes_ = other.mapNotes_.Clone(); - leaderMapNotes_ = other.leaderMapNotes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamInfo Clone() { - return new AppTeamInfo(this); - } - - /// Field number for the "leaderSteamId" field. - public const int LeaderSteamIdFieldNumber = 1; - private readonly static ulong LeaderSteamIdDefaultValue = 0UL; - - private ulong leaderSteamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong LeaderSteamId { - get { if ((_hasBits0 & 1) != 0) { return leaderSteamId_; } else { return LeaderSteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - leaderSteamId_ = value; - } - } - /// Gets whether the "leaderSteamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLeaderSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "leaderSteamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLeaderSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "members" field. - public const int MembersFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_members_codec - = pb::FieldCodec.ForMessage(18, global::Rustplus.AppTeamInfo.Types.Member.Parser); - private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Members { - get { return members_; } - } - - /// Field number for the "mapNotes" field. - public const int MapNotesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_mapNotes_codec - = pb::FieldCodec.ForMessage(26, global::Rustplus.AppTeamInfo.Types.Note.Parser); - private readonly pbc::RepeatedField mapNotes_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MapNotes { - get { return mapNotes_; } - } - - /// Field number for the "leaderMapNotes" field. - public const int LeaderMapNotesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_leaderMapNotes_codec - = pb::FieldCodec.ForMessage(34, global::Rustplus.AppTeamInfo.Types.Note.Parser); - private readonly pbc::RepeatedField leaderMapNotes_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LeaderMapNotes { - get { return leaderMapNotes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppTeamInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppTeamInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LeaderSteamId != other.LeaderSteamId) return false; - if(!members_.Equals(other.members_)) return false; - if(!mapNotes_.Equals(other.mapNotes_)) return false; - if(!leaderMapNotes_.Equals(other.leaderMapNotes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLeaderSteamId) hash ^= LeaderSteamId.GetHashCode(); - hash ^= members_.GetHashCode(); - hash ^= mapNotes_.GetHashCode(); - hash ^= leaderMapNotes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasLeaderSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(LeaderSteamId); - } - members_.WriteTo(output, _repeated_members_codec); - mapNotes_.WriteTo(output, _repeated_mapNotes_codec); - leaderMapNotes_.WriteTo(output, _repeated_leaderMapNotes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasLeaderSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(LeaderSteamId); - } - members_.WriteTo(ref output, _repeated_members_codec); - mapNotes_.WriteTo(ref output, _repeated_mapNotes_codec); - leaderMapNotes_.WriteTo(ref output, _repeated_leaderMapNotes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLeaderSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LeaderSteamId); - } - size += members_.CalculateSize(_repeated_members_codec); - size += mapNotes_.CalculateSize(_repeated_mapNotes_codec); - size += leaderMapNotes_.CalculateSize(_repeated_leaderMapNotes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppTeamInfo other) { - if (other == null) { - return; - } - if (other.HasLeaderSteamId) { - LeaderSteamId = other.LeaderSteamId; - } - members_.Add(other.members_); - mapNotes_.Add(other.mapNotes_); - leaderMapNotes_.Add(other.leaderMapNotes_); - _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 8: { - LeaderSteamId = input.ReadUInt64(); - break; - } - case 18: { - members_.AddEntriesFrom(input, _repeated_members_codec); - break; - } - case 26: { - mapNotes_.AddEntriesFrom(input, _repeated_mapNotes_codec); - break; - } - case 34: { - leaderMapNotes_.AddEntriesFrom(input, _repeated_leaderMapNotes_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - LeaderSteamId = input.ReadUInt64(); - break; - } - case 18: { - members_.AddEntriesFrom(ref input, _repeated_members_codec); - break; - } - case 26: { - mapNotes_.AddEntriesFrom(ref input, _repeated_mapNotes_codec); - break; - } - case 34: { - leaderMapNotes_.AddEntriesFrom(ref input, _repeated_leaderMapNotes_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppTeamInfo message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Member : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppTeamInfo.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member(Member other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - name_ = other.name_; - x_ = other.x_; - y_ = other.y_; - isOnline_ = other.isOnline_; - spawnTime_ = other.spawnTime_; - isAlive_ = other.isAlive_; - deathTime_ = other.deathTime_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Member Clone() { - return new Member(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "x" field. - public const int XFieldNumber = 3; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 2; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~2; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 4; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 4; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~4; - } - - /// Field number for the "isOnline" field. - public const int IsOnlineFieldNumber = 5; - private readonly static bool IsOnlineDefaultValue = false; - - private bool isOnline_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsOnline { - get { if ((_hasBits0 & 8) != 0) { return isOnline_; } else { return IsOnlineDefaultValue; } } - set { - _hasBits0 |= 8; - isOnline_ = value; - } - } - /// Gets whether the "isOnline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIsOnline { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "isOnline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIsOnline() { - _hasBits0 &= ~8; - } - - /// Field number for the "spawnTime" field. - public const int SpawnTimeFieldNumber = 6; - private readonly static uint SpawnTimeDefaultValue = 0; - - private uint spawnTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SpawnTime { - get { if ((_hasBits0 & 16) != 0) { return spawnTime_; } else { return SpawnTimeDefaultValue; } } - set { - _hasBits0 |= 16; - spawnTime_ = value; - } - } - /// Gets whether the "spawnTime" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSpawnTime { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "spawnTime" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSpawnTime() { - _hasBits0 &= ~16; - } - - /// Field number for the "isAlive" field. - public const int IsAliveFieldNumber = 7; - private readonly static bool IsAliveDefaultValue = false; - - private bool isAlive_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsAlive { - get { if ((_hasBits0 & 32) != 0) { return isAlive_; } else { return IsAliveDefaultValue; } } - set { - _hasBits0 |= 32; - isAlive_ = value; - } - } - /// Gets whether the "isAlive" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIsAlive { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "isAlive" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIsAlive() { - _hasBits0 &= ~32; - } - - /// Field number for the "deathTime" field. - public const int DeathTimeFieldNumber = 8; - private readonly static uint DeathTimeDefaultValue = 0; - - private uint deathTime_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DeathTime { - get { if ((_hasBits0 & 64) != 0) { return deathTime_; } else { return DeathTimeDefaultValue; } } - set { - _hasBits0 |= 64; - deathTime_ = value; - } - } - /// Gets whether the "deathTime" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDeathTime { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "deathTime" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDeathTime() { - _hasBits0 &= ~64; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Member); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Member other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - if (Name != other.Name) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (IsOnline != other.IsOnline) return false; - if (SpawnTime != other.SpawnTime) return false; - if (IsAlive != other.IsAlive) return false; - if (DeathTime != other.DeathTime) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (HasIsOnline) hash ^= IsOnline.GetHashCode(); - if (HasSpawnTime) hash ^= SpawnTime.GetHashCode(); - if (HasIsAlive) hash ^= IsAlive.GetHashCode(); - if (HasDeathTime) hash ^= DeathTime.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (HasIsOnline) { - output.WriteRawTag(40); - output.WriteBool(IsOnline); - } - if (HasSpawnTime) { - output.WriteRawTag(48); - output.WriteUInt32(SpawnTime); - } - if (HasIsAlive) { - output.WriteRawTag(56); - output.WriteBool(IsAlive); - } - if (HasDeathTime) { - output.WriteRawTag(64); - output.WriteUInt32(DeathTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (HasIsOnline) { - output.WriteRawTag(40); - output.WriteBool(IsOnline); - } - if (HasSpawnTime) { - output.WriteRawTag(48); - output.WriteUInt32(SpawnTime); - } - if (HasIsAlive) { - output.WriteRawTag(56); - output.WriteBool(IsAlive); - } - if (HasDeathTime) { - output.WriteRawTag(64); - output.WriteUInt32(DeathTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (HasIsOnline) { - size += 1 + 1; - } - if (HasSpawnTime) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpawnTime); - } - if (HasIsAlive) { - size += 1 + 1; - } - if (HasDeathTime) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeathTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Member other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - if (other.HasIsOnline) { - IsOnline = other.IsOnline; - } - if (other.HasSpawnTime) { - SpawnTime = other.SpawnTime; - } - if (other.HasIsAlive) { - IsAlive = other.IsAlive; - } - if (other.HasDeathTime) { - DeathTime = other.DeathTime; - } - _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 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - IsOnline = input.ReadBool(); - break; - } - case 48: { - SpawnTime = input.ReadUInt32(); - break; - } - case 56: { - IsAlive = input.ReadBool(); - break; - } - case 64: { - DeathTime = input.ReadUInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - IsOnline = input.ReadBool(); - break; - } - case 48: { - SpawnTime = input.ReadUInt32(); - break; - } - case 56: { - IsAlive = input.ReadBool(); - break; - } - case 64: { - DeathTime = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Note : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Note()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppTeamInfo.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Note() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Note(Note other) : this() { - _hasBits0 = other._hasBits0; - type_ = other.type_; - x_ = other.x_; - y_ = other.y_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Note Clone() { - return new Note(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private readonly static int TypeDefaultValue = 0; - - private int type_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Type { - get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } - set { - _hasBits0 |= 1; - type_ = value; - } - } - /// Gets whether the "type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasType { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearType() { - _hasBits0 &= ~1; - } - - /// Field number for the "x" field. - public const int XFieldNumber = 3; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 2; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~2; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 4; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 4; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Note); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Note other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasType) hash ^= Type.GetHashCode(); - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasType) { - output.WriteRawTag(16); - output.WriteInt32(Type); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasType) { - output.WriteRawTag(16); - output.WriteInt32(Type); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasType) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); - } - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Note other) { - if (other == null) { - return; - } - if (other.HasType) { - Type = other.Type; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - _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 16: { - Type = input.ReadInt32(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Type = input.ReadInt32(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppTeamMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamMessage()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamMessage(AppTeamMessage other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - name_ = other.name_; - message_ = other.message_; - color_ = other.color_; - time_ = other.time_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamMessage Clone() { - return new AppTeamMessage(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 3; - private readonly static string MessageDefaultValue = ""; - - private string message_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_ ?? MessageDefaultValue; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "message" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMessage { - get { return message_ != null; } - } - /// Clears the value of the "message" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMessage() { - message_ = null; - } - - /// Field number for the "color" field. - public const int ColorFieldNumber = 4; - private readonly static string ColorDefaultValue = ""; - - private string color_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Color { - get { return color_ ?? ColorDefaultValue; } - set { - color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasColor { - get { return color_ != null; } - } - /// Clears the value of the "color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearColor() { - color_ = null; - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 5; - private readonly static uint TimeDefaultValue = 0; - - private uint time_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Time { - get { if ((_hasBits0 & 2) != 0) { return time_; } else { return TimeDefaultValue; } } - set { - _hasBits0 |= 2; - time_ = value; - } - } - /// Gets whether the "time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTime { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTime() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppTeamMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppTeamMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - if (Name != other.Name) return false; - if (Message != other.Message) return false; - if (Color != other.Color) return false; - if (Time != other.Time) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasMessage) hash ^= Message.GetHashCode(); - if (HasColor) hash ^= Color.GetHashCode(); - if (HasTime) hash ^= Time.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasMessage) { - output.WriteRawTag(26); - output.WriteString(Message); - } - if (HasColor) { - output.WriteRawTag(34); - output.WriteString(Color); - } - if (HasTime) { - output.WriteRawTag(40); - output.WriteUInt32(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasMessage) { - output.WriteRawTag(26); - output.WriteString(Message); - } - if (HasColor) { - output.WriteRawTag(34); - output.WriteString(Color); - } - if (HasTime) { - output.WriteRawTag(40); - output.WriteUInt32(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasMessage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (HasColor) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); - } - if (HasTime) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Time); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppTeamMessage other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasMessage) { - Message = other.Message; - } - if (other.HasColor) { - Color = other.Color; - } - if (other.HasTime) { - Time = other.Time; - } - _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 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Message = input.ReadString(); - break; - } - case 34: { - Color = input.ReadString(); - break; - } - case 40: { - Time = input.ReadUInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Message = input.ReadString(); - break; - } - case 34: { - Color = input.ReadString(); - break; - } - case 40: { - Time = input.ReadUInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppTeamChat : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamChat()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChat() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChat(AppTeamChat other) : this() { - messages_ = other.messages_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChat Clone() { - return new AppTeamChat(this); - } - - /// Field number for the "messages" field. - public const int MessagesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_messages_codec - = pb::FieldCodec.ForMessage(10, global::Rustplus.AppTeamMessage.Parser); - private readonly pbc::RepeatedField messages_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Messages { - get { return messages_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppTeamChat); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppTeamChat other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!messages_.Equals(other.messages_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= messages_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - messages_.WriteTo(output, _repeated_messages_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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) { - messages_.WriteTo(ref output, _repeated_messages_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += messages_.CalculateSize(_repeated_messages_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppTeamChat other) { - if (other == null) { - return; - } - messages_.Add(other.messages_); - _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: { - messages_.AddEntriesFrom(input, _repeated_messages_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - messages_.AddEntriesFrom(ref input, _repeated_messages_codec); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppMarker : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMarker()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMarker() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMarker(AppMarker other) : this() { - _hasBits0 = other._hasBits0; - id_ = other.id_; - type_ = other.type_; - x_ = other.x_; - y_ = other.y_; - steamId_ = other.steamId_; - rotation_ = other.rotation_; - radius_ = other.radius_; - color1_ = other.color1_ != null ? other.color1_.Clone() : null; - color2_ = other.color2_ != null ? other.color2_.Clone() : null; - alpha_ = other.alpha_; - name_ = other.name_; - outOfStock_ = other.outOfStock_; - sellOrders_ = other.sellOrders_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMarker Clone() { - return new AppMarker(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private readonly static uint IdDefaultValue = 0; - - private uint id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private readonly static global::Rustplus.AppMarkerType TypeDefaultValue = global::Rustplus.AppMarkerType.Undefined; - - private global::Rustplus.AppMarkerType type_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppMarkerType Type { - get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } - set { - _hasBits0 |= 2; - type_ = value; - } - } - /// Gets whether the "type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasType { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearType() { - _hasBits0 &= ~2; - } - - /// Field number for the "x" field. - public const int XFieldNumber = 3; - private readonly static float XDefaultValue = 0F; - - private float x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float X { - get { if ((_hasBits0 & 4) != 0) { return x_; } else { return XDefaultValue; } } - set { - _hasBits0 |= 4; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() { - _hasBits0 &= ~4; - } - - /// Field number for the "y" field. - public const int YFieldNumber = 4; - private readonly static float YDefaultValue = 0F; - - private float y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Y { - get { if ((_hasBits0 & 8) != 0) { return y_; } else { return YDefaultValue; } } - set { - _hasBits0 |= 8; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() { - _hasBits0 &= ~8; - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 5; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 16) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 16; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~16; - } - - /// Field number for the "rotation" field. - public const int RotationFieldNumber = 6; - private readonly static float RotationDefaultValue = 0F; - - private float rotation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Rotation { - get { if ((_hasBits0 & 32) != 0) { return rotation_; } else { return RotationDefaultValue; } } - set { - _hasBits0 |= 32; - rotation_ = value; - } - } - /// Gets whether the "rotation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRotation { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "rotation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRotation() { - _hasBits0 &= ~32; - } - - /// Field number for the "radius" field. - public const int RadiusFieldNumber = 7; - private readonly static float RadiusDefaultValue = 0F; - - private float radius_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Radius { - get { if ((_hasBits0 & 64) != 0) { return radius_; } else { return RadiusDefaultValue; } } - set { - _hasBits0 |= 64; - radius_ = value; - } - } - /// Gets whether the "radius" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRadius { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "radius" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRadius() { - _hasBits0 &= ~64; - } - - /// Field number for the "color1" field. - public const int Color1FieldNumber = 8; - private global::Rustplus.Vector4 color1_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector4 Color1 { - get { return color1_; } - set { - color1_ = value; - } - } - - /// Field number for the "color2" field. - public const int Color2FieldNumber = 9; - private global::Rustplus.Vector4 color2_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector4 Color2 { - get { return color2_; } - set { - color2_ = value; - } - } - - /// Field number for the "alpha" field. - public const int AlphaFieldNumber = 10; - private readonly static float AlphaDefaultValue = 0F; - - private float alpha_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Alpha { - get { if ((_hasBits0 & 128) != 0) { return alpha_; } else { return AlphaDefaultValue; } } - set { - _hasBits0 |= 128; - alpha_ = value; - } - } - /// Gets whether the "alpha" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAlpha { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "alpha" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAlpha() { - _hasBits0 &= ~128; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 11; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "outOfStock" field. - public const int OutOfStockFieldNumber = 12; - private readonly static bool OutOfStockDefaultValue = false; - - private bool outOfStock_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool OutOfStock { - get { if ((_hasBits0 & 256) != 0) { return outOfStock_; } else { return OutOfStockDefaultValue; } } - set { - _hasBits0 |= 256; - outOfStock_ = value; - } - } - /// Gets whether the "outOfStock" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOutOfStock { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "outOfStock" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOutOfStock() { - _hasBits0 &= ~256; - } - - /// Field number for the "sellOrders" field. - public const int SellOrdersFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_sellOrders_codec - = pb::FieldCodec.ForMessage(106, global::Rustplus.AppMarker.Types.SellOrder.Parser); - private readonly pbc::RepeatedField sellOrders_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SellOrders { - get { return sellOrders_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppMarker); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppMarker other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Type != other.Type) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; - if (SteamId != other.SteamId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; - if (!object.Equals(Color1, other.Color1)) return false; - if (!object.Equals(Color2, other.Color2)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Alpha, other.Alpha)) return false; - if (Name != other.Name) return false; - if (OutOfStock != other.OutOfStock) return false; - if(!sellOrders_.Equals(other.sellOrders_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - if (HasType) hash ^= Type.GetHashCode(); - if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); - if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation); - if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); - if (color1_ != null) hash ^= Color1.GetHashCode(); - if (color2_ != null) hash ^= Color2.GetHashCode(); - if (HasAlpha) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Alpha); - if (HasName) hash ^= Name.GetHashCode(); - if (HasOutOfStock) hash ^= OutOfStock.GetHashCode(); - hash ^= sellOrders_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasId) { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (HasType) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (HasSteamId) { - output.WriteRawTag(40); - output.WriteUInt64(SteamId); - } - if (HasRotation) { - output.WriteRawTag(53); - output.WriteFloat(Rotation); - } - if (HasRadius) { - output.WriteRawTag(61); - output.WriteFloat(Radius); - } - if (color1_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Color1); - } - if (color2_ != null) { - output.WriteRawTag(74); - output.WriteMessage(Color2); - } - if (HasAlpha) { - output.WriteRawTag(85); - output.WriteFloat(Alpha); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasOutOfStock) { - output.WriteRawTag(96); - output.WriteBool(OutOfStock); - } - sellOrders_.WriteTo(output, _repeated_sellOrders_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasId) { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (HasType) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (HasX) { - output.WriteRawTag(29); - output.WriteFloat(X); - } - if (HasY) { - output.WriteRawTag(37); - output.WriteFloat(Y); - } - if (HasSteamId) { - output.WriteRawTag(40); - output.WriteUInt64(SteamId); - } - if (HasRotation) { - output.WriteRawTag(53); - output.WriteFloat(Rotation); - } - if (HasRadius) { - output.WriteRawTag(61); - output.WriteFloat(Radius); - } - if (color1_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Color1); - } - if (color2_ != null) { - output.WriteRawTag(74); - output.WriteMessage(Color2); - } - if (HasAlpha) { - output.WriteRawTag(85); - output.WriteFloat(Alpha); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasOutOfStock) { - output.WriteRawTag(96); - output.WriteBool(OutOfStock); - } - sellOrders_.WriteTo(ref output, _repeated_sellOrders_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (HasType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasX) { - size += 1 + 4; - } - if (HasY) { - size += 1 + 4; - } - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasRotation) { - size += 1 + 4; - } - if (HasRadius) { - size += 1 + 4; - } - if (color1_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color1); - } - if (color2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color2); - } - if (HasAlpha) { - size += 1 + 4; - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasOutOfStock) { - size += 1 + 1; - } - size += sellOrders_.CalculateSize(_repeated_sellOrders_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppMarker other) { - if (other == null) { - return; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasType) { - Type = other.Type; - } - if (other.HasX) { - X = other.X; - } - if (other.HasY) { - Y = other.Y; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasRotation) { - Rotation = other.Rotation; - } - if (other.HasRadius) { - Radius = other.Radius; - } - if (other.color1_ != null) { - if (color1_ == null) { - Color1 = new global::Rustplus.Vector4(); - } - Color1.MergeFrom(other.Color1); - } - if (other.color2_ != null) { - if (color2_ == null) { - Color2 = new global::Rustplus.Vector4(); - } - Color2.MergeFrom(other.Color2); - } - if (other.HasAlpha) { - Alpha = other.Alpha; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasOutOfStock) { - OutOfStock = other.OutOfStock; - } - sellOrders_.Add(other.sellOrders_); - _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 8: { - Id = input.ReadUInt32(); - break; - } - case 16: { - Type = (global::Rustplus.AppMarkerType) input.ReadEnum(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - SteamId = input.ReadUInt64(); - break; - } - case 53: { - Rotation = input.ReadFloat(); - break; - } - case 61: { - Radius = input.ReadFloat(); - break; - } - case 66: { - if (color1_ == null) { - Color1 = new global::Rustplus.Vector4(); - } - input.ReadMessage(Color1); - break; - } - case 74: { - if (color2_ == null) { - Color2 = new global::Rustplus.Vector4(); - } - input.ReadMessage(Color2); - break; - } - case 85: { - Alpha = input.ReadFloat(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 96: { - OutOfStock = input.ReadBool(); - break; - } - case 106: { - sellOrders_.AddEntriesFrom(input, _repeated_sellOrders_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Id = input.ReadUInt32(); - break; - } - case 16: { - Type = (global::Rustplus.AppMarkerType) input.ReadEnum(); - break; - } - case 29: { - X = input.ReadFloat(); - break; - } - case 37: { - Y = input.ReadFloat(); - break; - } - case 40: { - SteamId = input.ReadUInt64(); - break; - } - case 53: { - Rotation = input.ReadFloat(); - break; - } - case 61: { - Radius = input.ReadFloat(); - break; - } - case 66: { - if (color1_ == null) { - Color1 = new global::Rustplus.Vector4(); - } - input.ReadMessage(Color1); - break; - } - case 74: { - if (color2_ == null) { - Color2 = new global::Rustplus.Vector4(); - } - input.ReadMessage(Color2); - break; - } - case 85: { - Alpha = input.ReadFloat(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 96: { - OutOfStock = input.ReadBool(); - break; - } - case 106: { - sellOrders_.AddEntriesFrom(ref input, _repeated_sellOrders_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppMarker message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SellOrder : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SellOrder()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppMarker.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SellOrder() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SellOrder(SellOrder other) : this() { - _hasBits0 = other._hasBits0; - itemId_ = other.itemId_; - quantity_ = other.quantity_; - currencyId_ = other.currencyId_; - costPerItem_ = other.costPerItem_; - amountInStock_ = other.amountInStock_; - itemIsBlueprint_ = other.itemIsBlueprint_; - currencyIsBlueprint_ = other.currencyIsBlueprint_; - itemCondition_ = other.itemCondition_; - itemConditionMax_ = other.itemConditionMax_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SellOrder Clone() { - return new SellOrder(this); - } - - /// Field number for the "itemId" field. - public const int ItemIdFieldNumber = 1; - private readonly static int ItemIdDefaultValue = 0; - - private int itemId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ItemId { - get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } - set { - _hasBits0 |= 1; - itemId_ = value; - } - } - /// Gets whether the "itemId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "itemId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemId() { - _hasBits0 &= ~1; - } - - /// Field number for the "quantity" field. - public const int QuantityFieldNumber = 2; - private readonly static int QuantityDefaultValue = 0; - - private int quantity_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Quantity { - get { if ((_hasBits0 & 2) != 0) { return quantity_; } else { return QuantityDefaultValue; } } - set { - _hasBits0 |= 2; - quantity_ = value; - } - } - /// Gets whether the "quantity" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasQuantity { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "quantity" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearQuantity() { - _hasBits0 &= ~2; - } - - /// Field number for the "currencyId" field. - public const int CurrencyIdFieldNumber = 3; - private readonly static int CurrencyIdDefaultValue = 0; - - private int currencyId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CurrencyId { - get { if ((_hasBits0 & 4) != 0) { return currencyId_; } else { return CurrencyIdDefaultValue; } } - set { - _hasBits0 |= 4; - currencyId_ = value; - } - } - /// Gets whether the "currencyId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyId { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "currencyId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyId() { - _hasBits0 &= ~4; - } - - /// Field number for the "costPerItem" field. - public const int CostPerItemFieldNumber = 4; - private readonly static int CostPerItemDefaultValue = 0; - - private int costPerItem_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CostPerItem { - get { if ((_hasBits0 & 8) != 0) { return costPerItem_; } else { return CostPerItemDefaultValue; } } - set { - _hasBits0 |= 8; - costPerItem_ = value; - } - } - /// Gets whether the "costPerItem" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCostPerItem { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "costPerItem" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCostPerItem() { - _hasBits0 &= ~8; - } - - /// Field number for the "amountInStock" field. - public const int AmountInStockFieldNumber = 5; - private readonly static int AmountInStockDefaultValue = 0; - - private int amountInStock_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int AmountInStock { - get { if ((_hasBits0 & 16) != 0) { return amountInStock_; } else { return AmountInStockDefaultValue; } } - set { - _hasBits0 |= 16; - amountInStock_ = value; - } - } - /// Gets whether the "amountInStock" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAmountInStock { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "amountInStock" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAmountInStock() { - _hasBits0 &= ~16; - } - - /// Field number for the "itemIsBlueprint" field. - public const int ItemIsBlueprintFieldNumber = 6; - private readonly static bool ItemIsBlueprintDefaultValue = false; - - private bool itemIsBlueprint_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ItemIsBlueprint { - get { if ((_hasBits0 & 32) != 0) { return itemIsBlueprint_; } else { return ItemIsBlueprintDefaultValue; } } - set { - _hasBits0 |= 32; - itemIsBlueprint_ = value; - } - } - /// Gets whether the "itemIsBlueprint" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemIsBlueprint { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "itemIsBlueprint" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemIsBlueprint() { - _hasBits0 &= ~32; - } - - /// Field number for the "currencyIsBlueprint" field. - public const int CurrencyIsBlueprintFieldNumber = 7; - private readonly static bool CurrencyIsBlueprintDefaultValue = false; - - private bool currencyIsBlueprint_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CurrencyIsBlueprint { - get { if ((_hasBits0 & 64) != 0) { return currencyIsBlueprint_; } else { return CurrencyIsBlueprintDefaultValue; } } - set { - _hasBits0 |= 64; - currencyIsBlueprint_ = value; - } - } - /// Gets whether the "currencyIsBlueprint" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyIsBlueprint { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "currencyIsBlueprint" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyIsBlueprint() { - _hasBits0 &= ~64; - } - - /// Field number for the "itemCondition" field. - public const int ItemConditionFieldNumber = 8; - private readonly static float ItemConditionDefaultValue = 0F; - - private float itemCondition_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float ItemCondition { - get { if ((_hasBits0 & 128) != 0) { return itemCondition_; } else { return ItemConditionDefaultValue; } } - set { - _hasBits0 |= 128; - itemCondition_ = value; - } - } - /// Gets whether the "itemCondition" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemCondition { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "itemCondition" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemCondition() { - _hasBits0 &= ~128; - } - - /// Field number for the "itemConditionMax" field. - public const int ItemConditionMaxFieldNumber = 9; - private readonly static float ItemConditionMaxDefaultValue = 0F; - - private float itemConditionMax_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float ItemConditionMax { - get { if ((_hasBits0 & 256) != 0) { return itemConditionMax_; } else { return ItemConditionMaxDefaultValue; } } - set { - _hasBits0 |= 256; - itemConditionMax_ = value; - } - } - /// Gets whether the "itemConditionMax" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasItemConditionMax { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "itemConditionMax" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearItemConditionMax() { - _hasBits0 &= ~256; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SellOrder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SellOrder other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ItemId != other.ItemId) return false; - if (Quantity != other.Quantity) return false; - if (CurrencyId != other.CurrencyId) return false; - if (CostPerItem != other.CostPerItem) return false; - if (AmountInStock != other.AmountInStock) return false; - if (ItemIsBlueprint != other.ItemIsBlueprint) return false; - if (CurrencyIsBlueprint != other.CurrencyIsBlueprint) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ItemCondition, other.ItemCondition)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ItemConditionMax, other.ItemConditionMax)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasItemId) hash ^= ItemId.GetHashCode(); - if (HasQuantity) hash ^= Quantity.GetHashCode(); - if (HasCurrencyId) hash ^= CurrencyId.GetHashCode(); - if (HasCostPerItem) hash ^= CostPerItem.GetHashCode(); - if (HasAmountInStock) hash ^= AmountInStock.GetHashCode(); - if (HasItemIsBlueprint) hash ^= ItemIsBlueprint.GetHashCode(); - if (HasCurrencyIsBlueprint) hash ^= CurrencyIsBlueprint.GetHashCode(); - if (HasItemCondition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ItemCondition); - if (HasItemConditionMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ItemConditionMax); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasItemId) { - output.WriteRawTag(8); - output.WriteInt32(ItemId); - } - if (HasQuantity) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (HasCurrencyId) { - output.WriteRawTag(24); - output.WriteInt32(CurrencyId); - } - if (HasCostPerItem) { - output.WriteRawTag(32); - output.WriteInt32(CostPerItem); - } - if (HasAmountInStock) { - output.WriteRawTag(40); - output.WriteInt32(AmountInStock); - } - if (HasItemIsBlueprint) { - output.WriteRawTag(48); - output.WriteBool(ItemIsBlueprint); - } - if (HasCurrencyIsBlueprint) { - output.WriteRawTag(56); - output.WriteBool(CurrencyIsBlueprint); - } - if (HasItemCondition) { - output.WriteRawTag(69); - output.WriteFloat(ItemCondition); - } - if (HasItemConditionMax) { - output.WriteRawTag(77); - output.WriteFloat(ItemConditionMax); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasItemId) { - output.WriteRawTag(8); - output.WriteInt32(ItemId); - } - if (HasQuantity) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (HasCurrencyId) { - output.WriteRawTag(24); - output.WriteInt32(CurrencyId); - } - if (HasCostPerItem) { - output.WriteRawTag(32); - output.WriteInt32(CostPerItem); - } - if (HasAmountInStock) { - output.WriteRawTag(40); - output.WriteInt32(AmountInStock); - } - if (HasItemIsBlueprint) { - output.WriteRawTag(48); - output.WriteBool(ItemIsBlueprint); - } - if (HasCurrencyIsBlueprint) { - output.WriteRawTag(56); - output.WriteBool(CurrencyIsBlueprint); - } - if (HasItemCondition) { - output.WriteRawTag(69); - output.WriteFloat(ItemCondition); - } - if (HasItemConditionMax) { - output.WriteRawTag(77); - output.WriteFloat(ItemConditionMax); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasItemId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); - } - if (HasQuantity) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity); - } - if (HasCurrencyId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyId); - } - if (HasCostPerItem) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostPerItem); - } - if (HasAmountInStock) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(AmountInStock); - } - if (HasItemIsBlueprint) { - size += 1 + 1; - } - if (HasCurrencyIsBlueprint) { - size += 1 + 1; - } - if (HasItemCondition) { - size += 1 + 4; - } - if (HasItemConditionMax) { - size += 1 + 4; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SellOrder other) { - if (other == null) { - return; - } - if (other.HasItemId) { - ItemId = other.ItemId; - } - if (other.HasQuantity) { - Quantity = other.Quantity; - } - if (other.HasCurrencyId) { - CurrencyId = other.CurrencyId; - } - if (other.HasCostPerItem) { - CostPerItem = other.CostPerItem; - } - if (other.HasAmountInStock) { - AmountInStock = other.AmountInStock; - } - if (other.HasItemIsBlueprint) { - ItemIsBlueprint = other.ItemIsBlueprint; - } - if (other.HasCurrencyIsBlueprint) { - CurrencyIsBlueprint = other.CurrencyIsBlueprint; - } - if (other.HasItemCondition) { - ItemCondition = other.ItemCondition; - } - if (other.HasItemConditionMax) { - ItemConditionMax = other.ItemConditionMax; - } - _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 8: { - ItemId = input.ReadInt32(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 24: { - CurrencyId = input.ReadInt32(); - break; - } - case 32: { - CostPerItem = input.ReadInt32(); - break; - } - case 40: { - AmountInStock = input.ReadInt32(); - break; - } - case 48: { - ItemIsBlueprint = input.ReadBool(); - break; - } - case 56: { - CurrencyIsBlueprint = input.ReadBool(); - break; - } - case 69: { - ItemCondition = input.ReadFloat(); - break; - } - case 77: { - ItemConditionMax = input.ReadFloat(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ItemId = input.ReadInt32(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 24: { - CurrencyId = input.ReadInt32(); - break; - } - case 32: { - CostPerItem = input.ReadInt32(); - break; - } - case 40: { - AmountInStock = input.ReadInt32(); - break; - } - case 48: { - ItemIsBlueprint = input.ReadBool(); - break; - } - case 56: { - CurrencyIsBlueprint = input.ReadBool(); - break; - } - case 69: { - ItemCondition = input.ReadFloat(); - break; - } - case 77: { - ItemConditionMax = input.ReadFloat(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppMapMarkers : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMapMarkers()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMapMarkers() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMapMarkers(AppMapMarkers other) : this() { - markers_ = other.markers_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppMapMarkers Clone() { - return new AppMapMarkers(this); - } - - /// Field number for the "markers" field. - public const int MarkersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_markers_codec - = pb::FieldCodec.ForMessage(10, global::Rustplus.AppMarker.Parser); - private readonly pbc::RepeatedField markers_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Markers { - get { return markers_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppMapMarkers); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppMapMarkers other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!markers_.Equals(other.markers_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= markers_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - markers_.WriteTo(output, _repeated_markers_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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) { - markers_.WriteTo(ref output, _repeated_markers_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += markers_.CalculateSize(_repeated_markers_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppMapMarkers other) { - if (other == null) { - return; - } - markers_.Add(other.markers_); - _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: { - markers_.AddEntriesFrom(input, _repeated_markers_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - markers_.AddEntriesFrom(ref input, _repeated_markers_codec); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppClanInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanInfo(AppClanInfo other) : this() { - clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanInfo Clone() { - return new AppClanInfo(this); - } - - /// Field number for the "clanInfo" field. - public const int ClanInfoFieldNumber = 1; - private global::Rustplus.ClanInfo clanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.ClanInfo ClanInfo { - get { return clanInfo_; } - set { - clanInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppClanInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppClanInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ClanInfo, other.ClanInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (clanInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (clanInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (clanInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppClanInfo other) { - if (other == null) { - return; - } - if (other.clanInfo_ != null) { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - ClanInfo.MergeFrom(other.ClanInfo); - } - _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: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppClanMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanMessage()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[33]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanMessage(AppClanMessage other) : this() { - _hasBits0 = other._hasBits0; - steamId_ = other.steamId_; - name_ = other.name_; - message_ = other.message_; - time_ = other.time_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanMessage Clone() { - return new AppClanMessage(this); - } - - /// Field number for the "steamId" field. - public const int SteamIdFieldNumber = 1; - private readonly static ulong SteamIdDefaultValue = 0UL; - - private ulong steamId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong SteamId { - get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } - set { - _hasBits0 |= 1; - steamId_ = value; - } - } - /// Gets whether the "steamId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSteamId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "steamId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSteamId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 3; - private readonly static string MessageDefaultValue = ""; - - private string message_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_ ?? MessageDefaultValue; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "message" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMessage { - get { return message_ != null; } - } - /// Clears the value of the "message" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMessage() { - message_ = null; - } - - /// Field number for the "time" field. - public const int TimeFieldNumber = 4; - private readonly static long TimeDefaultValue = 0L; - - private long time_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Time { - get { if ((_hasBits0 & 2) != 0) { return time_; } else { return TimeDefaultValue; } } - set { - _hasBits0 |= 2; - time_ = value; - } - } - /// Gets whether the "time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTime { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTime() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppClanMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppClanMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SteamId != other.SteamId) return false; - if (Name != other.Name) return false; - if (Message != other.Message) return false; - if (Time != other.Time) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSteamId) hash ^= SteamId.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasMessage) hash ^= Message.GetHashCode(); - if (HasTime) hash ^= Time.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasMessage) { - output.WriteRawTag(26); - output.WriteString(Message); - } - if (HasTime) { - output.WriteRawTag(32); - output.WriteInt64(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasSteamId) { - output.WriteRawTag(8); - output.WriteUInt64(SteamId); - } - if (HasName) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (HasMessage) { - output.WriteRawTag(26); - output.WriteString(Message); - } - if (HasTime) { - output.WriteRawTag(32); - output.WriteInt64(Time); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSteamId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasMessage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (HasTime) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppClanMessage other) { - if (other == null) { - return; - } - if (other.HasSteamId) { - SteamId = other.SteamId; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasMessage) { - Message = other.Message; - } - if (other.HasTime) { - Time = other.Time; - } - _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 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Message = input.ReadString(); - break; - } - case 32: { - Time = input.ReadInt64(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SteamId = input.ReadUInt64(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 26: { - Message = input.ReadString(); - break; - } - case 32: { - Time = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppClanChat : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanChat()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[34]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChat() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChat(AppClanChat other) : this() { - messages_ = other.messages_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChat Clone() { - return new AppClanChat(this); - } - - /// Field number for the "messages" field. - public const int MessagesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_messages_codec - = pb::FieldCodec.ForMessage(10, global::Rustplus.AppClanMessage.Parser); - private readonly pbc::RepeatedField messages_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Messages { - get { return messages_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppClanChat); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppClanChat other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!messages_.Equals(other.messages_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= messages_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - messages_.WriteTo(output, _repeated_messages_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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) { - messages_.WriteTo(ref output, _repeated_messages_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += messages_.CalculateSize(_repeated_messages_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppClanChat other) { - if (other == null) { - return; - } - messages_.Add(other.messages_); - _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: { - messages_.AddEntriesFrom(input, _repeated_messages_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - messages_.AddEntriesFrom(ref input, _repeated_messages_codec); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppNexusAuth : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNexusAuth()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[35]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNexusAuth() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNexusAuth(AppNexusAuth other) : this() { - _hasBits0 = other._hasBits0; - serverId_ = other.serverId_; - playerToken_ = other.playerToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNexusAuth Clone() { - return new AppNexusAuth(this); - } - - /// Field number for the "serverId" field. - public const int ServerIdFieldNumber = 1; - private readonly static string ServerIdDefaultValue = ""; - - private string serverId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ServerId { - get { return serverId_ ?? ServerIdDefaultValue; } - set { - serverId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "serverId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasServerId { - get { return serverId_ != null; } - } - /// Clears the value of the "serverId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearServerId() { - serverId_ = null; - } - - /// Field number for the "playerToken" field. - public const int PlayerTokenFieldNumber = 2; - private readonly static int PlayerTokenDefaultValue = 0; - - private int playerToken_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PlayerToken { - get { if ((_hasBits0 & 1) != 0) { return playerToken_; } else { return PlayerTokenDefaultValue; } } - set { - _hasBits0 |= 1; - playerToken_ = value; - } - } - /// Gets whether the "playerToken" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayerToken { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "playerToken" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayerToken() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppNexusAuth); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppNexusAuth other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ServerId != other.ServerId) return false; - if (PlayerToken != other.PlayerToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasServerId) hash ^= ServerId.GetHashCode(); - if (HasPlayerToken) hash ^= PlayerToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasServerId) { - output.WriteRawTag(10); - output.WriteString(ServerId); - } - if (HasPlayerToken) { - output.WriteRawTag(16); - output.WriteInt32(PlayerToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasServerId) { - output.WriteRawTag(10); - output.WriteString(ServerId); - } - if (HasPlayerToken) { - output.WriteRawTag(16); - output.WriteInt32(PlayerToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasServerId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerId); - } - if (HasPlayerToken) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppNexusAuth other) { - if (other == null) { - return; - } - if (other.HasServerId) { - ServerId = other.ServerId; - } - if (other.HasPlayerToken) { - PlayerToken = other.PlayerToken; - } - _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: { - ServerId = input.ReadString(); - break; - } - case 16: { - PlayerToken = input.ReadInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ServerId = input.ReadString(); - break; - } - case 16: { - PlayerToken = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppTeamChanged : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamChanged()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[36]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChanged() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChanged(AppTeamChanged other) : this() { - _hasBits0 = other._hasBits0; - playerId_ = other.playerId_; - teamInfo_ = other.teamInfo_ != null ? other.teamInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppTeamChanged Clone() { - return new AppTeamChanged(this); - } - - /// Field number for the "playerId" field. - public const int PlayerIdFieldNumber = 1; - private readonly static ulong PlayerIdDefaultValue = 0UL; - - private ulong playerId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ulong PlayerId { - get { if ((_hasBits0 & 1) != 0) { return playerId_; } else { return PlayerIdDefaultValue; } } - set { - _hasBits0 |= 1; - playerId_ = value; - } - } - /// Gets whether the "playerId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayerId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "playerId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayerId() { - _hasBits0 &= ~1; - } - - /// Field number for the "teamInfo" field. - public const int TeamInfoFieldNumber = 2; - private global::Rustplus.AppTeamInfo teamInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTeamInfo TeamInfo { - get { return teamInfo_; } - set { - teamInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppTeamChanged); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppTeamChanged other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlayerId != other.PlayerId) return false; - if (!object.Equals(TeamInfo, other.TeamInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPlayerId) hash ^= PlayerId.GetHashCode(); - if (teamInfo_ != null) hash ^= TeamInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasPlayerId) { - output.WriteRawTag(8); - output.WriteUInt64(PlayerId); - } - if (teamInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TeamInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasPlayerId) { - output.WriteRawTag(8); - output.WriteUInt64(PlayerId); - } - if (teamInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(TeamInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPlayerId) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayerId); - } - if (teamInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppTeamChanged other) { - if (other == null) { - return; - } - if (other.HasPlayerId) { - PlayerId = other.PlayerId; - } - if (other.teamInfo_ != null) { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - TeamInfo.MergeFrom(other.TeamInfo); - } - _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 8: { - PlayerId = input.ReadUInt64(); - break; - } - case 18: { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - input.ReadMessage(TeamInfo); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - PlayerId = input.ReadUInt64(); - break; - } - case 18: { - if (teamInfo_ == null) { - TeamInfo = new global::Rustplus.AppTeamInfo(); - } - input.ReadMessage(TeamInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppNewTeamMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNewTeamMessage()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[37]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewTeamMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewTeamMessage(AppNewTeamMessage other) : this() { - message_ = other.message_ != null ? other.message_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewTeamMessage Clone() { - return new AppNewTeamMessage(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - private global::Rustplus.AppTeamMessage message_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppTeamMessage Message { - get { return message_; } - set { - message_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppNewTeamMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppNewTeamMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Message, other.Message)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (message_ != null) hash ^= Message.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (message_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (message_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (message_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppNewTeamMessage other) { - if (other == null) { - return; - } - if (other.message_ != null) { - if (message_ == null) { - Message = new global::Rustplus.AppTeamMessage(); - } - Message.MergeFrom(other.Message); - } - _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: { - if (message_ == null) { - Message = new global::Rustplus.AppTeamMessage(); - } - input.ReadMessage(Message); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (message_ == null) { - Message = new global::Rustplus.AppTeamMessage(); - } - input.ReadMessage(Message); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppEntityChanged : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityChanged()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[38]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityChanged() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityChanged(AppEntityChanged other) : this() { - _hasBits0 = other._hasBits0; - entityId_ = other.entityId_; - payload_ = other.payload_ != null ? other.payload_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEntityChanged Clone() { - return new AppEntityChanged(this); - } - - /// Field number for the "entityId" field. - public const int EntityIdFieldNumber = 1; - private readonly static uint EntityIdDefaultValue = 0; - - private uint entityId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint EntityId { - get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } - set { - _hasBits0 |= 1; - entityId_ = value; - } - } - /// Gets whether the "entityId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEntityId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "entityId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEntityId() { - _hasBits0 &= ~1; - } - - /// Field number for the "payload" field. - public const int PayloadFieldNumber = 2; - private global::Rustplus.AppEntityPayload payload_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppEntityPayload Payload { - get { return payload_; } - set { - payload_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppEntityChanged); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppEntityChanged other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EntityId != other.EntityId) return false; - if (!object.Equals(Payload, other.Payload)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasEntityId) hash ^= EntityId.GetHashCode(); - if (payload_ != null) hash ^= Payload.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasEntityId) { - output.WriteRawTag(8); - output.WriteUInt32(EntityId); - } - if (payload_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Payload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasEntityId) { - output.WriteRawTag(8); - output.WriteUInt32(EntityId); - } - if (payload_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Payload); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasEntityId) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); - } - if (payload_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppEntityChanged other) { - if (other == null) { - return; - } - if (other.HasEntityId) { - EntityId = other.EntityId; - } - if (other.payload_ != null) { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - Payload.MergeFrom(other.Payload); - } - _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 8: { - EntityId = input.ReadUInt32(); - break; - } - case 18: { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - input.ReadMessage(Payload); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - EntityId = input.ReadUInt32(); - break; - } - case 18: { - if (payload_ == null) { - Payload = new global::Rustplus.AppEntityPayload(); - } - input.ReadMessage(Payload); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppClanChanged : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanChanged()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[39]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChanged() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChanged(AppClanChanged other) : this() { - clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppClanChanged Clone() { - return new AppClanChanged(this); - } - - /// Field number for the "clanInfo" field. - public const int ClanInfoFieldNumber = 1; - private global::Rustplus.ClanInfo clanInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.ClanInfo ClanInfo { - get { return clanInfo_; } - set { - clanInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppClanChanged); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppClanChanged other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ClanInfo, other.ClanInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (clanInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (clanInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ClanInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (clanInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppClanChanged other) { - if (other == null) { - return; - } - if (other.clanInfo_ != null) { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - ClanInfo.MergeFrom(other.ClanInfo); - } - _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: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (clanInfo_ == null) { - ClanInfo = new global::Rustplus.ClanInfo(); - } - input.ReadMessage(ClanInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppNewClanMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNewClanMessage()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[40]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewClanMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewClanMessage(AppNewClanMessage other) : this() { - _hasBits0 = other._hasBits0; - clanId_ = other.clanId_; - message_ = other.message_ != null ? other.message_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppNewClanMessage Clone() { - return new AppNewClanMessage(this); - } - - /// Field number for the "clanId" field. - public const int ClanIdFieldNumber = 1; - private readonly static long ClanIdDefaultValue = 0L; - - private long clanId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ClanId { - get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } - set { - _hasBits0 |= 1; - clanId_ = value; - } - } - /// Gets whether the "clanId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClanId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "clanId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClanId() { - _hasBits0 &= ~1; - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private global::Rustplus.AppClanMessage message_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppClanMessage Message { - get { return message_; } - set { - message_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppNewClanMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppNewClanMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ClanId != other.ClanId) return false; - if (!object.Equals(Message, other.Message)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasClanId) hash ^= ClanId.GetHashCode(); - if (message_ != null) hash ^= Message.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (message_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasClanId) { - output.WriteRawTag(8); - output.WriteInt64(ClanId); - } - if (message_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Message); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasClanId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); - } - if (message_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppNewClanMessage other) { - if (other == null) { - return; - } - if (other.HasClanId) { - ClanId = other.ClanId; - } - if (other.message_ != null) { - if (message_ == null) { - Message = new global::Rustplus.AppClanMessage(); - } - Message.MergeFrom(other.Message); - } - _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 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - if (message_ == null) { - Message = new global::Rustplus.AppClanMessage(); - } - input.ReadMessage(Message); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ClanId = input.ReadInt64(); - break; - } - case 18: { - if (message_ == null) { - Message = new global::Rustplus.AppClanMessage(); - } - input.ReadMessage(Message); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppCameraSubscribe : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraSubscribe()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[41]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraSubscribe() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraSubscribe(AppCameraSubscribe other) : this() { - cameraId_ = other.cameraId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraSubscribe Clone() { - return new AppCameraSubscribe(this); - } - - /// Field number for the "cameraId" field. - public const int CameraIdFieldNumber = 1; - private readonly static string CameraIdDefaultValue = ""; - - private string cameraId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CameraId { - get { return cameraId_ ?? CameraIdDefaultValue; } - set { - cameraId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "cameraId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCameraId { - get { return cameraId_ != null; } - } - /// Clears the value of the "cameraId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCameraId() { - cameraId_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCameraSubscribe); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCameraSubscribe other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CameraId != other.CameraId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCameraId) hash ^= CameraId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasCameraId) { - output.WriteRawTag(10); - output.WriteString(CameraId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasCameraId) { - output.WriteRawTag(10); - output.WriteString(CameraId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCameraId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCameraSubscribe other) { - if (other == null) { - return; - } - if (other.HasCameraId) { - CameraId = other.CameraId; - } - _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: { - CameraId = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CameraId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppCameraInput : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraInput()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[42]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInput() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInput(AppCameraInput other) : this() { - _hasBits0 = other._hasBits0; - buttons_ = other.buttons_; - mouseDelta_ = other.mouseDelta_ != null ? other.mouseDelta_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInput Clone() { - return new AppCameraInput(this); - } - - /// Field number for the "buttons" field. - public const int ButtonsFieldNumber = 1; - private readonly static int ButtonsDefaultValue = 0; - - private int buttons_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Buttons { - get { if ((_hasBits0 & 1) != 0) { return buttons_; } else { return ButtonsDefaultValue; } } - set { - _hasBits0 |= 1; - buttons_ = value; - } - } - /// Gets whether the "buttons" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasButtons { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "buttons" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearButtons() { - _hasBits0 &= ~1; - } - - /// Field number for the "mouseDelta" field. - public const int MouseDeltaFieldNumber = 2; - private global::Rustplus.Vector2 mouseDelta_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector2 MouseDelta { - get { return mouseDelta_; } - set { - mouseDelta_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCameraInput); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCameraInput other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Buttons != other.Buttons) return false; - if (!object.Equals(MouseDelta, other.MouseDelta)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasButtons) hash ^= Buttons.GetHashCode(); - if (mouseDelta_ != null) hash ^= MouseDelta.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasButtons) { - output.WriteRawTag(8); - output.WriteInt32(Buttons); - } - if (mouseDelta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MouseDelta); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasButtons) { - output.WriteRawTag(8); - output.WriteInt32(Buttons); - } - if (mouseDelta_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MouseDelta); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasButtons) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Buttons); - } - if (mouseDelta_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MouseDelta); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCameraInput other) { - if (other == null) { - return; - } - if (other.HasButtons) { - Buttons = other.Buttons; - } - if (other.mouseDelta_ != null) { - if (mouseDelta_ == null) { - MouseDelta = new global::Rustplus.Vector2(); - } - MouseDelta.MergeFrom(other.MouseDelta); - } - _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 8: { - Buttons = input.ReadInt32(); - break; - } - case 18: { - if (mouseDelta_ == null) { - MouseDelta = new global::Rustplus.Vector2(); - } - input.ReadMessage(MouseDelta); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Buttons = input.ReadInt32(); - break; - } - case 18: { - if (mouseDelta_ == null) { - MouseDelta = new global::Rustplus.Vector2(); - } - input.ReadMessage(MouseDelta); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppCameraInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[43]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInfo(AppCameraInfo other) : this() { - _hasBits0 = other._hasBits0; - width_ = other.width_; - height_ = other.height_; - nearPlane_ = other.nearPlane_; - farPlane_ = other.farPlane_; - controlFlags_ = other.controlFlags_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraInfo Clone() { - return new AppCameraInfo(this); - } - - /// Field number for the "width" field. - public const int WidthFieldNumber = 1; - private readonly static int WidthDefaultValue = 0; - - private int width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Width { - get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } - set { - _hasBits0 |= 1; - width_ = value; - } - } - /// Gets whether the "width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWidth { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWidth() { - _hasBits0 &= ~1; - } - - /// Field number for the "height" field. - public const int HeightFieldNumber = 2; - private readonly static int HeightDefaultValue = 0; - - private int height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Height { - get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } - set { - _hasBits0 |= 2; - height_ = value; - } - } - /// Gets whether the "height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeight { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeight() { - _hasBits0 &= ~2; - } - - /// Field number for the "nearPlane" field. - public const int NearPlaneFieldNumber = 3; - private readonly static float NearPlaneDefaultValue = 0F; - - private float nearPlane_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float NearPlane { - get { if ((_hasBits0 & 4) != 0) { return nearPlane_; } else { return NearPlaneDefaultValue; } } - set { - _hasBits0 |= 4; - nearPlane_ = value; - } - } - /// Gets whether the "nearPlane" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNearPlane { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "nearPlane" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNearPlane() { - _hasBits0 &= ~4; - } - - /// Field number for the "farPlane" field. - public const int FarPlaneFieldNumber = 4; - private readonly static float FarPlaneDefaultValue = 0F; - - private float farPlane_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float FarPlane { - get { if ((_hasBits0 & 8) != 0) { return farPlane_; } else { return FarPlaneDefaultValue; } } - set { - _hasBits0 |= 8; - farPlane_ = value; - } - } - /// Gets whether the "farPlane" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFarPlane { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "farPlane" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFarPlane() { - _hasBits0 &= ~8; - } - - /// Field number for the "controlFlags" field. - public const int ControlFlagsFieldNumber = 5; - private readonly static int ControlFlagsDefaultValue = 0; - - private int controlFlags_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ControlFlags { - get { if ((_hasBits0 & 16) != 0) { return controlFlags_; } else { return ControlFlagsDefaultValue; } } - set { - _hasBits0 |= 16; - controlFlags_ = value; - } - } - /// Gets whether the "controlFlags" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasControlFlags { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "controlFlags" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearControlFlags() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCameraInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCameraInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Width != other.Width) return false; - if (Height != other.Height) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NearPlane, other.NearPlane)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FarPlane, other.FarPlane)) return false; - if (ControlFlags != other.ControlFlags) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasWidth) hash ^= Width.GetHashCode(); - if (HasHeight) hash ^= Height.GetHashCode(); - if (HasNearPlane) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NearPlane); - if (HasFarPlane) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FarPlane); - if (HasControlFlags) hash ^= ControlFlags.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasWidth) { - output.WriteRawTag(8); - output.WriteInt32(Width); - } - if (HasHeight) { - output.WriteRawTag(16); - output.WriteInt32(Height); - } - if (HasNearPlane) { - output.WriteRawTag(29); - output.WriteFloat(NearPlane); - } - if (HasFarPlane) { - output.WriteRawTag(37); - output.WriteFloat(FarPlane); - } - if (HasControlFlags) { - output.WriteRawTag(40); - output.WriteInt32(ControlFlags); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasWidth) { - output.WriteRawTag(8); - output.WriteInt32(Width); - } - if (HasHeight) { - output.WriteRawTag(16); - output.WriteInt32(Height); - } - if (HasNearPlane) { - output.WriteRawTag(29); - output.WriteFloat(NearPlane); - } - if (HasFarPlane) { - output.WriteRawTag(37); - output.WriteFloat(FarPlane); - } - if (HasControlFlags) { - output.WriteRawTag(40); - output.WriteInt32(ControlFlags); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasWidth) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width); - } - if (HasHeight) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height); - } - if (HasNearPlane) { - size += 1 + 4; - } - if (HasFarPlane) { - size += 1 + 4; - } - if (HasControlFlags) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ControlFlags); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCameraInfo other) { - if (other == null) { - return; - } - if (other.HasWidth) { - Width = other.Width; - } - if (other.HasHeight) { - Height = other.Height; - } - if (other.HasNearPlane) { - NearPlane = other.NearPlane; - } - if (other.HasFarPlane) { - FarPlane = other.FarPlane; - } - if (other.HasControlFlags) { - ControlFlags = other.ControlFlags; - } - _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 8: { - Width = input.ReadInt32(); - break; - } - case 16: { - Height = input.ReadInt32(); - break; - } - case 29: { - NearPlane = input.ReadFloat(); - break; - } - case 37: { - FarPlane = input.ReadFloat(); - break; - } - case 40: { - ControlFlags = input.ReadInt32(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Width = input.ReadInt32(); - break; - } - case 16: { - Height = input.ReadInt32(); - break; - } - case 29: { - NearPlane = input.ReadFloat(); - break; - } - case 37: { - FarPlane = input.ReadFloat(); - break; - } - case 40: { - ControlFlags = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AppCameraRays : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraRays()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.RustplusReflection.Descriptor.MessageTypes[44]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraRays() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraRays(AppCameraRays other) : this() { - _hasBits0 = other._hasBits0; - verticalFov_ = other.verticalFov_; - sampleOffset_ = other.sampleOffset_; - rayData_ = other.rayData_; - distance_ = other.distance_; - entities_ = other.entities_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCameraRays Clone() { - return new AppCameraRays(this); - } - - /// Field number for the "verticalFov" field. - public const int VerticalFovFieldNumber = 1; - private readonly static float VerticalFovDefaultValue = 0F; - - private float verticalFov_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float VerticalFov { - get { if ((_hasBits0 & 1) != 0) { return verticalFov_; } else { return VerticalFovDefaultValue; } } - set { - _hasBits0 |= 1; - verticalFov_ = value; - } - } - /// Gets whether the "verticalFov" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasVerticalFov { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "verticalFov" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearVerticalFov() { - _hasBits0 &= ~1; - } - - /// Field number for the "sampleOffset" field. - public const int SampleOffsetFieldNumber = 2; - private readonly static int SampleOffsetDefaultValue = 0; - - private int sampleOffset_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int SampleOffset { - get { if ((_hasBits0 & 2) != 0) { return sampleOffset_; } else { return SampleOffsetDefaultValue; } } - set { - _hasBits0 |= 2; - sampleOffset_ = value; - } - } - /// Gets whether the "sampleOffset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSampleOffset { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "sampleOffset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSampleOffset() { - _hasBits0 &= ~2; - } - - /// Field number for the "rayData" field. - public const int RayDataFieldNumber = 3; - private readonly static pb::ByteString RayDataDefaultValue = pb::ByteString.Empty; - - private pb::ByteString rayData_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString RayData { - get { return rayData_ ?? RayDataDefaultValue; } - set { - rayData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "rayData" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRayData { - get { return rayData_ != null; } - } - /// Clears the value of the "rayData" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRayData() { - rayData_ = null; - } - - /// Field number for the "distance" field. - public const int DistanceFieldNumber = 4; - private readonly static float DistanceDefaultValue = 0F; - - private float distance_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float Distance { - get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } - set { - _hasBits0 |= 4; - distance_ = value; - } - } - /// Gets whether the "distance" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDistance { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "distance" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDistance() { - _hasBits0 &= ~4; - } - - /// Field number for the "entities" field. - public const int EntitiesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_entities_codec - = pb::FieldCodec.ForMessage(42, global::Rustplus.AppCameraRays.Types.Entity.Parser); - private readonly pbc::RepeatedField entities_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Entities { - get { return entities_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCameraRays); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCameraRays other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VerticalFov, other.VerticalFov)) return false; - if (SampleOffset != other.SampleOffset) return false; - if (RayData != other.RayData) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; - if(!entities_.Equals(other.entities_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasVerticalFov) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VerticalFov); - if (HasSampleOffset) hash ^= SampleOffset.GetHashCode(); - if (HasRayData) hash ^= RayData.GetHashCode(); - if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); - hash ^= entities_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasVerticalFov) { - output.WriteRawTag(13); - output.WriteFloat(VerticalFov); - } - if (HasSampleOffset) { - output.WriteRawTag(16); - output.WriteInt32(SampleOffset); - } - if (HasRayData) { - output.WriteRawTag(26); - output.WriteBytes(RayData); - } - if (HasDistance) { - output.WriteRawTag(37); - output.WriteFloat(Distance); - } - entities_.WriteTo(output, _repeated_entities_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasVerticalFov) { - output.WriteRawTag(13); - output.WriteFloat(VerticalFov); - } - if (HasSampleOffset) { - output.WriteRawTag(16); - output.WriteInt32(SampleOffset); - } - if (HasRayData) { - output.WriteRawTag(26); - output.WriteBytes(RayData); - } - if (HasDistance) { - output.WriteRawTag(37); - output.WriteFloat(Distance); - } - entities_.WriteTo(ref output, _repeated_entities_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasVerticalFov) { - size += 1 + 4; - } - if (HasSampleOffset) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleOffset); - } - if (HasRayData) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(RayData); - } - if (HasDistance) { - size += 1 + 4; - } - size += entities_.CalculateSize(_repeated_entities_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCameraRays other) { - if (other == null) { - return; - } - if (other.HasVerticalFov) { - VerticalFov = other.VerticalFov; - } - if (other.HasSampleOffset) { - SampleOffset = other.SampleOffset; - } - if (other.HasRayData) { - RayData = other.RayData; - } - if (other.HasDistance) { - Distance = other.Distance; - } - entities_.Add(other.entities_); - _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 13: { - VerticalFov = input.ReadFloat(); - break; - } - case 16: { - SampleOffset = input.ReadInt32(); - break; - } - case 26: { - RayData = input.ReadBytes(); - break; - } - case 37: { - Distance = input.ReadFloat(); - break; - } - case 42: { - entities_.AddEntriesFrom(input, _repeated_entities_codec); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 13: { - VerticalFov = input.ReadFloat(); - break; - } - case 16: { - SampleOffset = input.ReadInt32(); - break; - } - case 26: { - RayData = input.ReadBytes(); - break; - } - case 37: { - Distance = input.ReadFloat(); - break; - } - case 42: { - entities_.AddEntriesFrom(ref input, _repeated_entities_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppCameraRays message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum EntityType { - [pbr::OriginalName("Tree")] Tree = 1, - [pbr::OriginalName("Player")] Player = 2, - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Entity : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entity()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Rustplus.AppCameraRays.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entity() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entity(Entity other) : this() { - _hasBits0 = other._hasBits0; - entityId_ = other.entityId_; - type_ = other.type_; - position_ = other.position_ != null ? other.position_.Clone() : null; - rotation_ = other.rotation_ != null ? other.rotation_.Clone() : null; - size_ = other.size_ != null ? other.size_.Clone() : null; - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Entity Clone() { - return new Entity(this); - } - - /// Field number for the "entityId" field. - public const int EntityIdFieldNumber = 1; - private readonly static uint EntityIdDefaultValue = 0; - - private uint entityId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint EntityId { - get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } - set { - _hasBits0 |= 1; - entityId_ = value; - } - } - /// Gets whether the "entityId" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEntityId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "entityId" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEntityId() { - _hasBits0 &= ~1; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private readonly static global::Rustplus.AppCameraRays.Types.EntityType TypeDefaultValue = global::Rustplus.AppCameraRays.Types.EntityType.Tree; - - private global::Rustplus.AppCameraRays.Types.EntityType type_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.AppCameraRays.Types.EntityType Type { - get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } - set { - _hasBits0 |= 2; - type_ = value; - } - } - /// Gets whether the "type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasType { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearType() { - _hasBits0 &= ~2; - } - - /// Field number for the "position" field. - public const int PositionFieldNumber = 3; - private global::Rustplus.Vector3 position_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector3 Position { - get { return position_; } - set { - position_ = value; - } - } - - /// Field number for the "rotation" field. - public const int RotationFieldNumber = 4; - private global::Rustplus.Vector3 rotation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector3 Rotation { - get { return rotation_; } - set { - rotation_ = value; - } - } - - /// Field number for the "size" field. - public const int SizeFieldNumber = 5; - private global::Rustplus.Vector3 size_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Rustplus.Vector3 Size { - get { return size_; } - set { - size_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 6; - private readonly static string NameDefaultValue = ""; - - private string name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? NameDefaultValue; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Entity); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Entity other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EntityId != other.EntityId) return false; - if (Type != other.Type) return false; - if (!object.Equals(Position, other.Position)) return false; - if (!object.Equals(Rotation, other.Rotation)) return false; - if (!object.Equals(Size, other.Size)) return false; - if (Name != other.Name) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasEntityId) hash ^= EntityId.GetHashCode(); - if (HasType) hash ^= Type.GetHashCode(); - if (position_ != null) hash ^= Position.GetHashCode(); - if (rotation_ != null) hash ^= Rotation.GetHashCode(); - if (size_ != null) hash ^= Size.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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 - output.WriteRawMessage(this); - #else - if (HasEntityId) { - output.WriteRawTag(8); - output.WriteUInt32(EntityId); - } - if (HasType) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (position_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Position); - } - if (rotation_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Rotation); - } - if (size_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Size); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #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 (HasEntityId) { - output.WriteRawTag(8); - output.WriteUInt32(EntityId); - } - if (HasType) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (position_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Position); - } - if (rotation_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Rotation); - } - if (size_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Size); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasEntityId) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); - } - if (HasType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (position_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); - } - if (rotation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rotation); - } - if (size_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Entity other) { - if (other == null) { - return; - } - if (other.HasEntityId) { - EntityId = other.EntityId; - } - if (other.HasType) { - Type = other.Type; - } - if (other.position_ != null) { - if (position_ == null) { - Position = new global::Rustplus.Vector3(); - } - Position.MergeFrom(other.Position); - } - if (other.rotation_ != null) { - if (rotation_ == null) { - Rotation = new global::Rustplus.Vector3(); - } - Rotation.MergeFrom(other.Rotation); - } - if (other.size_ != null) { - if (size_ == null) { - Size = new global::Rustplus.Vector3(); - } - Size.MergeFrom(other.Size); - } - if (other.HasName) { - Name = other.Name; - } - _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 8: { - EntityId = input.ReadUInt32(); - break; - } - case 16: { - Type = (global::Rustplus.AppCameraRays.Types.EntityType) input.ReadEnum(); - break; - } - case 26: { - if (position_ == null) { - Position = new global::Rustplus.Vector3(); - } - input.ReadMessage(Position); - break; - } - case 34: { - if (rotation_ == null) { - Rotation = new global::Rustplus.Vector3(); - } - input.ReadMessage(Rotation); - break; - } - case 42: { - if (size_ == null) { - Size = new global::Rustplus.Vector3(); - } - input.ReadMessage(Size); - break; - } - case 50: { - Name = input.ReadString(); - 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) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - EntityId = input.ReadUInt32(); - break; - } - case 16: { - Type = (global::Rustplus.AppCameraRays.Types.EntityType) input.ReadEnum(); - break; - } - case 26: { - if (position_ == null) { - Position = new global::Rustplus.Vector3(); +using System.Net.WebSockets; + +using Google.Protobuf; + +using RustPlusContracts; + +namespace RustPlusApi +{ + /// + /// A Rust+ API client made in C#. + /// + /// The IP address of the Rust+ server. + /// The port dedicated for the Rust+ companion app (not the one used to connect in-game). + /// Your Steam ID. + /// Your player token acquired with FCM. + /// Specifies whether to use the Facepunch proxy. + public class RustPlus(string server, int port, ulong playerId, int playerToken, bool useFacepunchProxy = false) : IDisposable + { + private ClientWebSocket? _webSocket; + private uint _seq; + private readonly Dictionary> _seqCallbacks = new(); + + public event EventHandler? Connecting; + public event EventHandler? Connected; + public event EventHandler? MessageReceived; + public event EventHandler? RequestSent; + public event EventHandler? Disconnected; + public event EventHandler? ErrorOccurred; + + /// + /// Connects to the Rust+ server asynchronously. + /// + public async Task ConnectAsync() + { + _webSocket = new ClientWebSocket(); + _webSocket.Options.KeepAliveInterval = TimeSpan.FromSeconds(20); + var address = useFacepunchProxy + ? new Uri($"wss://companion-rust.facepunch.com/game/{server}/{port}") + : new Uri($"ws://{server}:{port}"); + + Connecting?.Invoke(this, EventArgs.Empty); + + try + { + await _webSocket.ConnectAsync(address, CancellationToken.None); + Connected?.Invoke(this, EventArgs.Empty); + await ReceiveMessagesAsync(); + } + catch (Exception ex) + { + ErrorOccurred?.Invoke(this, ex); + Disconnect(); + } + } + + /// + /// Receives messages from the Rust+ server asynchronously. + /// + private async Task ReceiveMessagesAsync() + { + const int bufferSize = 1024; + while (_webSocket!.State == WebSocketState.Open) + { + var buffer = new byte[bufferSize]; + var receiveBuffer = new List(); + WebSocketReceiveResult result; + + do + { + result = await _webSocket.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None); + receiveBuffer.AddRange(buffer.Take(result.Count)); + } while (!result.EndOfMessage); + + var messageData = receiveBuffer.ToArray(); + var message = AppMessage.Parser.ParseFrom(messageData); + MessageReceived?.Invoke(this, message); + HandleResponse(message); + } + } + + /// + /// Handles the response received from the Rust+ server. + /// + private void HandleResponse(AppMessage message) + { + if (message.Response != null && message.Response.Seq != 0 && _seqCallbacks.ContainsKey((int)message.Response.Seq)) + { + var callback = _seqCallbacks[(int)message.Response.Seq]; + var result = callback.Invoke(message); + _seqCallbacks.Remove((int)message.Response.Seq); + if (result) return; + } + MessageReceived?.Invoke(this, message); + } + + /// + /// Sends a request to the Rust+ server asynchronously. + /// + private async Task SendRequestAsync(AppRequest request, Func? callback = null) + { + var seq = ++_seq; + if (callback != null) _seqCallbacks[(int)seq] = callback; + + request.Seq = seq; + request.PlayerId = playerId; + request.PlayerToken = playerToken; + + var requestData = request.ToByteArray(); + var buffer = new ArraySegment(requestData); + await _webSocket!.SendAsync(buffer, WebSocketMessageType.Binary, true, CancellationToken.None); + RequestSent?.Invoke(this, request); + } + + /// + /// Disconnects from the Rust+ server. + /// + private void Disconnect() + { + if (_webSocket is not { State: WebSocketState.Open }) return; + + _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Connection closed by client.", CancellationToken.None).Wait(); + _webSocket.Dispose(); + + Disconnected?.Invoke(this, EventArgs.Empty); + } + + /// + /// Disposes the Rust+ API client and disconnects from the Rust+ server. + /// + public void Dispose() => Disconnect(); + + /// + /// Checks if the client is connected to the Rust+ server. + /// + public bool IsConnected() => _webSocket is { State: WebSocketState.Open }; + + /// + /// Sets the value of an entity asynchronously. + /// + public async Task SetEntityValueAsync(int entityId, bool value, Func? callback = null) + { + var request = new AppRequest + { + EntityId = (uint)entityId, + SetEntityValue = new AppSetEntityValue + { + Value = value } - input.ReadMessage(Position); - break; - } - case 34: { - if (rotation_ == null) { - Rotation = new global::Rustplus.Vector3(); + }; + await SendRequestAsync(request, callback); + } + + /// + /// Toggles the value of an entity repeatedly with a specified timeout. + /// + public async Task StrobeAsync(int entityId, int timeoutMilliseconds = 100, bool value = true) + { + await SetEntityValueAsync(entityId, value); + await Task.Delay(timeoutMilliseconds); + await StrobeAsync(entityId, timeoutMilliseconds, !value); + } + + /// + /// Sends a team message to the Rust+ server asynchronously. + /// + public async Task SendTeamMessageAsync(string message, Func? callback = null) + { + var request = new AppRequest + { + SendTeamMessage = new AppSendMessage + { + Message = message } - input.ReadMessage(Rotation); - break; - } - case 42: { - if (size_ == null) { - Size = new global::Rustplus.Vector3(); - } - input.ReadMessage(Size); - break; - } - case 50: { - Name = input.ReadString(); - break; - } - } - } + }; + await SendRequestAsync(request, callback); + } + + /// + /// Retrieves information about an entity from the Rust+ server asynchronously. + /// + public async Task GetEntityInfoAsync(int entityId, Func? callback = null) + { + var request = new AppRequest + { + EntityId = (uint)entityId, + GetEntityInfo = new AppEmpty() + }; + await SendRequestAsync(request, callback); + } + + /// + /// Retrieves the map from the Rust+ server asynchronously. + /// + public async Task GetMapAsync(Func? callback = null) + { + var request = new AppRequest + { + GetMap = new AppEmpty() + }; + await SendRequestAsync(request, callback); + } + + /// + /// Retrieves the current time from the Rust+ server asynchronously. + /// + public async Task GetTimeAsync(Func? callback = null) + { + var request = new AppRequest + { + GetTime = new AppEmpty() + }; + await SendRequestAsync(request, callback); + } + + /// + /// Retrieves general information from the Rust+ server asynchronously. + /// + public async Task GetInfoAsync(Func? callback = null) + { + var request = new AppRequest + { + GetInfo = new AppEmpty() + }; + await SendRequestAsync(request, callback); + } + + /// + /// Retrieves team information from the Rust+ server asynchronously. + /// + public async Task GetTeamInfoAsync(Func? callback = null) + { + var request = new AppRequest + { + GetTeamInfo = new AppEmpty() + }; + await SendRequestAsync(request, callback); } - #endif - - } - } - #endregion - - } - - #endregion - } - -#endregion Designer generated code diff --git a/RustPlusApi/RustPlusApi/RustPlusApi.cs b/RustPlusApi/RustPlusApi/RustPlusApi.cs deleted file mode 100644 index 59584c4..0000000 --- a/RustPlusApi/RustPlusApi/RustPlusApi.cs +++ /dev/null @@ -1,239 +0,0 @@ -using System.Net.WebSockets; - -using Google.Protobuf; - -using Rustplus; - -namespace RustPlusApi -{ - /// - /// A Rust+ API client made in C#. - /// - /// The IP address of the Rust+ server. - /// The port dedicated for the Rust+ companion app (not the one used to connect in-game). - /// Your Steam ID. - /// Your player token acquired with FCM. - /// Specifies whether to use the Facepunch proxy. - public class RustPlusApi(string server, int port, ulong playerId, int playerToken, bool useFacepunchProxy = false) : IDisposable - { - private ClientWebSocket? _webSocket; - private uint _seq; - private readonly Dictionary> _seqCallbacks = new(); - - public event EventHandler? Connecting; - public event EventHandler? Connected; - public event EventHandler? MessageReceived; - public event EventHandler? RequestSent; - public event EventHandler? Disconnected; - public event EventHandler? ErrorOccurred; - - /// - /// Connects to the Rust+ server asynchronously. - /// - public async Task ConnectAsync() - { - _webSocket = new ClientWebSocket(); - _webSocket.Options.KeepAliveInterval = TimeSpan.FromSeconds(20); - var address = useFacepunchProxy - ? new Uri($"wss://companion-rust.facepunch.com/game/{server}/{port}") - : new Uri($"ws://{server}:{port}"); - - Connecting?.Invoke(this, EventArgs.Empty); - - try - { - await _webSocket.ConnectAsync(address, CancellationToken.None); - Connected?.Invoke(this, EventArgs.Empty); - await ReceiveMessagesAsync(); - } - catch (Exception ex) - { - ErrorOccurred?.Invoke(this, ex); - Disconnect(); - } - } - - /// - /// Receives messages from the Rust+ server asynchronously. - /// - private async Task ReceiveMessagesAsync() - { - const int bufferSize = 1024; - while (_webSocket!.State == WebSocketState.Open) - { - var buffer = new byte[bufferSize]; - var receiveBuffer = new List(); - WebSocketReceiveResult result; - - do - { - result = await _webSocket.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None); - receiveBuffer.AddRange(buffer.Take(result.Count)); - } while (!result.EndOfMessage); - - var messageData = receiveBuffer.ToArray(); - var message = AppMessage.Parser.ParseFrom(messageData); - MessageReceived?.Invoke(this, message); - HandleResponse(message); - } - } - - /// - /// Handles the response received from the Rust+ server. - /// - private void HandleResponse(AppMessage message) - { - if (message.Response != null && message.Response.Seq != 0 && _seqCallbacks.ContainsKey((int)message.Response.Seq)) - { - var callback = _seqCallbacks[(int)message.Response.Seq]; - var result = callback.Invoke(message); - _seqCallbacks.Remove((int)message.Response.Seq); - if (result) return; - } - MessageReceived?.Invoke(this, message); - } - - /// - /// Sends a request to the Rust+ server asynchronously. - /// - private async Task SendRequestAsync(AppRequest request, Func? callback = null) - { - var seq = ++_seq; - if (callback != null) _seqCallbacks[(int)seq] = callback; - - request.Seq = seq; - request.PlayerId = playerId; - request.PlayerToken = playerToken; - - var requestData = request.ToByteArray(); - var buffer = new ArraySegment(requestData); - await _webSocket!.SendAsync(buffer, WebSocketMessageType.Binary, true, CancellationToken.None); - RequestSent?.Invoke(this, request); - } - - /// - /// Disconnects from the Rust+ server. - /// - private void Disconnect() - { - if (_webSocket is not { State: WebSocketState.Open }) return; - - _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Connection closed by client.", CancellationToken.None).Wait(); - _webSocket.Dispose(); - - Disconnected?.Invoke(this, EventArgs.Empty); - } - - /// - /// Disposes the Rust+ API client and disconnects from the Rust+ server. - /// - public void Dispose() => Disconnect(); - - /// - /// Checks if the client is connected to the Rust+ server. - /// - public bool IsConnected() => _webSocket is { State: WebSocketState.Open }; - - /// - /// Sets the value of an entity asynchronously. - /// - public async Task SetEntityValueAsync(int entityId, bool value, Func? callback = null) - { - var request = new AppRequest - { - EntityId = (uint)entityId, - SetEntityValue = new AppSetEntityValue - { - Value = value - } - }; - await SendRequestAsync(request, callback); - } - - /// - /// Toggles the value of an entity repeatedly with a specified timeout. - /// - public async Task StrobeAsync(int entityId, int timeoutMilliseconds = 100, bool value = true) - { - await SetEntityValueAsync(entityId, value); - await Task.Delay(timeoutMilliseconds); - await StrobeAsync(entityId, timeoutMilliseconds, !value); - } - - /// - /// Sends a team message to the Rust+ server asynchronously. - /// - public async Task SendTeamMessageAsync(string message, Func? callback = null) - { - var request = new AppRequest - { - SendTeamMessage = new AppSendMessage - { - Message = message - } - }; - await SendRequestAsync(request, callback); - } - - /// - /// Retrieves information about an entity from the Rust+ server asynchronously. - /// - public async Task GetEntityInfoAsync(int entityId, Func? callback = null) - { - var request = new AppRequest - { - EntityId = (uint)entityId, - GetEntityInfo = new AppEmpty() - }; - await SendRequestAsync(request, callback); - } - - /// - /// Retrieves the map from the Rust+ server asynchronously. - /// - public async Task GetMapAsync(Func? callback = null) - { - var request = new AppRequest - { - GetMap = new AppEmpty() - }; - await SendRequestAsync(request, callback); - } - - /// - /// Retrieves the current time from the Rust+ server asynchronously. - /// - public async Task GetTimeAsync(Func? callback = null) - { - var request = new AppRequest - { - GetTime = new AppEmpty() - }; - await SendRequestAsync(request, callback); - } - - /// - /// Retrieves general information from the Rust+ server asynchronously. - /// - public async Task GetInfoAsync(Func? callback = null) - { - var request = new AppRequest - { - GetInfo = new AppEmpty() - }; - await SendRequestAsync(request, callback); - } - - /// - /// Retrieves team information from the Rust+ server asynchronously. - /// - public async Task GetTeamInfoAsync(Func? callback = null) - { - var request = new AppRequest - { - GetTeamInfo = new AppEmpty() - }; - await SendRequestAsync(request, callback); - } - } -} diff --git a/RustPlusApi/RustPlusApi/RustPlusApi.csproj b/RustPlusApi/RustPlusApi/RustPlusApi.csproj index 0e39b9c..9f10049 100644 --- a/RustPlusApi/RustPlusApi/RustPlusApi.csproj +++ b/RustPlusApi/RustPlusApi/RustPlusApi.csproj @@ -5,10 +5,10 @@ enable enable RustPlusApi - 1.0.1 + 1.0.2 HandyS11 HandyS11 - A Rust+ API client made in C#. + A Rust+ API made in C#. RustPlusApi is a C# library for interacting with the Rust+ API. rust rustplus rustplusapi MIT @@ -20,15 +20,11 @@ - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + - + diff --git a/RustPlusApi/RustPlusApi/RustPlusContracts.cs b/RustPlusApi/RustPlusApi/RustPlusContracts.cs new file mode 100644 index 0000000..0b8056e --- /dev/null +++ b/RustPlusApi/RustPlusApi/RustPlusContracts.cs @@ -0,0 +1,20548 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: rustpluscontracts.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace RustPlusContracts { + + /// Holder for reflection information generated from rustpluscontracts.proto + public static partial class RustpluscontractsReflection { + + #region Descriptor + /// File descriptor for rustpluscontracts.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RustpluscontractsReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdydXN0cGx1c2NvbnRyYWN0cy5wcm90bxIRUnVzdFBsdXNDb250cmFjdHMi", + "HwoHVmVjdG9yMhIJCgF4GAEgASgCEgkKAXkYAiABKAIiKgoHVmVjdG9yMxIJ", + "CgF4GAEgASgCEgkKAXkYAiABKAISCQoBehgDIAEoAiI1CgdWZWN0b3I0EgkK", + "AXgYASABKAISCQoBeRgCIAEoAhIJCgF6GAMgASgCEgkKAXcYBCABKAIiKAoF", + "SGFsZjMSCQoBeBgBIAEoAhIJCgF5GAIgASgCEgkKAXoYAyABKAIiMwoFQ29s", + "b3ISCQoBchgBIAEoAhIJCgFnGAIgASgCEgkKAWIYAyABKAISCQoBYRgEIAEo", + "AiJgCgNSYXkSKgoGb3JpZ2luGAEgASgLMhouUnVzdFBsdXNDb250cmFjdHMu", + "VmVjdG9yMxItCglkaXJlY3Rpb24YAiABKAsyGi5SdXN0UGx1c0NvbnRyYWN0", + "cy5WZWN0b3IzInkKEENsYW5BY3Rpb25SZXN1bHQSEQoJcmVxdWVzdElkGAEg", + "AigFEg4KBnJlc3VsdBgCIAIoBRITCgtoYXNDbGFuSW5mbxgDIAIoCBItCghj", + "bGFuSW5mbxgEIAEoCzIbLlJ1c3RQbHVzQ29udHJhY3RzLkNsYW5JbmZvItoF", + "CghDbGFuSW5mbxIOCgZjbGFuSWQYASACKAMSDAoEbmFtZRgCIAIoCRIPCgdj", + "cmVhdGVkGAMgAigDEg8KB2NyZWF0b3IYBCACKAQSDAoEbW90ZBgFIAEoCRIV", + "Cg1tb3RkVGltZXN0YW1wGAYgASgDEhIKCm1vdGRBdXRob3IYByABKAQSDAoE", + "bG9nbxgIIAEoDBINCgVjb2xvchgJIAEoERIvCgVyb2xlcxgKIAMoCzIgLlJ1", + "c3RQbHVzQ29udHJhY3RzLkNsYW5JbmZvLlJvbGUSMwoHbWVtYmVycxgLIAMo", + "CzIiLlJ1c3RQbHVzQ29udHJhY3RzLkNsYW5JbmZvLk1lbWJlchIzCgdpbnZp", + "dGVzGAwgAygLMiIuUnVzdFBsdXNDb250cmFjdHMuQ2xhbkluZm8uSW52aXRl", + "EhYKDm1heE1lbWJlckNvdW50GA0gASgFGtcBCgRSb2xlEg4KBnJvbGVJZBgB", + "IAIoBRIMCgRyYW5rGAIgAigFEgwKBG5hbWUYAyACKAkSEgoKY2FuU2V0TW90", + "ZBgEIAIoCBISCgpjYW5TZXRMb2dvGAUgAigIEhEKCWNhbkludml0ZRgGIAIo", + "CBIPCgdjYW5LaWNrGAcgAigIEhIKCmNhblByb21vdGUYCCACKAgSEQoJY2Fu", + "RGVtb3RlGAkgAigIEhkKEWNhblNldFBsYXllck5vdGVzGAogAigIEhUKDWNh", + "bkFjY2Vzc0xvZ3MYCyACKAgaagoGTWVtYmVyEg8KB3N0ZWFtSWQYASACKAQS", + "DgoGcm9sZUlkGAIgAigFEg4KBmpvaW5lZBgDIAIoAxIQCghsYXN0U2VlbhgE", + "IAIoAxINCgVub3RlcxgFIAEoCRIOCgZvbmxpbmUYBiABKAgaPwoGSW52aXRl", + "Eg8KB3N0ZWFtSWQYASACKAQSEQoJcmVjcnVpdGVyGAIgAigEEhEKCXRpbWVz", + "dGFtcBgDIAIoAyK1AQoHQ2xhbkxvZxIOCgZjbGFuSWQYASACKAMSNAoKbG9n", + "RW50cmllcxgCIAMoCzIgLlJ1c3RQbHVzQ29udHJhY3RzLkNsYW5Mb2cuRW50", + "cnkaZAoFRW50cnkSEQoJdGltZXN0YW1wGAEgAigDEhAKCGV2ZW50S2V5GAIg", + "AigJEgwKBGFyZzEYAyABKAkSDAoEYXJnMhgEIAEoCRIMCgRhcmczGAUgASgJ", + "EgwKBGFyZzQYBiABKAkimQEKD0NsYW5JbnZpdGF0aW9ucxJCCgtpbnZpdGF0", + "aW9ucxgBIAMoCzItLlJ1c3RQbHVzQ29udHJhY3RzLkNsYW5JbnZpdGF0aW9u", + "cy5JbnZpdGF0aW9uGkIKCkludml0YXRpb24SDgoGY2xhbklkGAEgAigDEhEK", + "CXJlY3J1aXRlchgCIAIoBBIRCgl0aW1lc3RhbXAYAyACKAMikAkKCkFwcFJl", + "cXVlc3QSCwoDc2VxGAEgAigNEhAKCHBsYXllcklkGAIgAigEEhMKC3BsYXll", + "clRva2VuGAMgAigFEhAKCGVudGl0eUlkGAQgASgNEiwKB2dldEluZm8YCCAB", + "KAsyGy5SdXN0UGx1c0NvbnRyYWN0cy5BcHBFbXB0eRIsCgdnZXRUaW1lGAkg", + "ASgLMhsuUnVzdFBsdXNDb250cmFjdHMuQXBwRW1wdHkSKwoGZ2V0TWFwGAog", + "ASgLMhsuUnVzdFBsdXNDb250cmFjdHMuQXBwRW1wdHkSMAoLZ2V0VGVhbUlu", + "Zm8YCyABKAsyGy5SdXN0UGx1c0NvbnRyYWN0cy5BcHBFbXB0eRIwCgtnZXRU", + "ZWFtQ2hhdBgMIAEoCzIbLlJ1c3RQbHVzQ29udHJhY3RzLkFwcEVtcHR5EjoK", + "D3NlbmRUZWFtTWVzc2FnZRgNIAEoCzIhLlJ1c3RQbHVzQ29udHJhY3RzLkFw", + "cFNlbmRNZXNzYWdlEjIKDWdldEVudGl0eUluZm8YDiABKAsyGy5SdXN0UGx1", + "c0NvbnRyYWN0cy5BcHBFbXB0eRI8Cg5zZXRFbnRpdHlWYWx1ZRgPIAEoCzIk", + "LlJ1c3RQbHVzQ29udHJhY3RzLkFwcFNldEVudGl0eVZhbHVlEjYKEWNoZWNr", + "U3Vic2NyaXB0aW9uGBAgASgLMhsuUnVzdFBsdXNDb250cmFjdHMuQXBwRW1w", + "dHkSMwoPc2V0U3Vic2NyaXB0aW9uGBEgASgLMhouUnVzdFBsdXNDb250cmFj", + "dHMuQXBwRmxhZxIyCg1nZXRNYXBNYXJrZXJzGBIgASgLMhsuUnVzdFBsdXND", + "b250cmFjdHMuQXBwRW1wdHkSPgoPcHJvbW90ZVRvTGVhZGVyGBQgASgLMiUu", + "UnVzdFBsdXNDb250cmFjdHMuQXBwUHJvbW90ZVRvTGVhZGVyEjAKC2dldENs", + "YW5JbmZvGBUgASgLMhsuUnVzdFBsdXNDb250cmFjdHMuQXBwRW1wdHkSNgoL", + "c2V0Q2xhbk1vdGQYFiABKAsyIS5SdXN0UGx1c0NvbnRyYWN0cy5BcHBTZW5k", + "TWVzc2FnZRIwCgtnZXRDbGFuQ2hhdBgXIAEoCzIbLlJ1c3RQbHVzQ29udHJh", + "Y3RzLkFwcEVtcHR5EjoKD3NlbmRDbGFuTWVzc2FnZRgYIAEoCzIhLlJ1c3RQ", + "bHVzQ29udHJhY3RzLkFwcFNlbmRNZXNzYWdlEjgKDGdldE5leHVzQXV0aBgZ", + "IAEoCzIiLlJ1c3RQbHVzQ29udHJhY3RzLkFwcEdldE5leHVzQXV0aBI+Cg9j", + "YW1lcmFTdWJzY3JpYmUYHiABKAsyJS5SdXN0UGx1c0NvbnRyYWN0cy5BcHBD", + "YW1lcmFTdWJzY3JpYmUSNgoRY2FtZXJhVW5zdWJzY3JpYmUYHyABKAsyGy5S", + "dXN0UGx1c0NvbnRyYWN0cy5BcHBFbXB0eRI2CgtjYW1lcmFJbnB1dBggIAEo", + "CzIhLlJ1c3RQbHVzQ29udHJhY3RzLkFwcENhbWVyYUlucHV0InIKCkFwcE1l", + "c3NhZ2USMAoIcmVzcG9uc2UYASABKAsyHi5SdXN0UGx1c0NvbnRyYWN0cy5B", + "cHBSZXNwb25zZRIyCglicm9hZGNhc3QYAiABKAsyHy5SdXN0UGx1c0NvbnRy", + "YWN0cy5BcHBCcm9hZGNhc3QiwwUKC0FwcFJlc3BvbnNlEgsKA3NlcRgBIAIo", + "DRIuCgdzdWNjZXNzGAQgASgLMh0uUnVzdFBsdXNDb250cmFjdHMuQXBwU3Vj", + "Y2VzcxIqCgVlcnJvchgFIAEoCzIbLlJ1c3RQbHVzQ29udHJhY3RzLkFwcEVy", + "cm9yEigKBGluZm8YBiABKAsyGi5SdXN0UGx1c0NvbnRyYWN0cy5BcHBJbmZv", + "EigKBHRpbWUYByABKAsyGi5SdXN0UGx1c0NvbnRyYWN0cy5BcHBUaW1lEiYK", + "A21hcBgIIAEoCzIZLlJ1c3RQbHVzQ29udHJhY3RzLkFwcE1hcBIwCgh0ZWFt", + "SW5mbxgJIAEoCzIeLlJ1c3RQbHVzQ29udHJhY3RzLkFwcFRlYW1JbmZvEjAK", + "CHRlYW1DaGF0GAogASgLMh4uUnVzdFBsdXNDb250cmFjdHMuQXBwVGVhbUNo", + "YXQSNAoKZW50aXR5SW5mbxgLIAEoCzIgLlJ1c3RQbHVzQ29udHJhY3RzLkFw", + "cEVudGl0eUluZm8SKAoEZmxhZxgMIAEoCzIaLlJ1c3RQbHVzQ29udHJhY3Rz", + "LkFwcEZsYWcSNAoKbWFwTWFya2VycxgNIAEoCzIgLlJ1c3RQbHVzQ29udHJh", + "Y3RzLkFwcE1hcE1hcmtlcnMSMAoIY2xhbkluZm8YDyABKAsyHi5SdXN0UGx1", + "c0NvbnRyYWN0cy5BcHBDbGFuSW5mbxIwCghjbGFuQ2hhdBgQIAEoCzIeLlJ1", + "c3RQbHVzQ29udHJhY3RzLkFwcENsYW5DaGF0EjIKCW5leHVzQXV0aBgRIAEo", + "CzIfLlJ1c3RQbHVzQ29udHJhY3RzLkFwcE5leHVzQXV0aBI9ChNjYW1lcmFT", + "dWJzY3JpYmVJbmZvGBQgASgLMiAuUnVzdFBsdXNDb250cmFjdHMuQXBwQ2Ft", + "ZXJhSW5mbyLmAgoMQXBwQnJvYWRjYXN0EjYKC3RlYW1DaGFuZ2VkGAQgASgL", + "MiEuUnVzdFBsdXNDb250cmFjdHMuQXBwVGVhbUNoYW5nZWQSOQoLdGVhbU1l", + "c3NhZ2UYBSABKAsyJC5SdXN0UGx1c0NvbnRyYWN0cy5BcHBOZXdUZWFtTWVz", + "c2FnZRI6Cg1lbnRpdHlDaGFuZ2VkGAYgASgLMiMuUnVzdFBsdXNDb250cmFj", + "dHMuQXBwRW50aXR5Q2hhbmdlZBI2CgtjbGFuQ2hhbmdlZBgHIAEoCzIhLlJ1", + "c3RQbHVzQ29udHJhY3RzLkFwcENsYW5DaGFuZ2VkEjkKC2NsYW5NZXNzYWdl", + "GAggASgLMiQuUnVzdFBsdXNDb250cmFjdHMuQXBwTmV3Q2xhbk1lc3NhZ2US", + "NAoKY2FtZXJhUmF5cxgKIAEoCzIgLlJ1c3RQbHVzQ29udHJhY3RzLkFwcENh", + "bWVyYVJheXMiCgoIQXBwRW1wdHkiIQoOQXBwU2VuZE1lc3NhZ2USDwoHbWVz", + "c2FnZRgBIAIoCSIiChFBcHBTZXRFbnRpdHlWYWx1ZRINCgV2YWx1ZRgBIAIo", + "CCIlChJBcHBQcm9tb3RlVG9MZWFkZXISDwoHc3RlYW1JZBgBIAIoBCIhCg9B", + "cHBHZXROZXh1c0F1dGgSDgoGYXBwS2V5GAEgAigJIgwKCkFwcFN1Y2Nlc3Mi", + "GQoIQXBwRXJyb3ISDQoFZXJyb3IYASACKAkiGAoHQXBwRmxhZxINCgV2YWx1", + "ZRgBIAIoCCKHAgoHQXBwSW5mbxIMCgRuYW1lGAEgAigJEhMKC2hlYWRlcklt", + "YWdlGAIgAigJEgsKA3VybBgDIAIoCRILCgNtYXAYBCACKAkSDwoHbWFwU2l6", + "ZRgFIAIoDRIQCgh3aXBlVGltZRgGIAIoDRIPCgdwbGF5ZXJzGAcgAigNEhIK", + "Cm1heFBsYXllcnMYCCACKA0SFQoNcXVldWVkUGxheWVycxgJIAIoDRIMCgRz", + "ZWVkGAogASgNEgwKBHNhbHQYCyABKA0SEQoJbG9nb0ltYWdlGAwgASgJEg0K", + "BW5leHVzGA0gASgJEg8KB25leHVzSWQYDiABKAUSEQoJbmV4dXNab25lGA8g", + "ASgJImUKB0FwcFRpbWUSGAoQZGF5TGVuZ3RoTWludXRlcxgBIAIoAhIRCgl0", + "aW1lU2NhbGUYAiACKAISDwoHc3VucmlzZRgDIAIoAhIOCgZzdW5zZXQYBCAC", + "KAISDAoEdGltZRgFIAIoAiLKAQoGQXBwTWFwEg0KBXdpZHRoGAEgAigNEg4K", + "BmhlaWdodBgCIAIoDRIQCghqcGdJbWFnZRgDIAIoDBITCgtvY2Vhbk1hcmdp", + "bhgEIAIoBRI1Cgltb251bWVudHMYBSADKAsyIi5SdXN0UGx1c0NvbnRyYWN0", + "cy5BcHBNYXAuTW9udW1lbnQSEgoKYmFja2dyb3VuZBgGIAEoCRovCghNb251", + "bWVudBINCgV0b2tlbhgBIAIoCRIJCgF4GAIgAigCEgkKAXkYAyACKAIidQoN", + "QXBwRW50aXR5SW5mbxIuCgR0eXBlGAEgAigOMiAuUnVzdFBsdXNDb250cmFj", + "dHMuQXBwRW50aXR5VHlwZRI0CgdwYXlsb2FkGAMgAigLMiMuUnVzdFBsdXND", + "b250cmFjdHMuQXBwRW50aXR5UGF5bG9hZCLgAQoQQXBwRW50aXR5UGF5bG9h", + "ZBINCgV2YWx1ZRgBIAEoCBI3CgVpdGVtcxgCIAMoCzIoLlJ1c3RQbHVzQ29u", + "dHJhY3RzLkFwcEVudGl0eVBheWxvYWQuSXRlbRIQCghjYXBhY2l0eRgDIAEo", + "BRIVCg1oYXNQcm90ZWN0aW9uGAQgASgIEhgKEHByb3RlY3Rpb25FeHBpcnkY", + "BSABKA0aQQoESXRlbRIOCgZpdGVtSWQYASACKAUSEAoIcXVhbnRpdHkYAiAC", + "KAUSFwoPaXRlbUlzQmx1ZXByaW50GAMgAigIIoUDCgtBcHBUZWFtSW5mbxIV", + "Cg1sZWFkZXJTdGVhbUlkGAEgAigEEjYKB21lbWJlcnMYAiADKAsyJS5SdXN0", + "UGx1c0NvbnRyYWN0cy5BcHBUZWFtSW5mby5NZW1iZXISNQoIbWFwTm90ZXMY", + "AyADKAsyIy5SdXN0UGx1c0NvbnRyYWN0cy5BcHBUZWFtSW5mby5Ob3RlEjsK", + "DmxlYWRlck1hcE5vdGVzGAQgAygLMiMuUnVzdFBsdXNDb250cmFjdHMuQXBw", + "VGVhbUluZm8uTm90ZRqGAQoGTWVtYmVyEg8KB3N0ZWFtSWQYASACKAQSDAoE", + "bmFtZRgCIAIoCRIJCgF4GAMgAigCEgkKAXkYBCACKAISEAoIaXNPbmxpbmUY", + "BSACKAgSEQoJc3Bhd25UaW1lGAYgAigNEg8KB2lzQWxpdmUYByACKAgSEQoJ", + "ZGVhdGhUaW1lGAggAigNGioKBE5vdGUSDAoEdHlwZRgCIAIoBRIJCgF4GAMg", + "AigCEgkKAXkYBCACKAIiXQoOQXBwVGVhbU1lc3NhZ2USDwoHc3RlYW1JZBgB", + "IAIoBBIMCgRuYW1lGAIgAigJEg8KB21lc3NhZ2UYAyACKAkSDQoFY29sb3IY", + "BCACKAkSDAoEdGltZRgFIAIoDSJCCgtBcHBUZWFtQ2hhdBIzCghtZXNzYWdl", + "cxgBIAMoCzIhLlJ1c3RQbHVzQ29udHJhY3RzLkFwcFRlYW1NZXNzYWdlIqwE", + "CglBcHBNYXJrZXISCgoCaWQYASACKA0SLgoEdHlwZRgCIAIoDjIgLlJ1c3RQ", + "bHVzQ29udHJhY3RzLkFwcE1hcmtlclR5cGUSCQoBeBgDIAIoAhIJCgF5GAQg", + "AigCEg8KB3N0ZWFtSWQYBSABKAQSEAoIcm90YXRpb24YBiABKAISDgoGcmFk", + "aXVzGAcgASgCEioKBmNvbG9yMRgIIAEoCzIaLlJ1c3RQbHVzQ29udHJhY3Rz", + "LlZlY3RvcjQSKgoGY29sb3IyGAkgASgLMhouUnVzdFBsdXNDb250cmFjdHMu", + "VmVjdG9yNBINCgVhbHBoYRgKIAEoAhIMCgRuYW1lGAsgASgJEhIKCm91dE9m", + "U3RvY2sYDCABKAgSOgoKc2VsbE9yZGVycxgNIAMoCzImLlJ1c3RQbHVzQ29u", + "dHJhY3RzLkFwcE1hcmtlci5TZWxsT3JkZXIa1AEKCVNlbGxPcmRlchIOCgZp", + "dGVtSWQYASACKAUSEAoIcXVhbnRpdHkYAiACKAUSEgoKY3VycmVuY3lJZBgD", + "IAIoBRITCgtjb3N0UGVySXRlbRgEIAIoBRIVCg1hbW91bnRJblN0b2NrGAUg", + "AigFEhcKD2l0ZW1Jc0JsdWVwcmludBgGIAIoCBIbChNjdXJyZW5jeUlzQmx1", + "ZXByaW50GAcgAigIEhUKDWl0ZW1Db25kaXRpb24YCCABKAISGAoQaXRlbUNv", + "bmRpdGlvbk1heBgJIAEoAiI+Cg1BcHBNYXBNYXJrZXJzEi0KB21hcmtlcnMY", + "ASADKAsyHC5SdXN0UGx1c0NvbnRyYWN0cy5BcHBNYXJrZXIiPAoLQXBwQ2xh", + "bkluZm8SLQoIY2xhbkluZm8YASABKAsyGy5SdXN0UGx1c0NvbnRyYWN0cy5D", + "bGFuSW5mbyJOCg5BcHBDbGFuTWVzc2FnZRIPCgdzdGVhbUlkGAEgAigEEgwK", + "BG5hbWUYAiACKAkSDwoHbWVzc2FnZRgDIAIoCRIMCgR0aW1lGAQgAigDIkIK", + "C0FwcENsYW5DaGF0EjMKCG1lc3NhZ2VzGAEgAygLMiEuUnVzdFBsdXNDb250", + "cmFjdHMuQXBwQ2xhbk1lc3NhZ2UiNQoMQXBwTmV4dXNBdXRoEhAKCHNlcnZl", + "cklkGAEgAigJEhMKC3BsYXllclRva2VuGAIgAigFIlQKDkFwcFRlYW1DaGFu", + "Z2VkEhAKCHBsYXllcklkGAEgAigEEjAKCHRlYW1JbmZvGAIgAigLMh4uUnVz", + "dFBsdXNDb250cmFjdHMuQXBwVGVhbUluZm8iRwoRQXBwTmV3VGVhbU1lc3Nh", + "Z2USMgoHbWVzc2FnZRgBIAIoCzIhLlJ1c3RQbHVzQ29udHJhY3RzLkFwcFRl", + "YW1NZXNzYWdlIloKEEFwcEVudGl0eUNoYW5nZWQSEAoIZW50aXR5SWQYASAC", + "KA0SNAoHcGF5bG9hZBgCIAIoCzIjLlJ1c3RQbHVzQ29udHJhY3RzLkFwcEVu", + "dGl0eVBheWxvYWQiPwoOQXBwQ2xhbkNoYW5nZWQSLQoIY2xhbkluZm8YASAB", + "KAsyGy5SdXN0UGx1c0NvbnRyYWN0cy5DbGFuSW5mbyJXChFBcHBOZXdDbGFu", + "TWVzc2FnZRIOCgZjbGFuSWQYASACKAMSMgoHbWVzc2FnZRgCIAIoCzIhLlJ1", + "c3RQbHVzQ29udHJhY3RzLkFwcENsYW5NZXNzYWdlIiYKEkFwcENhbWVyYVN1", + "YnNjcmliZRIQCghjYW1lcmFJZBgBIAIoCSJRCg5BcHBDYW1lcmFJbnB1dBIP", + "CgdidXR0b25zGAEgAigFEi4KCm1vdXNlRGVsdGEYAiACKAsyGi5SdXN0UGx1", + "c0NvbnRyYWN0cy5WZWN0b3IyImkKDUFwcENhbWVyYUluZm8SDQoFd2lkdGgY", + "ASACKAUSDgoGaGVpZ2h0GAIgAigFEhEKCW5lYXJQbGFuZRgDIAIoAhIQCghm", + "YXJQbGFuZRgEIAIoAhIUCgxjb250cm9sRmxhZ3MYBSACKAUiqAMKDUFwcENh", + "bWVyYVJheXMSEwoLdmVydGljYWxGb3YYASACKAISFAoMc2FtcGxlT2Zmc2V0", + "GAIgAigFEg8KB3JheURhdGEYAyACKAwSEAoIZGlzdGFuY2UYBCACKAISOQoI", + "ZW50aXRpZXMYBSADKAsyJy5SdXN0UGx1c0NvbnRyYWN0cy5BcHBDYW1lcmFS", + "YXlzLkVudGl0eRrpAQoGRW50aXR5EhAKCGVudGl0eUlkGAEgAigNEjkKBHR5", + "cGUYAiACKA4yKy5SdXN0UGx1c0NvbnRyYWN0cy5BcHBDYW1lcmFSYXlzLkVu", + "dGl0eVR5cGUSLAoIcG9zaXRpb24YAyACKAsyGi5SdXN0UGx1c0NvbnRyYWN0", + "cy5WZWN0b3IzEiwKCHJvdGF0aW9uGAQgAigLMhouUnVzdFBsdXNDb250cmFj", + "dHMuVmVjdG9yMxIoCgRzaXplGAUgAigLMhouUnVzdFBsdXNDb250cmFjdHMu", + "VmVjdG9yMxIMCgRuYW1lGAYgASgJIiIKCkVudGl0eVR5cGUSCAoEVHJlZRAB", + "EgoKBlBsYXllchACKjoKDUFwcEVudGl0eVR5cGUSCgoGU3dpdGNoEAESCQoF", + "QWxhcm0QAhISCg5TdG9yYWdlTW9uaXRvchADKpoBCg1BcHBNYXJrZXJUeXBl", + "Eg0KCVVuZGVmaW5lZBAAEgoKBlBsYXllchABEg0KCUV4cGxvc2lvbhACEhIK", + "DlZlbmRpbmdNYWNoaW5lEAMSCAoEQ0g0NxAEEg0KCUNhcmdvU2hpcBAFEgkK", + "BUNyYXRlEAYSEQoNR2VuZXJpY1JhZGl1cxAHEhQKEFBhdHJvbEhlbGljb3B0", + "ZXIQCA==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::RustPlusContracts.AppEntityType), typeof(global::RustPlusContracts.AppMarkerType), }, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Vector2), global::RustPlusContracts.Vector2.Parser, new[]{ "X", "Y" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Vector3), global::RustPlusContracts.Vector3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Vector4), global::RustPlusContracts.Vector4.Parser, new[]{ "X", "Y", "Z", "W" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Half3), global::RustPlusContracts.Half3.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Color), global::RustPlusContracts.Color.Parser, new[]{ "R", "G", "B", "A" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.Ray), global::RustPlusContracts.Ray.Parser, new[]{ "Origin", "Direction" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanActionResult), global::RustPlusContracts.ClanActionResult.Parser, new[]{ "RequestId", "Result", "HasClanInfo", "ClanInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInfo), global::RustPlusContracts.ClanInfo.Parser, new[]{ "ClanId", "Name", "Created", "Creator", "Motd", "MotdTimestamp", "MotdAuthor", "Logo", "Color", "Roles", "Members", "Invites", "MaxMemberCount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInfo.Types.Role), global::RustPlusContracts.ClanInfo.Types.Role.Parser, new[]{ "RoleId", "Rank", "Name", "CanSetMotd", "CanSetLogo", "CanInvite", "CanKick", "CanPromote", "CanDemote", "CanSetPlayerNotes", "CanAccessLogs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInfo.Types.Member), global::RustPlusContracts.ClanInfo.Types.Member.Parser, new[]{ "SteamId", "RoleId", "Joined", "LastSeen", "Notes", "Online" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInfo.Types.Invite), global::RustPlusContracts.ClanInfo.Types.Invite.Parser, new[]{ "SteamId", "Recruiter", "Timestamp" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanLog), global::RustPlusContracts.ClanLog.Parser, new[]{ "ClanId", "LogEntries" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanLog.Types.Entry), global::RustPlusContracts.ClanLog.Types.Entry.Parser, new[]{ "Timestamp", "EventKey", "Arg1", "Arg2", "Arg3", "Arg4" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInvitations), global::RustPlusContracts.ClanInvitations.Parser, new[]{ "Invitations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.ClanInvitations.Types.Invitation), global::RustPlusContracts.ClanInvitations.Types.Invitation.Parser, new[]{ "ClanId", "Recruiter", "Timestamp" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppRequest), global::RustPlusContracts.AppRequest.Parser, new[]{ "Seq", "PlayerId", "PlayerToken", "EntityId", "GetInfo", "GetTime", "GetMap", "GetTeamInfo", "GetTeamChat", "SendTeamMessage", "GetEntityInfo", "SetEntityValue", "CheckSubscription", "SetSubscription", "GetMapMarkers", "PromoteToLeader", "GetClanInfo", "SetClanMotd", "GetClanChat", "SendClanMessage", "GetNexusAuth", "CameraSubscribe", "CameraUnsubscribe", "CameraInput" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMessage), global::RustPlusContracts.AppMessage.Parser, new[]{ "Response", "Broadcast" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppResponse), global::RustPlusContracts.AppResponse.Parser, new[]{ "Seq", "Success", "Error", "Info", "Time", "Map", "TeamInfo", "TeamChat", "EntityInfo", "Flag", "MapMarkers", "ClanInfo", "ClanChat", "NexusAuth", "CameraSubscribeInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppBroadcast), global::RustPlusContracts.AppBroadcast.Parser, new[]{ "TeamChanged", "TeamMessage", "EntityChanged", "ClanChanged", "ClanMessage", "CameraRays" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppEmpty), global::RustPlusContracts.AppEmpty.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppSendMessage), global::RustPlusContracts.AppSendMessage.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppSetEntityValue), global::RustPlusContracts.AppSetEntityValue.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppPromoteToLeader), global::RustPlusContracts.AppPromoteToLeader.Parser, new[]{ "SteamId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppGetNexusAuth), global::RustPlusContracts.AppGetNexusAuth.Parser, new[]{ "AppKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppSuccess), global::RustPlusContracts.AppSuccess.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppError), global::RustPlusContracts.AppError.Parser, new[]{ "Error" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppFlag), global::RustPlusContracts.AppFlag.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppInfo), global::RustPlusContracts.AppInfo.Parser, new[]{ "Name", "HeaderImage", "Url", "Map", "MapSize", "WipeTime", "Players", "MaxPlayers", "QueuedPlayers", "Seed", "Salt", "LogoImage", "Nexus", "NexusId", "NexusZone" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTime), global::RustPlusContracts.AppTime.Parser, new[]{ "DayLengthMinutes", "TimeScale", "Sunrise", "Sunset", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMap), global::RustPlusContracts.AppMap.Parser, new[]{ "Width", "Height", "JpgImage", "OceanMargin", "Monuments", "Background" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMap.Types.Monument), global::RustPlusContracts.AppMap.Types.Monument.Parser, new[]{ "Token", "X", "Y" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppEntityInfo), global::RustPlusContracts.AppEntityInfo.Parser, new[]{ "Type", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppEntityPayload), global::RustPlusContracts.AppEntityPayload.Parser, new[]{ "Value", "Items", "Capacity", "HasProtection", "ProtectionExpiry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppEntityPayload.Types.Item), global::RustPlusContracts.AppEntityPayload.Types.Item.Parser, new[]{ "ItemId", "Quantity", "ItemIsBlueprint" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamInfo), global::RustPlusContracts.AppTeamInfo.Parser, new[]{ "LeaderSteamId", "Members", "MapNotes", "LeaderMapNotes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamInfo.Types.Member), global::RustPlusContracts.AppTeamInfo.Types.Member.Parser, new[]{ "SteamId", "Name", "X", "Y", "IsOnline", "SpawnTime", "IsAlive", "DeathTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamInfo.Types.Note), global::RustPlusContracts.AppTeamInfo.Types.Note.Parser, new[]{ "Type", "X", "Y" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamMessage), global::RustPlusContracts.AppTeamMessage.Parser, new[]{ "SteamId", "Name", "Message", "Color", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamChat), global::RustPlusContracts.AppTeamChat.Parser, new[]{ "Messages" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMarker), global::RustPlusContracts.AppMarker.Parser, new[]{ "Id", "Type", "X", "Y", "SteamId", "Rotation", "Radius", "Color1", "Color2", "Alpha", "Name", "OutOfStock", "SellOrders" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMarker.Types.SellOrder), global::RustPlusContracts.AppMarker.Types.SellOrder.Parser, new[]{ "ItemId", "Quantity", "CurrencyId", "CostPerItem", "AmountInStock", "ItemIsBlueprint", "CurrencyIsBlueprint", "ItemCondition", "ItemConditionMax" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppMapMarkers), global::RustPlusContracts.AppMapMarkers.Parser, new[]{ "Markers" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppClanInfo), global::RustPlusContracts.AppClanInfo.Parser, new[]{ "ClanInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppClanMessage), global::RustPlusContracts.AppClanMessage.Parser, new[]{ "SteamId", "Name", "Message", "Time" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppClanChat), global::RustPlusContracts.AppClanChat.Parser, new[]{ "Messages" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppNexusAuth), global::RustPlusContracts.AppNexusAuth.Parser, new[]{ "ServerId", "PlayerToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppTeamChanged), global::RustPlusContracts.AppTeamChanged.Parser, new[]{ "PlayerId", "TeamInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppNewTeamMessage), global::RustPlusContracts.AppNewTeamMessage.Parser, new[]{ "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppEntityChanged), global::RustPlusContracts.AppEntityChanged.Parser, new[]{ "EntityId", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppClanChanged), global::RustPlusContracts.AppClanChanged.Parser, new[]{ "ClanInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppNewClanMessage), global::RustPlusContracts.AppNewClanMessage.Parser, new[]{ "ClanId", "Message" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppCameraSubscribe), global::RustPlusContracts.AppCameraSubscribe.Parser, new[]{ "CameraId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppCameraInput), global::RustPlusContracts.AppCameraInput.Parser, new[]{ "Buttons", "MouseDelta" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppCameraInfo), global::RustPlusContracts.AppCameraInfo.Parser, new[]{ "Width", "Height", "NearPlane", "FarPlane", "ControlFlags" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppCameraRays), global::RustPlusContracts.AppCameraRays.Parser, new[]{ "VerticalFov", "SampleOffset", "RayData", "Distance", "Entities" }, null, new[]{ typeof(global::RustPlusContracts.AppCameraRays.Types.EntityType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::RustPlusContracts.AppCameraRays.Types.Entity), global::RustPlusContracts.AppCameraRays.Types.Entity.Parser, new[]{ "EntityId", "Type", "Position", "Rotation", "Size", "Name" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Enums + public enum AppEntityType { + [pbr::OriginalName("Switch")] Switch = 1, + [pbr::OriginalName("Alarm")] Alarm = 2, + [pbr::OriginalName("StorageMonitor")] StorageMonitor = 3, + } + + public enum AppMarkerType { + [pbr::OriginalName("Undefined")] Undefined = 0, + [pbr::OriginalName("Player")] Player = 1, + [pbr::OriginalName("Explosion")] Explosion = 2, + [pbr::OriginalName("VendingMachine")] VendingMachine = 3, + [pbr::OriginalName("CH47")] Ch47 = 4, + [pbr::OriginalName("CargoShip")] CargoShip = 5, + [pbr::OriginalName("Crate")] Crate = 6, + [pbr::OriginalName("GenericRadius")] GenericRadius = 7, + [pbr::OriginalName("PatrolHelicopter")] PatrolHelicopter = 8, + } + + #endregion + + #region Messages + public sealed partial class Vector2 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector2()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2(Vector2 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector2 Clone() { + return new Vector2(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector2); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector2 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector2 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _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 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3(Vector3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector3 Clone() { + return new Vector3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _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 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Vector4 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Vector4()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4(Vector4 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + w_ = other.w_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Vector4 Clone() { + return new Vector4(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + /// Field number for the "w" field. + public const int WFieldNumber = 4; + private readonly static float WDefaultValue = 0F; + + private float w_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float W { + get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } } + set { + _hasBits0 |= 8; + w_ = value; + } + } + /// Gets whether the "w" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasW { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "w" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearW() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Vector4); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Vector4 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (HasW) { + output.WriteRawTag(37); + output.WriteFloat(W); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (HasW) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Vector4 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + if (other.HasW) { + W = other.W; + } + _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 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + case 37: { + W = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Half3 : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Half3()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Half3() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Half3(Half3 other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Half3 Clone() { + return new Half3(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static float ZDefaultValue = 0F; + + private float z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Half3); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Half3 other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasZ) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasX) { + output.WriteRawTag(13); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(21); + output.WriteFloat(Y); + } + if (HasZ) { + output.WriteRawTag(29); + output.WriteFloat(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasZ) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Half3 other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _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 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + X = input.ReadFloat(); + break; + } + case 21: { + Y = input.ReadFloat(); + break; + } + case 29: { + Z = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Color : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Color()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Color() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Color(Color other) : this() { + _hasBits0 = other._hasBits0; + r_ = other.r_; + g_ = other.g_; + b_ = other.b_; + a_ = other.a_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Color Clone() { + return new Color(this); + } + + /// Field number for the "r" field. + public const int RFieldNumber = 1; + private readonly static float RDefaultValue = 0F; + + private float r_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float R { + get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } } + set { + _hasBits0 |= 1; + r_ = value; + } + } + /// Gets whether the "r" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasR { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "r" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearR() { + _hasBits0 &= ~1; + } + + /// Field number for the "g" field. + public const int GFieldNumber = 2; + private readonly static float GDefaultValue = 0F; + + private float g_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float G { + get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } } + set { + _hasBits0 |= 2; + g_ = value; + } + } + /// Gets whether the "g" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasG { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "g" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearG() { + _hasBits0 &= ~2; + } + + /// Field number for the "b" field. + public const int BFieldNumber = 3; + private readonly static float BDefaultValue = 0F; + + private float b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float B { + get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } } + set { + _hasBits0 |= 4; + b_ = value; + } + } + /// Gets whether the "b" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasB { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "b" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearB() { + _hasBits0 &= ~4; + } + + /// Field number for the "a" field. + public const int AFieldNumber = 4; + private readonly static float ADefaultValue = 0F; + + private float a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float A { + get { if ((_hasBits0 & 8) != 0) { return a_; } else { return ADefaultValue; } } + set { + _hasBits0 |= 8; + a_ = value; + } + } + /// Gets whether the "a" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasA { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "a" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearA() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Color); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Color other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(R, other.R)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(G, other.G)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasR) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(R); + if (HasG) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(G); + if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); + if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasR) { + output.WriteRawTag(13); + output.WriteFloat(R); + } + if (HasG) { + output.WriteRawTag(21); + output.WriteFloat(G); + } + if (HasB) { + output.WriteRawTag(29); + output.WriteFloat(B); + } + if (HasA) { + output.WriteRawTag(37); + output.WriteFloat(A); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasR) { + size += 1 + 4; + } + if (HasG) { + size += 1 + 4; + } + if (HasB) { + size += 1 + 4; + } + if (HasA) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Color other) { + if (other == null) { + return; + } + if (other.HasR) { + R = other.R; + } + if (other.HasG) { + G = other.G; + } + if (other.HasB) { + B = other.B; + } + if (other.HasA) { + A = other.A; + } + _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 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + R = input.ReadFloat(); + break; + } + case 21: { + G = input.ReadFloat(); + break; + } + case 29: { + B = input.ReadFloat(); + break; + } + case 37: { + A = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Ray : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ray()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Ray() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Ray(Ray other) : this() { + origin_ = other.origin_ != null ? other.origin_.Clone() : null; + direction_ = other.direction_ != null ? other.direction_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Ray Clone() { + return new Ray(this); + } + + /// Field number for the "origin" field. + public const int OriginFieldNumber = 1; + private global::RustPlusContracts.Vector3 origin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector3 Origin { + get { return origin_; } + set { + origin_ = value; + } + } + + /// Field number for the "direction" field. + public const int DirectionFieldNumber = 2; + private global::RustPlusContracts.Vector3 direction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector3 Direction { + get { return direction_; } + set { + direction_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Ray); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Ray other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Origin, other.Origin)) return false; + if (!object.Equals(Direction, other.Direction)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (origin_ != null) hash ^= Origin.GetHashCode(); + if (direction_ != null) hash ^= Direction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (origin_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Origin); + } + if (direction_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Direction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (origin_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Origin); + } + if (direction_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Direction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (origin_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); + } + if (direction_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Ray other) { + if (other == null) { + return; + } + if (other.origin_ != null) { + if (origin_ == null) { + Origin = new global::RustPlusContracts.Vector3(); + } + Origin.MergeFrom(other.Origin); + } + if (other.direction_ != null) { + if (direction_ == null) { + Direction = new global::RustPlusContracts.Vector3(); + } + Direction.MergeFrom(other.Direction); + } + _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: { + if (origin_ == null) { + Origin = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Origin); + break; + } + case 18: { + if (direction_ == null) { + Direction = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Direction); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (origin_ == null) { + Origin = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Origin); + break; + } + case 18: { + if (direction_ == null) { + Direction = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Direction); + break; + } + } + } + } + #endif + + } + + public sealed partial class ClanActionResult : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanActionResult()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanActionResult() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanActionResult(ClanActionResult other) : this() { + _hasBits0 = other._hasBits0; + requestId_ = other.requestId_; + result_ = other.result_; + hasClanInfo_ = other.hasClanInfo_; + clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanActionResult Clone() { + return new ClanActionResult(this); + } + + /// Field number for the "requestId" field. + public const int RequestIdFieldNumber = 1; + private readonly static int RequestIdDefaultValue = 0; + + private int requestId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RequestId { + get { if ((_hasBits0 & 1) != 0) { return requestId_; } else { return RequestIdDefaultValue; } } + set { + _hasBits0 |= 1; + requestId_ = value; + } + } + /// Gets whether the "requestId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRequestId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "requestId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRequestId() { + _hasBits0 &= ~1; + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 2; + private readonly static int ResultDefaultValue = 0; + + private int result_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Result { + get { if ((_hasBits0 & 2) != 0) { return result_; } else { return ResultDefaultValue; } } + set { + _hasBits0 |= 2; + result_ = value; + } + } + /// Gets whether the "result" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResult { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "result" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResult() { + _hasBits0 &= ~2; + } + + /// Field number for the "hasClanInfo" field. + public const int HasClanInfoFieldNumber = 3; + private readonly static bool HasClanInfoDefaultValue = false; + + private bool hasClanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClanInfo { + get { if ((_hasBits0 & 4) != 0) { return hasClanInfo_; } else { return HasClanInfoDefaultValue; } } + set { + _hasBits0 |= 4; + hasClanInfo_ = value; + } + } + /// Gets whether the "hasClanInfo" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHasClanInfo { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "hasClanInfo" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHasClanInfo() { + _hasBits0 &= ~4; + } + + /// Field number for the "clanInfo" field. + public const int ClanInfoFieldNumber = 4; + private global::RustPlusContracts.ClanInfo clanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.ClanInfo ClanInfo { + get { return clanInfo_; } + set { + clanInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClanActionResult); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClanActionResult other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RequestId != other.RequestId) return false; + if (Result != other.Result) return false; + if (HasClanInfo != other.HasClanInfo) return false; + if (!object.Equals(ClanInfo, other.ClanInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasRequestId) hash ^= RequestId.GetHashCode(); + if (HasResult) hash ^= Result.GetHashCode(); + if (HasHasClanInfo) hash ^= HasClanInfo.GetHashCode(); + if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasRequestId) { + output.WriteRawTag(8); + output.WriteInt32(RequestId); + } + if (HasResult) { + output.WriteRawTag(16); + output.WriteInt32(Result); + } + if (HasHasClanInfo) { + output.WriteRawTag(24); + output.WriteBool(HasClanInfo); + } + if (clanInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasRequestId) { + output.WriteRawTag(8); + output.WriteInt32(RequestId); + } + if (HasResult) { + output.WriteRawTag(16); + output.WriteInt32(Result); + } + if (HasHasClanInfo) { + output.WriteRawTag(24); + output.WriteBool(HasClanInfo); + } + if (clanInfo_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasRequestId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequestId); + } + if (HasResult) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Result); + } + if (HasHasClanInfo) { + size += 1 + 1; + } + if (clanInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClanActionResult other) { + if (other == null) { + return; + } + if (other.HasRequestId) { + RequestId = other.RequestId; + } + if (other.HasResult) { + Result = other.Result; + } + if (other.HasHasClanInfo) { + HasClanInfo = other.HasClanInfo; + } + if (other.clanInfo_ != null) { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + ClanInfo.MergeFrom(other.ClanInfo); + } + _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 8: { + RequestId = input.ReadInt32(); + break; + } + case 16: { + Result = input.ReadInt32(); + break; + } + case 24: { + HasClanInfo = input.ReadBool(); + break; + } + case 34: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RequestId = input.ReadInt32(); + break; + } + case 16: { + Result = input.ReadInt32(); + break; + } + case 24: { + HasClanInfo = input.ReadBool(); + break; + } + case 34: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class ClanInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInfo(ClanInfo other) : this() { + _hasBits0 = other._hasBits0; + clanId_ = other.clanId_; + name_ = other.name_; + created_ = other.created_; + creator_ = other.creator_; + motd_ = other.motd_; + motdTimestamp_ = other.motdTimestamp_; + motdAuthor_ = other.motdAuthor_; + logo_ = other.logo_; + color_ = other.color_; + roles_ = other.roles_.Clone(); + members_ = other.members_.Clone(); + invites_ = other.invites_.Clone(); + maxMemberCount_ = other.maxMemberCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInfo Clone() { + return new ClanInfo(this); + } + + /// Field number for the "clanId" field. + public const int ClanIdFieldNumber = 1; + private readonly static long ClanIdDefaultValue = 0L; + + private long clanId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ClanId { + get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } + set { + _hasBits0 |= 1; + clanId_ = value; + } + } + /// Gets whether the "clanId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClanId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "clanId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClanId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "created" field. + public const int CreatedFieldNumber = 3; + private readonly static long CreatedDefaultValue = 0L; + + private long created_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Created { + get { if ((_hasBits0 & 2) != 0) { return created_; } else { return CreatedDefaultValue; } } + set { + _hasBits0 |= 2; + created_ = value; + } + } + /// Gets whether the "created" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCreated { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "created" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCreated() { + _hasBits0 &= ~2; + } + + /// Field number for the "creator" field. + public const int CreatorFieldNumber = 4; + private readonly static ulong CreatorDefaultValue = 0UL; + + private ulong creator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Creator { + get { if ((_hasBits0 & 4) != 0) { return creator_; } else { return CreatorDefaultValue; } } + set { + _hasBits0 |= 4; + creator_ = value; + } + } + /// Gets whether the "creator" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCreator { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "creator" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCreator() { + _hasBits0 &= ~4; + } + + /// Field number for the "motd" field. + public const int MotdFieldNumber = 5; + private readonly static string MotdDefaultValue = ""; + + private string motd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Motd { + get { return motd_ ?? MotdDefaultValue; } + set { + motd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "motd" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMotd { + get { return motd_ != null; } + } + /// Clears the value of the "motd" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMotd() { + motd_ = null; + } + + /// Field number for the "motdTimestamp" field. + public const int MotdTimestampFieldNumber = 6; + private readonly static long MotdTimestampDefaultValue = 0L; + + private long motdTimestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long MotdTimestamp { + get { if ((_hasBits0 & 8) != 0) { return motdTimestamp_; } else { return MotdTimestampDefaultValue; } } + set { + _hasBits0 |= 8; + motdTimestamp_ = value; + } + } + /// Gets whether the "motdTimestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMotdTimestamp { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "motdTimestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMotdTimestamp() { + _hasBits0 &= ~8; + } + + /// Field number for the "motdAuthor" field. + public const int MotdAuthorFieldNumber = 7; + private readonly static ulong MotdAuthorDefaultValue = 0UL; + + private ulong motdAuthor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong MotdAuthor { + get { if ((_hasBits0 & 16) != 0) { return motdAuthor_; } else { return MotdAuthorDefaultValue; } } + set { + _hasBits0 |= 16; + motdAuthor_ = value; + } + } + /// Gets whether the "motdAuthor" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMotdAuthor { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "motdAuthor" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMotdAuthor() { + _hasBits0 &= ~16; + } + + /// Field number for the "logo" field. + public const int LogoFieldNumber = 8; + private readonly static pb::ByteString LogoDefaultValue = pb::ByteString.Empty; + + private pb::ByteString logo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Logo { + get { return logo_ ?? LogoDefaultValue; } + set { + logo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "logo" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLogo { + get { return logo_ != null; } + } + /// Clears the value of the "logo" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLogo() { + logo_ = null; + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 9; + private readonly static int ColorDefaultValue = 0; + + private int color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Color { + get { if ((_hasBits0 & 32) != 0) { return color_; } else { return ColorDefaultValue; } } + set { + _hasBits0 |= 32; + color_ = value; + } + } + /// Gets whether the "color" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasColor { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "color" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearColor() { + _hasBits0 &= ~32; + } + + /// Field number for the "roles" field. + public const int RolesFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_roles_codec + = pb::FieldCodec.ForMessage(82, global::RustPlusContracts.ClanInfo.Types.Role.Parser); + private readonly pbc::RepeatedField roles_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Roles { + get { return roles_; } + } + + /// Field number for the "members" field. + public const int MembersFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_members_codec + = pb::FieldCodec.ForMessage(90, global::RustPlusContracts.ClanInfo.Types.Member.Parser); + private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Members { + get { return members_; } + } + + /// Field number for the "invites" field. + public const int InvitesFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_invites_codec + = pb::FieldCodec.ForMessage(98, global::RustPlusContracts.ClanInfo.Types.Invite.Parser); + private readonly pbc::RepeatedField invites_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Invites { + get { return invites_; } + } + + /// Field number for the "maxMemberCount" field. + public const int MaxMemberCountFieldNumber = 13; + private readonly static int MaxMemberCountDefaultValue = 0; + + private int maxMemberCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int MaxMemberCount { + get { if ((_hasBits0 & 64) != 0) { return maxMemberCount_; } else { return MaxMemberCountDefaultValue; } } + set { + _hasBits0 |= 64; + maxMemberCount_ = value; + } + } + /// Gets whether the "maxMemberCount" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxMemberCount { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "maxMemberCount" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxMemberCount() { + _hasBits0 &= ~64; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClanInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClanInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClanId != other.ClanId) return false; + if (Name != other.Name) return false; + if (Created != other.Created) return false; + if (Creator != other.Creator) return false; + if (Motd != other.Motd) return false; + if (MotdTimestamp != other.MotdTimestamp) return false; + if (MotdAuthor != other.MotdAuthor) return false; + if (Logo != other.Logo) return false; + if (Color != other.Color) return false; + if(!roles_.Equals(other.roles_)) return false; + if(!members_.Equals(other.members_)) return false; + if(!invites_.Equals(other.invites_)) return false; + if (MaxMemberCount != other.MaxMemberCount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasClanId) hash ^= ClanId.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasCreated) hash ^= Created.GetHashCode(); + if (HasCreator) hash ^= Creator.GetHashCode(); + if (HasMotd) hash ^= Motd.GetHashCode(); + if (HasMotdTimestamp) hash ^= MotdTimestamp.GetHashCode(); + if (HasMotdAuthor) hash ^= MotdAuthor.GetHashCode(); + if (HasLogo) hash ^= Logo.GetHashCode(); + if (HasColor) hash ^= Color.GetHashCode(); + hash ^= roles_.GetHashCode(); + hash ^= members_.GetHashCode(); + hash ^= invites_.GetHashCode(); + if (HasMaxMemberCount) hash ^= MaxMemberCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasCreated) { + output.WriteRawTag(24); + output.WriteInt64(Created); + } + if (HasCreator) { + output.WriteRawTag(32); + output.WriteUInt64(Creator); + } + if (HasMotd) { + output.WriteRawTag(42); + output.WriteString(Motd); + } + if (HasMotdTimestamp) { + output.WriteRawTag(48); + output.WriteInt64(MotdTimestamp); + } + if (HasMotdAuthor) { + output.WriteRawTag(56); + output.WriteUInt64(MotdAuthor); + } + if (HasLogo) { + output.WriteRawTag(66); + output.WriteBytes(Logo); + } + if (HasColor) { + output.WriteRawTag(72); + output.WriteSInt32(Color); + } + roles_.WriteTo(output, _repeated_roles_codec); + members_.WriteTo(output, _repeated_members_codec); + invites_.WriteTo(output, _repeated_invites_codec); + if (HasMaxMemberCount) { + output.WriteRawTag(104); + output.WriteInt32(MaxMemberCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasCreated) { + output.WriteRawTag(24); + output.WriteInt64(Created); + } + if (HasCreator) { + output.WriteRawTag(32); + output.WriteUInt64(Creator); + } + if (HasMotd) { + output.WriteRawTag(42); + output.WriteString(Motd); + } + if (HasMotdTimestamp) { + output.WriteRawTag(48); + output.WriteInt64(MotdTimestamp); + } + if (HasMotdAuthor) { + output.WriteRawTag(56); + output.WriteUInt64(MotdAuthor); + } + if (HasLogo) { + output.WriteRawTag(66); + output.WriteBytes(Logo); + } + if (HasColor) { + output.WriteRawTag(72); + output.WriteSInt32(Color); + } + roles_.WriteTo(ref output, _repeated_roles_codec); + members_.WriteTo(ref output, _repeated_members_codec); + invites_.WriteTo(ref output, _repeated_invites_codec); + if (HasMaxMemberCount) { + output.WriteRawTag(104); + output.WriteInt32(MaxMemberCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasClanId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasCreated) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Created); + } + if (HasCreator) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Creator); + } + if (HasMotd) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Motd); + } + if (HasMotdTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(MotdTimestamp); + } + if (HasMotdAuthor) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(MotdAuthor); + } + if (HasLogo) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Logo); + } + if (HasColor) { + size += 1 + pb::CodedOutputStream.ComputeSInt32Size(Color); + } + size += roles_.CalculateSize(_repeated_roles_codec); + size += members_.CalculateSize(_repeated_members_codec); + size += invites_.CalculateSize(_repeated_invites_codec); + if (HasMaxMemberCount) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxMemberCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClanInfo other) { + if (other == null) { + return; + } + if (other.HasClanId) { + ClanId = other.ClanId; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasCreated) { + Created = other.Created; + } + if (other.HasCreator) { + Creator = other.Creator; + } + if (other.HasMotd) { + Motd = other.Motd; + } + if (other.HasMotdTimestamp) { + MotdTimestamp = other.MotdTimestamp; + } + if (other.HasMotdAuthor) { + MotdAuthor = other.MotdAuthor; + } + if (other.HasLogo) { + Logo = other.Logo; + } + if (other.HasColor) { + Color = other.Color; + } + roles_.Add(other.roles_); + members_.Add(other.members_); + invites_.Add(other.invites_); + if (other.HasMaxMemberCount) { + MaxMemberCount = other.MaxMemberCount; + } + _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 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Created = input.ReadInt64(); + break; + } + case 32: { + Creator = input.ReadUInt64(); + break; + } + case 42: { + Motd = input.ReadString(); + break; + } + case 48: { + MotdTimestamp = input.ReadInt64(); + break; + } + case 56: { + MotdAuthor = input.ReadUInt64(); + break; + } + case 66: { + Logo = input.ReadBytes(); + break; + } + case 72: { + Color = input.ReadSInt32(); + break; + } + case 82: { + roles_.AddEntriesFrom(input, _repeated_roles_codec); + break; + } + case 90: { + members_.AddEntriesFrom(input, _repeated_members_codec); + break; + } + case 98: { + invites_.AddEntriesFrom(input, _repeated_invites_codec); + break; + } + case 104: { + MaxMemberCount = input.ReadInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 24: { + Created = input.ReadInt64(); + break; + } + case 32: { + Creator = input.ReadUInt64(); + break; + } + case 42: { + Motd = input.ReadString(); + break; + } + case 48: { + MotdTimestamp = input.ReadInt64(); + break; + } + case 56: { + MotdAuthor = input.ReadUInt64(); + break; + } + case 66: { + Logo = input.ReadBytes(); + break; + } + case 72: { + Color = input.ReadSInt32(); + break; + } + case 82: { + roles_.AddEntriesFrom(ref input, _repeated_roles_codec); + break; + } + case 90: { + members_.AddEntriesFrom(ref input, _repeated_members_codec); + break; + } + case 98: { + invites_.AddEntriesFrom(ref input, _repeated_invites_codec); + break; + } + case 104: { + MaxMemberCount = input.ReadInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ClanInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Role : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Role()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.ClanInfo.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role(Role other) : this() { + _hasBits0 = other._hasBits0; + roleId_ = other.roleId_; + rank_ = other.rank_; + name_ = other.name_; + canSetMotd_ = other.canSetMotd_; + canSetLogo_ = other.canSetLogo_; + canInvite_ = other.canInvite_; + canKick_ = other.canKick_; + canPromote_ = other.canPromote_; + canDemote_ = other.canDemote_; + canSetPlayerNotes_ = other.canSetPlayerNotes_; + canAccessLogs_ = other.canAccessLogs_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Role Clone() { + return new Role(this); + } + + /// Field number for the "roleId" field. + public const int RoleIdFieldNumber = 1; + private readonly static int RoleIdDefaultValue = 0; + + private int roleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoleId { + get { if ((_hasBits0 & 1) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } + set { + _hasBits0 |= 1; + roleId_ = value; + } + } + /// Gets whether the "roleId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "roleId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleId() { + _hasBits0 &= ~1; + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 2; + private readonly static int RankDefaultValue = 0; + + private int rank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rank { + get { if ((_hasBits0 & 2) != 0) { return rank_; } else { return RankDefaultValue; } } + set { + _hasBits0 |= 2; + rank_ = value; + } + } + /// Gets whether the "rank" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRank { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "rank" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRank() { + _hasBits0 &= ~2; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "canSetMotd" field. + public const int CanSetMotdFieldNumber = 4; + private readonly static bool CanSetMotdDefaultValue = false; + + private bool canSetMotd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanSetMotd { + get { if ((_hasBits0 & 4) != 0) { return canSetMotd_; } else { return CanSetMotdDefaultValue; } } + set { + _hasBits0 |= 4; + canSetMotd_ = value; + } + } + /// Gets whether the "canSetMotd" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanSetMotd { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "canSetMotd" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanSetMotd() { + _hasBits0 &= ~4; + } + + /// Field number for the "canSetLogo" field. + public const int CanSetLogoFieldNumber = 5; + private readonly static bool CanSetLogoDefaultValue = false; + + private bool canSetLogo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanSetLogo { + get { if ((_hasBits0 & 8) != 0) { return canSetLogo_; } else { return CanSetLogoDefaultValue; } } + set { + _hasBits0 |= 8; + canSetLogo_ = value; + } + } + /// Gets whether the "canSetLogo" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanSetLogo { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "canSetLogo" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanSetLogo() { + _hasBits0 &= ~8; + } + + /// Field number for the "canInvite" field. + public const int CanInviteFieldNumber = 6; + private readonly static bool CanInviteDefaultValue = false; + + private bool canInvite_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanInvite { + get { if ((_hasBits0 & 16) != 0) { return canInvite_; } else { return CanInviteDefaultValue; } } + set { + _hasBits0 |= 16; + canInvite_ = value; + } + } + /// Gets whether the "canInvite" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanInvite { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "canInvite" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanInvite() { + _hasBits0 &= ~16; + } + + /// Field number for the "canKick" field. + public const int CanKickFieldNumber = 7; + private readonly static bool CanKickDefaultValue = false; + + private bool canKick_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanKick { + get { if ((_hasBits0 & 32) != 0) { return canKick_; } else { return CanKickDefaultValue; } } + set { + _hasBits0 |= 32; + canKick_ = value; + } + } + /// Gets whether the "canKick" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanKick { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "canKick" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanKick() { + _hasBits0 &= ~32; + } + + /// Field number for the "canPromote" field. + public const int CanPromoteFieldNumber = 8; + private readonly static bool CanPromoteDefaultValue = false; + + private bool canPromote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanPromote { + get { if ((_hasBits0 & 64) != 0) { return canPromote_; } else { return CanPromoteDefaultValue; } } + set { + _hasBits0 |= 64; + canPromote_ = value; + } + } + /// Gets whether the "canPromote" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanPromote { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "canPromote" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanPromote() { + _hasBits0 &= ~64; + } + + /// Field number for the "canDemote" field. + public const int CanDemoteFieldNumber = 9; + private readonly static bool CanDemoteDefaultValue = false; + + private bool canDemote_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanDemote { + get { if ((_hasBits0 & 128) != 0) { return canDemote_; } else { return CanDemoteDefaultValue; } } + set { + _hasBits0 |= 128; + canDemote_ = value; + } + } + /// Gets whether the "canDemote" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanDemote { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "canDemote" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanDemote() { + _hasBits0 &= ~128; + } + + /// Field number for the "canSetPlayerNotes" field. + public const int CanSetPlayerNotesFieldNumber = 10; + private readonly static bool CanSetPlayerNotesDefaultValue = false; + + private bool canSetPlayerNotes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanSetPlayerNotes { + get { if ((_hasBits0 & 256) != 0) { return canSetPlayerNotes_; } else { return CanSetPlayerNotesDefaultValue; } } + set { + _hasBits0 |= 256; + canSetPlayerNotes_ = value; + } + } + /// Gets whether the "canSetPlayerNotes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanSetPlayerNotes { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "canSetPlayerNotes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanSetPlayerNotes() { + _hasBits0 &= ~256; + } + + /// Field number for the "canAccessLogs" field. + public const int CanAccessLogsFieldNumber = 11; + private readonly static bool CanAccessLogsDefaultValue = false; + + private bool canAccessLogs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CanAccessLogs { + get { if ((_hasBits0 & 512) != 0) { return canAccessLogs_; } else { return CanAccessLogsDefaultValue; } } + set { + _hasBits0 |= 512; + canAccessLogs_ = value; + } + } + /// Gets whether the "canAccessLogs" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCanAccessLogs { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "canAccessLogs" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCanAccessLogs() { + _hasBits0 &= ~512; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Role); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Role other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RoleId != other.RoleId) return false; + if (Rank != other.Rank) return false; + if (Name != other.Name) return false; + if (CanSetMotd != other.CanSetMotd) return false; + if (CanSetLogo != other.CanSetLogo) return false; + if (CanInvite != other.CanInvite) return false; + if (CanKick != other.CanKick) return false; + if (CanPromote != other.CanPromote) return false; + if (CanDemote != other.CanDemote) return false; + if (CanSetPlayerNotes != other.CanSetPlayerNotes) return false; + if (CanAccessLogs != other.CanAccessLogs) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasRoleId) hash ^= RoleId.GetHashCode(); + if (HasRank) hash ^= Rank.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasCanSetMotd) hash ^= CanSetMotd.GetHashCode(); + if (HasCanSetLogo) hash ^= CanSetLogo.GetHashCode(); + if (HasCanInvite) hash ^= CanInvite.GetHashCode(); + if (HasCanKick) hash ^= CanKick.GetHashCode(); + if (HasCanPromote) hash ^= CanPromote.GetHashCode(); + if (HasCanDemote) hash ^= CanDemote.GetHashCode(); + if (HasCanSetPlayerNotes) hash ^= CanSetPlayerNotes.GetHashCode(); + if (HasCanAccessLogs) hash ^= CanAccessLogs.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasRoleId) { + output.WriteRawTag(8); + output.WriteInt32(RoleId); + } + if (HasRank) { + output.WriteRawTag(16); + output.WriteInt32(Rank); + } + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasCanSetMotd) { + output.WriteRawTag(32); + output.WriteBool(CanSetMotd); + } + if (HasCanSetLogo) { + output.WriteRawTag(40); + output.WriteBool(CanSetLogo); + } + if (HasCanInvite) { + output.WriteRawTag(48); + output.WriteBool(CanInvite); + } + if (HasCanKick) { + output.WriteRawTag(56); + output.WriteBool(CanKick); + } + if (HasCanPromote) { + output.WriteRawTag(64); + output.WriteBool(CanPromote); + } + if (HasCanDemote) { + output.WriteRawTag(72); + output.WriteBool(CanDemote); + } + if (HasCanSetPlayerNotes) { + output.WriteRawTag(80); + output.WriteBool(CanSetPlayerNotes); + } + if (HasCanAccessLogs) { + output.WriteRawTag(88); + output.WriteBool(CanAccessLogs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasRoleId) { + output.WriteRawTag(8); + output.WriteInt32(RoleId); + } + if (HasRank) { + output.WriteRawTag(16); + output.WriteInt32(Rank); + } + if (HasName) { + output.WriteRawTag(26); + output.WriteString(Name); + } + if (HasCanSetMotd) { + output.WriteRawTag(32); + output.WriteBool(CanSetMotd); + } + if (HasCanSetLogo) { + output.WriteRawTag(40); + output.WriteBool(CanSetLogo); + } + if (HasCanInvite) { + output.WriteRawTag(48); + output.WriteBool(CanInvite); + } + if (HasCanKick) { + output.WriteRawTag(56); + output.WriteBool(CanKick); + } + if (HasCanPromote) { + output.WriteRawTag(64); + output.WriteBool(CanPromote); + } + if (HasCanDemote) { + output.WriteRawTag(72); + output.WriteBool(CanDemote); + } + if (HasCanSetPlayerNotes) { + output.WriteRawTag(80); + output.WriteBool(CanSetPlayerNotes); + } + if (HasCanAccessLogs) { + output.WriteRawTag(88); + output.WriteBool(CanAccessLogs); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasRoleId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); + } + if (HasRank) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasCanSetMotd) { + size += 1 + 1; + } + if (HasCanSetLogo) { + size += 1 + 1; + } + if (HasCanInvite) { + size += 1 + 1; + } + if (HasCanKick) { + size += 1 + 1; + } + if (HasCanPromote) { + size += 1 + 1; + } + if (HasCanDemote) { + size += 1 + 1; + } + if (HasCanSetPlayerNotes) { + size += 1 + 1; + } + if (HasCanAccessLogs) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Role other) { + if (other == null) { + return; + } + if (other.HasRoleId) { + RoleId = other.RoleId; + } + if (other.HasRank) { + Rank = other.Rank; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasCanSetMotd) { + CanSetMotd = other.CanSetMotd; + } + if (other.HasCanSetLogo) { + CanSetLogo = other.CanSetLogo; + } + if (other.HasCanInvite) { + CanInvite = other.CanInvite; + } + if (other.HasCanKick) { + CanKick = other.CanKick; + } + if (other.HasCanPromote) { + CanPromote = other.CanPromote; + } + if (other.HasCanDemote) { + CanDemote = other.CanDemote; + } + if (other.HasCanSetPlayerNotes) { + CanSetPlayerNotes = other.CanSetPlayerNotes; + } + if (other.HasCanAccessLogs) { + CanAccessLogs = other.CanAccessLogs; + } + _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 8: { + RoleId = input.ReadInt32(); + break; + } + case 16: { + Rank = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + CanSetMotd = input.ReadBool(); + break; + } + case 40: { + CanSetLogo = input.ReadBool(); + break; + } + case 48: { + CanInvite = input.ReadBool(); + break; + } + case 56: { + CanKick = input.ReadBool(); + break; + } + case 64: { + CanPromote = input.ReadBool(); + break; + } + case 72: { + CanDemote = input.ReadBool(); + break; + } + case 80: { + CanSetPlayerNotes = input.ReadBool(); + break; + } + case 88: { + CanAccessLogs = input.ReadBool(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RoleId = input.ReadInt32(); + break; + } + case 16: { + Rank = input.ReadInt32(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + case 32: { + CanSetMotd = input.ReadBool(); + break; + } + case 40: { + CanSetLogo = input.ReadBool(); + break; + } + case 48: { + CanInvite = input.ReadBool(); + break; + } + case 56: { + CanKick = input.ReadBool(); + break; + } + case 64: { + CanPromote = input.ReadBool(); + break; + } + case 72: { + CanDemote = input.ReadBool(); + break; + } + case 80: { + CanSetPlayerNotes = input.ReadBool(); + break; + } + case 88: { + CanAccessLogs = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Member : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.ClanInfo.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member(Member other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + roleId_ = other.roleId_; + joined_ = other.joined_; + lastSeen_ = other.lastSeen_; + notes_ = other.notes_; + online_ = other.online_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member Clone() { + return new Member(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "roleId" field. + public const int RoleIdFieldNumber = 2; + private readonly static int RoleIdDefaultValue = 0; + + private int roleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RoleId { + get { if ((_hasBits0 & 2) != 0) { return roleId_; } else { return RoleIdDefaultValue; } } + set { + _hasBits0 |= 2; + roleId_ = value; + } + } + /// Gets whether the "roleId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRoleId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "roleId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRoleId() { + _hasBits0 &= ~2; + } + + /// Field number for the "joined" field. + public const int JoinedFieldNumber = 3; + private readonly static long JoinedDefaultValue = 0L; + + private long joined_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Joined { + get { if ((_hasBits0 & 4) != 0) { return joined_; } else { return JoinedDefaultValue; } } + set { + _hasBits0 |= 4; + joined_ = value; + } + } + /// Gets whether the "joined" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJoined { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "joined" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJoined() { + _hasBits0 &= ~4; + } + + /// Field number for the "lastSeen" field. + public const int LastSeenFieldNumber = 4; + private readonly static long LastSeenDefaultValue = 0L; + + private long lastSeen_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long LastSeen { + get { if ((_hasBits0 & 8) != 0) { return lastSeen_; } else { return LastSeenDefaultValue; } } + set { + _hasBits0 |= 8; + lastSeen_ = value; + } + } + /// Gets whether the "lastSeen" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLastSeen { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "lastSeen" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLastSeen() { + _hasBits0 &= ~8; + } + + /// Field number for the "notes" field. + public const int NotesFieldNumber = 5; + private readonly static string NotesDefaultValue = ""; + + private string notes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Notes { + get { return notes_ ?? NotesDefaultValue; } + set { + notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "notes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNotes { + get { return notes_ != null; } + } + /// Clears the value of the "notes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNotes() { + notes_ = null; + } + + /// Field number for the "online" field. + public const int OnlineFieldNumber = 6; + private readonly static bool OnlineDefaultValue = false; + + private bool online_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Online { + get { if ((_hasBits0 & 16) != 0) { return online_; } else { return OnlineDefaultValue; } } + set { + _hasBits0 |= 16; + online_ = value; + } + } + /// Gets whether the "online" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOnline { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "online" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOnline() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Member); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Member other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + if (RoleId != other.RoleId) return false; + if (Joined != other.Joined) return false; + if (LastSeen != other.LastSeen) return false; + if (Notes != other.Notes) return false; + if (Online != other.Online) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasRoleId) hash ^= RoleId.GetHashCode(); + if (HasJoined) hash ^= Joined.GetHashCode(); + if (HasLastSeen) hash ^= LastSeen.GetHashCode(); + if (HasNotes) hash ^= Notes.GetHashCode(); + if (HasOnline) hash ^= Online.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasRoleId) { + output.WriteRawTag(16); + output.WriteInt32(RoleId); + } + if (HasJoined) { + output.WriteRawTag(24); + output.WriteInt64(Joined); + } + if (HasLastSeen) { + output.WriteRawTag(32); + output.WriteInt64(LastSeen); + } + if (HasNotes) { + output.WriteRawTag(42); + output.WriteString(Notes); + } + if (HasOnline) { + output.WriteRawTag(48); + output.WriteBool(Online); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasRoleId) { + output.WriteRawTag(16); + output.WriteInt32(RoleId); + } + if (HasJoined) { + output.WriteRawTag(24); + output.WriteInt64(Joined); + } + if (HasLastSeen) { + output.WriteRawTag(32); + output.WriteInt64(LastSeen); + } + if (HasNotes) { + output.WriteRawTag(42); + output.WriteString(Notes); + } + if (HasOnline) { + output.WriteRawTag(48); + output.WriteBool(Online); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasRoleId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoleId); + } + if (HasJoined) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Joined); + } + if (HasLastSeen) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(LastSeen); + } + if (HasNotes) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Notes); + } + if (HasOnline) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Member other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasRoleId) { + RoleId = other.RoleId; + } + if (other.HasJoined) { + Joined = other.Joined; + } + if (other.HasLastSeen) { + LastSeen = other.LastSeen; + } + if (other.HasNotes) { + Notes = other.Notes; + } + if (other.HasOnline) { + Online = other.Online; + } + _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 8: { + SteamId = input.ReadUInt64(); + break; + } + case 16: { + RoleId = input.ReadInt32(); + break; + } + case 24: { + Joined = input.ReadInt64(); + break; + } + case 32: { + LastSeen = input.ReadInt64(); + break; + } + case 42: { + Notes = input.ReadString(); + break; + } + case 48: { + Online = input.ReadBool(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + case 16: { + RoleId = input.ReadInt32(); + break; + } + case 24: { + Joined = input.ReadInt64(); + break; + } + case 32: { + LastSeen = input.ReadInt64(); + break; + } + case 42: { + Notes = input.ReadString(); + break; + } + case 48: { + Online = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Invite : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invite()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.ClanInfo.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invite() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invite(Invite other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + recruiter_ = other.recruiter_; + timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invite Clone() { + return new Invite(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "recruiter" field. + public const int RecruiterFieldNumber = 2; + private readonly static ulong RecruiterDefaultValue = 0UL; + + private ulong recruiter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Recruiter { + get { if ((_hasBits0 & 2) != 0) { return recruiter_; } else { return RecruiterDefaultValue; } } + set { + _hasBits0 |= 2; + recruiter_ = value; + } + } + /// Gets whether the "recruiter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRecruiter { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "recruiter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRecruiter() { + _hasBits0 &= ~2; + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 3; + private readonly static long TimestampDefaultValue = 0L; + + private long timestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Timestamp { + get { if ((_hasBits0 & 4) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } + set { + _hasBits0 |= 4; + timestamp_ = value; + } + } + /// Gets whether the "timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestamp { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestamp() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Invite); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Invite other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + if (Recruiter != other.Recruiter) return false; + if (Timestamp != other.Timestamp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasRecruiter) hash ^= Recruiter.GetHashCode(); + if (HasTimestamp) hash ^= Timestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasRecruiter) { + output.WriteRawTag(16); + output.WriteUInt64(Recruiter); + } + if (HasTimestamp) { + output.WriteRawTag(24); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasRecruiter) { + output.WriteRawTag(16); + output.WriteUInt64(Recruiter); + } + if (HasTimestamp) { + output.WriteRawTag(24); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasRecruiter) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Recruiter); + } + if (HasTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Invite other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasRecruiter) { + Recruiter = other.Recruiter; + } + if (other.HasTimestamp) { + Timestamp = other.Timestamp; + } + _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 8: { + SteamId = input.ReadUInt64(); + break; + } + case 16: { + Recruiter = input.ReadUInt64(); + break; + } + case 24: { + Timestamp = input.ReadInt64(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + case 16: { + Recruiter = input.ReadUInt64(); + break; + } + case 24: { + Timestamp = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class ClanLog : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanLog()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanLog() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanLog(ClanLog other) : this() { + _hasBits0 = other._hasBits0; + clanId_ = other.clanId_; + logEntries_ = other.logEntries_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanLog Clone() { + return new ClanLog(this); + } + + /// Field number for the "clanId" field. + public const int ClanIdFieldNumber = 1; + private readonly static long ClanIdDefaultValue = 0L; + + private long clanId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ClanId { + get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } + set { + _hasBits0 |= 1; + clanId_ = value; + } + } + /// Gets whether the "clanId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClanId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "clanId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClanId() { + _hasBits0 &= ~1; + } + + /// Field number for the "logEntries" field. + public const int LogEntriesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_logEntries_codec + = pb::FieldCodec.ForMessage(18, global::RustPlusContracts.ClanLog.Types.Entry.Parser); + private readonly pbc::RepeatedField logEntries_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LogEntries { + get { return logEntries_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClanLog); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClanLog other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClanId != other.ClanId) return false; + if(!logEntries_.Equals(other.logEntries_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasClanId) hash ^= ClanId.GetHashCode(); + hash ^= logEntries_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + logEntries_.WriteTo(output, _repeated_logEntries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + logEntries_.WriteTo(ref output, _repeated_logEntries_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasClanId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); + } + size += logEntries_.CalculateSize(_repeated_logEntries_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClanLog other) { + if (other == null) { + return; + } + if (other.HasClanId) { + ClanId = other.ClanId; + } + logEntries_.Add(other.logEntries_); + _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 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + logEntries_.AddEntriesFrom(input, _repeated_logEntries_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + logEntries_.AddEntriesFrom(ref input, _repeated_logEntries_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ClanLog message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Entry : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entry()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.ClanLog.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry(Entry other) : this() { + _hasBits0 = other._hasBits0; + timestamp_ = other.timestamp_; + eventKey_ = other.eventKey_; + arg1_ = other.arg1_; + arg2_ = other.arg2_; + arg3_ = other.arg3_; + arg4_ = other.arg4_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entry Clone() { + return new Entry(this); + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 1; + private readonly static long TimestampDefaultValue = 0L; + + private long timestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Timestamp { + get { if ((_hasBits0 & 1) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } + set { + _hasBits0 |= 1; + timestamp_ = value; + } + } + /// Gets whether the "timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestamp { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestamp() { + _hasBits0 &= ~1; + } + + /// Field number for the "eventKey" field. + public const int EventKeyFieldNumber = 2; + private readonly static string EventKeyDefaultValue = ""; + + private string eventKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string EventKey { + get { return eventKey_ ?? EventKeyDefaultValue; } + set { + eventKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "eventKey" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEventKey { + get { return eventKey_ != null; } + } + /// Clears the value of the "eventKey" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEventKey() { + eventKey_ = null; + } + + /// Field number for the "arg1" field. + public const int Arg1FieldNumber = 3; + private readonly static string Arg1DefaultValue = ""; + + private string arg1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Arg1 { + get { return arg1_ ?? Arg1DefaultValue; } + set { + arg1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "arg1" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasArg1 { + get { return arg1_ != null; } + } + /// Clears the value of the "arg1" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearArg1() { + arg1_ = null; + } + + /// Field number for the "arg2" field. + public const int Arg2FieldNumber = 4; + private readonly static string Arg2DefaultValue = ""; + + private string arg2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Arg2 { + get { return arg2_ ?? Arg2DefaultValue; } + set { + arg2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "arg2" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasArg2 { + get { return arg2_ != null; } + } + /// Clears the value of the "arg2" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearArg2() { + arg2_ = null; + } + + /// Field number for the "arg3" field. + public const int Arg3FieldNumber = 5; + private readonly static string Arg3DefaultValue = ""; + + private string arg3_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Arg3 { + get { return arg3_ ?? Arg3DefaultValue; } + set { + arg3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "arg3" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasArg3 { + get { return arg3_ != null; } + } + /// Clears the value of the "arg3" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearArg3() { + arg3_ = null; + } + + /// Field number for the "arg4" field. + public const int Arg4FieldNumber = 6; + private readonly static string Arg4DefaultValue = ""; + + private string arg4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Arg4 { + get { return arg4_ ?? Arg4DefaultValue; } + set { + arg4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "arg4" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasArg4 { + get { return arg4_ != null; } + } + /// Clears the value of the "arg4" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearArg4() { + arg4_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Entry); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Entry other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Timestamp != other.Timestamp) return false; + if (EventKey != other.EventKey) return false; + if (Arg1 != other.Arg1) return false; + if (Arg2 != other.Arg2) return false; + if (Arg3 != other.Arg3) return false; + if (Arg4 != other.Arg4) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasTimestamp) hash ^= Timestamp.GetHashCode(); + if (HasEventKey) hash ^= EventKey.GetHashCode(); + if (HasArg1) hash ^= Arg1.GetHashCode(); + if (HasArg2) hash ^= Arg2.GetHashCode(); + if (HasArg3) hash ^= Arg3.GetHashCode(); + if (HasArg4) hash ^= Arg4.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasTimestamp) { + output.WriteRawTag(8); + output.WriteInt64(Timestamp); + } + if (HasEventKey) { + output.WriteRawTag(18); + output.WriteString(EventKey); + } + if (HasArg1) { + output.WriteRawTag(26); + output.WriteString(Arg1); + } + if (HasArg2) { + output.WriteRawTag(34); + output.WriteString(Arg2); + } + if (HasArg3) { + output.WriteRawTag(42); + output.WriteString(Arg3); + } + if (HasArg4) { + output.WriteRawTag(50); + output.WriteString(Arg4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasTimestamp) { + output.WriteRawTag(8); + output.WriteInt64(Timestamp); + } + if (HasEventKey) { + output.WriteRawTag(18); + output.WriteString(EventKey); + } + if (HasArg1) { + output.WriteRawTag(26); + output.WriteString(Arg1); + } + if (HasArg2) { + output.WriteRawTag(34); + output.WriteString(Arg2); + } + if (HasArg3) { + output.WriteRawTag(42); + output.WriteString(Arg3); + } + if (HasArg4) { + output.WriteRawTag(50); + output.WriteString(Arg4); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + } + if (HasEventKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(EventKey); + } + if (HasArg1) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg1); + } + if (HasArg2) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg2); + } + if (HasArg3) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg3); + } + if (HasArg4) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Arg4); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Entry other) { + if (other == null) { + return; + } + if (other.HasTimestamp) { + Timestamp = other.Timestamp; + } + if (other.HasEventKey) { + EventKey = other.EventKey; + } + if (other.HasArg1) { + Arg1 = other.Arg1; + } + if (other.HasArg2) { + Arg2 = other.Arg2; + } + if (other.HasArg3) { + Arg3 = other.Arg3; + } + if (other.HasArg4) { + Arg4 = other.Arg4; + } + _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 8: { + Timestamp = input.ReadInt64(); + break; + } + case 18: { + EventKey = input.ReadString(); + break; + } + case 26: { + Arg1 = input.ReadString(); + break; + } + case 34: { + Arg2 = input.ReadString(); + break; + } + case 42: { + Arg3 = input.ReadString(); + break; + } + case 50: { + Arg4 = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Timestamp = input.ReadInt64(); + break; + } + case 18: { + EventKey = input.ReadString(); + break; + } + case 26: { + Arg1 = input.ReadString(); + break; + } + case 34: { + Arg2 = input.ReadString(); + break; + } + case 42: { + Arg3 = input.ReadString(); + break; + } + case 50: { + Arg4 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class ClanInvitations : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClanInvitations()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInvitations() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInvitations(ClanInvitations other) : this() { + invitations_ = other.invitations_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClanInvitations Clone() { + return new ClanInvitations(this); + } + + /// Field number for the "invitations" field. + public const int InvitationsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_invitations_codec + = pb::FieldCodec.ForMessage(10, global::RustPlusContracts.ClanInvitations.Types.Invitation.Parser); + private readonly pbc::RepeatedField invitations_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Invitations { + get { return invitations_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClanInvitations); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClanInvitations other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!invitations_.Equals(other.invitations_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= invitations_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + invitations_.WriteTo(output, _repeated_invitations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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) { + invitations_.WriteTo(ref output, _repeated_invitations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += invitations_.CalculateSize(_repeated_invitations_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClanInvitations other) { + if (other == null) { + return; + } + invitations_.Add(other.invitations_); + _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: { + invitations_.AddEntriesFrom(input, _repeated_invitations_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + invitations_.AddEntriesFrom(ref input, _repeated_invitations_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ClanInvitations message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Invitation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invitation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.ClanInvitations.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invitation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invitation(Invitation other) : this() { + _hasBits0 = other._hasBits0; + clanId_ = other.clanId_; + recruiter_ = other.recruiter_; + timestamp_ = other.timestamp_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invitation Clone() { + return new Invitation(this); + } + + /// Field number for the "clanId" field. + public const int ClanIdFieldNumber = 1; + private readonly static long ClanIdDefaultValue = 0L; + + private long clanId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ClanId { + get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } + set { + _hasBits0 |= 1; + clanId_ = value; + } + } + /// Gets whether the "clanId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClanId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "clanId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClanId() { + _hasBits0 &= ~1; + } + + /// Field number for the "recruiter" field. + public const int RecruiterFieldNumber = 2; + private readonly static ulong RecruiterDefaultValue = 0UL; + + private ulong recruiter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong Recruiter { + get { if ((_hasBits0 & 2) != 0) { return recruiter_; } else { return RecruiterDefaultValue; } } + set { + _hasBits0 |= 2; + recruiter_ = value; + } + } + /// Gets whether the "recruiter" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRecruiter { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "recruiter" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRecruiter() { + _hasBits0 &= ~2; + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 3; + private readonly static long TimestampDefaultValue = 0L; + + private long timestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Timestamp { + get { if ((_hasBits0 & 4) != 0) { return timestamp_; } else { return TimestampDefaultValue; } } + set { + _hasBits0 |= 4; + timestamp_ = value; + } + } + /// Gets whether the "timestamp" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimestamp { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "timestamp" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimestamp() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Invitation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Invitation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClanId != other.ClanId) return false; + if (Recruiter != other.Recruiter) return false; + if (Timestamp != other.Timestamp) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasClanId) hash ^= ClanId.GetHashCode(); + if (HasRecruiter) hash ^= Recruiter.GetHashCode(); + if (HasTimestamp) hash ^= Timestamp.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (HasRecruiter) { + output.WriteRawTag(16); + output.WriteUInt64(Recruiter); + } + if (HasTimestamp) { + output.WriteRawTag(24); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (HasRecruiter) { + output.WriteRawTag(16); + output.WriteUInt64(Recruiter); + } + if (HasTimestamp) { + output.WriteRawTag(24); + output.WriteInt64(Timestamp); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasClanId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); + } + if (HasRecruiter) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Recruiter); + } + if (HasTimestamp) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Timestamp); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Invitation other) { + if (other == null) { + return; + } + if (other.HasClanId) { + ClanId = other.ClanId; + } + if (other.HasRecruiter) { + Recruiter = other.Recruiter; + } + if (other.HasTimestamp) { + Timestamp = other.Timestamp; + } + _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 8: { + ClanId = input.ReadInt64(); + break; + } + case 16: { + Recruiter = input.ReadUInt64(); + break; + } + case 24: { + Timestamp = input.ReadInt64(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ClanId = input.ReadInt64(); + break; + } + case 16: { + Recruiter = input.ReadUInt64(); + break; + } + case 24: { + Timestamp = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class AppRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppRequest()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppRequest(AppRequest other) : this() { + _hasBits0 = other._hasBits0; + seq_ = other.seq_; + playerId_ = other.playerId_; + playerToken_ = other.playerToken_; + entityId_ = other.entityId_; + getInfo_ = other.getInfo_ != null ? other.getInfo_.Clone() : null; + getTime_ = other.getTime_ != null ? other.getTime_.Clone() : null; + getMap_ = other.getMap_ != null ? other.getMap_.Clone() : null; + getTeamInfo_ = other.getTeamInfo_ != null ? other.getTeamInfo_.Clone() : null; + getTeamChat_ = other.getTeamChat_ != null ? other.getTeamChat_.Clone() : null; + sendTeamMessage_ = other.sendTeamMessage_ != null ? other.sendTeamMessage_.Clone() : null; + getEntityInfo_ = other.getEntityInfo_ != null ? other.getEntityInfo_.Clone() : null; + setEntityValue_ = other.setEntityValue_ != null ? other.setEntityValue_.Clone() : null; + checkSubscription_ = other.checkSubscription_ != null ? other.checkSubscription_.Clone() : null; + setSubscription_ = other.setSubscription_ != null ? other.setSubscription_.Clone() : null; + getMapMarkers_ = other.getMapMarkers_ != null ? other.getMapMarkers_.Clone() : null; + promoteToLeader_ = other.promoteToLeader_ != null ? other.promoteToLeader_.Clone() : null; + getClanInfo_ = other.getClanInfo_ != null ? other.getClanInfo_.Clone() : null; + setClanMotd_ = other.setClanMotd_ != null ? other.setClanMotd_.Clone() : null; + getClanChat_ = other.getClanChat_ != null ? other.getClanChat_.Clone() : null; + sendClanMessage_ = other.sendClanMessage_ != null ? other.sendClanMessage_.Clone() : null; + getNexusAuth_ = other.getNexusAuth_ != null ? other.getNexusAuth_.Clone() : null; + cameraSubscribe_ = other.cameraSubscribe_ != null ? other.cameraSubscribe_.Clone() : null; + cameraUnsubscribe_ = other.cameraUnsubscribe_ != null ? other.cameraUnsubscribe_.Clone() : null; + cameraInput_ = other.cameraInput_ != null ? other.cameraInput_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppRequest Clone() { + return new AppRequest(this); + } + + /// Field number for the "seq" field. + public const int SeqFieldNumber = 1; + private readonly static uint SeqDefaultValue = 0; + + private uint seq_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Seq { + get { if ((_hasBits0 & 1) != 0) { return seq_; } else { return SeqDefaultValue; } } + set { + _hasBits0 |= 1; + seq_ = value; + } + } + /// Gets whether the "seq" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSeq { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "seq" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSeq() { + _hasBits0 &= ~1; + } + + /// Field number for the "playerId" field. + public const int PlayerIdFieldNumber = 2; + private readonly static ulong PlayerIdDefaultValue = 0UL; + + private ulong playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PlayerId { + get { if ((_hasBits0 & 2) != 0) { return playerId_; } else { return PlayerIdDefaultValue; } } + set { + _hasBits0 |= 2; + playerId_ = value; + } + } + /// Gets whether the "playerId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "playerId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerId() { + _hasBits0 &= ~2; + } + + /// Field number for the "playerToken" field. + public const int PlayerTokenFieldNumber = 3; + private readonly static int PlayerTokenDefaultValue = 0; + + private int playerToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PlayerToken { + get { if ((_hasBits0 & 4) != 0) { return playerToken_; } else { return PlayerTokenDefaultValue; } } + set { + _hasBits0 |= 4; + playerToken_ = value; + } + } + /// Gets whether the "playerToken" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerToken { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "playerToken" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerToken() { + _hasBits0 &= ~4; + } + + /// Field number for the "entityId" field. + public const int EntityIdFieldNumber = 4; + private readonly static uint EntityIdDefaultValue = 0; + + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { if ((_hasBits0 & 8) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } + set { + _hasBits0 |= 8; + entityId_ = value; + } + } + /// Gets whether the "entityId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEntityId { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "entityId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEntityId() { + _hasBits0 &= ~8; + } + + /// Field number for the "getInfo" field. + public const int GetInfoFieldNumber = 8; + private global::RustPlusContracts.AppEmpty getInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetInfo { + get { return getInfo_; } + set { + getInfo_ = value; + } + } + + /// Field number for the "getTime" field. + public const int GetTimeFieldNumber = 9; + private global::RustPlusContracts.AppEmpty getTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetTime { + get { return getTime_; } + set { + getTime_ = value; + } + } + + /// Field number for the "getMap" field. + public const int GetMapFieldNumber = 10; + private global::RustPlusContracts.AppEmpty getMap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetMap { + get { return getMap_; } + set { + getMap_ = value; + } + } + + /// Field number for the "getTeamInfo" field. + public const int GetTeamInfoFieldNumber = 11; + private global::RustPlusContracts.AppEmpty getTeamInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetTeamInfo { + get { return getTeamInfo_; } + set { + getTeamInfo_ = value; + } + } + + /// Field number for the "getTeamChat" field. + public const int GetTeamChatFieldNumber = 12; + private global::RustPlusContracts.AppEmpty getTeamChat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetTeamChat { + get { return getTeamChat_; } + set { + getTeamChat_ = value; + } + } + + /// Field number for the "sendTeamMessage" field. + public const int SendTeamMessageFieldNumber = 13; + private global::RustPlusContracts.AppSendMessage sendTeamMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppSendMessage SendTeamMessage { + get { return sendTeamMessage_; } + set { + sendTeamMessage_ = value; + } + } + + /// Field number for the "getEntityInfo" field. + public const int GetEntityInfoFieldNumber = 14; + private global::RustPlusContracts.AppEmpty getEntityInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetEntityInfo { + get { return getEntityInfo_; } + set { + getEntityInfo_ = value; + } + } + + /// Field number for the "setEntityValue" field. + public const int SetEntityValueFieldNumber = 15; + private global::RustPlusContracts.AppSetEntityValue setEntityValue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppSetEntityValue SetEntityValue { + get { return setEntityValue_; } + set { + setEntityValue_ = value; + } + } + + /// Field number for the "checkSubscription" field. + public const int CheckSubscriptionFieldNumber = 16; + private global::RustPlusContracts.AppEmpty checkSubscription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty CheckSubscription { + get { return checkSubscription_; } + set { + checkSubscription_ = value; + } + } + + /// Field number for the "setSubscription" field. + public const int SetSubscriptionFieldNumber = 17; + private global::RustPlusContracts.AppFlag setSubscription_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppFlag SetSubscription { + get { return setSubscription_; } + set { + setSubscription_ = value; + } + } + + /// Field number for the "getMapMarkers" field. + public const int GetMapMarkersFieldNumber = 18; + private global::RustPlusContracts.AppEmpty getMapMarkers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetMapMarkers { + get { return getMapMarkers_; } + set { + getMapMarkers_ = value; + } + } + + /// Field number for the "promoteToLeader" field. + public const int PromoteToLeaderFieldNumber = 20; + private global::RustPlusContracts.AppPromoteToLeader promoteToLeader_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppPromoteToLeader PromoteToLeader { + get { return promoteToLeader_; } + set { + promoteToLeader_ = value; + } + } + + /// Field number for the "getClanInfo" field. + public const int GetClanInfoFieldNumber = 21; + private global::RustPlusContracts.AppEmpty getClanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetClanInfo { + get { return getClanInfo_; } + set { + getClanInfo_ = value; + } + } + + /// Field number for the "setClanMotd" field. + public const int SetClanMotdFieldNumber = 22; + private global::RustPlusContracts.AppSendMessage setClanMotd_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppSendMessage SetClanMotd { + get { return setClanMotd_; } + set { + setClanMotd_ = value; + } + } + + /// Field number for the "getClanChat" field. + public const int GetClanChatFieldNumber = 23; + private global::RustPlusContracts.AppEmpty getClanChat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty GetClanChat { + get { return getClanChat_; } + set { + getClanChat_ = value; + } + } + + /// Field number for the "sendClanMessage" field. + public const int SendClanMessageFieldNumber = 24; + private global::RustPlusContracts.AppSendMessage sendClanMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppSendMessage SendClanMessage { + get { return sendClanMessage_; } + set { + sendClanMessage_ = value; + } + } + + /// Field number for the "getNexusAuth" field. + public const int GetNexusAuthFieldNumber = 25; + private global::RustPlusContracts.AppGetNexusAuth getNexusAuth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppGetNexusAuth GetNexusAuth { + get { return getNexusAuth_; } + set { + getNexusAuth_ = value; + } + } + + /// Field number for the "cameraSubscribe" field. + public const int CameraSubscribeFieldNumber = 30; + private global::RustPlusContracts.AppCameraSubscribe cameraSubscribe_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppCameraSubscribe CameraSubscribe { + get { return cameraSubscribe_; } + set { + cameraSubscribe_ = value; + } + } + + /// Field number for the "cameraUnsubscribe" field. + public const int CameraUnsubscribeFieldNumber = 31; + private global::RustPlusContracts.AppEmpty cameraUnsubscribe_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEmpty CameraUnsubscribe { + get { return cameraUnsubscribe_; } + set { + cameraUnsubscribe_ = value; + } + } + + /// Field number for the "cameraInput" field. + public const int CameraInputFieldNumber = 32; + private global::RustPlusContracts.AppCameraInput cameraInput_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppCameraInput CameraInput { + get { return cameraInput_; } + set { + cameraInput_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Seq != other.Seq) return false; + if (PlayerId != other.PlayerId) return false; + if (PlayerToken != other.PlayerToken) return false; + if (EntityId != other.EntityId) return false; + if (!object.Equals(GetInfo, other.GetInfo)) return false; + if (!object.Equals(GetTime, other.GetTime)) return false; + if (!object.Equals(GetMap, other.GetMap)) return false; + if (!object.Equals(GetTeamInfo, other.GetTeamInfo)) return false; + if (!object.Equals(GetTeamChat, other.GetTeamChat)) return false; + if (!object.Equals(SendTeamMessage, other.SendTeamMessage)) return false; + if (!object.Equals(GetEntityInfo, other.GetEntityInfo)) return false; + if (!object.Equals(SetEntityValue, other.SetEntityValue)) return false; + if (!object.Equals(CheckSubscription, other.CheckSubscription)) return false; + if (!object.Equals(SetSubscription, other.SetSubscription)) return false; + if (!object.Equals(GetMapMarkers, other.GetMapMarkers)) return false; + if (!object.Equals(PromoteToLeader, other.PromoteToLeader)) return false; + if (!object.Equals(GetClanInfo, other.GetClanInfo)) return false; + if (!object.Equals(SetClanMotd, other.SetClanMotd)) return false; + if (!object.Equals(GetClanChat, other.GetClanChat)) return false; + if (!object.Equals(SendClanMessage, other.SendClanMessage)) return false; + if (!object.Equals(GetNexusAuth, other.GetNexusAuth)) return false; + if (!object.Equals(CameraSubscribe, other.CameraSubscribe)) return false; + if (!object.Equals(CameraUnsubscribe, other.CameraUnsubscribe)) return false; + if (!object.Equals(CameraInput, other.CameraInput)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSeq) hash ^= Seq.GetHashCode(); + if (HasPlayerId) hash ^= PlayerId.GetHashCode(); + if (HasPlayerToken) hash ^= PlayerToken.GetHashCode(); + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (getInfo_ != null) hash ^= GetInfo.GetHashCode(); + if (getTime_ != null) hash ^= GetTime.GetHashCode(); + if (getMap_ != null) hash ^= GetMap.GetHashCode(); + if (getTeamInfo_ != null) hash ^= GetTeamInfo.GetHashCode(); + if (getTeamChat_ != null) hash ^= GetTeamChat.GetHashCode(); + if (sendTeamMessage_ != null) hash ^= SendTeamMessage.GetHashCode(); + if (getEntityInfo_ != null) hash ^= GetEntityInfo.GetHashCode(); + if (setEntityValue_ != null) hash ^= SetEntityValue.GetHashCode(); + if (checkSubscription_ != null) hash ^= CheckSubscription.GetHashCode(); + if (setSubscription_ != null) hash ^= SetSubscription.GetHashCode(); + if (getMapMarkers_ != null) hash ^= GetMapMarkers.GetHashCode(); + if (promoteToLeader_ != null) hash ^= PromoteToLeader.GetHashCode(); + if (getClanInfo_ != null) hash ^= GetClanInfo.GetHashCode(); + if (setClanMotd_ != null) hash ^= SetClanMotd.GetHashCode(); + if (getClanChat_ != null) hash ^= GetClanChat.GetHashCode(); + if (sendClanMessage_ != null) hash ^= SendClanMessage.GetHashCode(); + if (getNexusAuth_ != null) hash ^= GetNexusAuth.GetHashCode(); + if (cameraSubscribe_ != null) hash ^= CameraSubscribe.GetHashCode(); + if (cameraUnsubscribe_ != null) hash ^= CameraUnsubscribe.GetHashCode(); + if (cameraInput_ != null) hash ^= CameraInput.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSeq) { + output.WriteRawTag(8); + output.WriteUInt32(Seq); + } + if (HasPlayerId) { + output.WriteRawTag(16); + output.WriteUInt64(PlayerId); + } + if (HasPlayerToken) { + output.WriteRawTag(24); + output.WriteInt32(PlayerToken); + } + if (HasEntityId) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (getInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(GetInfo); + } + if (getTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GetTime); + } + if (getMap_ != null) { + output.WriteRawTag(82); + output.WriteMessage(GetMap); + } + if (getTeamInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(GetTeamInfo); + } + if (getTeamChat_ != null) { + output.WriteRawTag(98); + output.WriteMessage(GetTeamChat); + } + if (sendTeamMessage_ != null) { + output.WriteRawTag(106); + output.WriteMessage(SendTeamMessage); + } + if (getEntityInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(GetEntityInfo); + } + if (setEntityValue_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SetEntityValue); + } + if (checkSubscription_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(CheckSubscription); + } + if (setSubscription_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(SetSubscription); + } + if (getMapMarkers_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(GetMapMarkers); + } + if (promoteToLeader_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(PromoteToLeader); + } + if (getClanInfo_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(GetClanInfo); + } + if (setClanMotd_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(SetClanMotd); + } + if (getClanChat_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(GetClanChat); + } + if (sendClanMessage_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(SendClanMessage); + } + if (getNexusAuth_ != null) { + output.WriteRawTag(202, 1); + output.WriteMessage(GetNexusAuth); + } + if (cameraSubscribe_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(CameraSubscribe); + } + if (cameraUnsubscribe_ != null) { + output.WriteRawTag(250, 1); + output.WriteMessage(CameraUnsubscribe); + } + if (cameraInput_ != null) { + output.WriteRawTag(130, 2); + output.WriteMessage(CameraInput); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSeq) { + output.WriteRawTag(8); + output.WriteUInt32(Seq); + } + if (HasPlayerId) { + output.WriteRawTag(16); + output.WriteUInt64(PlayerId); + } + if (HasPlayerToken) { + output.WriteRawTag(24); + output.WriteInt32(PlayerToken); + } + if (HasEntityId) { + output.WriteRawTag(32); + output.WriteUInt32(EntityId); + } + if (getInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(GetInfo); + } + if (getTime_ != null) { + output.WriteRawTag(74); + output.WriteMessage(GetTime); + } + if (getMap_ != null) { + output.WriteRawTag(82); + output.WriteMessage(GetMap); + } + if (getTeamInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(GetTeamInfo); + } + if (getTeamChat_ != null) { + output.WriteRawTag(98); + output.WriteMessage(GetTeamChat); + } + if (sendTeamMessage_ != null) { + output.WriteRawTag(106); + output.WriteMessage(SendTeamMessage); + } + if (getEntityInfo_ != null) { + output.WriteRawTag(114); + output.WriteMessage(GetEntityInfo); + } + if (setEntityValue_ != null) { + output.WriteRawTag(122); + output.WriteMessage(SetEntityValue); + } + if (checkSubscription_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(CheckSubscription); + } + if (setSubscription_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(SetSubscription); + } + if (getMapMarkers_ != null) { + output.WriteRawTag(146, 1); + output.WriteMessage(GetMapMarkers); + } + if (promoteToLeader_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(PromoteToLeader); + } + if (getClanInfo_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(GetClanInfo); + } + if (setClanMotd_ != null) { + output.WriteRawTag(178, 1); + output.WriteMessage(SetClanMotd); + } + if (getClanChat_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(GetClanChat); + } + if (sendClanMessage_ != null) { + output.WriteRawTag(194, 1); + output.WriteMessage(SendClanMessage); + } + if (getNexusAuth_ != null) { + output.WriteRawTag(202, 1); + output.WriteMessage(GetNexusAuth); + } + if (cameraSubscribe_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(CameraSubscribe); + } + if (cameraUnsubscribe_ != null) { + output.WriteRawTag(250, 1); + output.WriteMessage(CameraUnsubscribe); + } + if (cameraInput_ != null) { + output.WriteRawTag(130, 2); + output.WriteMessage(CameraInput); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSeq) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seq); + } + if (HasPlayerId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayerId); + } + if (HasPlayerToken) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerToken); + } + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (getInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetInfo); + } + if (getTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTime); + } + if (getMap_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetMap); + } + if (getTeamInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTeamInfo); + } + if (getTeamChat_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetTeamChat); + } + if (sendTeamMessage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SendTeamMessage); + } + if (getEntityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GetEntityInfo); + } + if (setEntityValue_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SetEntityValue); + } + if (checkSubscription_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CheckSubscription); + } + if (setSubscription_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetSubscription); + } + if (getMapMarkers_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetMapMarkers); + } + if (promoteToLeader_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PromoteToLeader); + } + if (getClanInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetClanInfo); + } + if (setClanMotd_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SetClanMotd); + } + if (getClanChat_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetClanChat); + } + if (sendClanMessage_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SendClanMessage); + } + if (getNexusAuth_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(GetNexusAuth); + } + if (cameraSubscribe_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraSubscribe); + } + if (cameraUnsubscribe_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraUnsubscribe); + } + if (cameraInput_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraInput); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppRequest other) { + if (other == null) { + return; + } + if (other.HasSeq) { + Seq = other.Seq; + } + if (other.HasPlayerId) { + PlayerId = other.PlayerId; + } + if (other.HasPlayerToken) { + PlayerToken = other.PlayerToken; + } + if (other.HasEntityId) { + EntityId = other.EntityId; + } + if (other.getInfo_ != null) { + if (getInfo_ == null) { + GetInfo = new global::RustPlusContracts.AppEmpty(); + } + GetInfo.MergeFrom(other.GetInfo); + } + if (other.getTime_ != null) { + if (getTime_ == null) { + GetTime = new global::RustPlusContracts.AppEmpty(); + } + GetTime.MergeFrom(other.GetTime); + } + if (other.getMap_ != null) { + if (getMap_ == null) { + GetMap = new global::RustPlusContracts.AppEmpty(); + } + GetMap.MergeFrom(other.GetMap); + } + if (other.getTeamInfo_ != null) { + if (getTeamInfo_ == null) { + GetTeamInfo = new global::RustPlusContracts.AppEmpty(); + } + GetTeamInfo.MergeFrom(other.GetTeamInfo); + } + if (other.getTeamChat_ != null) { + if (getTeamChat_ == null) { + GetTeamChat = new global::RustPlusContracts.AppEmpty(); + } + GetTeamChat.MergeFrom(other.GetTeamChat); + } + if (other.sendTeamMessage_ != null) { + if (sendTeamMessage_ == null) { + SendTeamMessage = new global::RustPlusContracts.AppSendMessage(); + } + SendTeamMessage.MergeFrom(other.SendTeamMessage); + } + if (other.getEntityInfo_ != null) { + if (getEntityInfo_ == null) { + GetEntityInfo = new global::RustPlusContracts.AppEmpty(); + } + GetEntityInfo.MergeFrom(other.GetEntityInfo); + } + if (other.setEntityValue_ != null) { + if (setEntityValue_ == null) { + SetEntityValue = new global::RustPlusContracts.AppSetEntityValue(); + } + SetEntityValue.MergeFrom(other.SetEntityValue); + } + if (other.checkSubscription_ != null) { + if (checkSubscription_ == null) { + CheckSubscription = new global::RustPlusContracts.AppEmpty(); + } + CheckSubscription.MergeFrom(other.CheckSubscription); + } + if (other.setSubscription_ != null) { + if (setSubscription_ == null) { + SetSubscription = new global::RustPlusContracts.AppFlag(); + } + SetSubscription.MergeFrom(other.SetSubscription); + } + if (other.getMapMarkers_ != null) { + if (getMapMarkers_ == null) { + GetMapMarkers = new global::RustPlusContracts.AppEmpty(); + } + GetMapMarkers.MergeFrom(other.GetMapMarkers); + } + if (other.promoteToLeader_ != null) { + if (promoteToLeader_ == null) { + PromoteToLeader = new global::RustPlusContracts.AppPromoteToLeader(); + } + PromoteToLeader.MergeFrom(other.PromoteToLeader); + } + if (other.getClanInfo_ != null) { + if (getClanInfo_ == null) { + GetClanInfo = new global::RustPlusContracts.AppEmpty(); + } + GetClanInfo.MergeFrom(other.GetClanInfo); + } + if (other.setClanMotd_ != null) { + if (setClanMotd_ == null) { + SetClanMotd = new global::RustPlusContracts.AppSendMessage(); + } + SetClanMotd.MergeFrom(other.SetClanMotd); + } + if (other.getClanChat_ != null) { + if (getClanChat_ == null) { + GetClanChat = new global::RustPlusContracts.AppEmpty(); + } + GetClanChat.MergeFrom(other.GetClanChat); + } + if (other.sendClanMessage_ != null) { + if (sendClanMessage_ == null) { + SendClanMessage = new global::RustPlusContracts.AppSendMessage(); + } + SendClanMessage.MergeFrom(other.SendClanMessage); + } + if (other.getNexusAuth_ != null) { + if (getNexusAuth_ == null) { + GetNexusAuth = new global::RustPlusContracts.AppGetNexusAuth(); + } + GetNexusAuth.MergeFrom(other.GetNexusAuth); + } + if (other.cameraSubscribe_ != null) { + if (cameraSubscribe_ == null) { + CameraSubscribe = new global::RustPlusContracts.AppCameraSubscribe(); + } + CameraSubscribe.MergeFrom(other.CameraSubscribe); + } + if (other.cameraUnsubscribe_ != null) { + if (cameraUnsubscribe_ == null) { + CameraUnsubscribe = new global::RustPlusContracts.AppEmpty(); + } + CameraUnsubscribe.MergeFrom(other.CameraUnsubscribe); + } + if (other.cameraInput_ != null) { + if (cameraInput_ == null) { + CameraInput = new global::RustPlusContracts.AppCameraInput(); + } + CameraInput.MergeFrom(other.CameraInput); + } + _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 8: { + Seq = input.ReadUInt32(); + break; + } + case 16: { + PlayerId = input.ReadUInt64(); + break; + } + case 24: { + PlayerToken = input.ReadInt32(); + break; + } + case 32: { + EntityId = input.ReadUInt32(); + break; + } + case 66: { + if (getInfo_ == null) { + GetInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetInfo); + break; + } + case 74: { + if (getTime_ == null) { + GetTime = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTime); + break; + } + case 82: { + if (getMap_ == null) { + GetMap = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetMap); + break; + } + case 90: { + if (getTeamInfo_ == null) { + GetTeamInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTeamInfo); + break; + } + case 98: { + if (getTeamChat_ == null) { + GetTeamChat = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTeamChat); + break; + } + case 106: { + if (sendTeamMessage_ == null) { + SendTeamMessage = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SendTeamMessage); + break; + } + case 114: { + if (getEntityInfo_ == null) { + GetEntityInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetEntityInfo); + break; + } + case 122: { + if (setEntityValue_ == null) { + SetEntityValue = new global::RustPlusContracts.AppSetEntityValue(); + } + input.ReadMessage(SetEntityValue); + break; + } + case 130: { + if (checkSubscription_ == null) { + CheckSubscription = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(CheckSubscription); + break; + } + case 138: { + if (setSubscription_ == null) { + SetSubscription = new global::RustPlusContracts.AppFlag(); + } + input.ReadMessage(SetSubscription); + break; + } + case 146: { + if (getMapMarkers_ == null) { + GetMapMarkers = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetMapMarkers); + break; + } + case 162: { + if (promoteToLeader_ == null) { + PromoteToLeader = new global::RustPlusContracts.AppPromoteToLeader(); + } + input.ReadMessage(PromoteToLeader); + break; + } + case 170: { + if (getClanInfo_ == null) { + GetClanInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetClanInfo); + break; + } + case 178: { + if (setClanMotd_ == null) { + SetClanMotd = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SetClanMotd); + break; + } + case 186: { + if (getClanChat_ == null) { + GetClanChat = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetClanChat); + break; + } + case 194: { + if (sendClanMessage_ == null) { + SendClanMessage = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SendClanMessage); + break; + } + case 202: { + if (getNexusAuth_ == null) { + GetNexusAuth = new global::RustPlusContracts.AppGetNexusAuth(); + } + input.ReadMessage(GetNexusAuth); + break; + } + case 242: { + if (cameraSubscribe_ == null) { + CameraSubscribe = new global::RustPlusContracts.AppCameraSubscribe(); + } + input.ReadMessage(CameraSubscribe); + break; + } + case 250: { + if (cameraUnsubscribe_ == null) { + CameraUnsubscribe = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(CameraUnsubscribe); + break; + } + case 258: { + if (cameraInput_ == null) { + CameraInput = new global::RustPlusContracts.AppCameraInput(); + } + input.ReadMessage(CameraInput); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Seq = input.ReadUInt32(); + break; + } + case 16: { + PlayerId = input.ReadUInt64(); + break; + } + case 24: { + PlayerToken = input.ReadInt32(); + break; + } + case 32: { + EntityId = input.ReadUInt32(); + break; + } + case 66: { + if (getInfo_ == null) { + GetInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetInfo); + break; + } + case 74: { + if (getTime_ == null) { + GetTime = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTime); + break; + } + case 82: { + if (getMap_ == null) { + GetMap = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetMap); + break; + } + case 90: { + if (getTeamInfo_ == null) { + GetTeamInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTeamInfo); + break; + } + case 98: { + if (getTeamChat_ == null) { + GetTeamChat = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetTeamChat); + break; + } + case 106: { + if (sendTeamMessage_ == null) { + SendTeamMessage = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SendTeamMessage); + break; + } + case 114: { + if (getEntityInfo_ == null) { + GetEntityInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetEntityInfo); + break; + } + case 122: { + if (setEntityValue_ == null) { + SetEntityValue = new global::RustPlusContracts.AppSetEntityValue(); + } + input.ReadMessage(SetEntityValue); + break; + } + case 130: { + if (checkSubscription_ == null) { + CheckSubscription = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(CheckSubscription); + break; + } + case 138: { + if (setSubscription_ == null) { + SetSubscription = new global::RustPlusContracts.AppFlag(); + } + input.ReadMessage(SetSubscription); + break; + } + case 146: { + if (getMapMarkers_ == null) { + GetMapMarkers = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetMapMarkers); + break; + } + case 162: { + if (promoteToLeader_ == null) { + PromoteToLeader = new global::RustPlusContracts.AppPromoteToLeader(); + } + input.ReadMessage(PromoteToLeader); + break; + } + case 170: { + if (getClanInfo_ == null) { + GetClanInfo = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetClanInfo); + break; + } + case 178: { + if (setClanMotd_ == null) { + SetClanMotd = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SetClanMotd); + break; + } + case 186: { + if (getClanChat_ == null) { + GetClanChat = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(GetClanChat); + break; + } + case 194: { + if (sendClanMessage_ == null) { + SendClanMessage = new global::RustPlusContracts.AppSendMessage(); + } + input.ReadMessage(SendClanMessage); + break; + } + case 202: { + if (getNexusAuth_ == null) { + GetNexusAuth = new global::RustPlusContracts.AppGetNexusAuth(); + } + input.ReadMessage(GetNexusAuth); + break; + } + case 242: { + if (cameraSubscribe_ == null) { + CameraSubscribe = new global::RustPlusContracts.AppCameraSubscribe(); + } + input.ReadMessage(CameraSubscribe); + break; + } + case 250: { + if (cameraUnsubscribe_ == null) { + CameraUnsubscribe = new global::RustPlusContracts.AppEmpty(); + } + input.ReadMessage(CameraUnsubscribe); + break; + } + case 258: { + if (cameraInput_ == null) { + CameraInput = new global::RustPlusContracts.AppCameraInput(); + } + input.ReadMessage(CameraInput); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMessage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMessage(AppMessage other) : this() { + response_ = other.response_ != null ? other.response_.Clone() : null; + broadcast_ = other.broadcast_ != null ? other.broadcast_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMessage Clone() { + return new AppMessage(this); + } + + /// Field number for the "response" field. + public const int ResponseFieldNumber = 1; + private global::RustPlusContracts.AppResponse response_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppResponse Response { + get { return response_; } + set { + response_ = value; + } + } + + /// Field number for the "broadcast" field. + public const int BroadcastFieldNumber = 2; + private global::RustPlusContracts.AppBroadcast broadcast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppBroadcast Broadcast { + get { return broadcast_; } + set { + broadcast_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Response, other.Response)) return false; + if (!object.Equals(Broadcast, other.Broadcast)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (response_ != null) hash ^= Response.GetHashCode(); + if (broadcast_ != null) hash ^= Broadcast.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (response_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Response); + } + if (broadcast_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Broadcast); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (response_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Response); + } + if (broadcast_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Broadcast); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (response_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Response); + } + if (broadcast_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Broadcast); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppMessage other) { + if (other == null) { + return; + } + if (other.response_ != null) { + if (response_ == null) { + Response = new global::RustPlusContracts.AppResponse(); + } + Response.MergeFrom(other.Response); + } + if (other.broadcast_ != null) { + if (broadcast_ == null) { + Broadcast = new global::RustPlusContracts.AppBroadcast(); + } + Broadcast.MergeFrom(other.Broadcast); + } + _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: { + if (response_ == null) { + Response = new global::RustPlusContracts.AppResponse(); + } + input.ReadMessage(Response); + break; + } + case 18: { + if (broadcast_ == null) { + Broadcast = new global::RustPlusContracts.AppBroadcast(); + } + input.ReadMessage(Broadcast); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (response_ == null) { + Response = new global::RustPlusContracts.AppResponse(); + } + input.ReadMessage(Response); + break; + } + case 18: { + if (broadcast_ == null) { + Broadcast = new global::RustPlusContracts.AppBroadcast(); + } + input.ReadMessage(Broadcast); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppResponse()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppResponse(AppResponse other) : this() { + _hasBits0 = other._hasBits0; + seq_ = other.seq_; + success_ = other.success_ != null ? other.success_.Clone() : null; + error_ = other.error_ != null ? other.error_.Clone() : null; + info_ = other.info_ != null ? other.info_.Clone() : null; + time_ = other.time_ != null ? other.time_.Clone() : null; + map_ = other.map_ != null ? other.map_.Clone() : null; + teamInfo_ = other.teamInfo_ != null ? other.teamInfo_.Clone() : null; + teamChat_ = other.teamChat_ != null ? other.teamChat_.Clone() : null; + entityInfo_ = other.entityInfo_ != null ? other.entityInfo_.Clone() : null; + flag_ = other.flag_ != null ? other.flag_.Clone() : null; + mapMarkers_ = other.mapMarkers_ != null ? other.mapMarkers_.Clone() : null; + clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; + clanChat_ = other.clanChat_ != null ? other.clanChat_.Clone() : null; + nexusAuth_ = other.nexusAuth_ != null ? other.nexusAuth_.Clone() : null; + cameraSubscribeInfo_ = other.cameraSubscribeInfo_ != null ? other.cameraSubscribeInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppResponse Clone() { + return new AppResponse(this); + } + + /// Field number for the "seq" field. + public const int SeqFieldNumber = 1; + private readonly static uint SeqDefaultValue = 0; + + private uint seq_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Seq { + get { if ((_hasBits0 & 1) != 0) { return seq_; } else { return SeqDefaultValue; } } + set { + _hasBits0 |= 1; + seq_ = value; + } + } + /// Gets whether the "seq" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSeq { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "seq" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSeq() { + _hasBits0 &= ~1; + } + + /// Field number for the "success" field. + public const int SuccessFieldNumber = 4; + private global::RustPlusContracts.AppSuccess success_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppSuccess Success { + get { return success_; } + set { + success_ = value; + } + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 5; + private global::RustPlusContracts.AppError error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppError Error { + get { return error_; } + set { + error_ = value; + } + } + + /// Field number for the "info" field. + public const int InfoFieldNumber = 6; + private global::RustPlusContracts.AppInfo info_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppInfo Info { + get { return info_; } + set { + info_ = value; + } + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 7; + private global::RustPlusContracts.AppTime time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTime Time { + get { return time_; } + set { + time_ = value; + } + } + + /// Field number for the "map" field. + public const int MapFieldNumber = 8; + private global::RustPlusContracts.AppMap map_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppMap Map { + get { return map_; } + set { + map_ = value; + } + } + + /// Field number for the "teamInfo" field. + public const int TeamInfoFieldNumber = 9; + private global::RustPlusContracts.AppTeamInfo teamInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTeamInfo TeamInfo { + get { return teamInfo_; } + set { + teamInfo_ = value; + } + } + + /// Field number for the "teamChat" field. + public const int TeamChatFieldNumber = 10; + private global::RustPlusContracts.AppTeamChat teamChat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTeamChat TeamChat { + get { return teamChat_; } + set { + teamChat_ = value; + } + } + + /// Field number for the "entityInfo" field. + public const int EntityInfoFieldNumber = 11; + private global::RustPlusContracts.AppEntityInfo entityInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEntityInfo EntityInfo { + get { return entityInfo_; } + set { + entityInfo_ = value; + } + } + + /// Field number for the "flag" field. + public const int FlagFieldNumber = 12; + private global::RustPlusContracts.AppFlag flag_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppFlag Flag { + get { return flag_; } + set { + flag_ = value; + } + } + + /// Field number for the "mapMarkers" field. + public const int MapMarkersFieldNumber = 13; + private global::RustPlusContracts.AppMapMarkers mapMarkers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppMapMarkers MapMarkers { + get { return mapMarkers_; } + set { + mapMarkers_ = value; + } + } + + /// Field number for the "clanInfo" field. + public const int ClanInfoFieldNumber = 15; + private global::RustPlusContracts.AppClanInfo clanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppClanInfo ClanInfo { + get { return clanInfo_; } + set { + clanInfo_ = value; + } + } + + /// Field number for the "clanChat" field. + public const int ClanChatFieldNumber = 16; + private global::RustPlusContracts.AppClanChat clanChat_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppClanChat ClanChat { + get { return clanChat_; } + set { + clanChat_ = value; + } + } + + /// Field number for the "nexusAuth" field. + public const int NexusAuthFieldNumber = 17; + private global::RustPlusContracts.AppNexusAuth nexusAuth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppNexusAuth NexusAuth { + get { return nexusAuth_; } + set { + nexusAuth_ = value; + } + } + + /// Field number for the "cameraSubscribeInfo" field. + public const int CameraSubscribeInfoFieldNumber = 20; + private global::RustPlusContracts.AppCameraInfo cameraSubscribeInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppCameraInfo CameraSubscribeInfo { + get { return cameraSubscribeInfo_; } + set { + cameraSubscribeInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Seq != other.Seq) return false; + if (!object.Equals(Success, other.Success)) return false; + if (!object.Equals(Error, other.Error)) return false; + if (!object.Equals(Info, other.Info)) return false; + if (!object.Equals(Time, other.Time)) return false; + if (!object.Equals(Map, other.Map)) return false; + if (!object.Equals(TeamInfo, other.TeamInfo)) return false; + if (!object.Equals(TeamChat, other.TeamChat)) return false; + if (!object.Equals(EntityInfo, other.EntityInfo)) return false; + if (!object.Equals(Flag, other.Flag)) return false; + if (!object.Equals(MapMarkers, other.MapMarkers)) return false; + if (!object.Equals(ClanInfo, other.ClanInfo)) return false; + if (!object.Equals(ClanChat, other.ClanChat)) return false; + if (!object.Equals(NexusAuth, other.NexusAuth)) return false; + if (!object.Equals(CameraSubscribeInfo, other.CameraSubscribeInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSeq) hash ^= Seq.GetHashCode(); + if (success_ != null) hash ^= Success.GetHashCode(); + if (error_ != null) hash ^= Error.GetHashCode(); + if (info_ != null) hash ^= Info.GetHashCode(); + if (time_ != null) hash ^= Time.GetHashCode(); + if (map_ != null) hash ^= Map.GetHashCode(); + if (teamInfo_ != null) hash ^= TeamInfo.GetHashCode(); + if (teamChat_ != null) hash ^= TeamChat.GetHashCode(); + if (entityInfo_ != null) hash ^= EntityInfo.GetHashCode(); + if (flag_ != null) hash ^= Flag.GetHashCode(); + if (mapMarkers_ != null) hash ^= MapMarkers.GetHashCode(); + if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); + if (clanChat_ != null) hash ^= ClanChat.GetHashCode(); + if (nexusAuth_ != null) hash ^= NexusAuth.GetHashCode(); + if (cameraSubscribeInfo_ != null) hash ^= CameraSubscribeInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSeq) { + output.WriteRawTag(8); + output.WriteUInt32(Seq); + } + if (success_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Success); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (info_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Info); + } + if (time_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Time); + } + if (map_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Map); + } + if (teamInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TeamInfo); + } + if (teamChat_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TeamChat); + } + if (entityInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(EntityInfo); + } + if (flag_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Flag); + } + if (mapMarkers_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MapMarkers); + } + if (clanInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ClanInfo); + } + if (clanChat_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ClanChat); + } + if (nexusAuth_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(NexusAuth); + } + if (cameraSubscribeInfo_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(CameraSubscribeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSeq) { + output.WriteRawTag(8); + output.WriteUInt32(Seq); + } + if (success_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Success); + } + if (error_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Error); + } + if (info_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Info); + } + if (time_ != null) { + output.WriteRawTag(58); + output.WriteMessage(Time); + } + if (map_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Map); + } + if (teamInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TeamInfo); + } + if (teamChat_ != null) { + output.WriteRawTag(82); + output.WriteMessage(TeamChat); + } + if (entityInfo_ != null) { + output.WriteRawTag(90); + output.WriteMessage(EntityInfo); + } + if (flag_ != null) { + output.WriteRawTag(98); + output.WriteMessage(Flag); + } + if (mapMarkers_ != null) { + output.WriteRawTag(106); + output.WriteMessage(MapMarkers); + } + if (clanInfo_ != null) { + output.WriteRawTag(122); + output.WriteMessage(ClanInfo); + } + if (clanChat_ != null) { + output.WriteRawTag(130, 1); + output.WriteMessage(ClanChat); + } + if (nexusAuth_ != null) { + output.WriteRawTag(138, 1); + output.WriteMessage(NexusAuth); + } + if (cameraSubscribeInfo_ != null) { + output.WriteRawTag(162, 1); + output.WriteMessage(CameraSubscribeInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSeq) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seq); + } + if (success_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Success); + } + if (error_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); + } + if (info_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info); + } + if (time_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Time); + } + if (map_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Map); + } + if (teamInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamInfo); + } + if (teamChat_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamChat); + } + if (entityInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityInfo); + } + if (flag_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Flag); + } + if (mapMarkers_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapMarkers); + } + if (clanInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); + } + if (clanChat_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClanChat); + } + if (nexusAuth_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(NexusAuth); + } + if (cameraSubscribeInfo_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CameraSubscribeInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppResponse other) { + if (other == null) { + return; + } + if (other.HasSeq) { + Seq = other.Seq; + } + if (other.success_ != null) { + if (success_ == null) { + Success = new global::RustPlusContracts.AppSuccess(); + } + Success.MergeFrom(other.Success); + } + if (other.error_ != null) { + if (error_ == null) { + Error = new global::RustPlusContracts.AppError(); + } + Error.MergeFrom(other.Error); + } + if (other.info_ != null) { + if (info_ == null) { + Info = new global::RustPlusContracts.AppInfo(); + } + Info.MergeFrom(other.Info); + } + if (other.time_ != null) { + if (time_ == null) { + Time = new global::RustPlusContracts.AppTime(); + } + Time.MergeFrom(other.Time); + } + if (other.map_ != null) { + if (map_ == null) { + Map = new global::RustPlusContracts.AppMap(); + } + Map.MergeFrom(other.Map); + } + if (other.teamInfo_ != null) { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + TeamInfo.MergeFrom(other.TeamInfo); + } + if (other.teamChat_ != null) { + if (teamChat_ == null) { + TeamChat = new global::RustPlusContracts.AppTeamChat(); + } + TeamChat.MergeFrom(other.TeamChat); + } + if (other.entityInfo_ != null) { + if (entityInfo_ == null) { + EntityInfo = new global::RustPlusContracts.AppEntityInfo(); + } + EntityInfo.MergeFrom(other.EntityInfo); + } + if (other.flag_ != null) { + if (flag_ == null) { + Flag = new global::RustPlusContracts.AppFlag(); + } + Flag.MergeFrom(other.Flag); + } + if (other.mapMarkers_ != null) { + if (mapMarkers_ == null) { + MapMarkers = new global::RustPlusContracts.AppMapMarkers(); + } + MapMarkers.MergeFrom(other.MapMarkers); + } + if (other.clanInfo_ != null) { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.AppClanInfo(); + } + ClanInfo.MergeFrom(other.ClanInfo); + } + if (other.clanChat_ != null) { + if (clanChat_ == null) { + ClanChat = new global::RustPlusContracts.AppClanChat(); + } + ClanChat.MergeFrom(other.ClanChat); + } + if (other.nexusAuth_ != null) { + if (nexusAuth_ == null) { + NexusAuth = new global::RustPlusContracts.AppNexusAuth(); + } + NexusAuth.MergeFrom(other.NexusAuth); + } + if (other.cameraSubscribeInfo_ != null) { + if (cameraSubscribeInfo_ == null) { + CameraSubscribeInfo = new global::RustPlusContracts.AppCameraInfo(); + } + CameraSubscribeInfo.MergeFrom(other.CameraSubscribeInfo); + } + _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 8: { + Seq = input.ReadUInt32(); + break; + } + case 34: { + if (success_ == null) { + Success = new global::RustPlusContracts.AppSuccess(); + } + input.ReadMessage(Success); + break; + } + case 42: { + if (error_ == null) { + Error = new global::RustPlusContracts.AppError(); + } + input.ReadMessage(Error); + break; + } + case 50: { + if (info_ == null) { + Info = new global::RustPlusContracts.AppInfo(); + } + input.ReadMessage(Info); + break; + } + case 58: { + if (time_ == null) { + Time = new global::RustPlusContracts.AppTime(); + } + input.ReadMessage(Time); + break; + } + case 66: { + if (map_ == null) { + Map = new global::RustPlusContracts.AppMap(); + } + input.ReadMessage(Map); + break; + } + case 74: { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + input.ReadMessage(TeamInfo); + break; + } + case 82: { + if (teamChat_ == null) { + TeamChat = new global::RustPlusContracts.AppTeamChat(); + } + input.ReadMessage(TeamChat); + break; + } + case 90: { + if (entityInfo_ == null) { + EntityInfo = new global::RustPlusContracts.AppEntityInfo(); + } + input.ReadMessage(EntityInfo); + break; + } + case 98: { + if (flag_ == null) { + Flag = new global::RustPlusContracts.AppFlag(); + } + input.ReadMessage(Flag); + break; + } + case 106: { + if (mapMarkers_ == null) { + MapMarkers = new global::RustPlusContracts.AppMapMarkers(); + } + input.ReadMessage(MapMarkers); + break; + } + case 122: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.AppClanInfo(); + } + input.ReadMessage(ClanInfo); + break; + } + case 130: { + if (clanChat_ == null) { + ClanChat = new global::RustPlusContracts.AppClanChat(); + } + input.ReadMessage(ClanChat); + break; + } + case 138: { + if (nexusAuth_ == null) { + NexusAuth = new global::RustPlusContracts.AppNexusAuth(); + } + input.ReadMessage(NexusAuth); + break; + } + case 162: { + if (cameraSubscribeInfo_ == null) { + CameraSubscribeInfo = new global::RustPlusContracts.AppCameraInfo(); + } + input.ReadMessage(CameraSubscribeInfo); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Seq = input.ReadUInt32(); + break; + } + case 34: { + if (success_ == null) { + Success = new global::RustPlusContracts.AppSuccess(); + } + input.ReadMessage(Success); + break; + } + case 42: { + if (error_ == null) { + Error = new global::RustPlusContracts.AppError(); + } + input.ReadMessage(Error); + break; + } + case 50: { + if (info_ == null) { + Info = new global::RustPlusContracts.AppInfo(); + } + input.ReadMessage(Info); + break; + } + case 58: { + if (time_ == null) { + Time = new global::RustPlusContracts.AppTime(); + } + input.ReadMessage(Time); + break; + } + case 66: { + if (map_ == null) { + Map = new global::RustPlusContracts.AppMap(); + } + input.ReadMessage(Map); + break; + } + case 74: { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + input.ReadMessage(TeamInfo); + break; + } + case 82: { + if (teamChat_ == null) { + TeamChat = new global::RustPlusContracts.AppTeamChat(); + } + input.ReadMessage(TeamChat); + break; + } + case 90: { + if (entityInfo_ == null) { + EntityInfo = new global::RustPlusContracts.AppEntityInfo(); + } + input.ReadMessage(EntityInfo); + break; + } + case 98: { + if (flag_ == null) { + Flag = new global::RustPlusContracts.AppFlag(); + } + input.ReadMessage(Flag); + break; + } + case 106: { + if (mapMarkers_ == null) { + MapMarkers = new global::RustPlusContracts.AppMapMarkers(); + } + input.ReadMessage(MapMarkers); + break; + } + case 122: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.AppClanInfo(); + } + input.ReadMessage(ClanInfo); + break; + } + case 130: { + if (clanChat_ == null) { + ClanChat = new global::RustPlusContracts.AppClanChat(); + } + input.ReadMessage(ClanChat); + break; + } + case 138: { + if (nexusAuth_ == null) { + NexusAuth = new global::RustPlusContracts.AppNexusAuth(); + } + input.ReadMessage(NexusAuth); + break; + } + case 162: { + if (cameraSubscribeInfo_ == null) { + CameraSubscribeInfo = new global::RustPlusContracts.AppCameraInfo(); + } + input.ReadMessage(CameraSubscribeInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppBroadcast : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppBroadcast()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppBroadcast() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppBroadcast(AppBroadcast other) : this() { + teamChanged_ = other.teamChanged_ != null ? other.teamChanged_.Clone() : null; + teamMessage_ = other.teamMessage_ != null ? other.teamMessage_.Clone() : null; + entityChanged_ = other.entityChanged_ != null ? other.entityChanged_.Clone() : null; + clanChanged_ = other.clanChanged_ != null ? other.clanChanged_.Clone() : null; + clanMessage_ = other.clanMessage_ != null ? other.clanMessage_.Clone() : null; + cameraRays_ = other.cameraRays_ != null ? other.cameraRays_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppBroadcast Clone() { + return new AppBroadcast(this); + } + + /// Field number for the "teamChanged" field. + public const int TeamChangedFieldNumber = 4; + private global::RustPlusContracts.AppTeamChanged teamChanged_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTeamChanged TeamChanged { + get { return teamChanged_; } + set { + teamChanged_ = value; + } + } + + /// Field number for the "teamMessage" field. + public const int TeamMessageFieldNumber = 5; + private global::RustPlusContracts.AppNewTeamMessage teamMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppNewTeamMessage TeamMessage { + get { return teamMessage_; } + set { + teamMessage_ = value; + } + } + + /// Field number for the "entityChanged" field. + public const int EntityChangedFieldNumber = 6; + private global::RustPlusContracts.AppEntityChanged entityChanged_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEntityChanged EntityChanged { + get { return entityChanged_; } + set { + entityChanged_ = value; + } + } + + /// Field number for the "clanChanged" field. + public const int ClanChangedFieldNumber = 7; + private global::RustPlusContracts.AppClanChanged clanChanged_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppClanChanged ClanChanged { + get { return clanChanged_; } + set { + clanChanged_ = value; + } + } + + /// Field number for the "clanMessage" field. + public const int ClanMessageFieldNumber = 8; + private global::RustPlusContracts.AppNewClanMessage clanMessage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppNewClanMessage ClanMessage { + get { return clanMessage_; } + set { + clanMessage_ = value; + } + } + + /// Field number for the "cameraRays" field. + public const int CameraRaysFieldNumber = 10; + private global::RustPlusContracts.AppCameraRays cameraRays_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppCameraRays CameraRays { + get { return cameraRays_; } + set { + cameraRays_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppBroadcast); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppBroadcast other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(TeamChanged, other.TeamChanged)) return false; + if (!object.Equals(TeamMessage, other.TeamMessage)) return false; + if (!object.Equals(EntityChanged, other.EntityChanged)) return false; + if (!object.Equals(ClanChanged, other.ClanChanged)) return false; + if (!object.Equals(ClanMessage, other.ClanMessage)) return false; + if (!object.Equals(CameraRays, other.CameraRays)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (teamChanged_ != null) hash ^= TeamChanged.GetHashCode(); + if (teamMessage_ != null) hash ^= TeamMessage.GetHashCode(); + if (entityChanged_ != null) hash ^= EntityChanged.GetHashCode(); + if (clanChanged_ != null) hash ^= ClanChanged.GetHashCode(); + if (clanMessage_ != null) hash ^= ClanMessage.GetHashCode(); + if (cameraRays_ != null) hash ^= CameraRays.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (teamChanged_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TeamChanged); + } + if (teamMessage_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TeamMessage); + } + if (entityChanged_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EntityChanged); + } + if (clanChanged_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ClanChanged); + } + if (clanMessage_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ClanMessage); + } + if (cameraRays_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CameraRays); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (teamChanged_ != null) { + output.WriteRawTag(34); + output.WriteMessage(TeamChanged); + } + if (teamMessage_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TeamMessage); + } + if (entityChanged_ != null) { + output.WriteRawTag(50); + output.WriteMessage(EntityChanged); + } + if (clanChanged_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ClanChanged); + } + if (clanMessage_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ClanMessage); + } + if (cameraRays_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CameraRays); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (teamChanged_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamChanged); + } + if (teamMessage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamMessage); + } + if (entityChanged_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityChanged); + } + if (clanChanged_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanChanged); + } + if (clanMessage_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanMessage); + } + if (cameraRays_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CameraRays); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppBroadcast other) { + if (other == null) { + return; + } + if (other.teamChanged_ != null) { + if (teamChanged_ == null) { + TeamChanged = new global::RustPlusContracts.AppTeamChanged(); + } + TeamChanged.MergeFrom(other.TeamChanged); + } + if (other.teamMessage_ != null) { + if (teamMessage_ == null) { + TeamMessage = new global::RustPlusContracts.AppNewTeamMessage(); + } + TeamMessage.MergeFrom(other.TeamMessage); + } + if (other.entityChanged_ != null) { + if (entityChanged_ == null) { + EntityChanged = new global::RustPlusContracts.AppEntityChanged(); + } + EntityChanged.MergeFrom(other.EntityChanged); + } + if (other.clanChanged_ != null) { + if (clanChanged_ == null) { + ClanChanged = new global::RustPlusContracts.AppClanChanged(); + } + ClanChanged.MergeFrom(other.ClanChanged); + } + if (other.clanMessage_ != null) { + if (clanMessage_ == null) { + ClanMessage = new global::RustPlusContracts.AppNewClanMessage(); + } + ClanMessage.MergeFrom(other.ClanMessage); + } + if (other.cameraRays_ != null) { + if (cameraRays_ == null) { + CameraRays = new global::RustPlusContracts.AppCameraRays(); + } + CameraRays.MergeFrom(other.CameraRays); + } + _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 34: { + if (teamChanged_ == null) { + TeamChanged = new global::RustPlusContracts.AppTeamChanged(); + } + input.ReadMessage(TeamChanged); + break; + } + case 42: { + if (teamMessage_ == null) { + TeamMessage = new global::RustPlusContracts.AppNewTeamMessage(); + } + input.ReadMessage(TeamMessage); + break; + } + case 50: { + if (entityChanged_ == null) { + EntityChanged = new global::RustPlusContracts.AppEntityChanged(); + } + input.ReadMessage(EntityChanged); + break; + } + case 58: { + if (clanChanged_ == null) { + ClanChanged = new global::RustPlusContracts.AppClanChanged(); + } + input.ReadMessage(ClanChanged); + break; + } + case 66: { + if (clanMessage_ == null) { + ClanMessage = new global::RustPlusContracts.AppNewClanMessage(); + } + input.ReadMessage(ClanMessage); + break; + } + case 82: { + if (cameraRays_ == null) { + CameraRays = new global::RustPlusContracts.AppCameraRays(); + } + input.ReadMessage(CameraRays); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 34: { + if (teamChanged_ == null) { + TeamChanged = new global::RustPlusContracts.AppTeamChanged(); + } + input.ReadMessage(TeamChanged); + break; + } + case 42: { + if (teamMessage_ == null) { + TeamMessage = new global::RustPlusContracts.AppNewTeamMessage(); + } + input.ReadMessage(TeamMessage); + break; + } + case 50: { + if (entityChanged_ == null) { + EntityChanged = new global::RustPlusContracts.AppEntityChanged(); + } + input.ReadMessage(EntityChanged); + break; + } + case 58: { + if (clanChanged_ == null) { + ClanChanged = new global::RustPlusContracts.AppClanChanged(); + } + input.ReadMessage(ClanChanged); + break; + } + case 66: { + if (clanMessage_ == null) { + ClanMessage = new global::RustPlusContracts.AppNewClanMessage(); + } + input.ReadMessage(ClanMessage); + break; + } + case 82: { + if (cameraRays_ == null) { + CameraRays = new global::RustPlusContracts.AppCameraRays(); + } + input.ReadMessage(CameraRays); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppEmpty : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEmpty()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEmpty() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEmpty(AppEmpty other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEmpty Clone() { + return new AppEmpty(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppEmpty); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEmpty other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEmpty other) { + if (other == null) { + return; + } + _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; + } + } + #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; + } + } + } + #endif + + } + + public sealed partial class AppSendMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSendMessage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSendMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSendMessage(AppSendMessage other) : this() { + message_ = other.message_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSendMessage Clone() { + return new AppSendMessage(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private readonly static string MessageDefaultValue = ""; + + private string message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppSendMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppSendMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Message != other.Message) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMessage) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasMessage) { + output.WriteRawTag(10); + output.WriteString(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasMessage) { + output.WriteRawTag(10); + output.WriteString(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppSendMessage other) { + if (other == null) { + return; + } + if (other.HasMessage) { + Message = other.Message; + } + _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: { + Message = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Message = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppSetEntityValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSetEntityValue()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSetEntityValue() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSetEntityValue(AppSetEntityValue other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSetEntityValue Clone() { + return new AppSetEntityValue(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static bool ValueDefaultValue = false; + + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppSetEntityValue); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppSetEntityValue other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppSetEntityValue other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _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 8: { + Value = input.ReadBool(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppPromoteToLeader : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPromoteToLeader()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppPromoteToLeader() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppPromoteToLeader(AppPromoteToLeader other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppPromoteToLeader Clone() { + return new AppPromoteToLeader(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppPromoteToLeader); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppPromoteToLeader other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppPromoteToLeader other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + _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 8: { + SteamId = input.ReadUInt64(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppGetNexusAuth : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppGetNexusAuth()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppGetNexusAuth() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppGetNexusAuth(AppGetNexusAuth other) : this() { + appKey_ = other.appKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppGetNexusAuth Clone() { + return new AppGetNexusAuth(this); + } + + /// Field number for the "appKey" field. + public const int AppKeyFieldNumber = 1; + private readonly static string AppKeyDefaultValue = ""; + + private string appKey_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AppKey { + get { return appKey_ ?? AppKeyDefaultValue; } + set { + appKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "appKey" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAppKey { + get { return appKey_ != null; } + } + /// Clears the value of the "appKey" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAppKey() { + appKey_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppGetNexusAuth); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppGetNexusAuth other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AppKey != other.AppKey) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasAppKey) hash ^= AppKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasAppKey) { + output.WriteRawTag(10); + output.WriteString(AppKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasAppKey) { + output.WriteRawTag(10); + output.WriteString(AppKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasAppKey) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AppKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppGetNexusAuth other) { + if (other == null) { + return; + } + if (other.HasAppKey) { + AppKey = other.AppKey; + } + _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: { + AppKey = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + AppKey = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppSuccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppSuccess()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSuccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSuccess(AppSuccess other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppSuccess Clone() { + return new AppSuccess(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppSuccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppSuccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppSuccess other) { + if (other == null) { + return; + } + _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; + } + } + #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; + } + } + } + #endif + + } + + public sealed partial class AppError : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppError()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppError() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppError(AppError other) : this() { + error_ = other.error_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppError Clone() { + return new AppError(this); + } + + /// Field number for the "error" field. + public const int ErrorFieldNumber = 1; + private readonly static string ErrorDefaultValue = ""; + + private string error_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Error { + get { return error_ ?? ErrorDefaultValue; } + set { + error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasError { + get { return error_ != null; } + } + /// Clears the value of the "error" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearError() { + error_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppError); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppError other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Error != other.Error) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasError) hash ^= Error.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasError) { + output.WriteRawTag(10); + output.WriteString(Error); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasError) { + output.WriteRawTag(10); + output.WriteString(Error); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasError) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppError other) { + if (other == null) { + return; + } + if (other.HasError) { + Error = other.Error; + } + _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: { + Error = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Error = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppFlag : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppFlag()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppFlag() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppFlag(AppFlag other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppFlag Clone() { + return new AppFlag(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static bool ValueDefaultValue = false; + + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppFlag); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppFlag other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppFlag other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + _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 8: { + Value = input.ReadBool(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppInfo(AppInfo other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + headerImage_ = other.headerImage_; + url_ = other.url_; + map_ = other.map_; + mapSize_ = other.mapSize_; + wipeTime_ = other.wipeTime_; + players_ = other.players_; + maxPlayers_ = other.maxPlayers_; + queuedPlayers_ = other.queuedPlayers_; + seed_ = other.seed_; + salt_ = other.salt_; + logoImage_ = other.logoImage_; + nexus_ = other.nexus_; + nexusId_ = other.nexusId_; + nexusZone_ = other.nexusZone_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppInfo Clone() { + return new AppInfo(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "headerImage" field. + public const int HeaderImageFieldNumber = 2; + private readonly static string HeaderImageDefaultValue = ""; + + private string headerImage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string HeaderImage { + get { return headerImage_ ?? HeaderImageDefaultValue; } + set { + headerImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "headerImage" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeaderImage { + get { return headerImage_ != null; } + } + /// Clears the value of the "headerImage" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeaderImage() { + headerImage_ = null; + } + + /// Field number for the "url" field. + public const int UrlFieldNumber = 3; + private readonly static string UrlDefaultValue = ""; + + private string url_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Url { + get { return url_ ?? UrlDefaultValue; } + set { + url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "url" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUrl { + get { return url_ != null; } + } + /// Clears the value of the "url" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUrl() { + url_ = null; + } + + /// Field number for the "map" field. + public const int MapFieldNumber = 4; + private readonly static string MapDefaultValue = ""; + + private string map_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Map { + get { return map_ ?? MapDefaultValue; } + set { + map_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "map" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMap { + get { return map_ != null; } + } + /// Clears the value of the "map" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMap() { + map_ = null; + } + + /// Field number for the "mapSize" field. + public const int MapSizeFieldNumber = 5; + private readonly static uint MapSizeDefaultValue = 0; + + private uint mapSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MapSize { + get { if ((_hasBits0 & 1) != 0) { return mapSize_; } else { return MapSizeDefaultValue; } } + set { + _hasBits0 |= 1; + mapSize_ = value; + } + } + /// Gets whether the "mapSize" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMapSize { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "mapSize" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMapSize() { + _hasBits0 &= ~1; + } + + /// Field number for the "wipeTime" field. + public const int WipeTimeFieldNumber = 6; + private readonly static uint WipeTimeDefaultValue = 0; + + private uint wipeTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint WipeTime { + get { if ((_hasBits0 & 2) != 0) { return wipeTime_; } else { return WipeTimeDefaultValue; } } + set { + _hasBits0 |= 2; + wipeTime_ = value; + } + } + /// Gets whether the "wipeTime" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWipeTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "wipeTime" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWipeTime() { + _hasBits0 &= ~2; + } + + /// Field number for the "players" field. + public const int PlayersFieldNumber = 7; + private readonly static uint PlayersDefaultValue = 0; + + private uint players_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Players { + get { if ((_hasBits0 & 4) != 0) { return players_; } else { return PlayersDefaultValue; } } + set { + _hasBits0 |= 4; + players_ = value; + } + } + /// Gets whether the "players" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayers { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "players" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayers() { + _hasBits0 &= ~4; + } + + /// Field number for the "maxPlayers" field. + public const int MaxPlayersFieldNumber = 8; + private readonly static uint MaxPlayersDefaultValue = 0; + + private uint maxPlayers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint MaxPlayers { + get { if ((_hasBits0 & 8) != 0) { return maxPlayers_; } else { return MaxPlayersDefaultValue; } } + set { + _hasBits0 |= 8; + maxPlayers_ = value; + } + } + /// Gets whether the "maxPlayers" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMaxPlayers { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "maxPlayers" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMaxPlayers() { + _hasBits0 &= ~8; + } + + /// Field number for the "queuedPlayers" field. + public const int QueuedPlayersFieldNumber = 9; + private readonly static uint QueuedPlayersDefaultValue = 0; + + private uint queuedPlayers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint QueuedPlayers { + get { if ((_hasBits0 & 16) != 0) { return queuedPlayers_; } else { return QueuedPlayersDefaultValue; } } + set { + _hasBits0 |= 16; + queuedPlayers_ = value; + } + } + /// Gets whether the "queuedPlayers" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQueuedPlayers { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "queuedPlayers" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQueuedPlayers() { + _hasBits0 &= ~16; + } + + /// Field number for the "seed" field. + public const int SeedFieldNumber = 10; + private readonly static uint SeedDefaultValue = 0; + + private uint seed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Seed { + get { if ((_hasBits0 & 32) != 0) { return seed_; } else { return SeedDefaultValue; } } + set { + _hasBits0 |= 32; + seed_ = value; + } + } + /// Gets whether the "seed" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSeed { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "seed" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSeed() { + _hasBits0 &= ~32; + } + + /// Field number for the "salt" field. + public const int SaltFieldNumber = 11; + private readonly static uint SaltDefaultValue = 0; + + private uint salt_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Salt { + get { if ((_hasBits0 & 64) != 0) { return salt_; } else { return SaltDefaultValue; } } + set { + _hasBits0 |= 64; + salt_ = value; + } + } + /// Gets whether the "salt" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSalt { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "salt" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSalt() { + _hasBits0 &= ~64; + } + + /// Field number for the "logoImage" field. + public const int LogoImageFieldNumber = 12; + private readonly static string LogoImageDefaultValue = ""; + + private string logoImage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string LogoImage { + get { return logoImage_ ?? LogoImageDefaultValue; } + set { + logoImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "logoImage" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLogoImage { + get { return logoImage_ != null; } + } + /// Clears the value of the "logoImage" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLogoImage() { + logoImage_ = null; + } + + /// Field number for the "nexus" field. + public const int NexusFieldNumber = 13; + private readonly static string NexusDefaultValue = ""; + + private string nexus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Nexus { + get { return nexus_ ?? NexusDefaultValue; } + set { + nexus_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "nexus" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNexus { + get { return nexus_ != null; } + } + /// Clears the value of the "nexus" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNexus() { + nexus_ = null; + } + + /// Field number for the "nexusId" field. + public const int NexusIdFieldNumber = 14; + private readonly static int NexusIdDefaultValue = 0; + + private int nexusId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NexusId { + get { if ((_hasBits0 & 128) != 0) { return nexusId_; } else { return NexusIdDefaultValue; } } + set { + _hasBits0 |= 128; + nexusId_ = value; + } + } + /// Gets whether the "nexusId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNexusId { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "nexusId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNexusId() { + _hasBits0 &= ~128; + } + + /// Field number for the "nexusZone" field. + public const int NexusZoneFieldNumber = 15; + private readonly static string NexusZoneDefaultValue = ""; + + private string nexusZone_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NexusZone { + get { return nexusZone_ ?? NexusZoneDefaultValue; } + set { + nexusZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "nexusZone" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNexusZone { + get { return nexusZone_ != null; } + } + /// Clears the value of the "nexusZone" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNexusZone() { + nexusZone_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (HeaderImage != other.HeaderImage) return false; + if (Url != other.Url) return false; + if (Map != other.Map) return false; + if (MapSize != other.MapSize) return false; + if (WipeTime != other.WipeTime) return false; + if (Players != other.Players) return false; + if (MaxPlayers != other.MaxPlayers) return false; + if (QueuedPlayers != other.QueuedPlayers) return false; + if (Seed != other.Seed) return false; + if (Salt != other.Salt) return false; + if (LogoImage != other.LogoImage) return false; + if (Nexus != other.Nexus) return false; + if (NexusId != other.NexusId) return false; + if (NexusZone != other.NexusZone) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasHeaderImage) hash ^= HeaderImage.GetHashCode(); + if (HasUrl) hash ^= Url.GetHashCode(); + if (HasMap) hash ^= Map.GetHashCode(); + if (HasMapSize) hash ^= MapSize.GetHashCode(); + if (HasWipeTime) hash ^= WipeTime.GetHashCode(); + if (HasPlayers) hash ^= Players.GetHashCode(); + if (HasMaxPlayers) hash ^= MaxPlayers.GetHashCode(); + if (HasQueuedPlayers) hash ^= QueuedPlayers.GetHashCode(); + if (HasSeed) hash ^= Seed.GetHashCode(); + if (HasSalt) hash ^= Salt.GetHashCode(); + if (HasLogoImage) hash ^= LogoImage.GetHashCode(); + if (HasNexus) hash ^= Nexus.GetHashCode(); + if (HasNexusId) hash ^= NexusId.GetHashCode(); + if (HasNexusZone) hash ^= NexusZone.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasHeaderImage) { + output.WriteRawTag(18); + output.WriteString(HeaderImage); + } + if (HasUrl) { + output.WriteRawTag(26); + output.WriteString(Url); + } + if (HasMap) { + output.WriteRawTag(34); + output.WriteString(Map); + } + if (HasMapSize) { + output.WriteRawTag(40); + output.WriteUInt32(MapSize); + } + if (HasWipeTime) { + output.WriteRawTag(48); + output.WriteUInt32(WipeTime); + } + if (HasPlayers) { + output.WriteRawTag(56); + output.WriteUInt32(Players); + } + if (HasMaxPlayers) { + output.WriteRawTag(64); + output.WriteUInt32(MaxPlayers); + } + if (HasQueuedPlayers) { + output.WriteRawTag(72); + output.WriteUInt32(QueuedPlayers); + } + if (HasSeed) { + output.WriteRawTag(80); + output.WriteUInt32(Seed); + } + if (HasSalt) { + output.WriteRawTag(88); + output.WriteUInt32(Salt); + } + if (HasLogoImage) { + output.WriteRawTag(98); + output.WriteString(LogoImage); + } + if (HasNexus) { + output.WriteRawTag(106); + output.WriteString(Nexus); + } + if (HasNexusId) { + output.WriteRawTag(112); + output.WriteInt32(NexusId); + } + if (HasNexusZone) { + output.WriteRawTag(122); + output.WriteString(NexusZone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasHeaderImage) { + output.WriteRawTag(18); + output.WriteString(HeaderImage); + } + if (HasUrl) { + output.WriteRawTag(26); + output.WriteString(Url); + } + if (HasMap) { + output.WriteRawTag(34); + output.WriteString(Map); + } + if (HasMapSize) { + output.WriteRawTag(40); + output.WriteUInt32(MapSize); + } + if (HasWipeTime) { + output.WriteRawTag(48); + output.WriteUInt32(WipeTime); + } + if (HasPlayers) { + output.WriteRawTag(56); + output.WriteUInt32(Players); + } + if (HasMaxPlayers) { + output.WriteRawTag(64); + output.WriteUInt32(MaxPlayers); + } + if (HasQueuedPlayers) { + output.WriteRawTag(72); + output.WriteUInt32(QueuedPlayers); + } + if (HasSeed) { + output.WriteRawTag(80); + output.WriteUInt32(Seed); + } + if (HasSalt) { + output.WriteRawTag(88); + output.WriteUInt32(Salt); + } + if (HasLogoImage) { + output.WriteRawTag(98); + output.WriteString(LogoImage); + } + if (HasNexus) { + output.WriteRawTag(106); + output.WriteString(Nexus); + } + if (HasNexusId) { + output.WriteRawTag(112); + output.WriteInt32(NexusId); + } + if (HasNexusZone) { + output.WriteRawTag(122); + output.WriteString(NexusZone); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasHeaderImage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HeaderImage); + } + if (HasUrl) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); + } + if (HasMap) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Map); + } + if (HasMapSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MapSize); + } + if (HasWipeTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(WipeTime); + } + if (HasPlayers) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Players); + } + if (HasMaxPlayers) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxPlayers); + } + if (HasQueuedPlayers) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(QueuedPlayers); + } + if (HasSeed) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Seed); + } + if (HasSalt) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Salt); + } + if (HasLogoImage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(LogoImage); + } + if (HasNexus) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Nexus); + } + if (HasNexusId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NexusId); + } + if (HasNexusZone) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NexusZone); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppInfo other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasHeaderImage) { + HeaderImage = other.HeaderImage; + } + if (other.HasUrl) { + Url = other.Url; + } + if (other.HasMap) { + Map = other.Map; + } + if (other.HasMapSize) { + MapSize = other.MapSize; + } + if (other.HasWipeTime) { + WipeTime = other.WipeTime; + } + if (other.HasPlayers) { + Players = other.Players; + } + if (other.HasMaxPlayers) { + MaxPlayers = other.MaxPlayers; + } + if (other.HasQueuedPlayers) { + QueuedPlayers = other.QueuedPlayers; + } + if (other.HasSeed) { + Seed = other.Seed; + } + if (other.HasSalt) { + Salt = other.Salt; + } + if (other.HasLogoImage) { + LogoImage = other.LogoImage; + } + if (other.HasNexus) { + Nexus = other.Nexus; + } + if (other.HasNexusId) { + NexusId = other.NexusId; + } + if (other.HasNexusZone) { + NexusZone = other.NexusZone; + } + _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: { + Name = input.ReadString(); + break; + } + case 18: { + HeaderImage = input.ReadString(); + break; + } + case 26: { + Url = input.ReadString(); + break; + } + case 34: { + Map = input.ReadString(); + break; + } + case 40: { + MapSize = input.ReadUInt32(); + break; + } + case 48: { + WipeTime = input.ReadUInt32(); + break; + } + case 56: { + Players = input.ReadUInt32(); + break; + } + case 64: { + MaxPlayers = input.ReadUInt32(); + break; + } + case 72: { + QueuedPlayers = input.ReadUInt32(); + break; + } + case 80: { + Seed = input.ReadUInt32(); + break; + } + case 88: { + Salt = input.ReadUInt32(); + break; + } + case 98: { + LogoImage = input.ReadString(); + break; + } + case 106: { + Nexus = input.ReadString(); + break; + } + case 112: { + NexusId = input.ReadInt32(); + break; + } + case 122: { + NexusZone = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + HeaderImage = input.ReadString(); + break; + } + case 26: { + Url = input.ReadString(); + break; + } + case 34: { + Map = input.ReadString(); + break; + } + case 40: { + MapSize = input.ReadUInt32(); + break; + } + case 48: { + WipeTime = input.ReadUInt32(); + break; + } + case 56: { + Players = input.ReadUInt32(); + break; + } + case 64: { + MaxPlayers = input.ReadUInt32(); + break; + } + case 72: { + QueuedPlayers = input.ReadUInt32(); + break; + } + case 80: { + Seed = input.ReadUInt32(); + break; + } + case 88: { + Salt = input.ReadUInt32(); + break; + } + case 98: { + LogoImage = input.ReadString(); + break; + } + case 106: { + Nexus = input.ReadString(); + break; + } + case 112: { + NexusId = input.ReadInt32(); + break; + } + case 122: { + NexusZone = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppTime : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTime()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTime() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTime(AppTime other) : this() { + _hasBits0 = other._hasBits0; + dayLengthMinutes_ = other.dayLengthMinutes_; + timeScale_ = other.timeScale_; + sunrise_ = other.sunrise_; + sunset_ = other.sunset_; + time_ = other.time_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTime Clone() { + return new AppTime(this); + } + + /// Field number for the "dayLengthMinutes" field. + public const int DayLengthMinutesFieldNumber = 1; + private readonly static float DayLengthMinutesDefaultValue = 0F; + + private float dayLengthMinutes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float DayLengthMinutes { + get { if ((_hasBits0 & 1) != 0) { return dayLengthMinutes_; } else { return DayLengthMinutesDefaultValue; } } + set { + _hasBits0 |= 1; + dayLengthMinutes_ = value; + } + } + /// Gets whether the "dayLengthMinutes" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDayLengthMinutes { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "dayLengthMinutes" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDayLengthMinutes() { + _hasBits0 &= ~1; + } + + /// Field number for the "timeScale" field. + public const int TimeScaleFieldNumber = 2; + private readonly static float TimeScaleDefaultValue = 0F; + + private float timeScale_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float TimeScale { + get { if ((_hasBits0 & 2) != 0) { return timeScale_; } else { return TimeScaleDefaultValue; } } + set { + _hasBits0 |= 2; + timeScale_ = value; + } + } + /// Gets whether the "timeScale" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTimeScale { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "timeScale" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTimeScale() { + _hasBits0 &= ~2; + } + + /// Field number for the "sunrise" field. + public const int SunriseFieldNumber = 3; + private readonly static float SunriseDefaultValue = 0F; + + private float sunrise_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Sunrise { + get { if ((_hasBits0 & 4) != 0) { return sunrise_; } else { return SunriseDefaultValue; } } + set { + _hasBits0 |= 4; + sunrise_ = value; + } + } + /// Gets whether the "sunrise" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSunrise { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "sunrise" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSunrise() { + _hasBits0 &= ~4; + } + + /// Field number for the "sunset" field. + public const int SunsetFieldNumber = 4; + private readonly static float SunsetDefaultValue = 0F; + + private float sunset_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Sunset { + get { if ((_hasBits0 & 8) != 0) { return sunset_; } else { return SunsetDefaultValue; } } + set { + _hasBits0 |= 8; + sunset_ = value; + } + } + /// Gets whether the "sunset" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSunset { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "sunset" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSunset() { + _hasBits0 &= ~8; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 5; + private readonly static float TimeDefaultValue = 0F; + + private float time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Time { + get { if ((_hasBits0 & 16) != 0) { return time_; } else { return TimeDefaultValue; } } + set { + _hasBits0 |= 16; + time_ = value; + } + } + /// Gets whether the "time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTime() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppTime); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppTime other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DayLengthMinutes, other.DayLengthMinutes)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TimeScale, other.TimeScale)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Sunrise, other.Sunrise)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Sunset, other.Sunset)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Time, other.Time)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasDayLengthMinutes) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DayLengthMinutes); + if (HasTimeScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TimeScale); + if (HasSunrise) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Sunrise); + if (HasSunset) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Sunset); + if (HasTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Time); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasDayLengthMinutes) { + output.WriteRawTag(13); + output.WriteFloat(DayLengthMinutes); + } + if (HasTimeScale) { + output.WriteRawTag(21); + output.WriteFloat(TimeScale); + } + if (HasSunrise) { + output.WriteRawTag(29); + output.WriteFloat(Sunrise); + } + if (HasSunset) { + output.WriteRawTag(37); + output.WriteFloat(Sunset); + } + if (HasTime) { + output.WriteRawTag(45); + output.WriteFloat(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasDayLengthMinutes) { + output.WriteRawTag(13); + output.WriteFloat(DayLengthMinutes); + } + if (HasTimeScale) { + output.WriteRawTag(21); + output.WriteFloat(TimeScale); + } + if (HasSunrise) { + output.WriteRawTag(29); + output.WriteFloat(Sunrise); + } + if (HasSunset) { + output.WriteRawTag(37); + output.WriteFloat(Sunset); + } + if (HasTime) { + output.WriteRawTag(45); + output.WriteFloat(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasDayLengthMinutes) { + size += 1 + 4; + } + if (HasTimeScale) { + size += 1 + 4; + } + if (HasSunrise) { + size += 1 + 4; + } + if (HasSunset) { + size += 1 + 4; + } + if (HasTime) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppTime other) { + if (other == null) { + return; + } + if (other.HasDayLengthMinutes) { + DayLengthMinutes = other.DayLengthMinutes; + } + if (other.HasTimeScale) { + TimeScale = other.TimeScale; + } + if (other.HasSunrise) { + Sunrise = other.Sunrise; + } + if (other.HasSunset) { + Sunset = other.Sunset; + } + if (other.HasTime) { + Time = other.Time; + } + _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 13: { + DayLengthMinutes = input.ReadFloat(); + break; + } + case 21: { + TimeScale = input.ReadFloat(); + break; + } + case 29: { + Sunrise = input.ReadFloat(); + break; + } + case 37: { + Sunset = input.ReadFloat(); + break; + } + case 45: { + Time = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + DayLengthMinutes = input.ReadFloat(); + break; + } + case 21: { + TimeScale = input.ReadFloat(); + break; + } + case 29: { + Sunrise = input.ReadFloat(); + break; + } + case 37: { + Sunset = input.ReadFloat(); + break; + } + case 45: { + Time = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMap(AppMap other) : this() { + _hasBits0 = other._hasBits0; + width_ = other.width_; + height_ = other.height_; + jpgImage_ = other.jpgImage_; + oceanMargin_ = other.oceanMargin_; + monuments_ = other.monuments_.Clone(); + background_ = other.background_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMap Clone() { + return new AppMap(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private readonly static uint WidthDefaultValue = 0; + + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private readonly static uint HeightDefaultValue = 0; + + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + /// Field number for the "jpgImage" field. + public const int JpgImageFieldNumber = 3; + private readonly static pb::ByteString JpgImageDefaultValue = pb::ByteString.Empty; + + private pb::ByteString jpgImage_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString JpgImage { + get { return jpgImage_ ?? JpgImageDefaultValue; } + set { + jpgImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "jpgImage" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasJpgImage { + get { return jpgImage_ != null; } + } + /// Clears the value of the "jpgImage" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearJpgImage() { + jpgImage_ = null; + } + + /// Field number for the "oceanMargin" field. + public const int OceanMarginFieldNumber = 4; + private readonly static int OceanMarginDefaultValue = 0; + + private int oceanMargin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int OceanMargin { + get { if ((_hasBits0 & 4) != 0) { return oceanMargin_; } else { return OceanMarginDefaultValue; } } + set { + _hasBits0 |= 4; + oceanMargin_ = value; + } + } + /// Gets whether the "oceanMargin" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOceanMargin { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "oceanMargin" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOceanMargin() { + _hasBits0 &= ~4; + } + + /// Field number for the "monuments" field. + public const int MonumentsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_monuments_codec + = pb::FieldCodec.ForMessage(42, global::RustPlusContracts.AppMap.Types.Monument.Parser); + private readonly pbc::RepeatedField monuments_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Monuments { + get { return monuments_; } + } + + /// Field number for the "background" field. + public const int BackgroundFieldNumber = 6; + private readonly static string BackgroundDefaultValue = ""; + + private string background_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Background { + get { return background_ ?? BackgroundDefaultValue; } + set { + background_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "background" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasBackground { + get { return background_ != null; } + } + /// Clears the value of the "background" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearBackground() { + background_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Width != other.Width) return false; + if (Height != other.Height) return false; + if (JpgImage != other.JpgImage) return false; + if (OceanMargin != other.OceanMargin) return false; + if(!monuments_.Equals(other.monuments_)) return false; + if (Background != other.Background) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasJpgImage) hash ^= JpgImage.GetHashCode(); + if (HasOceanMargin) hash ^= OceanMargin.GetHashCode(); + hash ^= monuments_.GetHashCode(); + if (HasBackground) hash ^= Background.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasWidth) { + output.WriteRawTag(8); + output.WriteUInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(16); + output.WriteUInt32(Height); + } + if (HasJpgImage) { + output.WriteRawTag(26); + output.WriteBytes(JpgImage); + } + if (HasOceanMargin) { + output.WriteRawTag(32); + output.WriteInt32(OceanMargin); + } + monuments_.WriteTo(output, _repeated_monuments_codec); + if (HasBackground) { + output.WriteRawTag(50); + output.WriteString(Background); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasWidth) { + output.WriteRawTag(8); + output.WriteUInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(16); + output.WriteUInt32(Height); + } + if (HasJpgImage) { + output.WriteRawTag(26); + output.WriteBytes(JpgImage); + } + if (HasOceanMargin) { + output.WriteRawTag(32); + output.WriteInt32(OceanMargin); + } + monuments_.WriteTo(ref output, _repeated_monuments_codec); + if (HasBackground) { + output.WriteRawTag(50); + output.WriteString(Background); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasWidth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + if (HasHeight) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (HasJpgImage) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(JpgImage); + } + if (HasOceanMargin) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(OceanMargin); + } + size += monuments_.CalculateSize(_repeated_monuments_codec); + if (HasBackground) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Background); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppMap other) { + if (other == null) { + return; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + if (other.HasJpgImage) { + JpgImage = other.JpgImage; + } + if (other.HasOceanMargin) { + OceanMargin = other.OceanMargin; + } + monuments_.Add(other.monuments_); + if (other.HasBackground) { + Background = other.Background; + } + _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 8: { + Width = input.ReadUInt32(); + break; + } + case 16: { + Height = input.ReadUInt32(); + break; + } + case 26: { + JpgImage = input.ReadBytes(); + break; + } + case 32: { + OceanMargin = input.ReadInt32(); + break; + } + case 42: { + monuments_.AddEntriesFrom(input, _repeated_monuments_codec); + break; + } + case 50: { + Background = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Width = input.ReadUInt32(); + break; + } + case 16: { + Height = input.ReadUInt32(); + break; + } + case 26: { + JpgImage = input.ReadBytes(); + break; + } + case 32: { + OceanMargin = input.ReadInt32(); + break; + } + case 42: { + monuments_.AddEntriesFrom(ref input, _repeated_monuments_codec); + break; + } + case 50: { + Background = input.ReadString(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppMap message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Monument : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Monument()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppMap.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monument() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monument(Monument other) : this() { + _hasBits0 = other._hasBits0; + token_ = other.token_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Monument Clone() { + return new Monument(this); + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 1; + private readonly static string TokenDefaultValue = ""; + + private string token_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_ ?? TokenDefaultValue; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasToken { + get { return token_ != null; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearToken() { + token_ = null; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 2; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 3; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Monument); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Monument other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Token != other.Token) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasToken) hash ^= Token.GetHashCode(); + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasToken) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (HasX) { + output.WriteRawTag(21); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasToken) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (HasX) { + output.WriteRawTag(21); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(29); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Monument other) { + if (other == null) { + return; + } + if (other.HasToken) { + Token = other.Token; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _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: { + Token = input.ReadString(); + break; + } + case 21: { + X = input.ReadFloat(); + break; + } + case 29: { + Y = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Token = input.ReadString(); + break; + } + case 21: { + X = input.ReadFloat(); + break; + } + case 29: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class AppEntityInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityInfo(AppEntityInfo other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityInfo Clone() { + return new AppEntityInfo(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private readonly static global::RustPlusContracts.AppEntityType TypeDefaultValue = global::RustPlusContracts.AppEntityType.Switch; + + private global::RustPlusContracts.AppEntityType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEntityType Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 3; + private global::RustPlusContracts.AppEntityPayload payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEntityPayload Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppEntityInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEntityInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!object.Equals(Payload, other.Payload)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasType) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (payload_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEntityInfo other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + Payload.MergeFrom(other.Payload); + } + _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 8: { + Type = (global::RustPlusContracts.AppEntityType) input.ReadEnum(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + input.ReadMessage(Payload); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Type = (global::RustPlusContracts.AppEntityType) input.ReadEnum(); + break; + } + case 26: { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppEntityPayload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityPayload()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityPayload() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityPayload(AppEntityPayload other) : this() { + _hasBits0 = other._hasBits0; + value_ = other.value_; + items_ = other.items_.Clone(); + capacity_ = other.capacity_; + hasProtection_ = other.hasProtection_; + protectionExpiry_ = other.protectionExpiry_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityPayload Clone() { + return new AppEntityPayload(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private readonly static bool ValueDefaultValue = false; + + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Value { + get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } } + set { + _hasBits0 |= 1; + value_ = value; + } + } + /// Gets whether the "value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasValue { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearValue() { + _hasBits0 &= ~1; + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::RustPlusContracts.AppEntityPayload.Types.Item.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Items { + get { return items_; } + } + + /// Field number for the "capacity" field. + public const int CapacityFieldNumber = 3; + private readonly static int CapacityDefaultValue = 0; + + private int capacity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Capacity { + get { if ((_hasBits0 & 2) != 0) { return capacity_; } else { return CapacityDefaultValue; } } + set { + _hasBits0 |= 2; + capacity_ = value; + } + } + /// Gets whether the "capacity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCapacity { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "capacity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCapacity() { + _hasBits0 &= ~2; + } + + /// Field number for the "hasProtection" field. + public const int HasProtectionFieldNumber = 4; + private readonly static bool HasProtectionDefaultValue = false; + + private bool hasProtection_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProtection { + get { if ((_hasBits0 & 4) != 0) { return hasProtection_; } else { return HasProtectionDefaultValue; } } + set { + _hasBits0 |= 4; + hasProtection_ = value; + } + } + /// Gets whether the "hasProtection" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHasProtection { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "hasProtection" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHasProtection() { + _hasBits0 &= ~4; + } + + /// Field number for the "protectionExpiry" field. + public const int ProtectionExpiryFieldNumber = 5; + private readonly static uint ProtectionExpiryDefaultValue = 0; + + private uint protectionExpiry_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint ProtectionExpiry { + get { if ((_hasBits0 & 8) != 0) { return protectionExpiry_; } else { return ProtectionExpiryDefaultValue; } } + set { + _hasBits0 |= 8; + protectionExpiry_ = value; + } + } + /// Gets whether the "protectionExpiry" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasProtectionExpiry { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "protectionExpiry" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearProtectionExpiry() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppEntityPayload); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEntityPayload other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Value != other.Value) return false; + if(!items_.Equals(other.items_)) return false; + if (Capacity != other.Capacity) return false; + if (HasProtection != other.HasProtection) return false; + if (ProtectionExpiry != other.ProtectionExpiry) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasValue) hash ^= Value.GetHashCode(); + hash ^= items_.GetHashCode(); + if (HasCapacity) hash ^= Capacity.GetHashCode(); + if (HasHasProtection) hash ^= HasProtection.GetHashCode(); + if (HasProtectionExpiry) hash ^= ProtectionExpiry.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + items_.WriteTo(output, _repeated_items_codec); + if (HasCapacity) { + output.WriteRawTag(24); + output.WriteInt32(Capacity); + } + if (HasHasProtection) { + output.WriteRawTag(32); + output.WriteBool(HasProtection); + } + if (HasProtectionExpiry) { + output.WriteRawTag(40); + output.WriteUInt32(ProtectionExpiry); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasValue) { + output.WriteRawTag(8); + output.WriteBool(Value); + } + items_.WriteTo(ref output, _repeated_items_codec); + if (HasCapacity) { + output.WriteRawTag(24); + output.WriteInt32(Capacity); + } + if (HasHasProtection) { + output.WriteRawTag(32); + output.WriteBool(HasProtection); + } + if (HasProtectionExpiry) { + output.WriteRawTag(40); + output.WriteUInt32(ProtectionExpiry); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasValue) { + size += 1 + 1; + } + size += items_.CalculateSize(_repeated_items_codec); + if (HasCapacity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Capacity); + } + if (HasHasProtection) { + size += 1 + 1; + } + if (HasProtectionExpiry) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ProtectionExpiry); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEntityPayload other) { + if (other == null) { + return; + } + if (other.HasValue) { + Value = other.Value; + } + items_.Add(other.items_); + if (other.HasCapacity) { + Capacity = other.Capacity; + } + if (other.HasHasProtection) { + HasProtection = other.HasProtection; + } + if (other.HasProtectionExpiry) { + ProtectionExpiry = other.ProtectionExpiry; + } + _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 8: { + Value = input.ReadBool(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + case 24: { + Capacity = input.ReadInt32(); + break; + } + case 32: { + HasProtection = input.ReadBool(); + break; + } + case 40: { + ProtectionExpiry = input.ReadUInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Value = input.ReadBool(); + break; + } + case 18: { + items_.AddEntriesFrom(ref input, _repeated_items_codec); + break; + } + case 24: { + Capacity = input.ReadInt32(); + break; + } + case 32: { + HasProtection = input.ReadBool(); + break; + } + case 40: { + ProtectionExpiry = input.ReadUInt32(); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppEntityPayload message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Item : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppEntityPayload.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item(Item other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + quantity_ = other.quantity_; + itemIsBlueprint_ = other.itemIsBlueprint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Item Clone() { + return new Item(this); + } + + /// Field number for the "itemId" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "itemId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "itemId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "quantity" field. + public const int QuantityFieldNumber = 2; + private readonly static int QuantityDefaultValue = 0; + + private int quantity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Quantity { + get { if ((_hasBits0 & 2) != 0) { return quantity_; } else { return QuantityDefaultValue; } } + set { + _hasBits0 |= 2; + quantity_ = value; + } + } + /// Gets whether the "quantity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuantity { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "quantity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuantity() { + _hasBits0 &= ~2; + } + + /// Field number for the "itemIsBlueprint" field. + public const int ItemIsBlueprintFieldNumber = 3; + private readonly static bool ItemIsBlueprintDefaultValue = false; + + private bool itemIsBlueprint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ItemIsBlueprint { + get { if ((_hasBits0 & 4) != 0) { return itemIsBlueprint_; } else { return ItemIsBlueprintDefaultValue; } } + set { + _hasBits0 |= 4; + itemIsBlueprint_ = value; + } + } + /// Gets whether the "itemIsBlueprint" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemIsBlueprint { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "itemIsBlueprint" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemIsBlueprint() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Quantity != other.Quantity) return false; + if (ItemIsBlueprint != other.ItemIsBlueprint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasQuantity) hash ^= Quantity.GetHashCode(); + if (HasItemIsBlueprint) hash ^= ItemIsBlueprint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasQuantity) { + output.WriteRawTag(16); + output.WriteInt32(Quantity); + } + if (HasItemIsBlueprint) { + output.WriteRawTag(24); + output.WriteBool(ItemIsBlueprint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasQuantity) { + output.WriteRawTag(16); + output.WriteInt32(Quantity); + } + if (HasItemIsBlueprint) { + output.WriteRawTag(24); + output.WriteBool(ItemIsBlueprint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasQuantity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity); + } + if (HasItemIsBlueprint) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Item other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasQuantity) { + Quantity = other.Quantity; + } + if (other.HasItemIsBlueprint) { + ItemIsBlueprint = other.ItemIsBlueprint; + } + _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 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Quantity = input.ReadInt32(); + break; + } + case 24: { + ItemIsBlueprint = input.ReadBool(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Quantity = input.ReadInt32(); + break; + } + case 24: { + ItemIsBlueprint = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class AppTeamInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamInfo(AppTeamInfo other) : this() { + _hasBits0 = other._hasBits0; + leaderSteamId_ = other.leaderSteamId_; + members_ = other.members_.Clone(); + mapNotes_ = other.mapNotes_.Clone(); + leaderMapNotes_ = other.leaderMapNotes_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamInfo Clone() { + return new AppTeamInfo(this); + } + + /// Field number for the "leaderSteamId" field. + public const int LeaderSteamIdFieldNumber = 1; + private readonly static ulong LeaderSteamIdDefaultValue = 0UL; + + private ulong leaderSteamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong LeaderSteamId { + get { if ((_hasBits0 & 1) != 0) { return leaderSteamId_; } else { return LeaderSteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + leaderSteamId_ = value; + } + } + /// Gets whether the "leaderSteamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLeaderSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "leaderSteamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLeaderSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "members" field. + public const int MembersFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_members_codec + = pb::FieldCodec.ForMessage(18, global::RustPlusContracts.AppTeamInfo.Types.Member.Parser); + private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Members { + get { return members_; } + } + + /// Field number for the "mapNotes" field. + public const int MapNotesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_mapNotes_codec + = pb::FieldCodec.ForMessage(26, global::RustPlusContracts.AppTeamInfo.Types.Note.Parser); + private readonly pbc::RepeatedField mapNotes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MapNotes { + get { return mapNotes_; } + } + + /// Field number for the "leaderMapNotes" field. + public const int LeaderMapNotesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_leaderMapNotes_codec + = pb::FieldCodec.ForMessage(34, global::RustPlusContracts.AppTeamInfo.Types.Note.Parser); + private readonly pbc::RepeatedField leaderMapNotes_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField LeaderMapNotes { + get { return leaderMapNotes_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppTeamInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppTeamInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LeaderSteamId != other.LeaderSteamId) return false; + if(!members_.Equals(other.members_)) return false; + if(!mapNotes_.Equals(other.mapNotes_)) return false; + if(!leaderMapNotes_.Equals(other.leaderMapNotes_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasLeaderSteamId) hash ^= LeaderSteamId.GetHashCode(); + hash ^= members_.GetHashCode(); + hash ^= mapNotes_.GetHashCode(); + hash ^= leaderMapNotes_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasLeaderSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(LeaderSteamId); + } + members_.WriteTo(output, _repeated_members_codec); + mapNotes_.WriteTo(output, _repeated_mapNotes_codec); + leaderMapNotes_.WriteTo(output, _repeated_leaderMapNotes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasLeaderSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(LeaderSteamId); + } + members_.WriteTo(ref output, _repeated_members_codec); + mapNotes_.WriteTo(ref output, _repeated_mapNotes_codec); + leaderMapNotes_.WriteTo(ref output, _repeated_leaderMapNotes_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasLeaderSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LeaderSteamId); + } + size += members_.CalculateSize(_repeated_members_codec); + size += mapNotes_.CalculateSize(_repeated_mapNotes_codec); + size += leaderMapNotes_.CalculateSize(_repeated_leaderMapNotes_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppTeamInfo other) { + if (other == null) { + return; + } + if (other.HasLeaderSteamId) { + LeaderSteamId = other.LeaderSteamId; + } + members_.Add(other.members_); + mapNotes_.Add(other.mapNotes_); + leaderMapNotes_.Add(other.leaderMapNotes_); + _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 8: { + LeaderSteamId = input.ReadUInt64(); + break; + } + case 18: { + members_.AddEntriesFrom(input, _repeated_members_codec); + break; + } + case 26: { + mapNotes_.AddEntriesFrom(input, _repeated_mapNotes_codec); + break; + } + case 34: { + leaderMapNotes_.AddEntriesFrom(input, _repeated_leaderMapNotes_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + LeaderSteamId = input.ReadUInt64(); + break; + } + case 18: { + members_.AddEntriesFrom(ref input, _repeated_members_codec); + break; + } + case 26: { + mapNotes_.AddEntriesFrom(ref input, _repeated_mapNotes_codec); + break; + } + case 34: { + leaderMapNotes_.AddEntriesFrom(ref input, _repeated_leaderMapNotes_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppTeamInfo message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class Member : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Member()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppTeamInfo.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member(Member other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + name_ = other.name_; + x_ = other.x_; + y_ = other.y_; + isOnline_ = other.isOnline_; + spawnTime_ = other.spawnTime_; + isAlive_ = other.isAlive_; + deathTime_ = other.deathTime_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Member Clone() { + return new Member(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 3; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 4; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + /// Field number for the "isOnline" field. + public const int IsOnlineFieldNumber = 5; + private readonly static bool IsOnlineDefaultValue = false; + + private bool isOnline_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsOnline { + get { if ((_hasBits0 & 8) != 0) { return isOnline_; } else { return IsOnlineDefaultValue; } } + set { + _hasBits0 |= 8; + isOnline_ = value; + } + } + /// Gets whether the "isOnline" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsOnline { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "isOnline" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsOnline() { + _hasBits0 &= ~8; + } + + /// Field number for the "spawnTime" field. + public const int SpawnTimeFieldNumber = 6; + private readonly static uint SpawnTimeDefaultValue = 0; + + private uint spawnTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SpawnTime { + get { if ((_hasBits0 & 16) != 0) { return spawnTime_; } else { return SpawnTimeDefaultValue; } } + set { + _hasBits0 |= 16; + spawnTime_ = value; + } + } + /// Gets whether the "spawnTime" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSpawnTime { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "spawnTime" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSpawnTime() { + _hasBits0 &= ~16; + } + + /// Field number for the "isAlive" field. + public const int IsAliveFieldNumber = 7; + private readonly static bool IsAliveDefaultValue = false; + + private bool isAlive_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsAlive { + get { if ((_hasBits0 & 32) != 0) { return isAlive_; } else { return IsAliveDefaultValue; } } + set { + _hasBits0 |= 32; + isAlive_ = value; + } + } + /// Gets whether the "isAlive" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasIsAlive { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "isAlive" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearIsAlive() { + _hasBits0 &= ~32; + } + + /// Field number for the "deathTime" field. + public const int DeathTimeFieldNumber = 8; + private readonly static uint DeathTimeDefaultValue = 0; + + private uint deathTime_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint DeathTime { + get { if ((_hasBits0 & 64) != 0) { return deathTime_; } else { return DeathTimeDefaultValue; } } + set { + _hasBits0 |= 64; + deathTime_ = value; + } + } + /// Gets whether the "deathTime" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDeathTime { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "deathTime" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDeathTime() { + _hasBits0 &= ~64; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Member); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Member other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + if (Name != other.Name) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (IsOnline != other.IsOnline) return false; + if (SpawnTime != other.SpawnTime) return false; + if (IsAlive != other.IsAlive) return false; + if (DeathTime != other.DeathTime) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasIsOnline) hash ^= IsOnline.GetHashCode(); + if (HasSpawnTime) hash ^= SpawnTime.GetHashCode(); + if (HasIsAlive) hash ^= IsAlive.GetHashCode(); + if (HasDeathTime) hash ^= DeathTime.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (HasIsOnline) { + output.WriteRawTag(40); + output.WriteBool(IsOnline); + } + if (HasSpawnTime) { + output.WriteRawTag(48); + output.WriteUInt32(SpawnTime); + } + if (HasIsAlive) { + output.WriteRawTag(56); + output.WriteBool(IsAlive); + } + if (HasDeathTime) { + output.WriteRawTag(64); + output.WriteUInt32(DeathTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (HasIsOnline) { + output.WriteRawTag(40); + output.WriteBool(IsOnline); + } + if (HasSpawnTime) { + output.WriteRawTag(48); + output.WriteUInt32(SpawnTime); + } + if (HasIsAlive) { + output.WriteRawTag(56); + output.WriteBool(IsAlive); + } + if (HasDeathTime) { + output.WriteRawTag(64); + output.WriteUInt32(DeathTime); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasIsOnline) { + size += 1 + 1; + } + if (HasSpawnTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpawnTime); + } + if (HasIsAlive) { + size += 1 + 1; + } + if (HasDeathTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DeathTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Member other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasIsOnline) { + IsOnline = other.IsOnline; + } + if (other.HasSpawnTime) { + SpawnTime = other.SpawnTime; + } + if (other.HasIsAlive) { + IsAlive = other.IsAlive; + } + if (other.HasDeathTime) { + DeathTime = other.DeathTime; + } + _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 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + break; + } + case 40: { + IsOnline = input.ReadBool(); + break; + } + case 48: { + SpawnTime = input.ReadUInt32(); + break; + } + case 56: { + IsAlive = input.ReadBool(); + break; + } + case 64: { + DeathTime = input.ReadUInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + break; + } + case 40: { + IsOnline = input.ReadBool(); + break; + } + case 48: { + SpawnTime = input.ReadUInt32(); + break; + } + case 56: { + IsAlive = input.ReadBool(); + break; + } + case 64: { + DeathTime = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Note : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Note()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppTeamInfo.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note(Note other) : this() { + _hasBits0 = other._hasBits0; + type_ = other.type_; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Note Clone() { + return new Note(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static int TypeDefaultValue = 0; + + private int type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Type { + get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 1; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~1; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 3; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 2) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 2; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~2; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 4; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 4) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 4; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Note); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Note other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasType) hash ^= Type.GetHashCode(); + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasType) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasType) { + output.WriteRawTag(16); + output.WriteInt32(Type); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type); + } + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Note other) { + if (other == null) { + return; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _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 16: { + Type = input.ReadInt32(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 16: { + Type = input.ReadInt32(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class AppTeamMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamMessage()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamMessage(AppTeamMessage other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + name_ = other.name_; + message_ = other.message_; + color_ = other.color_; + time_ = other.time_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamMessage Clone() { + return new AppTeamMessage(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 3; + private readonly static string MessageDefaultValue = ""; + + private string message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 4; + private readonly static string ColorDefaultValue = ""; + + private string color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Color { + get { return color_ ?? ColorDefaultValue; } + set { + color_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "color" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasColor { + get { return color_ != null; } + } + /// Clears the value of the "color" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearColor() { + color_ = null; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 5; + private readonly static uint TimeDefaultValue = 0; + + private uint time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Time { + get { if ((_hasBits0 & 2) != 0) { return time_; } else { return TimeDefaultValue; } } + set { + _hasBits0 |= 2; + time_ = value; + } + } + /// Gets whether the "time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppTeamMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppTeamMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + if (Name != other.Name) return false; + if (Message != other.Message) return false; + if (Color != other.Color) return false; + if (Time != other.Time) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (HasColor) hash ^= Color.GetHashCode(); + if (HasTime) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasColor) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (HasTime) { + output.WriteRawTag(40); + output.WriteUInt32(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasColor) { + output.WriteRawTag(34); + output.WriteString(Color); + } + if (HasTime) { + output.WriteRawTag(40); + output.WriteUInt32(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (HasColor) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Color); + } + if (HasTime) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppTeamMessage other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMessage) { + Message = other.Message; + } + if (other.HasColor) { + Color = other.Color; + } + if (other.HasTime) { + Time = other.Time; + } + _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 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 40: { + Time = input.ReadUInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 34: { + Color = input.ReadString(); + break; + } + case 40: { + Time = input.ReadUInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppTeamChat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamChat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChat(AppTeamChat other) : this() { + messages_ = other.messages_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChat Clone() { + return new AppTeamChat(this); + } + + /// Field number for the "messages" field. + public const int MessagesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_messages_codec + = pb::FieldCodec.ForMessage(10, global::RustPlusContracts.AppTeamMessage.Parser); + private readonly pbc::RepeatedField messages_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Messages { + get { return messages_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppTeamChat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppTeamChat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!messages_.Equals(other.messages_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= messages_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + messages_.WriteTo(output, _repeated_messages_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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) { + messages_.WriteTo(ref output, _repeated_messages_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += messages_.CalculateSize(_repeated_messages_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppTeamChat other) { + if (other == null) { + return; + } + messages_.Add(other.messages_); + _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: { + messages_.AddEntriesFrom(input, _repeated_messages_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + messages_.AddEntriesFrom(ref input, _repeated_messages_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppMarker : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMarker()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMarker() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMarker(AppMarker other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + type_ = other.type_; + x_ = other.x_; + y_ = other.y_; + steamId_ = other.steamId_; + rotation_ = other.rotation_; + radius_ = other.radius_; + color1_ = other.color1_ != null ? other.color1_.Clone() : null; + color2_ = other.color2_ != null ? other.color2_.Clone() : null; + alpha_ = other.alpha_; + name_ = other.name_; + outOfStock_ = other.outOfStock_; + sellOrders_ = other.sellOrders_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMarker Clone() { + return new AppMarker(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; + + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearId() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static global::RustPlusContracts.AppMarkerType TypeDefaultValue = global::RustPlusContracts.AppMarkerType.Undefined; + + private global::RustPlusContracts.AppMarkerType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppMarkerType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "x" field. + public const int XFieldNumber = 3; + private readonly static float XDefaultValue = 0F; + + private float x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float X { + get { if ((_hasBits0 & 4) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 4; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasX { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearX() { + _hasBits0 &= ~4; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 4; + private readonly static float YDefaultValue = 0F; + + private float y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Y { + get { if ((_hasBits0 & 8) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 8; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasY { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearY() { + _hasBits0 &= ~8; + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 5; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 16) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 16; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~16; + } + + /// Field number for the "rotation" field. + public const int RotationFieldNumber = 6; + private readonly static float RotationDefaultValue = 0F; + + private float rotation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Rotation { + get { if ((_hasBits0 & 32) != 0) { return rotation_; } else { return RotationDefaultValue; } } + set { + _hasBits0 |= 32; + rotation_ = value; + } + } + /// Gets whether the "rotation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRotation { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "rotation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRotation() { + _hasBits0 &= ~32; + } + + /// Field number for the "radius" field. + public const int RadiusFieldNumber = 7; + private readonly static float RadiusDefaultValue = 0F; + + private float radius_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Radius { + get { if ((_hasBits0 & 64) != 0) { return radius_; } else { return RadiusDefaultValue; } } + set { + _hasBits0 |= 64; + radius_ = value; + } + } + /// Gets whether the "radius" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRadius { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "radius" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRadius() { + _hasBits0 &= ~64; + } + + /// Field number for the "color1" field. + public const int Color1FieldNumber = 8; + private global::RustPlusContracts.Vector4 color1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector4 Color1 { + get { return color1_; } + set { + color1_ = value; + } + } + + /// Field number for the "color2" field. + public const int Color2FieldNumber = 9; + private global::RustPlusContracts.Vector4 color2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector4 Color2 { + get { return color2_; } + set { + color2_ = value; + } + } + + /// Field number for the "alpha" field. + public const int AlphaFieldNumber = 10; + private readonly static float AlphaDefaultValue = 0F; + + private float alpha_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Alpha { + get { if ((_hasBits0 & 128) != 0) { return alpha_; } else { return AlphaDefaultValue; } } + set { + _hasBits0 |= 128; + alpha_ = value; + } + } + /// Gets whether the "alpha" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAlpha { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "alpha" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAlpha() { + _hasBits0 &= ~128; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 11; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "outOfStock" field. + public const int OutOfStockFieldNumber = 12; + private readonly static bool OutOfStockDefaultValue = false; + + private bool outOfStock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool OutOfStock { + get { if ((_hasBits0 & 256) != 0) { return outOfStock_; } else { return OutOfStockDefaultValue; } } + set { + _hasBits0 |= 256; + outOfStock_ = value; + } + } + /// Gets whether the "outOfStock" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasOutOfStock { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "outOfStock" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearOutOfStock() { + _hasBits0 &= ~256; + } + + /// Field number for the "sellOrders" field. + public const int SellOrdersFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_sellOrders_codec + = pb::FieldCodec.ForMessage(106, global::RustPlusContracts.AppMarker.Types.SellOrder.Parser); + private readonly pbc::RepeatedField sellOrders_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SellOrders { + get { return sellOrders_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppMarker); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppMarker other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (Type != other.Type) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false; + if (SteamId != other.SteamId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Radius, other.Radius)) return false; + if (!object.Equals(Color1, other.Color1)) return false; + if (!object.Equals(Color2, other.Color2)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Alpha, other.Alpha)) return false; + if (Name != other.Name) return false; + if (OutOfStock != other.OutOfStock) return false; + if(!sellOrders_.Equals(other.sellOrders_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X); + if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y); + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation); + if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius); + if (color1_ != null) hash ^= Color1.GetHashCode(); + if (color2_ != null) hash ^= Color2.GetHashCode(); + if (HasAlpha) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Alpha); + if (HasName) hash ^= Name.GetHashCode(); + if (HasOutOfStock) hash ^= OutOfStock.GetHashCode(); + hash ^= sellOrders_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (HasSteamId) { + output.WriteRawTag(40); + output.WriteUInt64(SteamId); + } + if (HasRotation) { + output.WriteRawTag(53); + output.WriteFloat(Rotation); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (color1_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Color1); + } + if (color2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Color2); + } + if (HasAlpha) { + output.WriteRawTag(85); + output.WriteFloat(Alpha); + } + if (HasName) { + output.WriteRawTag(90); + output.WriteString(Name); + } + if (HasOutOfStock) { + output.WriteRawTag(96); + output.WriteBool(OutOfStock); + } + sellOrders_.WriteTo(output, _repeated_sellOrders_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (HasX) { + output.WriteRawTag(29); + output.WriteFloat(X); + } + if (HasY) { + output.WriteRawTag(37); + output.WriteFloat(Y); + } + if (HasSteamId) { + output.WriteRawTag(40); + output.WriteUInt64(SteamId); + } + if (HasRotation) { + output.WriteRawTag(53); + output.WriteFloat(Rotation); + } + if (HasRadius) { + output.WriteRawTag(61); + output.WriteFloat(Radius); + } + if (color1_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Color1); + } + if (color2_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Color2); + } + if (HasAlpha) { + output.WriteRawTag(85); + output.WriteFloat(Alpha); + } + if (HasName) { + output.WriteRawTag(90); + output.WriteString(Name); + } + if (HasOutOfStock) { + output.WriteRawTag(96); + output.WriteBool(OutOfStock); + } + sellOrders_.WriteTo(ref output, _repeated_sellOrders_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (HasX) { + size += 1 + 4; + } + if (HasY) { + size += 1 + 4; + } + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasRotation) { + size += 1 + 4; + } + if (HasRadius) { + size += 1 + 4; + } + if (color1_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color1); + } + if (color2_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color2); + } + if (HasAlpha) { + size += 1 + 4; + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasOutOfStock) { + size += 1 + 1; + } + size += sellOrders_.CalculateSize(_repeated_sellOrders_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppMarker other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + if (other.HasType) { + Type = other.Type; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasRotation) { + Rotation = other.Rotation; + } + if (other.HasRadius) { + Radius = other.Radius; + } + if (other.color1_ != null) { + if (color1_ == null) { + Color1 = new global::RustPlusContracts.Vector4(); + } + Color1.MergeFrom(other.Color1); + } + if (other.color2_ != null) { + if (color2_ == null) { + Color2 = new global::RustPlusContracts.Vector4(); + } + Color2.MergeFrom(other.Color2); + } + if (other.HasAlpha) { + Alpha = other.Alpha; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasOutOfStock) { + OutOfStock = other.OutOfStock; + } + sellOrders_.Add(other.sellOrders_); + _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 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Type = (global::RustPlusContracts.AppMarkerType) input.ReadEnum(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + break; + } + case 40: { + SteamId = input.ReadUInt64(); + break; + } + case 53: { + Rotation = input.ReadFloat(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + case 66: { + if (color1_ == null) { + Color1 = new global::RustPlusContracts.Vector4(); + } + input.ReadMessage(Color1); + break; + } + case 74: { + if (color2_ == null) { + Color2 = new global::RustPlusContracts.Vector4(); + } + input.ReadMessage(Color2); + break; + } + case 85: { + Alpha = input.ReadFloat(); + break; + } + case 90: { + Name = input.ReadString(); + break; + } + case 96: { + OutOfStock = input.ReadBool(); + break; + } + case 106: { + sellOrders_.AddEntriesFrom(input, _repeated_sellOrders_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 16: { + Type = (global::RustPlusContracts.AppMarkerType) input.ReadEnum(); + break; + } + case 29: { + X = input.ReadFloat(); + break; + } + case 37: { + Y = input.ReadFloat(); + break; + } + case 40: { + SteamId = input.ReadUInt64(); + break; + } + case 53: { + Rotation = input.ReadFloat(); + break; + } + case 61: { + Radius = input.ReadFloat(); + break; + } + case 66: { + if (color1_ == null) { + Color1 = new global::RustPlusContracts.Vector4(); + } + input.ReadMessage(Color1); + break; + } + case 74: { + if (color2_ == null) { + Color2 = new global::RustPlusContracts.Vector4(); + } + input.ReadMessage(Color2); + break; + } + case 85: { + Alpha = input.ReadFloat(); + break; + } + case 90: { + Name = input.ReadString(); + break; + } + case 96: { + OutOfStock = input.ReadBool(); + break; + } + case 106: { + sellOrders_.AddEntriesFrom(ref input, _repeated_sellOrders_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppMarker message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class SellOrder : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SellOrder()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppMarker.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellOrder() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellOrder(SellOrder other) : this() { + _hasBits0 = other._hasBits0; + itemId_ = other.itemId_; + quantity_ = other.quantity_; + currencyId_ = other.currencyId_; + costPerItem_ = other.costPerItem_; + amountInStock_ = other.amountInStock_; + itemIsBlueprint_ = other.itemIsBlueprint_; + currencyIsBlueprint_ = other.currencyIsBlueprint_; + itemCondition_ = other.itemCondition_; + itemConditionMax_ = other.itemConditionMax_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SellOrder Clone() { + return new SellOrder(this); + } + + /// Field number for the "itemId" field. + public const int ItemIdFieldNumber = 1; + private readonly static int ItemIdDefaultValue = 0; + + private int itemId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ItemId { + get { if ((_hasBits0 & 1) != 0) { return itemId_; } else { return ItemIdDefaultValue; } } + set { + _hasBits0 |= 1; + itemId_ = value; + } + } + /// Gets whether the "itemId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "itemId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemId() { + _hasBits0 &= ~1; + } + + /// Field number for the "quantity" field. + public const int QuantityFieldNumber = 2; + private readonly static int QuantityDefaultValue = 0; + + private int quantity_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Quantity { + get { if ((_hasBits0 & 2) != 0) { return quantity_; } else { return QuantityDefaultValue; } } + set { + _hasBits0 |= 2; + quantity_ = value; + } + } + /// Gets whether the "quantity" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasQuantity { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "quantity" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearQuantity() { + _hasBits0 &= ~2; + } + + /// Field number for the "currencyId" field. + public const int CurrencyIdFieldNumber = 3; + private readonly static int CurrencyIdDefaultValue = 0; + + private int currencyId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CurrencyId { + get { if ((_hasBits0 & 4) != 0) { return currencyId_; } else { return CurrencyIdDefaultValue; } } + set { + _hasBits0 |= 4; + currencyId_ = value; + } + } + /// Gets whether the "currencyId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCurrencyId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "currencyId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCurrencyId() { + _hasBits0 &= ~4; + } + + /// Field number for the "costPerItem" field. + public const int CostPerItemFieldNumber = 4; + private readonly static int CostPerItemDefaultValue = 0; + + private int costPerItem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CostPerItem { + get { if ((_hasBits0 & 8) != 0) { return costPerItem_; } else { return CostPerItemDefaultValue; } } + set { + _hasBits0 |= 8; + costPerItem_ = value; + } + } + /// Gets whether the "costPerItem" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCostPerItem { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "costPerItem" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCostPerItem() { + _hasBits0 &= ~8; + } + + /// Field number for the "amountInStock" field. + public const int AmountInStockFieldNumber = 5; + private readonly static int AmountInStockDefaultValue = 0; + + private int amountInStock_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int AmountInStock { + get { if ((_hasBits0 & 16) != 0) { return amountInStock_; } else { return AmountInStockDefaultValue; } } + set { + _hasBits0 |= 16; + amountInStock_ = value; + } + } + /// Gets whether the "amountInStock" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAmountInStock { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "amountInStock" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAmountInStock() { + _hasBits0 &= ~16; + } + + /// Field number for the "itemIsBlueprint" field. + public const int ItemIsBlueprintFieldNumber = 6; + private readonly static bool ItemIsBlueprintDefaultValue = false; + + private bool itemIsBlueprint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ItemIsBlueprint { + get { if ((_hasBits0 & 32) != 0) { return itemIsBlueprint_; } else { return ItemIsBlueprintDefaultValue; } } + set { + _hasBits0 |= 32; + itemIsBlueprint_ = value; + } + } + /// Gets whether the "itemIsBlueprint" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemIsBlueprint { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "itemIsBlueprint" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemIsBlueprint() { + _hasBits0 &= ~32; + } + + /// Field number for the "currencyIsBlueprint" field. + public const int CurrencyIsBlueprintFieldNumber = 7; + private readonly static bool CurrencyIsBlueprintDefaultValue = false; + + private bool currencyIsBlueprint_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool CurrencyIsBlueprint { + get { if ((_hasBits0 & 64) != 0) { return currencyIsBlueprint_; } else { return CurrencyIsBlueprintDefaultValue; } } + set { + _hasBits0 |= 64; + currencyIsBlueprint_ = value; + } + } + /// Gets whether the "currencyIsBlueprint" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCurrencyIsBlueprint { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "currencyIsBlueprint" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCurrencyIsBlueprint() { + _hasBits0 &= ~64; + } + + /// Field number for the "itemCondition" field. + public const int ItemConditionFieldNumber = 8; + private readonly static float ItemConditionDefaultValue = 0F; + + private float itemCondition_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ItemCondition { + get { if ((_hasBits0 & 128) != 0) { return itemCondition_; } else { return ItemConditionDefaultValue; } } + set { + _hasBits0 |= 128; + itemCondition_ = value; + } + } + /// Gets whether the "itemCondition" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemCondition { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "itemCondition" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemCondition() { + _hasBits0 &= ~128; + } + + /// Field number for the "itemConditionMax" field. + public const int ItemConditionMaxFieldNumber = 9; + private readonly static float ItemConditionMaxDefaultValue = 0F; + + private float itemConditionMax_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float ItemConditionMax { + get { if ((_hasBits0 & 256) != 0) { return itemConditionMax_; } else { return ItemConditionMaxDefaultValue; } } + set { + _hasBits0 |= 256; + itemConditionMax_ = value; + } + } + /// Gets whether the "itemConditionMax" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasItemConditionMax { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "itemConditionMax" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearItemConditionMax() { + _hasBits0 &= ~256; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SellOrder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SellOrder other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (Quantity != other.Quantity) return false; + if (CurrencyId != other.CurrencyId) return false; + if (CostPerItem != other.CostPerItem) return false; + if (AmountInStock != other.AmountInStock) return false; + if (ItemIsBlueprint != other.ItemIsBlueprint) return false; + if (CurrencyIsBlueprint != other.CurrencyIsBlueprint) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ItemCondition, other.ItemCondition)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ItemConditionMax, other.ItemConditionMax)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasItemId) hash ^= ItemId.GetHashCode(); + if (HasQuantity) hash ^= Quantity.GetHashCode(); + if (HasCurrencyId) hash ^= CurrencyId.GetHashCode(); + if (HasCostPerItem) hash ^= CostPerItem.GetHashCode(); + if (HasAmountInStock) hash ^= AmountInStock.GetHashCode(); + if (HasItemIsBlueprint) hash ^= ItemIsBlueprint.GetHashCode(); + if (HasCurrencyIsBlueprint) hash ^= CurrencyIsBlueprint.GetHashCode(); + if (HasItemCondition) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ItemCondition); + if (HasItemConditionMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ItemConditionMax); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasQuantity) { + output.WriteRawTag(16); + output.WriteInt32(Quantity); + } + if (HasCurrencyId) { + output.WriteRawTag(24); + output.WriteInt32(CurrencyId); + } + if (HasCostPerItem) { + output.WriteRawTag(32); + output.WriteInt32(CostPerItem); + } + if (HasAmountInStock) { + output.WriteRawTag(40); + output.WriteInt32(AmountInStock); + } + if (HasItemIsBlueprint) { + output.WriteRawTag(48); + output.WriteBool(ItemIsBlueprint); + } + if (HasCurrencyIsBlueprint) { + output.WriteRawTag(56); + output.WriteBool(CurrencyIsBlueprint); + } + if (HasItemCondition) { + output.WriteRawTag(69); + output.WriteFloat(ItemCondition); + } + if (HasItemConditionMax) { + output.WriteRawTag(77); + output.WriteFloat(ItemConditionMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasItemId) { + output.WriteRawTag(8); + output.WriteInt32(ItemId); + } + if (HasQuantity) { + output.WriteRawTag(16); + output.WriteInt32(Quantity); + } + if (HasCurrencyId) { + output.WriteRawTag(24); + output.WriteInt32(CurrencyId); + } + if (HasCostPerItem) { + output.WriteRawTag(32); + output.WriteInt32(CostPerItem); + } + if (HasAmountInStock) { + output.WriteRawTag(40); + output.WriteInt32(AmountInStock); + } + if (HasItemIsBlueprint) { + output.WriteRawTag(48); + output.WriteBool(ItemIsBlueprint); + } + if (HasCurrencyIsBlueprint) { + output.WriteRawTag(56); + output.WriteBool(CurrencyIsBlueprint); + } + if (HasItemCondition) { + output.WriteRawTag(69); + output.WriteFloat(ItemCondition); + } + if (HasItemConditionMax) { + output.WriteRawTag(77); + output.WriteFloat(ItemConditionMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasItemId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId); + } + if (HasQuantity) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity); + } + if (HasCurrencyId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyId); + } + if (HasCostPerItem) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostPerItem); + } + if (HasAmountInStock) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(AmountInStock); + } + if (HasItemIsBlueprint) { + size += 1 + 1; + } + if (HasCurrencyIsBlueprint) { + size += 1 + 1; + } + if (HasItemCondition) { + size += 1 + 4; + } + if (HasItemConditionMax) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SellOrder other) { + if (other == null) { + return; + } + if (other.HasItemId) { + ItemId = other.ItemId; + } + if (other.HasQuantity) { + Quantity = other.Quantity; + } + if (other.HasCurrencyId) { + CurrencyId = other.CurrencyId; + } + if (other.HasCostPerItem) { + CostPerItem = other.CostPerItem; + } + if (other.HasAmountInStock) { + AmountInStock = other.AmountInStock; + } + if (other.HasItemIsBlueprint) { + ItemIsBlueprint = other.ItemIsBlueprint; + } + if (other.HasCurrencyIsBlueprint) { + CurrencyIsBlueprint = other.CurrencyIsBlueprint; + } + if (other.HasItemCondition) { + ItemCondition = other.ItemCondition; + } + if (other.HasItemConditionMax) { + ItemConditionMax = other.ItemConditionMax; + } + _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 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Quantity = input.ReadInt32(); + break; + } + case 24: { + CurrencyId = input.ReadInt32(); + break; + } + case 32: { + CostPerItem = input.ReadInt32(); + break; + } + case 40: { + AmountInStock = input.ReadInt32(); + break; + } + case 48: { + ItemIsBlueprint = input.ReadBool(); + break; + } + case 56: { + CurrencyIsBlueprint = input.ReadBool(); + break; + } + case 69: { + ItemCondition = input.ReadFloat(); + break; + } + case 77: { + ItemConditionMax = input.ReadFloat(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ItemId = input.ReadInt32(); + break; + } + case 16: { + Quantity = input.ReadInt32(); + break; + } + case 24: { + CurrencyId = input.ReadInt32(); + break; + } + case 32: { + CostPerItem = input.ReadInt32(); + break; + } + case 40: { + AmountInStock = input.ReadInt32(); + break; + } + case 48: { + ItemIsBlueprint = input.ReadBool(); + break; + } + case 56: { + CurrencyIsBlueprint = input.ReadBool(); + break; + } + case 69: { + ItemCondition = input.ReadFloat(); + break; + } + case 77: { + ItemConditionMax = input.ReadFloat(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + public sealed partial class AppMapMarkers : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppMapMarkers()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMapMarkers() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMapMarkers(AppMapMarkers other) : this() { + markers_ = other.markers_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppMapMarkers Clone() { + return new AppMapMarkers(this); + } + + /// Field number for the "markers" field. + public const int MarkersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_markers_codec + = pb::FieldCodec.ForMessage(10, global::RustPlusContracts.AppMarker.Parser); + private readonly pbc::RepeatedField markers_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Markers { + get { return markers_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppMapMarkers); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppMapMarkers other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!markers_.Equals(other.markers_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= markers_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + markers_.WriteTo(output, _repeated_markers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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) { + markers_.WriteTo(ref output, _repeated_markers_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += markers_.CalculateSize(_repeated_markers_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppMapMarkers other) { + if (other == null) { + return; + } + markers_.Add(other.markers_); + _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: { + markers_.AddEntriesFrom(input, _repeated_markers_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + markers_.AddEntriesFrom(ref input, _repeated_markers_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppClanInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanInfo(AppClanInfo other) : this() { + clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanInfo Clone() { + return new AppClanInfo(this); + } + + /// Field number for the "clanInfo" field. + public const int ClanInfoFieldNumber = 1; + private global::RustPlusContracts.ClanInfo clanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.ClanInfo ClanInfo { + get { return clanInfo_; } + set { + clanInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppClanInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppClanInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClanInfo, other.ClanInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (clanInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (clanInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (clanInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppClanInfo other) { + if (other == null) { + return; + } + if (other.clanInfo_ != null) { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + ClanInfo.MergeFrom(other.ClanInfo); + } + _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: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppClanMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanMessage()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanMessage(AppClanMessage other) : this() { + _hasBits0 = other._hasBits0; + steamId_ = other.steamId_; + name_ = other.name_; + message_ = other.message_; + time_ = other.time_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanMessage Clone() { + return new AppClanMessage(this); + } + + /// Field number for the "steamId" field. + public const int SteamIdFieldNumber = 1; + private readonly static ulong SteamIdDefaultValue = 0UL; + + private ulong steamId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SteamId { + get { if ((_hasBits0 & 1) != 0) { return steamId_; } else { return SteamIdDefaultValue; } } + set { + _hasBits0 |= 1; + steamId_ = value; + } + } + /// Gets whether the "steamId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSteamId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "steamId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSteamId() { + _hasBits0 &= ~1; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 2; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 3; + private readonly static string MessageDefaultValue = ""; + + private string message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Message { + get { return message_ ?? MessageDefaultValue; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "message" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMessage { + get { return message_ != null; } + } + /// Clears the value of the "message" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMessage() { + message_ = null; + } + + /// Field number for the "time" field. + public const int TimeFieldNumber = 4; + private readonly static long TimeDefaultValue = 0L; + + private long time_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Time { + get { if ((_hasBits0 & 2) != 0) { return time_; } else { return TimeDefaultValue; } } + set { + _hasBits0 |= 2; + time_ = value; + } + } + /// Gets whether the "time" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTime { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "time" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTime() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppClanMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppClanMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SteamId != other.SteamId) return false; + if (Name != other.Name) return false; + if (Message != other.Message) return false; + if (Time != other.Time) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasSteamId) hash ^= SteamId.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasMessage) hash ^= Message.GetHashCode(); + if (HasTime) hash ^= Time.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasTime) { + output.WriteRawTag(32); + output.WriteInt64(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasSteamId) { + output.WriteRawTag(8); + output.WriteUInt64(SteamId); + } + if (HasName) { + output.WriteRawTag(18); + output.WriteString(Name); + } + if (HasMessage) { + output.WriteRawTag(26); + output.WriteString(Message); + } + if (HasTime) { + output.WriteRawTag(32); + output.WriteInt64(Time); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasSteamId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SteamId); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasMessage) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (HasTime) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppClanMessage other) { + if (other == null) { + return; + } + if (other.HasSteamId) { + SteamId = other.SteamId; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasMessage) { + Message = other.Message; + } + if (other.HasTime) { + Time = other.Time; + } + _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 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 32: { + Time = input.ReadInt64(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + SteamId = input.ReadUInt64(); + break; + } + case 18: { + Name = input.ReadString(); + break; + } + case 26: { + Message = input.ReadString(); + break; + } + case 32: { + Time = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppClanChat : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanChat()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChat() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChat(AppClanChat other) : this() { + messages_ = other.messages_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChat Clone() { + return new AppClanChat(this); + } + + /// Field number for the "messages" field. + public const int MessagesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_messages_codec + = pb::FieldCodec.ForMessage(10, global::RustPlusContracts.AppClanMessage.Parser); + private readonly pbc::RepeatedField messages_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Messages { + get { return messages_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppClanChat); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppClanChat other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!messages_.Equals(other.messages_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= messages_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + messages_.WriteTo(output, _repeated_messages_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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) { + messages_.WriteTo(ref output, _repeated_messages_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += messages_.CalculateSize(_repeated_messages_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppClanChat other) { + if (other == null) { + return; + } + messages_.Add(other.messages_); + _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: { + messages_.AddEntriesFrom(input, _repeated_messages_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + messages_.AddEntriesFrom(ref input, _repeated_messages_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppNexusAuth : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNexusAuth()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNexusAuth() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNexusAuth(AppNexusAuth other) : this() { + _hasBits0 = other._hasBits0; + serverId_ = other.serverId_; + playerToken_ = other.playerToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNexusAuth Clone() { + return new AppNexusAuth(this); + } + + /// Field number for the "serverId" field. + public const int ServerIdFieldNumber = 1; + private readonly static string ServerIdDefaultValue = ""; + + private string serverId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServerId { + get { return serverId_ ?? ServerIdDefaultValue; } + set { + serverId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "serverId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasServerId { + get { return serverId_ != null; } + } + /// Clears the value of the "serverId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearServerId() { + serverId_ = null; + } + + /// Field number for the "playerToken" field. + public const int PlayerTokenFieldNumber = 2; + private readonly static int PlayerTokenDefaultValue = 0; + + private int playerToken_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PlayerToken { + get { if ((_hasBits0 & 1) != 0) { return playerToken_; } else { return PlayerTokenDefaultValue; } } + set { + _hasBits0 |= 1; + playerToken_ = value; + } + } + /// Gets whether the "playerToken" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerToken { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "playerToken" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerToken() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppNexusAuth); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppNexusAuth other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServerId != other.ServerId) return false; + if (PlayerToken != other.PlayerToken) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasServerId) hash ^= ServerId.GetHashCode(); + if (HasPlayerToken) hash ^= PlayerToken.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasServerId) { + output.WriteRawTag(10); + output.WriteString(ServerId); + } + if (HasPlayerToken) { + output.WriteRawTag(16); + output.WriteInt32(PlayerToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasServerId) { + output.WriteRawTag(10); + output.WriteString(ServerId); + } + if (HasPlayerToken) { + output.WriteRawTag(16); + output.WriteInt32(PlayerToken); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasServerId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerId); + } + if (HasPlayerToken) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayerToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppNexusAuth other) { + if (other == null) { + return; + } + if (other.HasServerId) { + ServerId = other.ServerId; + } + if (other.HasPlayerToken) { + PlayerToken = other.PlayerToken; + } + _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: { + ServerId = input.ReadString(); + break; + } + case 16: { + PlayerToken = input.ReadInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ServerId = input.ReadString(); + break; + } + case 16: { + PlayerToken = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppTeamChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppTeamChanged()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChanged(AppTeamChanged other) : this() { + _hasBits0 = other._hasBits0; + playerId_ = other.playerId_; + teamInfo_ = other.teamInfo_ != null ? other.teamInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppTeamChanged Clone() { + return new AppTeamChanged(this); + } + + /// Field number for the "playerId" field. + public const int PlayerIdFieldNumber = 1; + private readonly static ulong PlayerIdDefaultValue = 0UL; + + private ulong playerId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong PlayerId { + get { if ((_hasBits0 & 1) != 0) { return playerId_; } else { return PlayerIdDefaultValue; } } + set { + _hasBits0 |= 1; + playerId_ = value; + } + } + /// Gets whether the "playerId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPlayerId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "playerId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPlayerId() { + _hasBits0 &= ~1; + } + + /// Field number for the "teamInfo" field. + public const int TeamInfoFieldNumber = 2; + private global::RustPlusContracts.AppTeamInfo teamInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTeamInfo TeamInfo { + get { return teamInfo_; } + set { + teamInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppTeamChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppTeamChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PlayerId != other.PlayerId) return false; + if (!object.Equals(TeamInfo, other.TeamInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasPlayerId) hash ^= PlayerId.GetHashCode(); + if (teamInfo_ != null) hash ^= TeamInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasPlayerId) { + output.WriteRawTag(8); + output.WriteUInt64(PlayerId); + } + if (teamInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TeamInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasPlayerId) { + output.WriteRawTag(8); + output.WriteUInt64(PlayerId); + } + if (teamInfo_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TeamInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasPlayerId) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PlayerId); + } + if (teamInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TeamInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppTeamChanged other) { + if (other == null) { + return; + } + if (other.HasPlayerId) { + PlayerId = other.PlayerId; + } + if (other.teamInfo_ != null) { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + TeamInfo.MergeFrom(other.TeamInfo); + } + _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 8: { + PlayerId = input.ReadUInt64(); + break; + } + case 18: { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + input.ReadMessage(TeamInfo); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PlayerId = input.ReadUInt64(); + break; + } + case 18: { + if (teamInfo_ == null) { + TeamInfo = new global::RustPlusContracts.AppTeamInfo(); + } + input.ReadMessage(TeamInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppNewTeamMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNewTeamMessage()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewTeamMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewTeamMessage(AppNewTeamMessage other) : this() { + message_ = other.message_ != null ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewTeamMessage Clone() { + return new AppNewTeamMessage(this); + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 1; + private global::RustPlusContracts.AppTeamMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppTeamMessage Message { + get { return message_; } + set { + message_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppNewTeamMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppNewTeamMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (message_ != null) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (message_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (message_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (message_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppNewTeamMessage other) { + if (other == null) { + return; + } + if (other.message_ != null) { + if (message_ == null) { + Message = new global::RustPlusContracts.AppTeamMessage(); + } + Message.MergeFrom(other.Message); + } + _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: { + if (message_ == null) { + Message = new global::RustPlusContracts.AppTeamMessage(); + } + input.ReadMessage(Message); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (message_ == null) { + Message = new global::RustPlusContracts.AppTeamMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppEntityChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEntityChanged()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityChanged(AppEntityChanged other) : this() { + _hasBits0 = other._hasBits0; + entityId_ = other.entityId_; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppEntityChanged Clone() { + return new AppEntityChanged(this); + } + + /// Field number for the "entityId" field. + public const int EntityIdFieldNumber = 1; + private readonly static uint EntityIdDefaultValue = 0; + + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } + set { + _hasBits0 |= 1; + entityId_ = value; + } + } + /// Gets whether the "entityId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEntityId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "entityId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEntityId() { + _hasBits0 &= ~1; + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 2; + private global::RustPlusContracts.AppEntityPayload payload_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppEntityPayload Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppEntityChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppEntityChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + if (!object.Equals(Payload, other.Payload)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasEntityId) { + output.WriteRawTag(8); + output.WriteUInt32(EntityId); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasEntityId) { + output.WriteRawTag(8); + output.WriteUInt32(EntityId); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppEntityChanged other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + EntityId = other.EntityId; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + Payload.MergeFrom(other.Payload); + } + _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 8: { + EntityId = input.ReadUInt32(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + input.ReadMessage(Payload); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EntityId = input.ReadUInt32(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::RustPlusContracts.AppEntityPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppClanChanged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppClanChanged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChanged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChanged(AppClanChanged other) : this() { + clanInfo_ = other.clanInfo_ != null ? other.clanInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppClanChanged Clone() { + return new AppClanChanged(this); + } + + /// Field number for the "clanInfo" field. + public const int ClanInfoFieldNumber = 1; + private global::RustPlusContracts.ClanInfo clanInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.ClanInfo ClanInfo { + get { return clanInfo_; } + set { + clanInfo_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppClanChanged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppClanChanged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ClanInfo, other.ClanInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (clanInfo_ != null) hash ^= ClanInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (clanInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (clanInfo_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ClanInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (clanInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClanInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppClanChanged other) { + if (other == null) { + return; + } + if (other.clanInfo_ != null) { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + ClanInfo.MergeFrom(other.ClanInfo); + } + _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: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (clanInfo_ == null) { + ClanInfo = new global::RustPlusContracts.ClanInfo(); + } + input.ReadMessage(ClanInfo); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppNewClanMessage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppNewClanMessage()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewClanMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewClanMessage(AppNewClanMessage other) : this() { + _hasBits0 = other._hasBits0; + clanId_ = other.clanId_; + message_ = other.message_ != null ? other.message_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppNewClanMessage Clone() { + return new AppNewClanMessage(this); + } + + /// Field number for the "clanId" field. + public const int ClanIdFieldNumber = 1; + private readonly static long ClanIdDefaultValue = 0L; + + private long clanId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ClanId { + get { if ((_hasBits0 & 1) != 0) { return clanId_; } else { return ClanIdDefaultValue; } } + set { + _hasBits0 |= 1; + clanId_ = value; + } + } + /// Gets whether the "clanId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasClanId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "clanId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearClanId() { + _hasBits0 &= ~1; + } + + /// Field number for the "message" field. + public const int MessageFieldNumber = 2; + private global::RustPlusContracts.AppClanMessage message_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppClanMessage Message { + get { return message_; } + set { + message_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppNewClanMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppNewClanMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ClanId != other.ClanId) return false; + if (!object.Equals(Message, other.Message)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasClanId) hash ^= ClanId.GetHashCode(); + if (message_ != null) hash ^= Message.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (message_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasClanId) { + output.WriteRawTag(8); + output.WriteInt64(ClanId); + } + if (message_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Message); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasClanId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClanId); + } + if (message_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppNewClanMessage other) { + if (other == null) { + return; + } + if (other.HasClanId) { + ClanId = other.ClanId; + } + if (other.message_ != null) { + if (message_ == null) { + Message = new global::RustPlusContracts.AppClanMessage(); + } + Message.MergeFrom(other.Message); + } + _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 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + if (message_ == null) { + Message = new global::RustPlusContracts.AppClanMessage(); + } + input.ReadMessage(Message); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ClanId = input.ReadInt64(); + break; + } + case 18: { + if (message_ == null) { + Message = new global::RustPlusContracts.AppClanMessage(); + } + input.ReadMessage(Message); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppCameraSubscribe : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraSubscribe()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraSubscribe() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraSubscribe(AppCameraSubscribe other) : this() { + cameraId_ = other.cameraId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraSubscribe Clone() { + return new AppCameraSubscribe(this); + } + + /// Field number for the "cameraId" field. + public const int CameraIdFieldNumber = 1; + private readonly static string CameraIdDefaultValue = ""; + + private string cameraId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CameraId { + get { return cameraId_ ?? CameraIdDefaultValue; } + set { + cameraId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "cameraId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCameraId { + get { return cameraId_ != null; } + } + /// Clears the value of the "cameraId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCameraId() { + cameraId_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppCameraSubscribe); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppCameraSubscribe other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CameraId != other.CameraId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasCameraId) hash ^= CameraId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasCameraId) { + output.WriteRawTag(10); + output.WriteString(CameraId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasCameraId) { + output.WriteRawTag(10); + output.WriteString(CameraId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasCameraId) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppCameraSubscribe other) { + if (other == null) { + return; + } + if (other.HasCameraId) { + CameraId = other.CameraId; + } + _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: { + CameraId = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + CameraId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppCameraInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraInput()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInput(AppCameraInput other) : this() { + _hasBits0 = other._hasBits0; + buttons_ = other.buttons_; + mouseDelta_ = other.mouseDelta_ != null ? other.mouseDelta_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInput Clone() { + return new AppCameraInput(this); + } + + /// Field number for the "buttons" field. + public const int ButtonsFieldNumber = 1; + private readonly static int ButtonsDefaultValue = 0; + + private int buttons_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Buttons { + get { if ((_hasBits0 & 1) != 0) { return buttons_; } else { return ButtonsDefaultValue; } } + set { + _hasBits0 |= 1; + buttons_ = value; + } + } + /// Gets whether the "buttons" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasButtons { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "buttons" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearButtons() { + _hasBits0 &= ~1; + } + + /// Field number for the "mouseDelta" field. + public const int MouseDeltaFieldNumber = 2; + private global::RustPlusContracts.Vector2 mouseDelta_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector2 MouseDelta { + get { return mouseDelta_; } + set { + mouseDelta_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppCameraInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppCameraInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Buttons != other.Buttons) return false; + if (!object.Equals(MouseDelta, other.MouseDelta)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasButtons) hash ^= Buttons.GetHashCode(); + if (mouseDelta_ != null) hash ^= MouseDelta.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasButtons) { + output.WriteRawTag(8); + output.WriteInt32(Buttons); + } + if (mouseDelta_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MouseDelta); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasButtons) { + output.WriteRawTag(8); + output.WriteInt32(Buttons); + } + if (mouseDelta_ != null) { + output.WriteRawTag(18); + output.WriteMessage(MouseDelta); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasButtons) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Buttons); + } + if (mouseDelta_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MouseDelta); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppCameraInput other) { + if (other == null) { + return; + } + if (other.HasButtons) { + Buttons = other.Buttons; + } + if (other.mouseDelta_ != null) { + if (mouseDelta_ == null) { + MouseDelta = new global::RustPlusContracts.Vector2(); + } + MouseDelta.MergeFrom(other.MouseDelta); + } + _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 8: { + Buttons = input.ReadInt32(); + break; + } + case 18: { + if (mouseDelta_ == null) { + MouseDelta = new global::RustPlusContracts.Vector2(); + } + input.ReadMessage(MouseDelta); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Buttons = input.ReadInt32(); + break; + } + case 18: { + if (mouseDelta_ == null) { + MouseDelta = new global::RustPlusContracts.Vector2(); + } + input.ReadMessage(MouseDelta); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppCameraInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInfo(AppCameraInfo other) : this() { + _hasBits0 = other._hasBits0; + width_ = other.width_; + height_ = other.height_; + nearPlane_ = other.nearPlane_; + farPlane_ = other.farPlane_; + controlFlags_ = other.controlFlags_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraInfo Clone() { + return new AppCameraInfo(this); + } + + /// Field number for the "width" field. + public const int WidthFieldNumber = 1; + private readonly static int WidthDefaultValue = 0; + + private int width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Width { + get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 1; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearWidth() { + _hasBits0 &= ~1; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 2; + private readonly static int HeightDefaultValue = 0; + + private int height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Height { + get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 2; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearHeight() { + _hasBits0 &= ~2; + } + + /// Field number for the "nearPlane" field. + public const int NearPlaneFieldNumber = 3; + private readonly static float NearPlaneDefaultValue = 0F; + + private float nearPlane_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float NearPlane { + get { if ((_hasBits0 & 4) != 0) { return nearPlane_; } else { return NearPlaneDefaultValue; } } + set { + _hasBits0 |= 4; + nearPlane_ = value; + } + } + /// Gets whether the "nearPlane" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNearPlane { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "nearPlane" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNearPlane() { + _hasBits0 &= ~4; + } + + /// Field number for the "farPlane" field. + public const int FarPlaneFieldNumber = 4; + private readonly static float FarPlaneDefaultValue = 0F; + + private float farPlane_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float FarPlane { + get { if ((_hasBits0 & 8) != 0) { return farPlane_; } else { return FarPlaneDefaultValue; } } + set { + _hasBits0 |= 8; + farPlane_ = value; + } + } + /// Gets whether the "farPlane" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasFarPlane { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "farPlane" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearFarPlane() { + _hasBits0 &= ~8; + } + + /// Field number for the "controlFlags" field. + public const int ControlFlagsFieldNumber = 5; + private readonly static int ControlFlagsDefaultValue = 0; + + private int controlFlags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ControlFlags { + get { if ((_hasBits0 & 16) != 0) { return controlFlags_; } else { return ControlFlagsDefaultValue; } } + set { + _hasBits0 |= 16; + controlFlags_ = value; + } + } + /// Gets whether the "controlFlags" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasControlFlags { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "controlFlags" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearControlFlags() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppCameraInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppCameraInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Width != other.Width) return false; + if (Height != other.Height) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(NearPlane, other.NearPlane)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FarPlane, other.FarPlane)) return false; + if (ControlFlags != other.ControlFlags) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (HasNearPlane) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NearPlane); + if (HasFarPlane) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FarPlane); + if (HasControlFlags) hash ^= ControlFlags.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasWidth) { + output.WriteRawTag(8); + output.WriteInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(16); + output.WriteInt32(Height); + } + if (HasNearPlane) { + output.WriteRawTag(29); + output.WriteFloat(NearPlane); + } + if (HasFarPlane) { + output.WriteRawTag(37); + output.WriteFloat(FarPlane); + } + if (HasControlFlags) { + output.WriteRawTag(40); + output.WriteInt32(ControlFlags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasWidth) { + output.WriteRawTag(8); + output.WriteInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(16); + output.WriteInt32(Height); + } + if (HasNearPlane) { + output.WriteRawTag(29); + output.WriteFloat(NearPlane); + } + if (HasFarPlane) { + output.WriteRawTag(37); + output.WriteFloat(FarPlane); + } + if (HasControlFlags) { + output.WriteRawTag(40); + output.WriteInt32(ControlFlags); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasWidth) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width); + } + if (HasHeight) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height); + } + if (HasNearPlane) { + size += 1 + 4; + } + if (HasFarPlane) { + size += 1 + 4; + } + if (HasControlFlags) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ControlFlags); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppCameraInfo other) { + if (other == null) { + return; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + if (other.HasNearPlane) { + NearPlane = other.NearPlane; + } + if (other.HasFarPlane) { + FarPlane = other.FarPlane; + } + if (other.HasControlFlags) { + ControlFlags = other.ControlFlags; + } + _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 8: { + Width = input.ReadInt32(); + break; + } + case 16: { + Height = input.ReadInt32(); + break; + } + case 29: { + NearPlane = input.ReadFloat(); + break; + } + case 37: { + FarPlane = input.ReadFloat(); + break; + } + case 40: { + ControlFlags = input.ReadInt32(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Width = input.ReadInt32(); + break; + } + case 16: { + Height = input.ReadInt32(); + break; + } + case 29: { + NearPlane = input.ReadFloat(); + break; + } + case 37: { + FarPlane = input.ReadFloat(); + break; + } + case 40: { + ControlFlags = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppCameraRays : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCameraRays()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.RustpluscontractsReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraRays() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraRays(AppCameraRays other) : this() { + _hasBits0 = other._hasBits0; + verticalFov_ = other.verticalFov_; + sampleOffset_ = other.sampleOffset_; + rayData_ = other.rayData_; + distance_ = other.distance_; + entities_ = other.entities_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AppCameraRays Clone() { + return new AppCameraRays(this); + } + + /// Field number for the "verticalFov" field. + public const int VerticalFovFieldNumber = 1; + private readonly static float VerticalFovDefaultValue = 0F; + + private float verticalFov_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float VerticalFov { + get { if ((_hasBits0 & 1) != 0) { return verticalFov_; } else { return VerticalFovDefaultValue; } } + set { + _hasBits0 |= 1; + verticalFov_ = value; + } + } + /// Gets whether the "verticalFov" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasVerticalFov { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "verticalFov" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearVerticalFov() { + _hasBits0 &= ~1; + } + + /// Field number for the "sampleOffset" field. + public const int SampleOffsetFieldNumber = 2; + private readonly static int SampleOffsetDefaultValue = 0; + + private int sampleOffset_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int SampleOffset { + get { if ((_hasBits0 & 2) != 0) { return sampleOffset_; } else { return SampleOffsetDefaultValue; } } + set { + _hasBits0 |= 2; + sampleOffset_ = value; + } + } + /// Gets whether the "sampleOffset" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSampleOffset { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "sampleOffset" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSampleOffset() { + _hasBits0 &= ~2; + } + + /// Field number for the "rayData" field. + public const int RayDataFieldNumber = 3; + private readonly static pb::ByteString RayDataDefaultValue = pb::ByteString.Empty; + + private pb::ByteString rayData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString RayData { + get { return rayData_ ?? RayDataDefaultValue; } + set { + rayData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "rayData" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasRayData { + get { return rayData_ != null; } + } + /// Clears the value of the "rayData" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearRayData() { + rayData_ = null; + } + + /// Field number for the "distance" field. + public const int DistanceFieldNumber = 4; + private readonly static float DistanceDefaultValue = 0F; + + private float distance_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float Distance { + get { if ((_hasBits0 & 4) != 0) { return distance_; } else { return DistanceDefaultValue; } } + set { + _hasBits0 |= 4; + distance_ = value; + } + } + /// Gets whether the "distance" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDistance { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "distance" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDistance() { + _hasBits0 &= ~4; + } + + /// Field number for the "entities" field. + public const int EntitiesFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_entities_codec + = pb::FieldCodec.ForMessage(42, global::RustPlusContracts.AppCameraRays.Types.Entity.Parser); + private readonly pbc::RepeatedField entities_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Entities { + get { return entities_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AppCameraRays); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AppCameraRays other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(VerticalFov, other.VerticalFov)) return false; + if (SampleOffset != other.SampleOffset) return false; + if (RayData != other.RayData) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false; + if(!entities_.Equals(other.entities_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasVerticalFov) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(VerticalFov); + if (HasSampleOffset) hash ^= SampleOffset.GetHashCode(); + if (HasRayData) hash ^= RayData.GetHashCode(); + if (HasDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance); + hash ^= entities_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasVerticalFov) { + output.WriteRawTag(13); + output.WriteFloat(VerticalFov); + } + if (HasSampleOffset) { + output.WriteRawTag(16); + output.WriteInt32(SampleOffset); + } + if (HasRayData) { + output.WriteRawTag(26); + output.WriteBytes(RayData); + } + if (HasDistance) { + output.WriteRawTag(37); + output.WriteFloat(Distance); + } + entities_.WriteTo(output, _repeated_entities_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasVerticalFov) { + output.WriteRawTag(13); + output.WriteFloat(VerticalFov); + } + if (HasSampleOffset) { + output.WriteRawTag(16); + output.WriteInt32(SampleOffset); + } + if (HasRayData) { + output.WriteRawTag(26); + output.WriteBytes(RayData); + } + if (HasDistance) { + output.WriteRawTag(37); + output.WriteFloat(Distance); + } + entities_.WriteTo(ref output, _repeated_entities_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasVerticalFov) { + size += 1 + 4; + } + if (HasSampleOffset) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(SampleOffset); + } + if (HasRayData) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RayData); + } + if (HasDistance) { + size += 1 + 4; + } + size += entities_.CalculateSize(_repeated_entities_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AppCameraRays other) { + if (other == null) { + return; + } + if (other.HasVerticalFov) { + VerticalFov = other.VerticalFov; + } + if (other.HasSampleOffset) { + SampleOffset = other.SampleOffset; + } + if (other.HasRayData) { + RayData = other.RayData; + } + if (other.HasDistance) { + Distance = other.Distance; + } + entities_.Add(other.entities_); + _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 13: { + VerticalFov = input.ReadFloat(); + break; + } + case 16: { + SampleOffset = input.ReadInt32(); + break; + } + case 26: { + RayData = input.ReadBytes(); + break; + } + case 37: { + Distance = input.ReadFloat(); + break; + } + case 42: { + entities_.AddEntriesFrom(input, _repeated_entities_codec); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 13: { + VerticalFov = input.ReadFloat(); + break; + } + case 16: { + SampleOffset = input.ReadInt32(); + break; + } + case 26: { + RayData = input.ReadBytes(); + break; + } + case 37: { + Distance = input.ReadFloat(); + break; + } + case 42: { + entities_.AddEntriesFrom(ref input, _repeated_entities_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the AppCameraRays message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public enum EntityType { + [pbr::OriginalName("Tree")] Tree = 1, + [pbr::OriginalName("Player")] Player = 2, + } + + public sealed partial class Entity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entity()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::RustPlusContracts.AppCameraRays.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entity(Entity other) : this() { + _hasBits0 = other._hasBits0; + entityId_ = other.entityId_; + type_ = other.type_; + position_ = other.position_ != null ? other.position_.Clone() : null; + rotation_ = other.rotation_ != null ? other.rotation_.Clone() : null; + size_ = other.size_ != null ? other.size_.Clone() : null; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Entity Clone() { + return new Entity(this); + } + + /// Field number for the "entityId" field. + public const int EntityIdFieldNumber = 1; + private readonly static uint EntityIdDefaultValue = 0; + + private uint entityId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint EntityId { + get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return EntityIdDefaultValue; } } + set { + _hasBits0 |= 1; + entityId_ = value; + } + } + /// Gets whether the "entityId" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasEntityId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "entityId" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearEntityId() { + _hasBits0 &= ~1; + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 2; + private readonly static global::RustPlusContracts.AppCameraRays.Types.EntityType TypeDefaultValue = global::RustPlusContracts.AppCameraRays.Types.EntityType.Tree; + + private global::RustPlusContracts.AppCameraRays.Types.EntityType type_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.AppCameraRays.Types.EntityType Type { + get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } } + set { + _hasBits0 |= 2; + type_ = value; + } + } + /// Gets whether the "type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearType() { + _hasBits0 &= ~2; + } + + /// Field number for the "position" field. + public const int PositionFieldNumber = 3; + private global::RustPlusContracts.Vector3 position_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector3 Position { + get { return position_; } + set { + position_ = value; + } + } + + /// Field number for the "rotation" field. + public const int RotationFieldNumber = 4; + private global::RustPlusContracts.Vector3 rotation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector3 Rotation { + get { return rotation_; } + set { + rotation_ = value; + } + } + + /// Field number for the "size" field. + public const int SizeFieldNumber = 5; + private global::RustPlusContracts.Vector3 size_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::RustPlusContracts.Vector3 Size { + get { return size_; } + set { + size_ = value; + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 6; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearName() { + name_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Entity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Entity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EntityId != other.EntityId) return false; + if (Type != other.Type) return false; + if (!object.Equals(Position, other.Position)) return false; + if (!object.Equals(Rotation, other.Rotation)) return false; + if (!object.Equals(Size, other.Size)) return false; + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasEntityId) hash ^= EntityId.GetHashCode(); + if (HasType) hash ^= Type.GetHashCode(); + if (position_ != null) hash ^= Position.GetHashCode(); + if (rotation_ != null) hash ^= Rotation.GetHashCode(); + if (size_ != null) hash ^= Size.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 + output.WriteRawMessage(this); + #else + if (HasEntityId) { + output.WriteRawTag(8); + output.WriteUInt32(EntityId); + } + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (position_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Position); + } + if (rotation_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Rotation); + } + if (size_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Size); + } + if (HasName) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #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 (HasEntityId) { + output.WriteRawTag(8); + output.WriteUInt32(EntityId); + } + if (HasType) { + output.WriteRawTag(16); + output.WriteEnum((int) Type); + } + if (position_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Position); + } + if (rotation_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Rotation); + } + if (size_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Size); + } + if (HasName) { + output.WriteRawTag(50); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasEntityId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(EntityId); + } + if (HasType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (position_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position); + } + if (rotation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rotation); + } + if (size_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Entity other) { + if (other == null) { + return; + } + if (other.HasEntityId) { + EntityId = other.EntityId; + } + if (other.HasType) { + Type = other.Type; + } + if (other.position_ != null) { + if (position_ == null) { + Position = new global::RustPlusContracts.Vector3(); + } + Position.MergeFrom(other.Position); + } + if (other.rotation_ != null) { + if (rotation_ == null) { + Rotation = new global::RustPlusContracts.Vector3(); + } + Rotation.MergeFrom(other.Rotation); + } + if (other.size_ != null) { + if (size_ == null) { + Size = new global::RustPlusContracts.Vector3(); + } + Size.MergeFrom(other.Size); + } + if (other.HasName) { + Name = other.Name; + } + _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 8: { + EntityId = input.ReadUInt32(); + break; + } + case 16: { + Type = (global::RustPlusContracts.AppCameraRays.Types.EntityType) input.ReadEnum(); + break; + } + case 26: { + if (position_ == null) { + Position = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Position); + break; + } + case 34: { + if (rotation_ == null) { + Rotation = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Rotation); + break; + } + case 42: { + if (size_ == null) { + Size = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Size); + break; + } + case 50: { + Name = input.ReadString(); + 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) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + EntityId = input.ReadUInt32(); + break; + } + case 16: { + Type = (global::RustPlusContracts.AppCameraRays.Types.EntityType) input.ReadEnum(); + break; + } + case 26: { + if (position_ == null) { + Position = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Position); + break; + } + case 34: { + if (rotation_ == null) { + Rotation = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Rotation); + break; + } + case 42: { + if (size_ == null) { + Size = new global::RustPlusContracts.Vector3(); + } + input.ReadMessage(Size); + break; + } + case 50: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/rustplus.proto b/RustPlusContracts.proto similarity index 99% rename from rustplus.proto rename to RustPlusContracts.proto index d893865..74db62b 100644 --- a/rustplus.proto +++ b/RustPlusContracts.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -package rustplus; +package RustPlusContracts; message Vector2 { optional float x = 1;