diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..844d3b9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,84 @@ + +[*.{cs,vb}] +#### Naming styles #### + +# Naming rules + +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i + +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.types_should_be_pascal_case.symbols = types +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case + +# Symbol specifications + +dotnet_naming_symbols.interface.applicable_kinds = interface +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.interface.required_modifiers = + +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.types.required_modifiers = + +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.non_field_members.required_modifiers = + +# Naming styles + +dotnet_naming_style.begins_with_i.required_prefix = I +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.capitalization = pascal_case + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case +dotnet_style_operator_placement_when_wrapping = beginning_of_line +tab_width = 4 +indent_size = 4 +end_of_line = crlf +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_null_propagation = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_auto_properties = true:silent +dotnet_style_object_initializer = true:suggestion +dotnet_style_prefer_collection_expression = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion + +[*.cs] +csharp_indent_labels = one_less_than_current +csharp_using_directive_placement = outside_namespace:silent +csharp_prefer_simple_using_statement = true:suggestion +csharp_prefer_braces = true:silent +csharp_style_namespace_declarations = file_scoped:suggestion +csharp_style_prefer_method_group_conversion = true:silent +csharp_style_prefer_top_level_statements = true:silent +csharp_style_prefer_primary_constructors = true:suggestion +csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_constructors = false:silent +csharp_style_expression_bodied_operators = false:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +csharp_style_expression_bodied_lambdas = true:silent +csharp_style_expression_bodied_local_functions = false:silent \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54d6c89..158f7fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: @@ -48,6 +51,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: recursive - name: Setup go uses: actions/setup-go@v5 @@ -113,6 +118,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: recursive - name: Setup go uses: actions/setup-go@v5 diff --git a/.github/workflows/release-on-pr-merge.yml b/.github/workflows/release-on-pr-merge.yml index dd02c55..6257458 100644 --- a/.github/workflows/release-on-pr-merge.yml +++ b/.github/workflows/release-on-pr-merge.yml @@ -12,6 +12,8 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: 1 steps: - uses: actions/checkout@v4 + with: + submodules: recursive - name: Setup .NET Core uses: actions/setup-dotnet@v4 diff --git a/.gitignore b/.gitignore index fc11b0c..f8d53f4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,9 @@ artifacts .DS_Store .fake .idea/ + +# User-specific files +**/*.suo +**/*.user +**/*.userosscache +**/*.sln.docstates \ No newline at end of file diff --git a/Gauge.Dotnet.sln b/Gauge.Dotnet.sln index 22853fc..7b0df6a 100644 --- a/Gauge.Dotnet.sln +++ b/Gauge.Dotnet.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2020 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34601.278 MinimumVisualStudioVersion = 15.0.26124.0 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTestSample", "IntegrationTestSample\IntegrationTestSample.csproj", "{8927158D-F899-4270-B898-906910A79D8A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTestSample", "_testdata\Sample\IntegrationTestSample.csproj", "{8927158D-F899-4270-B898-906910A79D8A}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gauge.Dotnet", "src\Gauge.Dotnet.csproj", "{ACD9026F-BF29-4FC5-B8B4-67C27512E80D}" EndProject @@ -11,6 +11,21 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gauge.Dotnet.UnitTests", "t EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gauge.Dotnet.IntegrationTests", "integration-test\Gauge.Dotnet.IntegrationTests.csproj", "{E7079EDD-7987-4042-877C-999FCA6C60A1}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3852E248-E868-4E7F-A439-3F182E88A4A4}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IntegrationTestSamples", "IntegrationTestSamples", "{04F8F685-9990-40EA-A85C-EA18B3B6D9B9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReferenceProject", "_testdata\ReferenceProject\ReferenceProject.csproj", "{26039755-1F17-4AC1-8637-71F72C01DE90}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReferenceDll", "_testdata\ReferenceDllProject\ReferenceDll.csproj", "{0CE94A26-CBE9-4539-9672-9DFCAE973C6A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTestSampleDllReference", "_testdata\SampleDllReference\IntegrationTestSampleDllReference.csproj", "{870537AD-A053-4651-BB77-41CB42890912}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntegrationTestSampleProjectReference", "_testdata\SampleProjectReference\IntegrationTestSampleProjectReference.csproj", "{E558F296-5A27-4288-8559-5127C252948E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -67,10 +82,57 @@ Global {E7079EDD-7987-4042-877C-999FCA6C60A1}.Release|x64.Build.0 = Release|Any CPU {E7079EDD-7987-4042-877C-999FCA6C60A1}.Release|x86.ActiveCfg = Release|Any CPU {E7079EDD-7987-4042-877C-999FCA6C60A1}.Release|x86.Build.0 = Release|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Debug|x64.ActiveCfg = Debug|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Debug|x64.Build.0 = Debug|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Debug|x86.ActiveCfg = Debug|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Debug|x86.Build.0 = Debug|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Release|x64.ActiveCfg = Release|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Release|x64.Build.0 = Release|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Release|x86.ActiveCfg = Release|Any CPU + {26039755-1F17-4AC1-8637-71F72C01DE90}.Release|x86.Build.0 = Release|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Debug|x64.ActiveCfg = Debug|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Debug|x64.Build.0 = Debug|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Debug|x86.ActiveCfg = Debug|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Debug|x86.Build.0 = Debug|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Release|x64.ActiveCfg = Release|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Release|x64.Build.0 = Release|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Release|x86.ActiveCfg = Release|Any CPU + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A}.Release|x86.Build.0 = Release|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Debug|x64.ActiveCfg = Debug|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Debug|x64.Build.0 = Debug|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Debug|x86.ActiveCfg = Debug|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Debug|x86.Build.0 = Debug|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Release|Any CPU.ActiveCfg = Release|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Release|x64.ActiveCfg = Release|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Release|x64.Build.0 = Release|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Release|x86.ActiveCfg = Release|Any CPU + {870537AD-A053-4651-BB77-41CB42890912}.Release|x86.Build.0 = Release|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Debug|x64.ActiveCfg = Debug|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Debug|x64.Build.0 = Debug|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Debug|x86.ActiveCfg = Debug|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Debug|x86.Build.0 = Debug|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Release|x64.ActiveCfg = Release|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Release|x64.Build.0 = Release|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Release|x86.ActiveCfg = Release|Any CPU + {E558F296-5A27-4288-8559-5127C252948E}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {8927158D-F899-4270-B898-906910A79D8A} = {04F8F685-9990-40EA-A85C-EA18B3B6D9B9} + {26039755-1F17-4AC1-8637-71F72C01DE90} = {04F8F685-9990-40EA-A85C-EA18B3B6D9B9} + {0CE94A26-CBE9-4539-9672-9DFCAE973C6A} = {04F8F685-9990-40EA-A85C-EA18B3B6D9B9} + {870537AD-A053-4651-BB77-41CB42890912} = {04F8F685-9990-40EA-A85C-EA18B3B6D9B9} + {E558F296-5A27-4288-8559-5127C252948E} = {04F8F685-9990-40EA-A85C-EA18B3B6D9B9} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {220CCF70-5732-4927-A27C-72A3C351E2EE} EndGlobalSection diff --git a/_testdata/ReferenceDllProject/Properties/PublishProfiles/FolderProfile.pubxml b/_testdata/ReferenceDllProject/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..587affb --- /dev/null +++ b/_testdata/ReferenceDllProject/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Debug + Any CPU + ..\SampleDllReference\libs + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/_testdata/ReferenceDllProject/ReferenceDll.csproj b/_testdata/ReferenceDllProject/ReferenceDll.csproj index a34f1ff..9603f38 100644 --- a/_testdata/ReferenceDllProject/ReferenceDll.csproj +++ b/_testdata/ReferenceDllProject/ReferenceDll.csproj @@ -1,12 +1,12 @@ - net6.0 + net8.0 - - + + diff --git a/_testdata/ReferenceProject/ReferenceProject.csproj b/_testdata/ReferenceProject/ReferenceProject.csproj index a34f1ff..f61ec2b 100644 --- a/_testdata/ReferenceProject/ReferenceProject.csproj +++ b/_testdata/ReferenceProject/ReferenceProject.csproj @@ -1,12 +1,12 @@ - + - net6.0 + net8.0 - - + + diff --git a/_testdata/Sample/IntegrationTestSample.csproj b/_testdata/Sample/IntegrationTestSample.csproj index 5216469..408c3d6 100644 --- a/_testdata/Sample/IntegrationTestSample.csproj +++ b/_testdata/Sample/IntegrationTestSample.csproj @@ -1,10 +1,10 @@ - + - net6.0 + net8.0 - + diff --git a/_testdata/Sample/Properties/PublishProfiles/FolderProfile.pubxml b/_testdata/Sample/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..d04ae58 --- /dev/null +++ b/_testdata/Sample/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Debug + Any CPU + gauge_bin + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/_testdata/Sample/StepImplementation.cs b/_testdata/Sample/StepImplementation.cs index 8d14cd1..b86d46d 100644 --- a/_testdata/Sample/StepImplementation.cs +++ b/_testdata/Sample/StepImplementation.cs @@ -7,8 +7,6 @@ using System; using System.Linq; -using System.Runtime.Serialization; -using System.Text; using System.Threading.Tasks; using Gauge.CSharp.Lib; using Gauge.CSharp.Lib.Attribute; @@ -84,11 +82,6 @@ public class CustomSerializableException : Exception public CustomSerializableException(string s) : base(s) { } - - public CustomSerializableException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } public class CustomException : Exception diff --git a/_testdata/Sample/gauge_bin/Gauge.CSharp.Lib.dll b/_testdata/Sample/gauge_bin/Gauge.CSharp.Lib.dll index c0dd492..81ababe 100755 Binary files a/_testdata/Sample/gauge_bin/Gauge.CSharp.Lib.dll and b/_testdata/Sample/gauge_bin/Gauge.CSharp.Lib.dll differ diff --git a/_testdata/Sample/gauge_bin/IntegrationTestSample.deps.json b/_testdata/Sample/gauge_bin/IntegrationTestSample.deps.json index 6d92b42..348e61a 100644 --- a/_testdata/Sample/gauge_bin/IntegrationTestSample.deps.json +++ b/_testdata/Sample/gauge_bin/IntegrationTestSample.deps.json @@ -1,24 +1,24 @@ { "runtimeTarget": { - "name": ".NETCoreApp,Version=v3.0", + "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { - ".NETCoreApp,Version=v3.0": { + ".NETCoreApp,Version=v8.0": { "IntegrationTestSample/1.0.0": { "dependencies": { - "Gauge.CSharp.Lib": "0.7.6" + "Gauge.CSharp.Lib": "0.11.1" }, "runtime": { "IntegrationTestSample.dll": {} } }, - "Gauge.CSharp.Lib/0.7.6": { + "Gauge.CSharp.Lib/0.11.1": { "runtime": { - "lib/netstandard2.0/Gauge.CSharp.Lib.dll": { - "assemblyVersion": "0.7.6.0", - "fileVersion": "0.7.6.0" + "lib/net8.0/Gauge.CSharp.Lib.dll": { + "assemblyVersion": "0.11.1.0", + "fileVersion": "0.11.1.0" } } } @@ -30,12 +30,12 @@ "serviceable": false, "sha512": "" }, - "Gauge.CSharp.Lib/0.7.6": { + "Gauge.CSharp.Lib/0.11.1": { "type": "package", "serviceable": true, - "sha512": "sha512-VPkNe57TqAXTxA0+UHe35+cpJT2DkqWt1hmWi3eOxTJZy3widdC8GIhRERM34V5G5mQrfM2z4+AvPAbj0nv0+A==", - "path": "gauge.csharp.lib/0.7.6", - "hashPath": "gauge.csharp.lib.0.7.6.nupkg.sha512" + "sha512": "sha512-QEgfnNnhgPkW+BuXcz4bKN4DsjFWEepIN7gcIs68/STVlejB6LaMYDmrDFdakSVV6G21xWz4U8egSurZsN4RaA==", + "path": "gauge.csharp.lib/0.11.1", + "hashPath": "gauge.csharp.lib.0.11.1.nupkg.sha512" } } } \ No newline at end of file diff --git a/_testdata/Sample/gauge_bin/IntegrationTestSample.dll b/_testdata/Sample/gauge_bin/IntegrationTestSample.dll index cb96ec3..d3e34e7 100644 Binary files a/_testdata/Sample/gauge_bin/IntegrationTestSample.dll and b/_testdata/Sample/gauge_bin/IntegrationTestSample.dll differ diff --git a/_testdata/Sample/gauge_bin/IntegrationTestSample.pdb b/_testdata/Sample/gauge_bin/IntegrationTestSample.pdb index fa95a68..047994c 100644 Binary files a/_testdata/Sample/gauge_bin/IntegrationTestSample.pdb and b/_testdata/Sample/gauge_bin/IntegrationTestSample.pdb differ diff --git a/_testdata/SampleDllReference/IntegrationTestSample.sln b/_testdata/SampleDllReference/IntegrationTestSample.sln index 43974d4..0d80314 100644 --- a/_testdata/SampleDllReference/IntegrationTestSample.sln +++ b/_testdata/SampleDllReference/IntegrationTestSample.sln @@ -4,7 +4,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{B18284 ..\paket.dependencies = ..\paket.dependencies EndProjectSection EndProject -Project("91a15a46-889c-481f-8902-ef5ca22640c3") = "IntegrationTestSample", "IntegrationTestSample.csproj", "6c31d99f-a982-4596-b423-5e945c16662d" +Project("91a15a46-889c-481f-8902-ef5ca22640c3") = "IntegrationTestSample", "IntegrationTestSampleDllReference.csproj", "6c31d99f-a982-4596-b423-5e945c16662d" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/_testdata/SampleDllReference/IntegrationTestSample.csproj b/_testdata/SampleDllReference/IntegrationTestSampleDllReference.csproj similarity index 59% rename from _testdata/SampleDllReference/IntegrationTestSample.csproj rename to _testdata/SampleDllReference/IntegrationTestSampleDllReference.csproj index df58507..9d21005 100644 --- a/_testdata/SampleDllReference/IntegrationTestSample.csproj +++ b/_testdata/SampleDllReference/IntegrationTestSampleDllReference.csproj @@ -1,11 +1,11 @@ - + - net6.0 + net8.0 - + diff --git a/_testdata/SampleDllReference/Properties/PublishProfiles/FolderProfile.pubxml b/_testdata/SampleDllReference/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..d04ae58 --- /dev/null +++ b/_testdata/SampleDllReference/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Debug + Any CPU + gauge_bin + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/_testdata/SampleDllReference/gauge_bin/FluentAssertions.Core.dll b/_testdata/SampleDllReference/gauge_bin/FluentAssertions.Core.dll new file mode 100644 index 0000000..66f9879 Binary files /dev/null and b/_testdata/SampleDllReference/gauge_bin/FluentAssertions.Core.dll differ diff --git a/_testdata/SampleDllReference/gauge_bin/FluentAssertions.dll b/_testdata/SampleDllReference/gauge_bin/FluentAssertions.dll new file mode 100644 index 0000000..32bd384 Binary files /dev/null and b/_testdata/SampleDllReference/gauge_bin/FluentAssertions.dll differ diff --git a/_testdata/SampleDllReference/gauge_bin/Gauge.CSharp.Lib.dll b/_testdata/SampleDllReference/gauge_bin/Gauge.CSharp.Lib.dll index c0dd492..81ababe 100755 Binary files a/_testdata/SampleDllReference/gauge_bin/Gauge.CSharp.Lib.dll and b/_testdata/SampleDllReference/gauge_bin/Gauge.CSharp.Lib.dll differ diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.deps.json b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.deps.json deleted file mode 100644 index 43bdb39..0000000 --- a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.deps.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v3.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v3.0": { - "IntegrationTestSample/1.0.0": { - "dependencies": { - "Gauge.CSharp.Lib": "0.7.6", - "ReferenceDll": "1.0.0.0" - }, - "runtime": { - "IntegrationTestSample.dll": {} - } - }, - "Gauge.CSharp.Lib/0.7.6": { - "runtime": { - "lib/netstandard2.0/Gauge.CSharp.Lib.dll": { - "assemblyVersion": "0.7.6.0", - "fileVersion": "0.7.6.0" - } - } - }, - "ReferenceDll/1.0.0.0": { - "runtime": { - "ReferenceDll.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.0.0.0" - } - } - } - } - }, - "libraries": { - "IntegrationTestSample/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "Gauge.CSharp.Lib/0.7.6": { - "type": "package", - "serviceable": true, - "sha512": "sha512-VPkNe57TqAXTxA0+UHe35+cpJT2DkqWt1hmWi3eOxTJZy3widdC8GIhRERM34V5G5mQrfM2z4+AvPAbj0nv0+A==", - "path": "gauge.csharp.lib/0.7.6", - "hashPath": "gauge.csharp.lib.0.7.6.nupkg.sha512" - }, - "ReferenceDll/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.dll b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.dll deleted file mode 100644 index 6a81c84..0000000 Binary files a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.dll and /dev/null differ diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.pdb b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.pdb deleted file mode 100644 index d664407..0000000 Binary files a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSample.pdb and /dev/null differ diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.deps.json b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.deps.json new file mode 100644 index 0000000..9c77aa6 --- /dev/null +++ b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.deps.json @@ -0,0 +1,81 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "IntegrationTestSampleDllReference/1.0.0": { + "dependencies": { + "Gauge.CSharp.Lib": "0.11.1", + "ReferenceDll": "1.0.0.0" + }, + "runtime": { + "IntegrationTestSampleDllReference.dll": {} + } + }, + "Gauge.CSharp.Lib/0.11.1": { + "runtime": { + "lib/net8.0/Gauge.CSharp.Lib.dll": { + "assemblyVersion": "0.11.1.0", + "fileVersion": "0.11.1.0" + } + } + }, + "ReferenceDll/1.0.0.0": { + "runtime": { + "ReferenceDll.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + }, + "FluentAssertions/4.19.4.0": { + "runtime": { + "FluentAssertions.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + } + } + }, + "FluentAssertions.Core/4.19.4.0": { + "runtime": { + "FluentAssertions.Core.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + } + } + } + } + }, + "libraries": { + "IntegrationTestSampleDllReference/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Gauge.CSharp.Lib/0.11.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-QEgfnNnhgPkW+BuXcz4bKN4DsjFWEepIN7gcIs68/STVlejB6LaMYDmrDFdakSVV6G21xWz4U8egSurZsN4RaA==", + "path": "gauge.csharp.lib/0.11.1", + "hashPath": "gauge.csharp.lib.0.11.1.nupkg.sha512" + }, + "ReferenceDll/1.0.0.0": { + "type": "reference", + "serviceable": false, + "sha512": "" + }, + "FluentAssertions/4.19.4.0": { + "type": "reference", + "serviceable": false, + "sha512": "" + }, + "FluentAssertions.Core/4.19.4.0": { + "type": "reference", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.dll b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.dll new file mode 100644 index 0000000..451173e Binary files /dev/null and b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.dll differ diff --git a/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.pdb b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.pdb new file mode 100644 index 0000000..f3c13d9 Binary files /dev/null and b/_testdata/SampleDllReference/gauge_bin/IntegrationTestSampleDllReference.pdb differ diff --git a/_testdata/SampleDllReference/libs/FluentAssertions.Core.dll b/_testdata/SampleDllReference/libs/FluentAssertions.Core.dll new file mode 100644 index 0000000..66f9879 Binary files /dev/null and b/_testdata/SampleDllReference/libs/FluentAssertions.Core.dll differ diff --git a/_testdata/SampleDllReference/libs/FluentAssertions.dll b/_testdata/SampleDllReference/libs/FluentAssertions.dll new file mode 100644 index 0000000..32bd384 Binary files /dev/null and b/_testdata/SampleDllReference/libs/FluentAssertions.dll differ diff --git a/_testdata/SampleDllReference/libs/Gauge.CSharp.Lib.dll b/_testdata/SampleDllReference/libs/Gauge.CSharp.Lib.dll new file mode 100644 index 0000000..81ababe Binary files /dev/null and b/_testdata/SampleDllReference/libs/Gauge.CSharp.Lib.dll differ diff --git a/_testdata/SampleDllReference/libs/ReferenceDll.deps.json b/_testdata/SampleDllReference/libs/ReferenceDll.deps.json new file mode 100644 index 0000000..01da4c0 --- /dev/null +++ b/_testdata/SampleDllReference/libs/ReferenceDll.deps.json @@ -0,0 +1,1137 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "ReferenceDll/1.0.0": { + "dependencies": { + "FluentAssertions": "4.19.4", + "Gauge.CSharp.Lib": "0.11.1" + }, + "runtime": { + "ReferenceDll.dll": {} + } + }, + "FluentAssertions/4.19.4": { + "dependencies": { + "NETStandard.Library": "1.6.0", + "System.Reflection.TypeExtensions": "4.1.0" + }, + "runtime": { + "lib/netstandard1.3/FluentAssertions.Core.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + }, + "lib/netstandard1.3/FluentAssertions.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + } + } + }, + "Gauge.CSharp.Lib/0.11.1": { + "runtime": { + "lib/net8.0/Gauge.CSharp.Lib.dll": { + "assemblyVersion": "0.11.1.0", + "fileVersion": "0.11.1.0" + } + } + }, + "Microsoft.NETCore.Platforms/1.0.1": {}, + "Microsoft.NETCore.Targets/1.0.1": {}, + "Microsoft.Win32.Primitives/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "NETStandard.Library/1.6.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.Win32.Primitives": "4.0.1", + "System.AppContext": "4.1.0", + "System.Collections": "4.0.11", + "System.Collections.Concurrent": "4.0.12", + "System.Console": "4.0.0", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tools": "4.0.1", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Globalization.Calendars": "4.0.1", + "System.IO": "4.1.0", + "System.IO.Compression": "4.1.0", + "System.IO.Compression.ZipFile": "4.0.1", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Linq": "4.1.0", + "System.Linq.Expressions": "4.1.0", + "System.Net.Http": "4.1.0", + "System.Net.Primitives": "4.0.11", + "System.Net.Sockets": "4.1.0", + "System.ObjectModel": "4.0.12", + "System.Reflection": "4.1.0", + "System.Reflection.Extensions": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Security.Cryptography.X509Certificates": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Text.Encoding.Extensions": "4.0.11", + "System.Text.RegularExpressions": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "System.Threading.Timer": "4.0.1", + "System.Xml.ReaderWriter": "4.0.11", + "System.Xml.XDocument": "4.0.11" + } + }, + "runtime.native.System/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.IO.Compression/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.Net.Http/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.Security.Cryptography/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "System.AppContext/4.1.0": { + "dependencies": { + "System.Runtime": "4.1.0" + } + }, + "System.Buffers/4.0.0": { + "dependencies": { + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Collections/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Collections.Concurrent/4.0.12": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Console/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Diagnostics.Debug/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Diagnostics.DiagnosticSource/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Diagnostics.Tools/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Diagnostics.Tracing/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization.Calendars/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Globalization": "4.0.11", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization.Extensions/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.InteropServices": "4.1.0" + } + }, + "System.IO/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.IO.Compression/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.IO.Compression": "4.1.0" + } + }, + "System.IO.Compression.ZipFile/4.0.1": { + "dependencies": { + "System.Buffers": "4.0.0", + "System.IO": "4.1.0", + "System.IO.Compression": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.IO.FileSystem/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Text.Encoding": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.IO.FileSystem.Primitives/4.0.1": { + "dependencies": { + "System.Runtime": "4.1.0" + } + }, + "System.Linq/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0" + } + }, + "System.Linq.Expressions/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Linq": "4.1.0", + "System.ObjectModel": "4.0.12", + "System.Reflection": "4.1.0", + "System.Reflection.Emit": "4.0.1", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Emit.Lightweight": "4.0.1", + "System.Reflection.Extensions": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Reflection.TypeExtensions": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Net.Http/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.DiagnosticSource": "4.0.0", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Globalization.Extensions": "4.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.Net.Primitives": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.OpenSsl": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Security.Cryptography.X509Certificates": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.Net.Http": "4.0.1", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Net.Primitives/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1" + } + }, + "System.Net.Sockets/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Net.Primitives": "4.0.11", + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.ObjectModel/4.0.12": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Reflection/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit/4.0.1": { + "dependencies": { + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit.ILGeneration/4.0.1": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit.Lightweight/4.0.1": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Extensions/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Primitives/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.TypeExtensions/4.1.0": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Resources.ResourceManager/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Globalization": "4.0.11", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "System.Runtime.Extensions/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime.Handles/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime.InteropServices/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Reflection": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1" + } + }, + "System.Runtime.InteropServices.RuntimeInformation/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.InteropServices": "4.1.0", + "System.Threading": "4.0.11", + "runtime.native.System": "4.0.0" + } + }, + "System.Runtime.Numerics/4.0.1": { + "dependencies": { + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0" + } + }, + "System.Security.Cryptography.Algorithms/4.2.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.Cng/4.2.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Security.Cryptography.Csp/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11" + } + }, + "System.Security.Cryptography.Encoding/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Collections.Concurrent": "4.0.12", + "System.Linq": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.OpenSsl/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.Primitives/4.0.0": { + "dependencies": { + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Security.Cryptography.X509Certificates/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.Globalization.Calendars": "4.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Cng": "4.2.0", + "System.Security.Cryptography.Csp": "4.0.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.OpenSsl": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.Net.Http": "4.0.1", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Text.Encoding/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Text.Encoding.Extensions/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Text.RegularExpressions/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Threading/4.0.11": { + "dependencies": { + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Threading.Tasks/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Threading.Tasks.Extensions/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Threading.Timer/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Xml.ReaderWriter/4.0.11": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.InteropServices": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Text.Encoding.Extensions": "4.0.11", + "System.Text.RegularExpressions": "4.1.0", + "System.Threading.Tasks": "4.0.11", + "System.Threading.Tasks.Extensions": "4.0.0" + } + }, + "System.Xml.XDocument/4.0.11": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tools": "4.0.1", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Xml.ReaderWriter": "4.0.11" + } + } + } + }, + "libraries": { + "ReferenceDll/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "FluentAssertions/4.19.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-i2o9/YjrJUI0sx1373gj83fsITo7W/aNJ+uciV5Cg7ZUbKhGWbMekx8gTU9AuDtB54mEhMUC9uF16MOzZEp0FQ==", + "path": "fluentassertions/4.19.4", + "hashPath": "fluentassertions.4.19.4.nupkg.sha512" + }, + "Gauge.CSharp.Lib/0.11.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-QEgfnNnhgPkW+BuXcz4bKN4DsjFWEepIN7gcIs68/STVlejB6LaMYDmrDFdakSVV6G21xWz4U8egSurZsN4RaA==", + "path": "gauge.csharp.lib/0.11.1", + "hashPath": "gauge.csharp.lib.0.11.1.nupkg.sha512" + }, + "Microsoft.NETCore.Platforms/1.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==", + "path": "microsoft.netcore.platforms/1.0.1", + "hashPath": "microsoft.netcore.platforms.1.0.1.nupkg.sha512" + }, + "Microsoft.NETCore.Targets/1.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rkn+fKobF/cbWfnnfBOQHKVKIOpxMZBvlSHkqDWgBpwGDcLRduvs3D9OLGeV6GWGvVwNlVi2CBbTjuPmtHvyNw==", + "path": "microsoft.netcore.targets/1.0.1", + "hashPath": "microsoft.netcore.targets.1.0.1.nupkg.sha512" + }, + "Microsoft.Win32.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-fQnBHO9DgcmkC9dYSJoBqo6sH1VJwJprUHh8F3hbcRlxiQiBUuTntdk8tUwV490OqC2kQUrinGwZyQHTieuXRA==", + "path": "microsoft.win32.primitives/4.0.1", + "hashPath": "microsoft.win32.primitives.4.0.1.nupkg.sha512" + }, + "NETStandard.Library/1.6.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", + "path": "netstandard.library/1.6.0", + "hashPath": "netstandard.library.1.6.0.nupkg.sha512" + }, + "runtime.native.System/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-QfS/nQI7k/BLgmLrw7qm7YBoULEvgWnPI+cYsbfCVFTW8Aj+i8JhccxcFMu1RWms0YZzF+UHguNBK4Qn89e2Sg==", + "path": "runtime.native.system/4.0.0", + "hashPath": "runtime.native.system.4.0.0.nupkg.sha512" + }, + "runtime.native.System.IO.Compression/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Ob7nvnJBox1aaB222zSVZSkf4WrebPG4qFscfK7vmD7P7NxoSxACQLtO7ytWpqXDn2wcd/+45+EAZ7xjaPip8A==", + "path": "runtime.native.system.io.compression/4.1.0", + "hashPath": "runtime.native.system.io.compression.4.1.0.nupkg.sha512" + }, + "runtime.native.System.Net.Http/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Nh0UPZx2Vifh8r+J+H2jxifZUD3sBrmolgiFWJd2yiNrxO0xTa6bAw3YwRn1VOiSen/tUXMS31ttNItCZ6lKuA==", + "path": "runtime.native.system.net.http/4.0.1", + "hashPath": "runtime.native.system.net.http.4.0.1.nupkg.sha512" + }, + "runtime.native.System.Security.Cryptography/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2CQK0jmO6Eu7ZeMgD+LOFbNJSXHFVQbCJJkEyEwowh1SCgYnrn9W9RykMfpeeVGw7h4IBvYikzpGUlmZTUafJw==", + "path": "runtime.native.system.security.cryptography/4.0.0", + "hashPath": "runtime.native.system.security.cryptography.4.0.0.nupkg.sha512" + }, + "System.AppContext/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-3QjO4jNV7PdKkmQAVp9atA+usVnKRwI3Kx1nMwJ93T0LcQfx7pKAYk0nKz5wn1oP5iqlhZuy6RXOFdhr7rDwow==", + "path": "system.appcontext/4.1.0", + "hashPath": "system.appcontext.4.1.0.nupkg.sha512" + }, + "System.Buffers/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-msXumHfjjURSkvxUjYuq4N2ghHoRi2VpXcKMA7gK6ujQfU3vGpl+B6ld0ATRg+FZFpRyA6PgEPA+VlIkTeNf2w==", + "path": "system.buffers/4.0.0", + "hashPath": "system.buffers.4.0.0.nupkg.sha512" + }, + "System.Collections/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg==", + "path": "system.collections/4.0.11", + "hashPath": "system.collections.4.0.11.nupkg.sha512" + }, + "System.Collections.Concurrent/4.0.12": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2gBcbb3drMLgxlI0fBfxMA31ec6AEyYCHygGse4vxceJan8mRIWeKJ24BFzN7+bi/NFTgdIgufzb94LWO5EERQ==", + "path": "system.collections.concurrent/4.0.12", + "hashPath": "system.collections.concurrent.4.0.12.nupkg.sha512" + }, + "System.Console/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-qSKUSOIiYA/a0g5XXdxFcUFmv1hNICBD7QZ0QhGYVipPIhvpiydY8VZqr1thmCXvmn8aipMg64zuanB4eotK9A==", + "path": "system.console/4.0.0", + "hashPath": "system.console.4.0.0.nupkg.sha512" + }, + "System.Diagnostics.Debug/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==", + "path": "system.diagnostics.debug/4.0.11", + "hashPath": "system.diagnostics.debug.4.0.11.nupkg.sha512" + }, + "System.Diagnostics.DiagnosticSource/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-YKglnq4BMTJxfcr6nuT08g+yJ0UxdePIHxosiLuljuHIUR6t4KhFsyaHOaOc1Ofqp0PUvJ0EmcgiEz6T7vEx3w==", + "path": "system.diagnostics.diagnosticsource/4.0.0", + "hashPath": "system.diagnostics.diagnosticsource.4.0.0.nupkg.sha512" + }, + "System.Diagnostics.Tools/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==", + "path": "system.diagnostics.tools/4.0.1", + "hashPath": "system.diagnostics.tools.4.0.1.nupkg.sha512" + }, + "System.Diagnostics.Tracing/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-vDN1PoMZCkkdNjvZLql592oYJZgS7URcJzJ7bxeBgGtx5UtR5leNm49VmfHGqIffX4FKacHbI3H6UyNSHQknBg==", + "path": "system.diagnostics.tracing/4.1.0", + "hashPath": "system.diagnostics.tracing.4.1.0.nupkg.sha512" + }, + "System.Globalization/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-B95h0YLEL2oSnwF/XjqSWKnwKOy/01VWkNlsCeMTFJLLabflpGV26nK164eRs5GiaRSBGpOxQ3pKoSnnyZN5pg==", + "path": "system.globalization/4.0.11", + "hashPath": "system.globalization.4.0.11.nupkg.sha512" + }, + "System.Globalization.Calendars/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-L1c6IqeQ88vuzC1P81JeHmHA8mxq8a18NUBNXnIY/BVb+TCyAaGIFbhpZt60h9FJNmisymoQkHEFSE9Vslja1Q==", + "path": "system.globalization.calendars/4.0.1", + "hashPath": "system.globalization.calendars.4.0.1.nupkg.sha512" + }, + "System.Globalization.Extensions/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-KKo23iKeOaIg61SSXwjANN7QYDr/3op3OWGGzDzz7mypx0Za0fZSeG0l6cco8Ntp8YMYkIQcAqlk8yhm5/Uhcg==", + "path": "system.globalization.extensions/4.0.1", + "hashPath": "system.globalization.extensions.4.0.1.nupkg.sha512" + }, + "System.IO/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ==", + "path": "system.io/4.1.0", + "hashPath": "system.io.4.1.0.nupkg.sha512" + }, + "System.IO.Compression/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-TjnBS6eztThSzeSib+WyVbLzEdLKUcEHN69VtS3u8aAsSc18FU6xCZlNWWsEd8SKcXAE+y1sOu7VbU8sUeM0sg==", + "path": "system.io.compression/4.1.0", + "hashPath": "system.io.compression.4.1.0.nupkg.sha512" + }, + "System.IO.Compression.ZipFile/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hBQYJzfTbQURF10nLhd+az2NHxsU6MU7AB8RUf4IolBP5lOAm4Luho851xl+CqslmhI5ZH/el8BlngEk4lBkaQ==", + "path": "system.io.compression.zipfile/4.0.1", + "hashPath": "system.io.compression.zipfile.4.0.1.nupkg.sha512" + }, + "System.IO.FileSystem/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-IBErlVq5jOggAD69bg1t0pJcHaDbJbWNUZTPI96fkYWzwYbN6D9wRHMULLDd9dHsl7C2YsxXL31LMfPI1SWt8w==", + "path": "system.io.filesystem/4.0.1", + "hashPath": "system.io.filesystem.4.0.1.nupkg.sha512" + }, + "System.IO.FileSystem.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-kWkKD203JJKxJeE74p8aF8y4Qc9r9WQx4C0cHzHPrY3fv/L/IhWnyCHaFJ3H1QPOH6A93whlQ2vG5nHlBDvzWQ==", + "path": "system.io.filesystem.primitives/4.0.1", + "hashPath": "system.io.filesystem.primitives.4.0.1.nupkg.sha512" + }, + "System.Linq/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g==", + "path": "system.linq/4.1.0", + "hashPath": "system.linq.4.1.0.nupkg.sha512" + }, + "System.Linq.Expressions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", + "path": "system.linq.expressions/4.1.0", + "hashPath": "system.linq.expressions.4.1.0.nupkg.sha512" + }, + "System.Net.Http/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ULq9g3SOPVuupt+Y3U+A37coXzdNisB1neFCSKzBwo182u0RDddKJF8I5+HfyXqK6OhJPgeoAwWXrbiUXuRDsg==", + "path": "system.net.http/4.1.0", + "hashPath": "system.net.http.4.1.0.nupkg.sha512" + }, + "System.Net.Primitives/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hVvfl4405DRjA2408luZekbPhplJK03j2Y2lSfMlny7GHXlkByw1iLnc9mgKW0GdQn73vvMcWrWewAhylXA4Nw==", + "path": "system.net.primitives/4.0.11", + "hashPath": "system.net.primitives.4.0.11.nupkg.sha512" + }, + "System.Net.Sockets/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xAz0N3dAV/aR/9g8r0Y5oEqU1JRsz29F5EGb/WVHmX3jVSLqi2/92M5hTad2aNWovruXrJpJtgZ9fccPMG9uSw==", + "path": "system.net.sockets/4.1.0", + "hashPath": "system.net.sockets.4.1.0.nupkg.sha512" + }, + "System.ObjectModel/4.0.12": { + "type": "package", + "serviceable": true, + "sha512": "sha512-tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==", + "path": "system.objectmodel/4.0.12", + "hashPath": "system.objectmodel.4.0.12.nupkg.sha512" + }, + "System.Reflection/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng==", + "path": "system.reflection/4.1.0", + "hashPath": "system.reflection.4.1.0.nupkg.sha512" + }, + "System.Reflection.Emit/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==", + "path": "system.reflection.emit/4.0.1", + "hashPath": "system.reflection.emit.4.0.1.nupkg.sha512" + }, + "System.Reflection.Emit.ILGeneration/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==", + "path": "system.reflection.emit.ilgeneration/4.0.1", + "hashPath": "system.reflection.emit.ilgeneration.4.0.1.nupkg.sha512" + }, + "System.Reflection.Emit.Lightweight/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==", + "path": "system.reflection.emit.lightweight/4.0.1", + "hashPath": "system.reflection.emit.lightweight.4.0.1.nupkg.sha512" + }, + "System.Reflection.Extensions/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==", + "path": "system.reflection.extensions/4.0.1", + "hashPath": "system.reflection.extensions.4.0.1.nupkg.sha512" + }, + "System.Reflection.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-4inTox4wTBaDhB7V3mPvp9XlCbeGYWVEM9/fXALd52vNEAVisc1BoVWQPuUuD0Ga//dNbA/WeMy9u9mzLxGTHQ==", + "path": "system.reflection.primitives/4.0.1", + "hashPath": "system.reflection.primitives.4.0.1.nupkg.sha512" + }, + "System.Reflection.TypeExtensions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==", + "path": "system.reflection.typeextensions/4.1.0", + "hashPath": "system.reflection.typeextensions.4.1.0.nupkg.sha512" + }, + "System.Resources.ResourceManager/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-TxwVeUNoTgUOdQ09gfTjvW411MF+w9MBYL7AtNVc+HtBCFlutPLhUCdZjNkjbhj3bNQWMdHboF0KIWEOjJssbA==", + "path": "system.resources.resourcemanager/4.0.1", + "hashPath": "system.resources.resourcemanager.4.0.1.nupkg.sha512" + }, + "System.Runtime/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==", + "path": "system.runtime/4.1.0", + "hashPath": "system.runtime.4.1.0.nupkg.sha512" + }, + "System.Runtime.Extensions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ==", + "path": "system.runtime.extensions/4.1.0", + "hashPath": "system.runtime.extensions.4.1.0.nupkg.sha512" + }, + "System.Runtime.Handles/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-nCJvEKguXEvk2ymk1gqj625vVnlK3/xdGzx0vOKicQkoquaTBJTP13AIYkocSUwHCLNBwUbXTqTWGDxBTWpt7g==", + "path": "system.runtime.handles/4.0.1", + "hashPath": "system.runtime.handles.4.0.1.nupkg.sha512" + }, + "System.Runtime.InteropServices/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-16eu3kjHS633yYdkjwShDHZLRNMKVi/s0bY8ODiqJ2RfMhDMAwxZaUaWVnZ2P71kr/or+X9o/xFWtNqz8ivieQ==", + "path": "system.runtime.interopservices/4.1.0", + "hashPath": "system.runtime.interopservices.4.1.0.nupkg.sha512" + }, + "System.Runtime.InteropServices.RuntimeInformation/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", + "path": "system.runtime.interopservices.runtimeinformation/4.0.0", + "hashPath": "system.runtime.interopservices.runtimeinformation.4.0.0.nupkg.sha512" + }, + "System.Runtime.Numerics/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+XbKFuzdmLP3d1o9pdHu2nxjNr2OEPqGzKeegPLCUMM71a0t50A/rOcIRmGs9wR7a8KuHX6hYs/7/TymIGLNqg==", + "path": "system.runtime.numerics/4.0.1", + "hashPath": "system.runtime.numerics.4.0.1.nupkg.sha512" + }, + "System.Security.Cryptography.Algorithms/4.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-8JQFxbLVdrtIOKMDN38Fn0GWnqYZw/oMlwOUG/qz1jqChvyZlnUmu+0s7wLx7JYua/nAXoESpHA3iw11QFWhXg==", + "path": "system.security.cryptography.algorithms/4.2.0", + "hashPath": "system.security.cryptography.algorithms.4.2.0.nupkg.sha512" + }, + "System.Security.Cryptography.Cng/4.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-cUJ2h+ZvONDe28Szw3st5dOHdjndhJzQ2WObDEXAWRPEQBtVItVoxbXM/OEsTthl3cNn2dk2k0I3y45igCQcLw==", + "path": "system.security.cryptography.cng/4.2.0", + "hashPath": "system.security.cryptography.cng.4.2.0.nupkg.sha512" + }, + "System.Security.Cryptography.Csp/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-/i1Usuo4PgAqgbPNC0NjbO3jPW//BoBlTpcWFD1EHVbidH21y4c1ap5bbEMSGAXjAShhMH4abi/K8fILrnu4BQ==", + "path": "system.security.cryptography.csp/4.0.0", + "hashPath": "system.security.cryptography.csp.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.Encoding/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-FbKgE5MbxSQMPcSVRgwM6bXN3GtyAh04NkV8E5zKCBE26X0vYW0UtTa2FIgkH33WVqBVxRgxljlVYumWtU+HcQ==", + "path": "system.security.cryptography.encoding/4.0.0", + "hashPath": "system.security.cryptography.encoding.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.OpenSsl/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-HUG/zNUJwEiLkoURDixzkzZdB5yGA5pQhDP93ArOpDPQMteURIGERRNzzoJlmTreLBWr5lkFSjjMSk8ySEpQMw==", + "path": "system.security.cryptography.openssl/4.0.0", + "hashPath": "system.security.cryptography.openssl.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.Primitives/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Wkd7QryWYjkQclX0bngpntW5HSlMzeJU24UaLJQ7YTfI8ydAVAaU2J+HXLLABOVJlKTVvAeL0Aj39VeTe7L+oA==", + "path": "system.security.cryptography.primitives/4.0.0", + "hashPath": "system.security.cryptography.primitives.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.X509Certificates/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-4HEfsQIKAhA1+ApNn729Gi09zh+lYWwyIuViihoMDWp1vQnEkL2ct7mAbhBlLYm+x/L4Rr/pyGge1lIY635e0w==", + "path": "system.security.cryptography.x509certificates/4.1.0", + "hashPath": "system.security.cryptography.x509certificates.4.1.0.nupkg.sha512" + }, + "System.Text.Encoding/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-U3gGeMlDZXxCEiY4DwVLSacg+DFWCvoiX+JThA/rvw37Sqrku7sEFeVBBBMBnfB6FeZHsyDx85HlKL19x0HtZA==", + "path": "system.text.encoding/4.0.11", + "hashPath": "system.text.encoding.4.0.11.nupkg.sha512" + }, + "System.Text.Encoding.Extensions/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-jtbiTDtvfLYgXn8PTfWI+SiBs51rrmO4AAckx4KR6vFK9Wzf6tI8kcRdsYQNwriUeQ1+CtQbM1W4cMbLXnj/OQ==", + "path": "system.text.encoding.extensions/4.0.11", + "hashPath": "system.text.encoding.extensions.4.0.11.nupkg.sha512" + }, + "System.Text.RegularExpressions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", + "path": "system.text.regularexpressions/4.1.0", + "hashPath": "system.text.regularexpressions.4.1.0.nupkg.sha512" + }, + "System.Threading/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ==", + "path": "system.threading/4.0.11", + "hashPath": "system.threading.4.0.11.nupkg.sha512" + }, + "System.Threading.Tasks/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-k1S4Gc6IGwtHGT8188RSeGaX86Qw/wnrgNLshJvsdNUOPP9etMmo8S07c+UlOAx4K/xLuN9ivA1bD0LVurtIxQ==", + "path": "system.threading.tasks/4.0.11", + "hashPath": "system.threading.tasks.4.0.11.nupkg.sha512" + }, + "System.Threading.Tasks.Extensions/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-pH4FZDsZQ/WmgJtN4LWYmRdJAEeVkyriSwrv2Teoe5FOU0Yxlb6II6GL8dBPOfRmutHGATduj3ooMt7dJ2+i+w==", + "path": "system.threading.tasks.extensions/4.0.0", + "hashPath": "system.threading.tasks.extensions.4.0.0.nupkg.sha512" + }, + "System.Threading.Timer/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-saGfUV8uqVW6LeURiqxcGhZ24PzuRNaUBtbhVeuUAvky1naH395A/1nY0P2bWvrw/BreRtIB/EzTDkGBpqCwEw==", + "path": "system.threading.timer/4.0.1", + "hashPath": "system.threading.timer.4.0.1.nupkg.sha512" + }, + "System.Xml.ReaderWriter/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ZIiLPsf67YZ9zgr31vzrFaYQqxRPX9cVHjtPSnmx4eN6lbS/yEyYNr2vs1doGDEscF0tjCZFsk9yUg1sC9e8tg==", + "path": "system.xml.readerwriter/4.0.11", + "hashPath": "system.xml.readerwriter.4.0.11.nupkg.sha512" + }, + "System.Xml.XDocument/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==", + "path": "system.xml.xdocument/4.0.11", + "hashPath": "system.xml.xdocument.4.0.11.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/_testdata/SampleDllReference/libs/ReferenceDll.dll b/_testdata/SampleDllReference/libs/ReferenceDll.dll index 7b9aa1b..ad9e44e 100644 Binary files a/_testdata/SampleDllReference/libs/ReferenceDll.dll and b/_testdata/SampleDllReference/libs/ReferenceDll.dll differ diff --git a/_testdata/SampleDllReference/libs/ReferenceDll.pdb b/_testdata/SampleDllReference/libs/ReferenceDll.pdb new file mode 100644 index 0000000..5a2813b Binary files /dev/null and b/_testdata/SampleDllReference/libs/ReferenceDll.pdb differ diff --git a/_testdata/SampleProjectReference/IntegrationTestSample.sln b/_testdata/SampleProjectReference/IntegrationTestSample.sln index 43974d4..277c11c 100644 --- a/_testdata/SampleProjectReference/IntegrationTestSample.sln +++ b/_testdata/SampleProjectReference/IntegrationTestSample.sln @@ -4,7 +4,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{B18284 ..\paket.dependencies = ..\paket.dependencies EndProjectSection EndProject -Project("91a15a46-889c-481f-8902-ef5ca22640c3") = "IntegrationTestSample", "IntegrationTestSample.csproj", "6c31d99f-a982-4596-b423-5e945c16662d" +Project("91a15a46-889c-481f-8902-ef5ca22640c3") = "IntegrationTestSample", "IntegrationTestSampleProjectReference.csproj", "6c31d99f-a982-4596-b423-5e945c16662d" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/_testdata/SampleProjectReference/IntegrationTestSample.csproj b/_testdata/SampleProjectReference/IntegrationTestSampleProjectReference.csproj similarity index 56% rename from _testdata/SampleProjectReference/IntegrationTestSample.csproj rename to _testdata/SampleProjectReference/IntegrationTestSampleProjectReference.csproj index 44dbfe7..4e38c49 100644 --- a/_testdata/SampleProjectReference/IntegrationTestSample.csproj +++ b/_testdata/SampleProjectReference/IntegrationTestSampleProjectReference.csproj @@ -1,11 +1,11 @@ - + - net6.0 + net8.0 - + diff --git a/_testdata/SampleProjectReference/Properties/PublishProfiles/FolderProfile.pubxml b/_testdata/SampleProjectReference/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..d04ae58 --- /dev/null +++ b/_testdata/SampleProjectReference/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Debug + Any CPU + gauge_bin + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/_testdata/SampleProjectReference/StepImplementation.cs b/_testdata/SampleProjectReference/StepImplementation.cs index 0d53326..ec6c40d 100644 --- a/_testdata/SampleProjectReference/StepImplementation.cs +++ b/_testdata/SampleProjectReference/StepImplementation.cs @@ -7,8 +7,6 @@ using System; using System.Linq; -using System.Runtime.Serialization; -using System.Text; using System.Threading.Tasks; using Gauge.CSharp.Lib; using Gauge.CSharp.Lib.Attribute; @@ -79,7 +77,8 @@ public void ReadTable(Table table) } [Step("Take Screenshot in reference Project")] - public void TakeProjectReferenceScreenshot() { + public void TakeProjectReferenceScreenshot() + { GaugeScreenshots.RegisterCustomScreenshotWriter(new ReferenceProject.ScreenshotWriter()); GaugeScreenshots.Capture(); GaugeScreenshots.RegisterCustomScreenshotWriter(new StringScreenshotWriter()); @@ -91,11 +90,6 @@ public class CustomSerializableException : Exception public CustomSerializableException(string s) : base(s) { } - - public CustomSerializableException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } public class CustomException : Exception diff --git a/_testdata/SampleProjectReference/gauge_bin/Gauge.CSharp.Lib.dll b/_testdata/SampleProjectReference/gauge_bin/Gauge.CSharp.Lib.dll index c0dd492..81ababe 100755 Binary files a/_testdata/SampleProjectReference/gauge_bin/Gauge.CSharp.Lib.dll and b/_testdata/SampleProjectReference/gauge_bin/Gauge.CSharp.Lib.dll differ diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.deps.json b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.deps.json index d6271b7..fd7adf4 100644 --- a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.deps.json +++ b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.deps.json @@ -1,14 +1,14 @@ { "runtimeTarget": { - "name": ".NETCoreApp,Version=v3.0", + "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { - ".NETCoreApp,Version=v3.0": { + ".NETCoreApp,Version=v8.0": { "IntegrationTestSample/1.0.0": { "dependencies": { - "Gauge.CSharp.Lib": "0.7.6", + "Gauge.CSharp.Lib": "0.11.29", "ReferenceProject": "1.0.0" }, "runtime": { @@ -31,11 +31,11 @@ } } }, - "Gauge.CSharp.Lib/0.7.6": { + "Gauge.CSharp.Lib/0.11.29": { "runtime": { - "lib/netstandard2.0/Gauge.CSharp.Lib.dll": { - "assemblyVersion": "0.7.6.0", - "fileVersion": "0.7.6.0" + "lib/net8.0/Gauge.CSharp.Lib.dll": { + "assemblyVersion": "0.11.29.0", + "fileVersion": "0.10.3.0" } } }, @@ -687,7 +687,7 @@ "ReferenceProject/1.0.0": { "dependencies": { "FluentAssertions": "4.19.4", - "Gauge.CSharp.Lib": "0.7.6" + "Gauge.CSharp.Lib": "0.11.29" }, "runtime": { "ReferenceProject.dll": {} @@ -708,12 +708,12 @@ "path": "fluentassertions/4.19.4", "hashPath": "fluentassertions.4.19.4.nupkg.sha512" }, - "Gauge.CSharp.Lib/0.7.6": { + "Gauge.CSharp.Lib/0.11.29": { "type": "package", "serviceable": true, - "sha512": "sha512-VPkNe57TqAXTxA0+UHe35+cpJT2DkqWt1hmWi3eOxTJZy3widdC8GIhRERM34V5G5mQrfM2z4+AvPAbj0nv0+A==", - "path": "gauge.csharp.lib/0.7.6", - "hashPath": "gauge.csharp.lib.0.7.6.nupkg.sha512" + "sha512": "sha512-3WXaDyUh63Z0YDz2OI4Af0UC20ggt8NBebUM6dtpydAOrqqIOHvK84Fc7iHyB5UT2hFUQlNhuBQnF9O2h0/crQ==", + "path": "gauge.csharp.lib/0.11.29", + "hashPath": "gauge.csharp.lib.0.11.29.nupkg.sha512" }, "Microsoft.NETCore.Platforms/1.0.1": { "type": "package", diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.dll b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.dll index ba10939..d5afe22 100644 Binary files a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.dll and b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.dll differ diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.pdb b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.pdb index e140605..8c1dac7 100644 Binary files a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.pdb and b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSample.pdb differ diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.deps.json b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.deps.json new file mode 100644 index 0000000..e607333 --- /dev/null +++ b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.deps.json @@ -0,0 +1,1151 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "IntegrationTestSampleProjectReference/1.0.0": { + "dependencies": { + "Gauge.CSharp.Lib": "0.11.1", + "ReferenceProject": "1.0.0" + }, + "runtime": { + "IntegrationTestSampleProjectReference.dll": {} + } + }, + "FluentAssertions/4.19.4": { + "dependencies": { + "NETStandard.Library": "1.6.0", + "System.Reflection.TypeExtensions": "4.1.0" + }, + "runtime": { + "lib/netstandard1.3/FluentAssertions.Core.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + }, + "lib/netstandard1.3/FluentAssertions.dll": { + "assemblyVersion": "4.19.4.0", + "fileVersion": "4.19.4.0" + } + } + }, + "Gauge.CSharp.Lib/0.11.1": { + "runtime": { + "lib/net8.0/Gauge.CSharp.Lib.dll": { + "assemblyVersion": "0.11.1.0", + "fileVersion": "0.11.1.0" + } + } + }, + "Microsoft.NETCore.Platforms/1.0.1": {}, + "Microsoft.NETCore.Targets/1.0.1": {}, + "Microsoft.Win32.Primitives/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "NETStandard.Library/1.6.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.Win32.Primitives": "4.0.1", + "System.AppContext": "4.1.0", + "System.Collections": "4.0.11", + "System.Collections.Concurrent": "4.0.12", + "System.Console": "4.0.0", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tools": "4.0.1", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Globalization.Calendars": "4.0.1", + "System.IO": "4.1.0", + "System.IO.Compression": "4.1.0", + "System.IO.Compression.ZipFile": "4.0.1", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Linq": "4.1.0", + "System.Linq.Expressions": "4.1.0", + "System.Net.Http": "4.1.0", + "System.Net.Primitives": "4.0.11", + "System.Net.Sockets": "4.1.0", + "System.ObjectModel": "4.0.12", + "System.Reflection": "4.1.0", + "System.Reflection.Extensions": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Security.Cryptography.X509Certificates": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Text.Encoding.Extensions": "4.0.11", + "System.Text.RegularExpressions": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "System.Threading.Timer": "4.0.1", + "System.Xml.ReaderWriter": "4.0.11", + "System.Xml.XDocument": "4.0.11" + } + }, + "runtime.native.System/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.IO.Compression/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.Net.Http/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "runtime.native.System.Security.Cryptography/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "System.AppContext/4.1.0": { + "dependencies": { + "System.Runtime": "4.1.0" + } + }, + "System.Buffers/4.0.0": { + "dependencies": { + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Collections/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Collections.Concurrent/4.0.12": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Console/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Diagnostics.Debug/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Diagnostics.DiagnosticSource/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Tracing": "4.1.0", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Diagnostics.Tools/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Diagnostics.Tracing/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization.Calendars/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Globalization": "4.0.11", + "System.Runtime": "4.1.0" + } + }, + "System.Globalization.Extensions/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.InteropServices": "4.1.0" + } + }, + "System.IO/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.IO.Compression/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.IO.Compression": "4.1.0" + } + }, + "System.IO.Compression.ZipFile/4.0.1": { + "dependencies": { + "System.Buffers": "4.0.0", + "System.IO": "4.1.0", + "System.IO.Compression": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.IO.FileSystem/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Text.Encoding": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.IO.FileSystem.Primitives/4.0.1": { + "dependencies": { + "System.Runtime": "4.1.0" + } + }, + "System.Linq/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0" + } + }, + "System.Linq.Expressions/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Linq": "4.1.0", + "System.ObjectModel": "4.0.12", + "System.Reflection": "4.1.0", + "System.Reflection.Emit": "4.0.1", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Emit.Lightweight": "4.0.1", + "System.Reflection.Extensions": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Reflection.TypeExtensions": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Net.Http/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.DiagnosticSource": "4.0.0", + "System.Diagnostics.Tracing": "4.1.0", + "System.Globalization": "4.0.11", + "System.Globalization.Extensions": "4.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.Net.Primitives": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.OpenSsl": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Security.Cryptography.X509Certificates": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.Net.Http": "4.0.1", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Net.Primitives/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1" + } + }, + "System.Net.Sockets/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Net.Primitives": "4.0.11", + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.ObjectModel/4.0.12": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Reflection/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.IO": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit/4.0.1": { + "dependencies": { + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit.ILGeneration/4.0.1": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Emit.Lightweight/4.0.1": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Reflection.Emit.ILGeneration": "4.0.1", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Extensions/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.Primitives/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Reflection.TypeExtensions/4.1.0": { + "dependencies": { + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Resources.ResourceManager/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Globalization": "4.0.11", + "System.Reflection": "4.1.0", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1" + } + }, + "System.Runtime.Extensions/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime.Handles/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Runtime.InteropServices/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Reflection": "4.1.0", + "System.Reflection.Primitives": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Handles": "4.0.1" + } + }, + "System.Runtime.InteropServices.RuntimeInformation/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.InteropServices": "4.1.0", + "System.Threading": "4.0.11", + "runtime.native.System": "4.0.0" + } + }, + "System.Runtime.Numerics/4.0.1": { + "dependencies": { + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0" + } + }, + "System.Security.Cryptography.Algorithms/4.2.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.Cng/4.2.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Security.Cryptography.Csp/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11" + } + }, + "System.Security.Cryptography.Encoding/4.0.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Collections.Concurrent": "4.0.12", + "System.Linq": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.OpenSsl/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Security.Cryptography.Primitives/4.0.0": { + "dependencies": { + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Threading": "4.0.11", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Security.Cryptography.X509Certificates/4.1.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.Globalization.Calendars": "4.0.1", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.Handles": "4.0.1", + "System.Runtime.InteropServices": "4.1.0", + "System.Runtime.Numerics": "4.0.1", + "System.Security.Cryptography.Algorithms": "4.2.0", + "System.Security.Cryptography.Cng": "4.2.0", + "System.Security.Cryptography.Csp": "4.0.0", + "System.Security.Cryptography.Encoding": "4.0.0", + "System.Security.Cryptography.OpenSsl": "4.0.0", + "System.Security.Cryptography.Primitives": "4.0.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "runtime.native.System": "4.0.0", + "runtime.native.System.Net.Http": "4.0.1", + "runtime.native.System.Security.Cryptography": "4.0.0" + } + }, + "System.Text.Encoding/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Text.Encoding.Extensions/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0", + "System.Text.Encoding": "4.0.11" + } + }, + "System.Text.RegularExpressions/4.1.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Globalization": "4.0.11", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Threading": "4.0.11" + } + }, + "System.Threading/4.0.11": { + "dependencies": { + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Threading.Tasks/4.0.11": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Threading.Tasks.Extensions/4.0.0": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Runtime": "4.1.0", + "System.Threading.Tasks": "4.0.11" + } + }, + "System.Threading.Timer/4.0.1": { + "dependencies": { + "Microsoft.NETCore.Platforms": "1.0.1", + "Microsoft.NETCore.Targets": "1.0.1", + "System.Runtime": "4.1.0" + } + }, + "System.Xml.ReaderWriter/4.0.11": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.IO.FileSystem": "4.0.1", + "System.IO.FileSystem.Primitives": "4.0.1", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Runtime.InteropServices": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Text.Encoding.Extensions": "4.0.11", + "System.Text.RegularExpressions": "4.1.0", + "System.Threading.Tasks": "4.0.11", + "System.Threading.Tasks.Extensions": "4.0.0" + } + }, + "System.Xml.XDocument/4.0.11": { + "dependencies": { + "System.Collections": "4.0.11", + "System.Diagnostics.Debug": "4.0.11", + "System.Diagnostics.Tools": "4.0.1", + "System.Globalization": "4.0.11", + "System.IO": "4.1.0", + "System.Reflection": "4.1.0", + "System.Resources.ResourceManager": "4.0.1", + "System.Runtime": "4.1.0", + "System.Runtime.Extensions": "4.1.0", + "System.Text.Encoding": "4.0.11", + "System.Threading": "4.0.11", + "System.Xml.ReaderWriter": "4.0.11" + } + }, + "ReferenceProject/1.0.0": { + "dependencies": { + "FluentAssertions": "4.19.4", + "Gauge.CSharp.Lib": "0.11.1" + }, + "runtime": { + "ReferenceProject.dll": {} + } + } + } + }, + "libraries": { + "IntegrationTestSampleProjectReference/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "FluentAssertions/4.19.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-i2o9/YjrJUI0sx1373gj83fsITo7W/aNJ+uciV5Cg7ZUbKhGWbMekx8gTU9AuDtB54mEhMUC9uF16MOzZEp0FQ==", + "path": "fluentassertions/4.19.4", + "hashPath": "fluentassertions.4.19.4.nupkg.sha512" + }, + "Gauge.CSharp.Lib/0.11.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-QEgfnNnhgPkW+BuXcz4bKN4DsjFWEepIN7gcIs68/STVlejB6LaMYDmrDFdakSVV6G21xWz4U8egSurZsN4RaA==", + "path": "gauge.csharp.lib/0.11.1", + "hashPath": "gauge.csharp.lib.0.11.1.nupkg.sha512" + }, + "Microsoft.NETCore.Platforms/1.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==", + "path": "microsoft.netcore.platforms/1.0.1", + "hashPath": "microsoft.netcore.platforms.1.0.1.nupkg.sha512" + }, + "Microsoft.NETCore.Targets/1.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rkn+fKobF/cbWfnnfBOQHKVKIOpxMZBvlSHkqDWgBpwGDcLRduvs3D9OLGeV6GWGvVwNlVi2CBbTjuPmtHvyNw==", + "path": "microsoft.netcore.targets/1.0.1", + "hashPath": "microsoft.netcore.targets.1.0.1.nupkg.sha512" + }, + "Microsoft.Win32.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-fQnBHO9DgcmkC9dYSJoBqo6sH1VJwJprUHh8F3hbcRlxiQiBUuTntdk8tUwV490OqC2kQUrinGwZyQHTieuXRA==", + "path": "microsoft.win32.primitives/4.0.1", + "hashPath": "microsoft.win32.primitives.4.0.1.nupkg.sha512" + }, + "NETStandard.Library/1.6.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", + "path": "netstandard.library/1.6.0", + "hashPath": "netstandard.library.1.6.0.nupkg.sha512" + }, + "runtime.native.System/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-QfS/nQI7k/BLgmLrw7qm7YBoULEvgWnPI+cYsbfCVFTW8Aj+i8JhccxcFMu1RWms0YZzF+UHguNBK4Qn89e2Sg==", + "path": "runtime.native.system/4.0.0", + "hashPath": "runtime.native.system.4.0.0.nupkg.sha512" + }, + "runtime.native.System.IO.Compression/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Ob7nvnJBox1aaB222zSVZSkf4WrebPG4qFscfK7vmD7P7NxoSxACQLtO7ytWpqXDn2wcd/+45+EAZ7xjaPip8A==", + "path": "runtime.native.system.io.compression/4.1.0", + "hashPath": "runtime.native.system.io.compression.4.1.0.nupkg.sha512" + }, + "runtime.native.System.Net.Http/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Nh0UPZx2Vifh8r+J+H2jxifZUD3sBrmolgiFWJd2yiNrxO0xTa6bAw3YwRn1VOiSen/tUXMS31ttNItCZ6lKuA==", + "path": "runtime.native.system.net.http/4.0.1", + "hashPath": "runtime.native.system.net.http.4.0.1.nupkg.sha512" + }, + "runtime.native.System.Security.Cryptography/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2CQK0jmO6Eu7ZeMgD+LOFbNJSXHFVQbCJJkEyEwowh1SCgYnrn9W9RykMfpeeVGw7h4IBvYikzpGUlmZTUafJw==", + "path": "runtime.native.system.security.cryptography/4.0.0", + "hashPath": "runtime.native.system.security.cryptography.4.0.0.nupkg.sha512" + }, + "System.AppContext/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-3QjO4jNV7PdKkmQAVp9atA+usVnKRwI3Kx1nMwJ93T0LcQfx7pKAYk0nKz5wn1oP5iqlhZuy6RXOFdhr7rDwow==", + "path": "system.appcontext/4.1.0", + "hashPath": "system.appcontext.4.1.0.nupkg.sha512" + }, + "System.Buffers/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-msXumHfjjURSkvxUjYuq4N2ghHoRi2VpXcKMA7gK6ujQfU3vGpl+B6ld0ATRg+FZFpRyA6PgEPA+VlIkTeNf2w==", + "path": "system.buffers/4.0.0", + "hashPath": "system.buffers.4.0.0.nupkg.sha512" + }, + "System.Collections/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg==", + "path": "system.collections/4.0.11", + "hashPath": "system.collections.4.0.11.nupkg.sha512" + }, + "System.Collections.Concurrent/4.0.12": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2gBcbb3drMLgxlI0fBfxMA31ec6AEyYCHygGse4vxceJan8mRIWeKJ24BFzN7+bi/NFTgdIgufzb94LWO5EERQ==", + "path": "system.collections.concurrent/4.0.12", + "hashPath": "system.collections.concurrent.4.0.12.nupkg.sha512" + }, + "System.Console/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-qSKUSOIiYA/a0g5XXdxFcUFmv1hNICBD7QZ0QhGYVipPIhvpiydY8VZqr1thmCXvmn8aipMg64zuanB4eotK9A==", + "path": "system.console/4.0.0", + "hashPath": "system.console.4.0.0.nupkg.sha512" + }, + "System.Diagnostics.Debug/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==", + "path": "system.diagnostics.debug/4.0.11", + "hashPath": "system.diagnostics.debug.4.0.11.nupkg.sha512" + }, + "System.Diagnostics.DiagnosticSource/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-YKglnq4BMTJxfcr6nuT08g+yJ0UxdePIHxosiLuljuHIUR6t4KhFsyaHOaOc1Ofqp0PUvJ0EmcgiEz6T7vEx3w==", + "path": "system.diagnostics.diagnosticsource/4.0.0", + "hashPath": "system.diagnostics.diagnosticsource.4.0.0.nupkg.sha512" + }, + "System.Diagnostics.Tools/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==", + "path": "system.diagnostics.tools/4.0.1", + "hashPath": "system.diagnostics.tools.4.0.1.nupkg.sha512" + }, + "System.Diagnostics.Tracing/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-vDN1PoMZCkkdNjvZLql592oYJZgS7URcJzJ7bxeBgGtx5UtR5leNm49VmfHGqIffX4FKacHbI3H6UyNSHQknBg==", + "path": "system.diagnostics.tracing/4.1.0", + "hashPath": "system.diagnostics.tracing.4.1.0.nupkg.sha512" + }, + "System.Globalization/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-B95h0YLEL2oSnwF/XjqSWKnwKOy/01VWkNlsCeMTFJLLabflpGV26nK164eRs5GiaRSBGpOxQ3pKoSnnyZN5pg==", + "path": "system.globalization/4.0.11", + "hashPath": "system.globalization.4.0.11.nupkg.sha512" + }, + "System.Globalization.Calendars/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-L1c6IqeQ88vuzC1P81JeHmHA8mxq8a18NUBNXnIY/BVb+TCyAaGIFbhpZt60h9FJNmisymoQkHEFSE9Vslja1Q==", + "path": "system.globalization.calendars/4.0.1", + "hashPath": "system.globalization.calendars.4.0.1.nupkg.sha512" + }, + "System.Globalization.Extensions/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-KKo23iKeOaIg61SSXwjANN7QYDr/3op3OWGGzDzz7mypx0Za0fZSeG0l6cco8Ntp8YMYkIQcAqlk8yhm5/Uhcg==", + "path": "system.globalization.extensions/4.0.1", + "hashPath": "system.globalization.extensions.4.0.1.nupkg.sha512" + }, + "System.IO/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ==", + "path": "system.io/4.1.0", + "hashPath": "system.io.4.1.0.nupkg.sha512" + }, + "System.IO.Compression/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-TjnBS6eztThSzeSib+WyVbLzEdLKUcEHN69VtS3u8aAsSc18FU6xCZlNWWsEd8SKcXAE+y1sOu7VbU8sUeM0sg==", + "path": "system.io.compression/4.1.0", + "hashPath": "system.io.compression.4.1.0.nupkg.sha512" + }, + "System.IO.Compression.ZipFile/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hBQYJzfTbQURF10nLhd+az2NHxsU6MU7AB8RUf4IolBP5lOAm4Luho851xl+CqslmhI5ZH/el8BlngEk4lBkaQ==", + "path": "system.io.compression.zipfile/4.0.1", + "hashPath": "system.io.compression.zipfile.4.0.1.nupkg.sha512" + }, + "System.IO.FileSystem/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-IBErlVq5jOggAD69bg1t0pJcHaDbJbWNUZTPI96fkYWzwYbN6D9wRHMULLDd9dHsl7C2YsxXL31LMfPI1SWt8w==", + "path": "system.io.filesystem/4.0.1", + "hashPath": "system.io.filesystem.4.0.1.nupkg.sha512" + }, + "System.IO.FileSystem.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-kWkKD203JJKxJeE74p8aF8y4Qc9r9WQx4C0cHzHPrY3fv/L/IhWnyCHaFJ3H1QPOH6A93whlQ2vG5nHlBDvzWQ==", + "path": "system.io.filesystem.primitives/4.0.1", + "hashPath": "system.io.filesystem.primitives.4.0.1.nupkg.sha512" + }, + "System.Linq/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g==", + "path": "system.linq/4.1.0", + "hashPath": "system.linq.4.1.0.nupkg.sha512" + }, + "System.Linq.Expressions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", + "path": "system.linq.expressions/4.1.0", + "hashPath": "system.linq.expressions.4.1.0.nupkg.sha512" + }, + "System.Net.Http/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ULq9g3SOPVuupt+Y3U+A37coXzdNisB1neFCSKzBwo182u0RDddKJF8I5+HfyXqK6OhJPgeoAwWXrbiUXuRDsg==", + "path": "system.net.http/4.1.0", + "hashPath": "system.net.http.4.1.0.nupkg.sha512" + }, + "System.Net.Primitives/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hVvfl4405DRjA2408luZekbPhplJK03j2Y2lSfMlny7GHXlkByw1iLnc9mgKW0GdQn73vvMcWrWewAhylXA4Nw==", + "path": "system.net.primitives/4.0.11", + "hashPath": "system.net.primitives.4.0.11.nupkg.sha512" + }, + "System.Net.Sockets/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xAz0N3dAV/aR/9g8r0Y5oEqU1JRsz29F5EGb/WVHmX3jVSLqi2/92M5hTad2aNWovruXrJpJtgZ9fccPMG9uSw==", + "path": "system.net.sockets/4.1.0", + "hashPath": "system.net.sockets.4.1.0.nupkg.sha512" + }, + "System.ObjectModel/4.0.12": { + "type": "package", + "serviceable": true, + "sha512": "sha512-tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==", + "path": "system.objectmodel/4.0.12", + "hashPath": "system.objectmodel.4.0.12.nupkg.sha512" + }, + "System.Reflection/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng==", + "path": "system.reflection/4.1.0", + "hashPath": "system.reflection.4.1.0.nupkg.sha512" + }, + "System.Reflection.Emit/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==", + "path": "system.reflection.emit/4.0.1", + "hashPath": "system.reflection.emit.4.0.1.nupkg.sha512" + }, + "System.Reflection.Emit.ILGeneration/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==", + "path": "system.reflection.emit.ilgeneration/4.0.1", + "hashPath": "system.reflection.emit.ilgeneration.4.0.1.nupkg.sha512" + }, + "System.Reflection.Emit.Lightweight/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==", + "path": "system.reflection.emit.lightweight/4.0.1", + "hashPath": "system.reflection.emit.lightweight.4.0.1.nupkg.sha512" + }, + "System.Reflection.Extensions/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==", + "path": "system.reflection.extensions/4.0.1", + "hashPath": "system.reflection.extensions.4.0.1.nupkg.sha512" + }, + "System.Reflection.Primitives/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-4inTox4wTBaDhB7V3mPvp9XlCbeGYWVEM9/fXALd52vNEAVisc1BoVWQPuUuD0Ga//dNbA/WeMy9u9mzLxGTHQ==", + "path": "system.reflection.primitives/4.0.1", + "hashPath": "system.reflection.primitives.4.0.1.nupkg.sha512" + }, + "System.Reflection.TypeExtensions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==", + "path": "system.reflection.typeextensions/4.1.0", + "hashPath": "system.reflection.typeextensions.4.1.0.nupkg.sha512" + }, + "System.Resources.ResourceManager/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-TxwVeUNoTgUOdQ09gfTjvW411MF+w9MBYL7AtNVc+HtBCFlutPLhUCdZjNkjbhj3bNQWMdHboF0KIWEOjJssbA==", + "path": "system.resources.resourcemanager/4.0.1", + "hashPath": "system.resources.resourcemanager.4.0.1.nupkg.sha512" + }, + "System.Runtime/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==", + "path": "system.runtime/4.1.0", + "hashPath": "system.runtime.4.1.0.nupkg.sha512" + }, + "System.Runtime.Extensions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ==", + "path": "system.runtime.extensions/4.1.0", + "hashPath": "system.runtime.extensions.4.1.0.nupkg.sha512" + }, + "System.Runtime.Handles/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-nCJvEKguXEvk2ymk1gqj625vVnlK3/xdGzx0vOKicQkoquaTBJTP13AIYkocSUwHCLNBwUbXTqTWGDxBTWpt7g==", + "path": "system.runtime.handles/4.0.1", + "hashPath": "system.runtime.handles.4.0.1.nupkg.sha512" + }, + "System.Runtime.InteropServices/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-16eu3kjHS633yYdkjwShDHZLRNMKVi/s0bY8ODiqJ2RfMhDMAwxZaUaWVnZ2P71kr/or+X9o/xFWtNqz8ivieQ==", + "path": "system.runtime.interopservices/4.1.0", + "hashPath": "system.runtime.interopservices.4.1.0.nupkg.sha512" + }, + "System.Runtime.InteropServices.RuntimeInformation/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", + "path": "system.runtime.interopservices.runtimeinformation/4.0.0", + "hashPath": "system.runtime.interopservices.runtimeinformation.4.0.0.nupkg.sha512" + }, + "System.Runtime.Numerics/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+XbKFuzdmLP3d1o9pdHu2nxjNr2OEPqGzKeegPLCUMM71a0t50A/rOcIRmGs9wR7a8KuHX6hYs/7/TymIGLNqg==", + "path": "system.runtime.numerics/4.0.1", + "hashPath": "system.runtime.numerics.4.0.1.nupkg.sha512" + }, + "System.Security.Cryptography.Algorithms/4.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-8JQFxbLVdrtIOKMDN38Fn0GWnqYZw/oMlwOUG/qz1jqChvyZlnUmu+0s7wLx7JYua/nAXoESpHA3iw11QFWhXg==", + "path": "system.security.cryptography.algorithms/4.2.0", + "hashPath": "system.security.cryptography.algorithms.4.2.0.nupkg.sha512" + }, + "System.Security.Cryptography.Cng/4.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-cUJ2h+ZvONDe28Szw3st5dOHdjndhJzQ2WObDEXAWRPEQBtVItVoxbXM/OEsTthl3cNn2dk2k0I3y45igCQcLw==", + "path": "system.security.cryptography.cng/4.2.0", + "hashPath": "system.security.cryptography.cng.4.2.0.nupkg.sha512" + }, + "System.Security.Cryptography.Csp/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-/i1Usuo4PgAqgbPNC0NjbO3jPW//BoBlTpcWFD1EHVbidH21y4c1ap5bbEMSGAXjAShhMH4abi/K8fILrnu4BQ==", + "path": "system.security.cryptography.csp/4.0.0", + "hashPath": "system.security.cryptography.csp.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.Encoding/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-FbKgE5MbxSQMPcSVRgwM6bXN3GtyAh04NkV8E5zKCBE26X0vYW0UtTa2FIgkH33WVqBVxRgxljlVYumWtU+HcQ==", + "path": "system.security.cryptography.encoding/4.0.0", + "hashPath": "system.security.cryptography.encoding.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.OpenSsl/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-HUG/zNUJwEiLkoURDixzkzZdB5yGA5pQhDP93ArOpDPQMteURIGERRNzzoJlmTreLBWr5lkFSjjMSk8ySEpQMw==", + "path": "system.security.cryptography.openssl/4.0.0", + "hashPath": "system.security.cryptography.openssl.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.Primitives/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Wkd7QryWYjkQclX0bngpntW5HSlMzeJU24UaLJQ7YTfI8ydAVAaU2J+HXLLABOVJlKTVvAeL0Aj39VeTe7L+oA==", + "path": "system.security.cryptography.primitives/4.0.0", + "hashPath": "system.security.cryptography.primitives.4.0.0.nupkg.sha512" + }, + "System.Security.Cryptography.X509Certificates/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-4HEfsQIKAhA1+ApNn729Gi09zh+lYWwyIuViihoMDWp1vQnEkL2ct7mAbhBlLYm+x/L4Rr/pyGge1lIY635e0w==", + "path": "system.security.cryptography.x509certificates/4.1.0", + "hashPath": "system.security.cryptography.x509certificates.4.1.0.nupkg.sha512" + }, + "System.Text.Encoding/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-U3gGeMlDZXxCEiY4DwVLSacg+DFWCvoiX+JThA/rvw37Sqrku7sEFeVBBBMBnfB6FeZHsyDx85HlKL19x0HtZA==", + "path": "system.text.encoding/4.0.11", + "hashPath": "system.text.encoding.4.0.11.nupkg.sha512" + }, + "System.Text.Encoding.Extensions/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-jtbiTDtvfLYgXn8PTfWI+SiBs51rrmO4AAckx4KR6vFK9Wzf6tI8kcRdsYQNwriUeQ1+CtQbM1W4cMbLXnj/OQ==", + "path": "system.text.encoding.extensions/4.0.11", + "hashPath": "system.text.encoding.extensions.4.0.11.nupkg.sha512" + }, + "System.Text.RegularExpressions/4.1.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", + "path": "system.text.regularexpressions/4.1.0", + "hashPath": "system.text.regularexpressions.4.1.0.nupkg.sha512" + }, + "System.Threading/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ==", + "path": "system.threading/4.0.11", + "hashPath": "system.threading.4.0.11.nupkg.sha512" + }, + "System.Threading.Tasks/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-k1S4Gc6IGwtHGT8188RSeGaX86Qw/wnrgNLshJvsdNUOPP9etMmo8S07c+UlOAx4K/xLuN9ivA1bD0LVurtIxQ==", + "path": "system.threading.tasks/4.0.11", + "hashPath": "system.threading.tasks.4.0.11.nupkg.sha512" + }, + "System.Threading.Tasks.Extensions/4.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-pH4FZDsZQ/WmgJtN4LWYmRdJAEeVkyriSwrv2Teoe5FOU0Yxlb6II6GL8dBPOfRmutHGATduj3ooMt7dJ2+i+w==", + "path": "system.threading.tasks.extensions/4.0.0", + "hashPath": "system.threading.tasks.extensions.4.0.0.nupkg.sha512" + }, + "System.Threading.Timer/4.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-saGfUV8uqVW6LeURiqxcGhZ24PzuRNaUBtbhVeuUAvky1naH395A/1nY0P2bWvrw/BreRtIB/EzTDkGBpqCwEw==", + "path": "system.threading.timer/4.0.1", + "hashPath": "system.threading.timer.4.0.1.nupkg.sha512" + }, + "System.Xml.ReaderWriter/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ZIiLPsf67YZ9zgr31vzrFaYQqxRPX9cVHjtPSnmx4eN6lbS/yEyYNr2vs1doGDEscF0tjCZFsk9yUg1sC9e8tg==", + "path": "system.xml.readerwriter/4.0.11", + "hashPath": "system.xml.readerwriter.4.0.11.nupkg.sha512" + }, + "System.Xml.XDocument/4.0.11": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==", + "path": "system.xml.xdocument/4.0.11", + "hashPath": "system.xml.xdocument.4.0.11.nupkg.sha512" + }, + "ReferenceProject/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.dll b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.dll new file mode 100644 index 0000000..4dc1176 Binary files /dev/null and b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.dll differ diff --git a/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.pdb b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.pdb new file mode 100644 index 0000000..55e4766 Binary files /dev/null and b/_testdata/SampleProjectReference/gauge_bin/IntegrationTestSampleProjectReference.pdb differ diff --git a/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.dll b/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.dll index 277f34b..687ed2a 100644 Binary files a/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.dll and b/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.dll differ diff --git a/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.pdb b/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.pdb index 8df94d6..84bd2a2 100644 Binary files a/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.pdb and b/_testdata/SampleProjectReference/gauge_bin/ReferenceProject.pdb differ diff --git a/integration-test/ExecuteStepProcessorTests.cs b/integration-test/ExecuteStepProcessorTests.cs index 0009623..7b6a402 100644 --- a/integration-test/ExecuteStepProcessorTests.cs +++ b/integration-test/ExecuteStepProcessorTests.cs @@ -5,103 +5,101 @@ *----------------------------------------------------------------*/ -using System.Threading; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Wrappers; using Gauge.Messages; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.IntegrationTests +namespace Gauge.Dotnet.IntegrationTests; + +public class ExecuteStepProcessorTests : IntegrationTestsBase { - public class ExecuteStepProcessorTests : IntegrationTestsBase + [Test] + public async Task ShouldExecuteMethodFromRequest() { - [Test] - public void ShouldExecuteMethodFromRequest() - { - const string parameterizedStepText = "Step that takes a table {}"; - const string stepText = "Step that takes a table "; - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); + const string parameterizedStepText = "Step that takes a table {}"; + const string stepText = "Step that takes a table
"; + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocater = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocater, new GaugeLoadContext(assemblyLocater, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var hookRegistry = new HookRegistry(assemblyLoader); + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); - var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), - orchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); + var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), + orchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); - var protoTable = new ProtoTable + var protoTable = new ProtoTable + { + Headers = new ProtoTableRow + { + Cells = { "foo", "bar" } + }, + Rows = { - Headers = new ProtoTableRow + new ProtoTableRow { - Cells = { "foo", "bar" } - }, - Rows = + Cells = {"foorow1", "foorow2"} + } + } + }; + var message = new ExecuteStepRequest + { + ParsedStepText = parameterizedStepText, + ActualStepText = stepText, + Parameters = { - new ProtoTableRow + new Parameter { - Cells = {"foorow1", "foorow2"} + Name = "table", + ParameterType = Parameter.Types.ParameterType.Table, + Table = protoTable } } - }; - var message = new ExecuteStepRequest - { - ParsedStepText = parameterizedStepText, - ActualStepText = stepText, - Parameters = - { - new Parameter - { - Name = "table", - ParameterType = Parameter.Types.ParameterType.Table, - Table = protoTable - } - } - }; - var result = executeStepProcessor.Process(message); + }; + var result = await executeStepProcessor.Process(1, message); - var protoExecutionResult = result.ExecutionResult; - ClassicAssert.IsNotNull(protoExecutionResult); - ClassicAssert.IsFalse(protoExecutionResult.Failed); - } + var protoExecutionResult = result.ExecutionResult; + ClassicAssert.IsNotNull(protoExecutionResult); + ClassicAssert.IsFalse(protoExecutionResult.Failed); + } - [Test] - public void ShouldCaptureScreenshotOnFailure() - { - const string stepText = "I throw a serializable exception"; - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = new ThreadLocal(() => assemblyLoader.GetClassInstanceManager()); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); + [Test] + public async Task ShouldCaptureScreenshotOnFailure() + { + const string stepText = "I throw a serializable exception"; + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); - var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), - orchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); + var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), + orchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); - var message = new ExecuteStepRequest - { - ParsedStepText = stepText, - ActualStepText = stepText - }; + var message = new ExecuteStepRequest + { + ParsedStepText = stepText, + ActualStepText = stepText + }; - var result = executeStepProcessor.Process(message); - var protoExecutionResult = result.ExecutionResult; + var result = await executeStepProcessor.Process(1, message); + var protoExecutionResult = result.ExecutionResult; - ClassicAssert.IsNotNull(protoExecutionResult); - ClassicAssert.IsTrue(protoExecutionResult.Failed); - ClassicAssert.AreEqual("screenshot.png", protoExecutionResult.FailureScreenshotFile); - } + ClassicAssert.IsNotNull(protoExecutionResult); + ClassicAssert.IsTrue(protoExecutionResult.Failed); + ClassicAssert.AreEqual("screenshot.png", protoExecutionResult.FailureScreenshotFile); } } \ No newline at end of file diff --git a/integration-test/ExecutionOrchestratorTests.cs b/integration-test/ExecutionOrchestratorTests.cs index d326bce..4b6434f 100644 --- a/integration-test/ExecutionOrchestratorTests.cs +++ b/integration-test/ExecutionOrchestratorTests.cs @@ -5,186 +5,184 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; using Gauge.CSharp.Lib; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Wrappers; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.IntegrationTests +namespace Gauge.Dotnet.IntegrationTests; + +[TestFixture] +public class ExecutionOrchestratorTests : IntegrationTestsBase { - [TestFixture] - public class ExecutionOrchestratorTests : IntegrationTestsBase + [Test] + public async Task RecoverableIsTrueOnExceptionThrownWhenContinueOnFailure() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + var gaugeMethod = assemblyLoader.GetStepRegistry() + .MethodFor("I throw a serializable exception and continue"); + var executionResult = await orchestrator.ExecuteStep(gaugeMethod, 1); + ClassicAssert.IsTrue(executionResult.Failed); + ClassicAssert.IsTrue(executionResult.RecoverableError); + } + + [Test] + public async Task ShouldCreateTableFromTargetType() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("Step that takes a table {}"); + var table = new Table(new List { "foo", "bar" }); + table.AddRow(new List { "foorow1", "barrow1" }); + table.AddRow(new List { "foorow2", "barrow2" }); + + var executionResult = await orchestrator.ExecuteStep(gaugeMethod, 1, SerializeTable(table)); + ClassicAssert.False(executionResult.Failed); + } + + [Test] + public async Task ShouldExecuteMethodAndReturnResult() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + var gaugeMethod = assemblyLoader.GetStepRegistry() + .MethodFor("A context step which gets executed before every scenario"); + + var executionResult = await orchestrator.ExecuteStep(gaugeMethod, 1); + ClassicAssert.False(executionResult.Failed); + } + + + [Test] + public async Task ShouldGetPendingMessages() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + + var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("Say {} to {}"); + + var executionResult = await executionOrchestrator.ExecuteStep(gaugeMethod, 1, "hello", "world"); + + ClassicAssert.False(executionResult.Failed); + ClassicAssert.Contains("hello, world!", executionResult.Message); + } + + [Test] + public async Task ShouldGetStacktraceForAggregateException() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + + var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw an AggregateException"); + var executionResult = await executionOrchestrator.ExecuteStep(gaugeMethod, 1); + + ClassicAssert.True(executionResult.Failed); + ClassicAssert.True(executionResult.StackTrace.Contains("First Exception")); + ClassicAssert.True(executionResult.StackTrace.Contains("Second Exception")); + } + + [Test] + public void ShouldGetStepTextsForMethod() + { + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var registry = assemblyLoader.GetStepRegistry(); + var gaugeMethod = registry.MethodFor("and an alias"); + var stepTexts = gaugeMethod.Aliases.ToList(); + + ClassicAssert.Contains("Step with text", stepTexts); + ClassicAssert.Contains("and an alias", stepTexts); + } + + [Test] + public async Task SuccessIsFalseOnSerializableExceptionThrown() + { + const string expectedMessage = "I am a custom serializable exception"; + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw a serializable exception"); + + var executionResult = await executionOrchestrator.ExecuteStep(gaugeMethod, 1); + + ClassicAssert.True(executionResult.Failed); + ClassicAssert.AreEqual(expectedMessage, executionResult.ErrorMessage); + StringAssert.Contains("IntegrationTestSample.StepImplementation.ThrowSerializableException", + executionResult.StackTrace); + } + + [Test] + public async Task SuccessIsFalseOnUnserializableExceptionThrown() { - [Test] - public void RecoverableIsTrueOnExceptionThrownWhenContinueOnFailure() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - var gaugeMethod = assemblyLoader.GetStepRegistry() - .MethodFor("I throw a serializable exception and continue"); - var executionResult = orchestrator.ExecuteStep(gaugeMethod); - ClassicAssert.IsTrue(executionResult.Failed); - ClassicAssert.IsTrue(executionResult.RecoverableError); - } - - [Test] - public void ShouldCreateTableFromTargetType() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("Step that takes a table {}"); - var table = new Table(new List { "foo", "bar" }); - table.AddRow(new List { "foorow1", "barrow1" }); - table.AddRow(new List { "foorow2", "barrow2" }); - - var executionResult = orchestrator.ExecuteStep(gaugeMethod, SerializeTable(table)); - ClassicAssert.False(executionResult.Failed); - } - - [Test] - public void ShouldExecuteMethodAndReturnResult() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - var gaugeMethod = assemblyLoader.GetStepRegistry() - .MethodFor("A context step which gets executed before every scenario"); - - var executionResult = orchestrator.ExecuteStep(gaugeMethod); - ClassicAssert.False(executionResult.Failed); - } - - - [Test] - public void ShouldGetPendingMessages() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - - var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("Say {} to {}"); - - var executionResult = executionOrchestrator.ExecuteStep(gaugeMethod, "hello", "world"); - - ClassicAssert.False(executionResult.Failed); - ClassicAssert.Contains("hello, world!", executionResult.Message); - } - - [Test] - public void ShouldGetStacktraceForAggregateException() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - - var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw an AggregateException"); - var executionResult = executionOrchestrator.ExecuteStep(gaugeMethod); - - ClassicAssert.True(executionResult.Failed); - ClassicAssert.True(executionResult.StackTrace.Contains("First Exception")); - ClassicAssert.True(executionResult.StackTrace.Contains("Second Exception")); - } - - [Test] - public void ShouldGetStepTextsForMethod() - { - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var registry = assemblyLoader.GetStepRegistry(); - var gaugeMethod = registry.MethodFor("and an alias"); - var stepTexts = gaugeMethod.Aliases.ToList(); - - ClassicAssert.Contains("Step with text", stepTexts); - ClassicAssert.Contains("and an alias", stepTexts); - } - - [Test] - public void SuccessIsFalseOnSerializableExceptionThrown() - { - const string expectedMessage = "I am a custom serializable exception"; - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw a serializable exception"); - - var executionResult = executionOrchestrator.ExecuteStep(gaugeMethod); - - ClassicAssert.True(executionResult.Failed); - ClassicAssert.AreEqual(expectedMessage, executionResult.ErrorMessage); - StringAssert.Contains("IntegrationTestSample.StepImplementation.ThrowSerializableException", - executionResult.StackTrace); - } - - [Test] - public void SuccessIsFalseOnUnserializableExceptionThrown() - { - const string expectedMessage = "I am a custom exception"; - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = assemblyLoader.GetClassInstanceManager(); - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); - - var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw an unserializable exception"); - var executionResult = executionOrchestrator.ExecuteStep(gaugeMethod); - ClassicAssert.True(executionResult.Failed); - ClassicAssert.AreEqual(expectedMessage, executionResult.ErrorMessage); - StringAssert.Contains("IntegrationTestSample.StepImplementation.ThrowUnserializableException", - executionResult.StackTrace); - } + const string expectedMessage = "I am a custom exception"; + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), _configuration); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), _configuration, _loggerFactory.CreateLogger()); + + var gaugeMethod = assemblyLoader.GetStepRegistry().MethodFor("I throw an unserializable exception"); + var executionResult = await executionOrchestrator.ExecuteStep(gaugeMethod, 1); + ClassicAssert.True(executionResult.Failed); + ClassicAssert.AreEqual(expectedMessage, executionResult.ErrorMessage); + StringAssert.Contains("IntegrationTestSample.StepImplementation.ThrowUnserializableException", + executionResult.StackTrace); } } \ No newline at end of file diff --git a/integration-test/ExternalReferenceTests.cs b/integration-test/ExternalReferenceTests.cs index d7df069..f55e912 100644 --- a/integration-test/ExternalReferenceTests.cs +++ b/integration-test/ExternalReferenceTests.cs @@ -5,79 +5,82 @@ *----------------------------------------------------------------*/ -using System; -using System.Threading; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Wrappers; using Gauge.Messages; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.IntegrationTests -{ - public class ExternalReferenceTests - { - [Test] - [TestCase("DllReference", "Dll Reference: Vowels in English language are {}.", "Dll Reference: Vowels in English language are .", "Dll Reference: Vowels in English language are \"aeiou\".")] - [TestCase("ProjectReference", "Project Reference: Vowels in English language are {}.", "Project Reference: Vowels in English language are .", "Project Reference: Vowels in English language are \"aeiou\".")] - public void ShouldGetStepsFromReference(string referenceType, string stepText, string stepValue, string parameterizedStepValue) - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", TestUtils.GetIntegrationTestSampleDirectory(referenceType)); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), new ReflectionWrapper(), new ActivatorWrapper(), new StepRegistry()); +namespace Gauge.Dotnet.IntegrationTests; - var stepValidationProcessor = new StepValidationProcessor(assemblyLoader.GetStepRegistry()); - var message = new StepValidateRequest - { - StepText = stepText, - StepValue = new ProtoStepValue { StepValue = stepValue, ParameterizedStepValue = parameterizedStepValue }, - NumberOfParameters = 1, - }; - var result = stepValidationProcessor.Process(message); +public class ExternalReferenceTests +{ + protected readonly ILoggerFactory _loggerFactory = new LoggerFactory(); - ClassicAssert.IsTrue(result.IsValid, $"Expected valid step text, got error: {result.ErrorMessage}"); - } + [Test] + [TestCase("DllReference", "Dll Reference: Vowels in English language are {}.", "Dll Reference: Vowels in English language are .", "Dll Reference: Vowels in English language are \"aeiou\".")] + [TestCase("ProjectReference", "Project Reference: Vowels in English language are {}.", "Project Reference: Vowels in English language are .", "Project Reference: Vowels in English language are \"aeiou\".")] + public async Task ShouldGetStepsFromReference(string referenceType, string stepText, string stepValue, string parameterizedStepValue) + { + var testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(referenceType); + var builder = new ConfigurationBuilder(); + builder.AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", testProjectPath } }); + var config = builder.Build(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), config); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), + new ReflectionWrapper(), new ActivatorWrapper(), new StepRegistry(), _loggerFactory.CreateLogger()); - [Test] - [TestCase("ProjectReference", "Take Screenshot in reference Project", "ReferenceProject-IDoNotExist.png")] - [TestCase("DllReference", "Take Screenshot in reference DLL", "ReferenceDll-IDoNotExist.png")] - public void ShouldRegisterScreenshotWriterFromReference(string referenceType, string stepText, string expected) + var stepValidationProcessor = new StepValidationProcessor(assemblyLoader.GetStepRegistry()); + var message = new StepValidateRequest { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", TestUtils.GetIntegrationTestSampleDirectory(referenceType)); - var reflectionWrapper = new ReflectionWrapper(); - var activatorWrapper = new ActivatorWrapper(); - var path = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - var assemblyLoader = new AssemblyLoader(path, new GaugeLoadContext(path), reflectionWrapper, activatorWrapper, new StepRegistry()); - var classInstanceManager = new ThreadLocal(() => assemblyLoader.GetClassInstanceManager()).Value; - var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - classInstanceManager, - new HookExecutor(assemblyLoader, reflectionWrapper, classInstanceManager, executionInfoMapper), - new StepExecutor(assemblyLoader, reflectionWrapper, classInstanceManager)); + StepText = stepText, + StepValue = new ProtoStepValue { StepValue = stepValue, ParameterizedStepValue = parameterizedStepValue }, + NumberOfParameters = 1, + }; + var result = await stepValidationProcessor.Process(1, message); + + ClassicAssert.IsTrue(result.IsValid, $"Expected valid step text, got error: {result.ErrorMessage}"); + } - var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), - executionOrchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); - var message = new ExecuteStepRequest - { - ParsedStepText = stepText, - ActualStepText = stepText - }; + [Test] + [TestCase("ProjectReference", "Take Screenshot in reference Project", "ReferenceProject-IDoNotExist.png")] + [TestCase("DllReference", "Take Screenshot in reference DLL", "ReferenceDll-IDoNotExist.png")] + public async Task ShouldRegisterScreenshotWriterFromReference(string referenceType, string stepText, string expected) + { + var testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(referenceType); + var builder = new ConfigurationBuilder(); + builder.AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", testProjectPath } }); + var config = builder.Build(); - var result = executeStepProcessor.Process(message); - var protoExecutionResult = result.ExecutionResult; + var reflectionWrapper = new ReflectionWrapper(); + var activatorWrapper = new ActivatorWrapper(); + var assemblyLocator = new AssemblyLocater(new DirectoryWrapper(), config); + var assemblyLoader = new AssemblyLoader(assemblyLocator, new GaugeLoadContext(assemblyLocator, _loggerFactory.CreateLogger()), reflectionWrapper, + activatorWrapper, new StepRegistry(), _loggerFactory.CreateLogger()); + var hookRegistry = new HookRegistry(assemblyLoader); + var executionInfoMapper = new ExecutionInfoMapper(assemblyLoader, activatorWrapper); + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + new HookExecutor(assemblyLoader, executionInfoMapper, hookRegistry, _loggerFactory.CreateLogger()), + new StepExecutor(assemblyLoader, _loggerFactory.CreateLogger()), config, _loggerFactory.CreateLogger()); - ClassicAssert.IsNotNull(protoExecutionResult); - Console.WriteLine(protoExecutionResult.ScreenshotFiles[0]); - ClassicAssert.AreEqual(protoExecutionResult.ScreenshotFiles[0], expected); - } + var executeStepProcessor = new ExecuteStepProcessor(assemblyLoader.GetStepRegistry(), + executionOrchestrator, new TableFormatter(assemblyLoader, activatorWrapper)); - [TearDown] - public void TearDown() + var message = new ExecuteStepRequest { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } + ParsedStepText = stepText, + ActualStepText = stepText + }; + + var result = await executeStepProcessor.Process(1, message); + var protoExecutionResult = result.ExecutionResult; + + ClassicAssert.IsNotNull(protoExecutionResult); + Console.WriteLine(protoExecutionResult.ScreenshotFiles[0]); + ClassicAssert.AreEqual(protoExecutionResult.ScreenshotFiles[0], expected); } } \ No newline at end of file diff --git a/integration-test/Gauge.Dotnet.IntegrationTests.csproj b/integration-test/Gauge.Dotnet.IntegrationTests.csproj index 5a2db39..4741f80 100644 --- a/integration-test/Gauge.Dotnet.IntegrationTests.csproj +++ b/integration-test/Gauge.Dotnet.IntegrationTests.csproj @@ -1,16 +1,17 @@ - - net8.0 - + + net8.0 + enable + - - - - - + + + + + - - - + + + diff --git a/integration-test/ImplementCodeProcessorTests.cs b/integration-test/ImplementCodeProcessorTests.cs index 3d2b7a5..0822c4d 100644 --- a/integration-test/ImplementCodeProcessorTests.cs +++ b/integration-test/ImplementCodeProcessorTests.cs @@ -5,122 +5,117 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; using Gauge.Dotnet.Processors; using Gauge.Messages; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.IntegrationTests +namespace Gauge.Dotnet.IntegrationTests; + +public class StubImplementationCodeTests : IntegrationTestsBase { - public class StubImplementationCodeTests : IntegrationTestsBase + [Test] + public async Task ShouldProcessMessage() { - [Test] - public void ShouldProcessMessage() + var message = new StubImplementationCodeRequest { - var message = new StubImplementationCodeRequest - { - ImplementationFilePath = "New File", - Codes = - { - "method" - } - }; + ImplementationFilePath = "New File", + Codes = + { + "method" + } + }; - var processor = new StubImplementationCodeProcessor(); - var result = processor.Process(message); - ClassicAssert.AreEqual("StepImplementation1.cs", Path.GetFileName(result.FilePath)); - ClassicAssert.AreEqual(1, result.TextDiffs.Count); - Console.WriteLine(result.TextDiffs[0].Content); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("class StepImplementation1")); - ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 0); - } + var processor = new StubImplementationCodeProcessor(_configuration); + var result = await processor.Process(1, message); + ClassicAssert.AreEqual("StepImplementation1.cs", Path.GetFileName(result.FilePath)); + ClassicAssert.AreEqual(1, result.TextDiffs.Count); + Console.WriteLine(result.TextDiffs[0].Content); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("class StepImplementation1")); + ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 0); + } - [Test] - public void ShouldProcessMessageForExistingButEmptyFile() + [Test] + public async Task ShouldProcessMessageForExistingButEmptyFile() + { + var file = Path.Combine(_testProjectPath, "Empty.cs"); + var message = new StubImplementationCodeRequest { - var file = Path.Combine(_testProjectPath, "Empty.cs"); - var message = new StubImplementationCodeRequest - { - ImplementationFilePath = file, - Codes = - { - "Step Method" - } - }; + ImplementationFilePath = file, + Codes = + { + "Step Method" + } + }; - var processor = new StubImplementationCodeProcessor(); - var result = processor.Process(message); - ClassicAssert.AreEqual(1, result.TextDiffs.Count); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("class Empty")); - StringAssert.Contains("Step Method", result.TextDiffs[0].Content); - ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 0); - } + var processor = new StubImplementationCodeProcessor(_configuration); + var result = await processor.Process(1, message); + ClassicAssert.AreEqual(1, result.TextDiffs.Count); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("class Empty")); + StringAssert.Contains("Step Method", result.TextDiffs[0].Content); + ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 0); + } - [Test] - public void ShouldProcessMessageForExistingClass() + [Test] + public async Task ShouldProcessMessageForExistingClass() + { + var file = Path.Combine(_testProjectPath, "StepImplementation.cs"); + var message = new StubImplementationCodeRequest { - var file = Path.Combine(_testProjectPath, "StepImplementation.cs"); - var message = new StubImplementationCodeRequest - { - ImplementationFilePath = file, - Codes = - { - "Step Method" - } - }; + ImplementationFilePath = file, + Codes = + { + "Step Method" + } + }; - var processor = new StubImplementationCodeProcessor(); - var result = processor.Process(message); - ClassicAssert.AreEqual(1, result.TextDiffs.Count); - StringAssert.Contains("Step Method", result.TextDiffs[0].Content); - ClassicAssert.AreEqual(107, result.TextDiffs[0].Span.Start); - } + var processor = new StubImplementationCodeProcessor(_configuration); + var result = await processor.Process(1, message); + ClassicAssert.AreEqual(1, result.TextDiffs.Count); + StringAssert.Contains("Step Method", result.TextDiffs[0].Content); + ClassicAssert.AreEqual(100, result.TextDiffs[0].Span.Start); + } - [Test] - public void ShouldProcessMessageForExistingFileWithEmptyClass() + [Test] + public async Task ShouldProcessMessageForExistingFileWithEmptyClass() + { + var file = Path.Combine(_testProjectPath, "EmptyClass.cs"); + var message = new StubImplementationCodeRequest { - var file = Path.Combine(_testProjectPath, "EmptyClass.cs"); - var message = new StubImplementationCodeRequest - { - ImplementationFilePath = file, - Codes = - { - "Step Method" - } - }; + ImplementationFilePath = file, + Codes = + { + "Step Method" + } + }; - var processor = new StubImplementationCodeProcessor(); - var result = processor.Process(message); - ClassicAssert.AreEqual(1, result.TextDiffs.Count); - StringAssert.Contains("Step Method", result.TextDiffs[0].Content); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("Step Method")); - ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 8); - } + var processor = new StubImplementationCodeProcessor(_configuration); + var result = await processor.Process(1, message); + ClassicAssert.AreEqual(1, result.TextDiffs.Count); + StringAssert.Contains("Step Method", result.TextDiffs[0].Content); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("Step Method")); + ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 8); + } - [Test] - public void ShouldProcessMessageForExistingFileWithSomeComments() + [Test] + public async Task ShouldProcessMessageForExistingFileWithSomeComments() + { + var file = Path.Combine(_testProjectPath, "CommentFile.cs"); + var message = new StubImplementationCodeRequest { - var file = Path.Combine(_testProjectPath, "CommentFile.cs"); - var message = new StubImplementationCodeRequest - { - ImplementationFilePath = file, - Codes = - { - "Step Method" - } - }; + ImplementationFilePath = file, + Codes = + { + "Step Method" + } + }; - var processor = new StubImplementationCodeProcessor(); - var result = processor.Process(message); - ClassicAssert.AreEqual(1, result.TextDiffs.Count); - StringAssert.Contains("Step Method", result.TextDiffs[0].Content); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); - ClassicAssert.True(result.TextDiffs[0].Content.Contains("class CommentFile")); - ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 3); - } + var processor = new StubImplementationCodeProcessor(_configuration); + var result = await processor.Process(1, message); + ClassicAssert.AreEqual(1, result.TextDiffs.Count); + StringAssert.Contains("Step Method", result.TextDiffs[0].Content); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("namespace Sample")); + ClassicAssert.True(result.TextDiffs[0].Content.Contains("class CommentFile")); + ClassicAssert.AreEqual(result.TextDiffs[0].Span.Start, 3); } } \ No newline at end of file diff --git a/integration-test/IntegrationTestsBase.cs b/integration-test/IntegrationTestsBase.cs index 45a3115..63b6303 100644 --- a/integration-test/IntegrationTestsBase.cs +++ b/integration-test/IntegrationTestsBase.cs @@ -5,39 +5,35 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; using System.Runtime.Serialization.Json; using System.Text; using Gauge.CSharp.Lib; -using NUnit.Framework; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.IntegrationTests -{ - public class IntegrationTestsBase - { - protected string _testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(); +namespace Gauge.Dotnet.IntegrationTests; - [SetUp] - public void Setup() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", _testProjectPath); - } +public class IntegrationTestsBase +{ + protected readonly ILoggerFactory _loggerFactory = new LoggerFactory(); + protected IConfiguration _configuration; + protected string _testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(); - public static string SerializeTable(Table table) - { - var serializer = new DataContractJsonSerializer(typeof(Table)); - using (var memoryStream = new MemoryStream()) - { - serializer.WriteObject(memoryStream, table); - return Encoding.UTF8.GetString(memoryStream.ToArray()); - } - } + [SetUp] + public void Setup() + { + var builder = new ConfigurationBuilder(); + builder.AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", _testProjectPath } }); + _configuration = builder.Build(); + } - [TearDown] - public void TearDown() + public static string SerializeTable(Table table) + { + var serializer = new DataContractJsonSerializer(typeof(Table)); + using (var memoryStream = new MemoryStream()) { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); + serializer.WriteObject(memoryStream, table); + return Encoding.UTF8.GetString(memoryStream.ToArray()); } } } \ No newline at end of file diff --git a/integration-test/RefactorHelperTests.cs b/integration-test/RefactorHelperTests.cs index c38b9b5..61140e0 100644 --- a/integration-test/RefactorHelperTests.cs +++ b/integration-test/RefactorHelperTests.cs @@ -5,226 +5,216 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Gauge.CSharp.Lib.Attribute; using Gauge.Dotnet.Models; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.IntegrationTests +namespace Gauge.Dotnet.IntegrationTests; + +[TestFixture] +internal class RefactorHelperTests { - [TestFixture] - internal class RefactorHelperTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", _testProjectPath); + File.Copy(Path.Combine(_testProjectPath, "RefactoringSample.cs"), + Path.Combine(_testProjectPath, "RefactoringSample.copy"), true); + } - File.Copy(Path.Combine(_testProjectPath, "RefactoringSample.cs"), - Path.Combine(_testProjectPath, "RefactoringSample.copy"), true); - } + [TearDown] + public void TearDown() + { + var sourceFileName = Path.Combine(_testProjectPath, "RefactoringSample.copy"); + File.Copy(sourceFileName, Path.Combine(_testProjectPath, "RefactoringSample.cs"), true); + File.Delete(sourceFileName); + } - [TearDown] - public void TearDown() - { - var sourceFileName = Path.Combine(_testProjectPath, "RefactoringSample.copy"); - File.Copy(sourceFileName, Path.Combine(_testProjectPath, "RefactoringSample.cs"), true); - File.Delete(sourceFileName); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } + private readonly string _testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(); - private readonly string _testProjectPath = TestUtils.GetIntegrationTestSampleDirectory(); + private void ClassicAssertStepAttributeWithTextExists(RefactoringChange result, string methodName, string text) + { + var name = methodName.Split('.').Last().Split('-').First(); + var tree = + CSharpSyntaxTree.ParseText(result.FileContent); + var root = tree.GetRoot(); + + var stepTexts = root.DescendantNodes().OfType() + .Select( + node => new { node, attributeSyntaxes = node.AttributeLists.SelectMany(syntax => syntax.Attributes) }) + .Where(t => string.CompareOrdinal(t.node.Identifier.ValueText, name) == 0 + && + t.attributeSyntaxes.Any( + syntax => string.CompareOrdinal(syntax.ToFullString(), typeof(Step).ToString()) > 0)) + .SelectMany(t => t.node.AttributeLists.SelectMany(syntax => syntax.Attributes)) + .SelectMany(syntax => syntax.ArgumentList.Arguments) + .Select(syntax => syntax.GetText().ToString().Trim('"')); + ClassicAssert.True(stepTexts.Contains(text)); + } - private void ClassicAssertStepAttributeWithTextExists(RefactoringChange result, string methodName, string text) - { - var name = methodName.Split('.').Last().Split('-').First(); - var tree = - CSharpSyntaxTree.ParseText(result.FileContent); - var root = tree.GetRoot(); - - var stepTexts = root.DescendantNodes().OfType() - .Select( - node => new { node, attributeSyntaxes = node.AttributeLists.SelectMany(syntax => syntax.Attributes) }) - .Where(t => string.CompareOrdinal(t.node.Identifier.ValueText, name) == 0 - && - t.attributeSyntaxes.Any( - syntax => string.CompareOrdinal(syntax.ToFullString(), typeof(Step).ToString()) > 0)) - .SelectMany(t => t.node.AttributeLists.SelectMany(syntax => syntax.Attributes)) - .SelectMany(syntax => syntax.ArgumentList.Arguments) - .Select(syntax => syntax.GetText().ToString().Trim('"')); - ClassicAssert.True(stepTexts.Contains(text)); - } - - private void ClassicAssertParametersExist(RefactoringChange result, string methodName, - IReadOnlyList parameters) - { - var name = methodName.Split('.').Last().Split('-').First(); - var tree = - CSharpSyntaxTree.ParseText(result.FileContent); - var root = tree.GetRoot(); - var methodParameters = root.DescendantNodes().OfType() - .Where(syntax => string.CompareOrdinal(syntax.Identifier.Text, name) == 0) - .Select(syntax => syntax.ParameterList) - .SelectMany(syntax => syntax.Parameters) - .Select(syntax => syntax.Identifier.Text) - .ToArray(); - - for (var i = 0; i < parameters.Count; i++) - ClassicAssert.AreEqual(parameters[i], methodParameters[i]); - } - - [Test] - public void ShouldAddParameters() - { - const string newStepValue = "Refactoring Say to in "; - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSaySomething", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - - var parameterPositions = new[] - {new Tuple(0, 0), new Tuple(1, 1), new Tuple(-1, 2)}; - var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, - new List { "what", "who", "where" }, - newStepValue); - ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); - ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "what", "who", "where" }); - } - - [Test] - public void ShouldAddParametersWhenNoneExisted() + private void ClassicAssertParametersExist(RefactoringChange result, string methodName, + IReadOnlyList parameters) + { + var name = methodName.Split('.').Last().Split('-').First(); + var tree = + CSharpSyntaxTree.ParseText(result.FileContent); + var root = tree.GetRoot(); + var methodParameters = root.DescendantNodes().OfType() + .Where(syntax => string.CompareOrdinal(syntax.Identifier.Text, name) == 0) + .Select(syntax => syntax.ParameterList) + .SelectMany(syntax => syntax.Parameters) + .Select(syntax => syntax.Identifier.Text) + .ToArray(); + + for (var i = 0; i < parameters.Count; i++) + ClassicAssert.AreEqual(parameters[i], methodParameters[i]); + } + + [Test] + public void ShouldAddParameters() + { + const string newStepValue = "Refactoring Say to in "; + var gaugeMethod = new GaugeMethod { - const string newStepValue = "Refactoring this is a test step "; - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSampleTest", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - var parameterPositions = new[] { new Tuple(-1, 0) }; - - var changes = - RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "foo" }, newStepValue); - - ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); - ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "foo" }); - } - - [Test] - public void ShouldAddParametersWithReservedKeywordName() + Name = "RefactoringSaySomething", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + + var parameterPositions = new[] + {new Tuple(0, 0), new Tuple(1, 1), new Tuple(-1, 2)}; + var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, + new List { "what", "who", "where" }, + newStepValue); + ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); + ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "what", "who", "where" }); + } + + [Test] + public void ShouldAddParametersWhenNoneExisted() + { + const string newStepValue = "Refactoring this is a test step "; + var gaugeMethod = new GaugeMethod { - const string newStepValue = "Refactoring this is a test step "; + Name = "RefactoringSampleTest", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + var parameterPositions = new[] { new Tuple(-1, 0) }; + + var changes = + RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "foo" }, newStepValue); + + ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); + ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "foo" }); + } - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSampleTest", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - var parameterPositions = new[] { new Tuple(-1, 0) }; + [Test] + public void ShouldAddParametersWithReservedKeywordName() + { + const string newStepValue = "Refactoring this is a test step "; - var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "class" }, - newStepValue); + var gaugeMethod = new GaugeMethod + { + Name = "RefactoringSampleTest", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + var parameterPositions = new[] { new Tuple(-1, 0) }; - ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); - ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "@class" }); - } + var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "class" }, + newStepValue); + + ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, newStepValue); + ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "@class" }); + } - [Test] - public void ShouldRefactorAndReturnFilesChanged() + [Test] + public void ShouldRefactorAndReturnFilesChanged() + { + var gaugeMethod = new GaugeMethod { - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringContext", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; + Name = "RefactoringContext", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; - var expectedPath = Path.GetFullPath(Path.Combine(_testProjectPath, "RefactoringSample.cs")); + var expectedPath = Path.GetFullPath(Path.Combine(_testProjectPath, "RefactoringSample.cs")); - var changes = - RefactorHelper.Refactor(gaugeMethod, new List>(), new List(), "foo"); + var changes = + RefactorHelper.Refactor(gaugeMethod, new List>(), new List(), "foo"); - ClassicAssert.AreEqual(expectedPath, changes.FileName); - } + ClassicAssert.AreEqual(expectedPath, changes.FileName); + } - [Test] - public void ShouldRefactorAttributeText() + [Test] + public void ShouldRefactorAttributeText() + { + var gaugeMethod = new GaugeMethod { - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringContext", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - var changes = RefactorHelper.Refactor(gaugeMethod, new List>(), new List(), "foo"); - - ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, "foo"); - } - - [Test] - public void ShouldRemoveParameters() + Name = "RefactoringContext", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + var changes = RefactorHelper.Refactor(gaugeMethod, new List>(), new List(), "foo"); + + ClassicAssertStepAttributeWithTextExists(changes, gaugeMethod.Name, "foo"); + } + + [Test] + public void ShouldRemoveParameters() + { + var gaugeMethod = new GaugeMethod { - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSaySomething", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - var parameterPositions = new[] { new Tuple(0, 0) }; - - var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List(), - "Refactoring Say to someone"); - - ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "what" }); - } - - [Test] - public void ShouldRemoveParametersInAnyOrder() + Name = "RefactoringSaySomething", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + var parameterPositions = new[] { new Tuple(0, 0) }; + + var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List(), + "Refactoring Say to someone"); + + ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "what" }); + } + + [Test] + public void ShouldRemoveParametersInAnyOrder() + { + var gaugeMethod = new GaugeMethod { - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSaySomething", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; + Name = "RefactoringSaySomething", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; - var parameterPositions = new[] { new Tuple(1, 0) }; + var parameterPositions = new[] { new Tuple(1, 0) }; - var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List(), - "Refactoring Say something to "); + var changes = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List(), + "Refactoring Say something to "); - ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "who" }); - } + ClassicAssertParametersExist(changes, gaugeMethod.Name, new[] { "who" }); + } + + [Test] + public void ShouldReorderParameters() + { + const string newStepValue = "Refactoring Say to "; - [Test] - public void ShouldReorderParameters() + var gaugeMethod = new GaugeMethod { - const string newStepValue = "Refactoring Say to "; - - var gaugeMethod = new GaugeMethod - { - Name = "RefactoringSaySomething", - ClassName = "RefactoringSample", - FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") - }; - - var parameterPositions = new[] { new Tuple(0, 1), new Tuple(1, 0) }; - var result = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "who", "what" }, - newStepValue); - - ClassicAssertStepAttributeWithTextExists(result, gaugeMethod.Name, newStepValue); - ClassicAssertParametersExist(result, gaugeMethod.Name, new[] { "who", "what" }); - ClassicAssert.True(result.Diffs.Any(d => d.Content == "\"Refactoring Say to \"")); - ClassicAssert.True(result.Diffs.Any(d => d.Content == "(string who,string what)")); - } + Name = "RefactoringSaySomething", + ClassName = "RefactoringSample", + FileName = Path.Combine(_testProjectPath, "RefactoringSample.cs") + }; + + var parameterPositions = new[] { new Tuple(0, 1), new Tuple(1, 0) }; + var result = RefactorHelper.Refactor(gaugeMethod, parameterPositions, new List { "who", "what" }, + newStepValue); + + ClassicAssertStepAttributeWithTextExists(result, gaugeMethod.Name, newStepValue); + ClassicAssertParametersExist(result, gaugeMethod.Name, new[] { "who", "what" }); + ClassicAssert.True(result.Diffs.Any(d => d.Content == "\"Refactoring Say to \"")); + ClassicAssert.True(result.Diffs.Any(d => d.Content == "(string who,string what)")); } } \ No newline at end of file diff --git a/integration-test/RefactorProcessorTests.cs b/integration-test/RefactorProcessorTests.cs index d1a1fb3..1fb0091 100644 --- a/integration-test/RefactorProcessorTests.cs +++ b/integration-test/RefactorProcessorTests.cs @@ -5,13 +5,9 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using NUnit.Framework; -using NUnit.Framework.Legacy; namespace Gauge.Dotnet.IntegrationTests { @@ -22,14 +18,12 @@ public class RefactorProcessorTests [SetUp] public void Setup() { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", _testProjectPath); - File.Copy(Path.Combine(_testProjectPath, "RefactoringSample.cs"), Path.Combine(_testProjectPath, "RefactoringSample.copy1"), true); } [Test] - public void ShouldAddParameters() + public async Task ShouldAddParameters() { const string parameterizedStepText = "Refactoring 1 Say to "; const string stepValue = "Refactoring 1 Say {} to {}"; @@ -65,7 +59,7 @@ public void ShouldAddParameters() }; var refactorProcessor = new RefactorProcessor(stepRegistry); - var result = refactorProcessor.Process(message); + var result = await refactorProcessor.Process(1, message); ClassicAssert.IsTrue(result.Success); } @@ -75,7 +69,6 @@ public void TearDown() var sourceFileName = Path.Combine(_testProjectPath, "RefactoringSample.copy1"); File.Copy(sourceFileName, Path.Combine(_testProjectPath, "RefactoringSample.cs"), true); File.Delete(sourceFileName); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); } } } \ No newline at end of file diff --git a/integration-test/Usings.cs b/integration-test/Usings.cs new file mode 100644 index 0000000..9064743 --- /dev/null +++ b/integration-test/Usings.cs @@ -0,0 +1,2 @@ +global using NUnit.Framework; +global using NUnit.Framework.Legacy; \ No newline at end of file diff --git a/src/AssemblyLoader.cs b/src/AssemblyLoader.cs index 768d160..d119e83 100644 --- a/src/AssemblyLoader.cs +++ b/src/AssemblyLoader.cs @@ -5,184 +5,178 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Reflection; using System.Text.RegularExpressions; using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Models; using Gauge.Dotnet.Wrappers; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public class AssemblyLoader : IAssemblyLoader { - public class AssemblyLoader : IAssemblyLoader + private const string GaugeLibAssemblyName = "Gauge.CSharp.Lib"; + private readonly IReflectionWrapper _reflectionWrapper; + private readonly IGaugeLoadContext _gaugeLoadContext; + private Assembly _targetLibAssembly; + private object _classInstanceManager; + + private readonly IActivatorWrapper _activatorWrapper; + private readonly IStepRegistry _registry; + private readonly ILogger _logger; + + public AssemblyLoader(IAssemblyLocater locater, IGaugeLoadContext gaugeLoadContext, IReflectionWrapper reflectionWrapper, + IActivatorWrapper activatorWrapper, IStepRegistry registry, ILogger logger) { - private const string GaugeLibAssemblyName = "Gauge.CSharp.Lib"; - private readonly IReflectionWrapper _reflectionWrapper; - private readonly IGaugeLoadContext _gaugeLoadContext; - private Assembly _targetLibAssembly; + var assemblyPath = locater.GetTestAssembly(); + _reflectionWrapper = reflectionWrapper; + _activatorWrapper = activatorWrapper; + AssembliesReferencingGaugeLib = new List(); + _registry = registry; + _logger = logger; + + _logger.LogDebug("Loading assembly from : {AssemblyPath}", assemblyPath); + _gaugeLoadContext = gaugeLoadContext; + this._targetLibAssembly = _gaugeLoadContext.LoadFromAssemblyName(new AssemblyName(GaugeLibAssemblyName)); + ScanAndLoad(assemblyPath); + AssembliesReferencingGaugeLib = _gaugeLoadContext.GetAssembliesReferencingGaugeLib().ToList(); + _logger.LogDebug("Number of AssembliesReferencingGaugeLib : {AssembliesReferencingGaugeLibCount}", AssembliesReferencingGaugeLib.Count); + SetDefaultTypes(); + _registry = GetStepRegistry(); + } - private readonly IActivatorWrapper _activatorWrapper; - private readonly IStepRegistry _registry; + public List AssembliesReferencingGaugeLib { get; } + public Type ScreenshotWriter { get; private set; } + public Type ClassInstanceManagerType { get; private set; } + + public IEnumerable GetMethods(LibType type) + { + var attributeType = _targetLibAssembly.ExportedTypes.First(x => x.FullName == type.FullName()); - public AssemblyLoader(AssemblyPath assemblyPath, IGaugeLoadContext gaugeLoadContext, - IReflectionWrapper reflectionWrapper, IActivatorWrapper activatorWrapper, IStepRegistry registry) + IEnumerable MethodSelector(Type t) { - _reflectionWrapper = reflectionWrapper; - _activatorWrapper = activatorWrapper; - AssembliesReferencingGaugeLib = new List(); - _registry = registry; - - Logger.Debug($"Loading assembly from : {assemblyPath}"); - _gaugeLoadContext = gaugeLoadContext; - this._targetLibAssembly = _gaugeLoadContext.LoadFromAssemblyName(new AssemblyName(GaugeLibAssemblyName)); - ScanAndLoad(assemblyPath); - AssembliesReferencingGaugeLib = _gaugeLoadContext.GetAssembliesReferencingGaugeLib().ToList(); - Logger.Debug($"Number of AssembliesReferencingGaugeLib : {AssembliesReferencingGaugeLib.Count()}"); - SetDefaultTypes(); + return _reflectionWrapper.GetMethods(t) + .Where(info => info.GetCustomAttributes(false).Any(attributeType.IsInstanceOfType)); } + return AssembliesReferencingGaugeLib.SelectMany(assembly => assembly.ExportedTypes.SelectMany(MethodSelector)); + } - public List AssembliesReferencingGaugeLib { get; } - public Type ScreenshotWriter { get; private set; } - public Type ClassInstanceManagerType { get; private set; } - - public IEnumerable GetMethods(LibType type) + public Type GetLibType(LibType type) + { + try { - var attributeType = _targetLibAssembly.ExportedTypes.First(x => x.FullName == type.FullName()); - - IEnumerable MethodSelector(Type t) - { - return _reflectionWrapper.GetMethods(t) - .Where(info => info.GetCustomAttributes(false).Any(attributeType.IsInstanceOfType)); - } - return AssembliesReferencingGaugeLib.SelectMany(assembly => assembly.ExportedTypes.SelectMany(MethodSelector)); + return _targetLibAssembly.ExportedTypes.First(t => t.FullName == type.FullName()); } - - public Type GetLibType(LibType type) + catch (InvalidOperationException ex) { - try - { - return _targetLibAssembly.ExportedTypes.First(t => t.FullName == type.FullName()); - } - catch (InvalidOperationException ex) - { - throw new InvalidOperationException($"Cannot locate {type.FullName()} in Gauge.CSharp.Lib", ex); - } + throw new InvalidOperationException($"Cannot locate {type.FullName()} in Gauge.CSharp.Lib", ex); } + } - public IStepRegistry GetStepRegistry() + public IStepRegistry GetStepRegistry() + { + _logger.LogDebug("Building StepRegistry..."); + var infos = GetMethods(LibType.Step); + _logger.LogDebug("{InfosCount} Step implementations found. Adding to registry...", infos.Count()); + foreach (var info in infos) { - Logger.Debug("Building StepRegistry..."); - var infos = GetMethods(LibType.Step); - Logger.Debug($"{infos.Count()} Step implementations found. Adding to registry..."); - foreach (var info in infos) + var stepTexts = Attribute.GetCustomAttributes(info).Where(x => x.GetType().FullName == LibType.Step.FullName()) + .SelectMany(x => x.GetType().GetProperty("Names").GetValue(x, null) as string[]); + foreach (var stepText in stepTexts) { - var stepTexts = info.GetCustomAttributes().Where(x => x.GetType().FullName == LibType.Step.FullName()) - .SelectMany(x => x.GetType().GetProperty("Names").GetValue(x, null) as string[]); - foreach (var stepText in stepTexts) + var stepValue = GetStepValue(stepText); + if (_registry.ContainsStep(stepValue)) { - var stepValue = GetStepValue(stepText); - if (_registry.ContainsStep(stepValue)) - { - Logger.Debug($"'{stepValue}': implementation found in StepRegistry, setting reflected methodInfo"); - _registry.MethodFor(stepValue).MethodInfo = info; - _registry.MethodFor(stepValue).ContinueOnFailure = info.IsRecoverableStep(this); - } - else + _logger.LogDebug("'{StepValue}': implementation found in StepRegistry, setting reflected methodInfo", stepValue); + _registry.MethodFor(stepValue).MethodInfo = info; + _registry.MethodFor(stepValue).ContinueOnFailure = info.IsRecoverableStep(this); + } + else + { + _logger.LogDebug("'{StepValue}': no implementation in StepRegistry, adding via reflection", stepValue); + var hasAlias = stepTexts.Count() > 1; + var stepMethod = new GaugeMethod { - Logger.Debug($"'{stepValue}': no implementation in StepRegistry, adding via reflection"); - var hasAlias = stepTexts.Count() > 1; - var stepMethod = new GaugeMethod - { - Name = info.FullyQuallifiedName(), - ParameterCount = info.GetParameters().Length, - StepText = stepText, - HasAlias = hasAlias, - Aliases = stepTexts, - MethodInfo = info, - ContinueOnFailure = info.IsRecoverableStep(this), - StepValue = stepValue, - IsExternal = true, - }; - _registry.AddStep(stepValue, stepMethod); - } - + Name = info.FullyQuallifiedName(), + ParameterCount = info.GetParameters().Length, + StepText = stepText, + HasAlias = hasAlias, + Aliases = stepTexts, + MethodInfo = info, + ContinueOnFailure = info.IsRecoverableStep(this), + StepValue = stepValue, + IsExternal = true, + }; + _registry.AddStep(stepValue, stepMethod); } + } - return _registry; } + return _registry; + } - public object GetClassInstanceManager() - { - if (ClassInstanceManagerType == null) return null; - var classInstanceManager = _activatorWrapper.CreateInstance(ClassInstanceManagerType); - Logger.Debug("Loaded Instance Manager of Type:" + classInstanceManager.GetType().FullName); - _reflectionWrapper.InvokeMethod(ClassInstanceManagerType, classInstanceManager, "Initialize", - AssembliesReferencingGaugeLib); - return classInstanceManager; - } + public object GetClassInstanceManager() + { + if (_classInstanceManager != null) return _classInstanceManager; + if (ClassInstanceManagerType == null) return null; + _classInstanceManager = _activatorWrapper.CreateInstance(ClassInstanceManagerType); + _logger.LogDebug("Loaded Instance Manager of Type: {ClassInstanceManagerType}", _classInstanceManager.GetType().FullName); + _reflectionWrapper.InvokeMethod(ClassInstanceManagerType, _classInstanceManager, "Initialize", AssembliesReferencingGaugeLib); + return _classInstanceManager; + } + + private static string GetStepValue(string stepText) + { + return Regex.Replace(stepText, @"(<.*?>)", @"{}"); + } - private static string GetStepValue(string stepText) + private void ScanAndLoad(string path) + { + var assembly = _gaugeLoadContext.LoadFromAssemblyName(new AssemblyName(Path.GetFileNameWithoutExtension(path))); + foreach (var reference in assembly.GetReferencedAssemblies()) { - return Regex.Replace(stepText, @"(<.*?>)", @"{}"); + _gaugeLoadContext.LoadFromAssemblyName(reference); } - - private void ScanAndLoad(string path) + try { - var assembly = _gaugeLoadContext.LoadFromAssemblyName(new AssemblyName(Path.GetFileNameWithoutExtension(path))); - foreach (var reference in assembly.GetReferencedAssemblies()) - { - _gaugeLoadContext.LoadFromAssemblyName(reference); - } - try - { - if (ScreenshotWriter is null) - ScanForCustomScreenshotWriter(assembly.ExportedTypes); + var exportedTypes = _gaugeLoadContext.GetAssembliesReferencingGaugeLib().SelectMany(x => x.ExportedTypes).ToList(); + if (ScreenshotWriter is null) + ScanForCustomScreenshotWriter(exportedTypes); - if (ClassInstanceManagerType is null) - ScanForCustomInstanceManager(assembly.ExportedTypes); - } - catch (ReflectionTypeLoadException ex) - { - foreach (var e in ex.LoaderExceptions) - Logger.Error(e.ToString()); - } + if (ClassInstanceManagerType is null) + ScanForCustomInstanceManager(exportedTypes); } - - private void ScanForCustomScreenshotWriter(IEnumerable types) + catch (ReflectionTypeLoadException ex) { - var deprecatedImplementations = types.Where(type => type.GetInterfaces().Any(t => t.FullName == "Gauge.CSharp.Lib.ICustomScreenshotGrabber")); - if (deprecatedImplementations.Any()) - { - Logger.Error("These types implement DEPRECATED ICustomScreenshotGrabber interface and will not be used. Use ICustomScreenshotWriter instead.\n" + - deprecatedImplementations.Select(x => x.FullName).Aggregate((a, b) => $"{a}, {b}")); - } - var implementingTypes = types.Where(type => - type.GetInterfaces().Any(t => t.FullName == "Gauge.CSharp.Lib.ICustomScreenshotWriter")); - ScreenshotWriter = implementingTypes.FirstOrDefault(); - if (ScreenshotWriter is null) return; - var csg = _activatorWrapper.CreateInstance(ScreenshotWriter); - var gaugeScreenshotsType = _targetLibAssembly.ExportedTypes.First(x => x.FullName == "Gauge.CSharp.Lib.GaugeScreenshots"); - _reflectionWrapper.InvokeMethod(gaugeScreenshotsType, null, "RegisterCustomScreenshotWriter", - BindingFlags.Static | BindingFlags.Public, new[] {csg}); + foreach (var e in ex.LoaderExceptions) + _logger.LogError(e.ToString()); } + } - private void ScanForCustomInstanceManager(IEnumerable types) - { - var implementingTypes = types.Where(type => - type.GetInterfaces().Any(t => t.FullName == "Gauge.CSharp.Lib.IClassInstanceManager")); - ClassInstanceManagerType = implementingTypes.FirstOrDefault(); - } + private void ScanForCustomScreenshotWriter(IEnumerable types) + { + var implementingTypes = types.Where(type => type.GetInterfaces().Any(t => t.FullName == "Gauge.CSharp.Lib.ICustomScreenshotWriter")); + ScreenshotWriter = implementingTypes.FirstOrDefault(); + if (ScreenshotWriter is null) return; + var csg = _activatorWrapper.CreateInstance(ScreenshotWriter); + var gaugeScreenshotsType = _targetLibAssembly.ExportedTypes.First(x => x.FullName == "Gauge.CSharp.Lib.GaugeScreenshots"); + _reflectionWrapper.InvokeMethod(gaugeScreenshotsType, null, "RegisterCustomScreenshotWriter", + BindingFlags.Static | BindingFlags.Public, new[] { csg }); + } - private void SetDefaultTypes() - { - ClassInstanceManagerType = ClassInstanceManagerType ?? - _targetLibAssembly.GetType(LibType.DefaultClassInstanceManager.FullName()); - ScreenshotWriter = ScreenshotWriter ?? - _targetLibAssembly.GetType(LibType.DefaultScreenshotWriter.FullName()); - } + private void ScanForCustomInstanceManager(IEnumerable types) + { + var implementingTypes = types.Where(type => + type.GetInterfaces().Any(t => t.FullName == "Gauge.CSharp.Lib.IClassInstanceManager")); + ClassInstanceManagerType = implementingTypes.FirstOrDefault(); + } + + private void SetDefaultTypes() + { + ClassInstanceManagerType = ClassInstanceManagerType ?? + _targetLibAssembly.GetType(LibType.DefaultClassInstanceManager.FullName()); + ScreenshotWriter = ScreenshotWriter ?? + _targetLibAssembly.GetType(LibType.DefaultScreenshotWriter.FullName()); } } \ No newline at end of file diff --git a/src/AssemblyLocater.cs b/src/AssemblyLocater.cs index 22709fd..f967946 100644 --- a/src/AssemblyLocater.cs +++ b/src/AssemblyLocater.cs @@ -5,36 +5,35 @@ *----------------------------------------------------------------*/ -using System.IO; -using System.Linq; -using Gauge.CSharp.Core; using Gauge.Dotnet.Exceptions; +using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Wrappers; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public class AssemblyLocater : IAssemblyLocater { - public class AssemblyLocater : IAssemblyLocater + private readonly IDirectoryWrapper _directoryWrapper; + private readonly IConfiguration _config; + + public AssemblyLocater(IDirectoryWrapper directoryWrapper, IConfiguration config) { - private readonly IDirectoryWrapper _directoryWrapper; + _directoryWrapper = directoryWrapper; + _config = config; + } - public AssemblyLocater(IDirectoryWrapper directoryWrapper) + public string GetTestAssembly() + { + var gaugeBinDir = _config.GetGaugeBinDir(); + try { - _directoryWrapper = directoryWrapper; + return _directoryWrapper + .EnumerateFiles(gaugeBinDir, "*.deps.json", SearchOption.TopDirectoryOnly) + .First().Replace(".deps.json", ".dll"); } - - public AssemblyPath GetTestAssembly() + catch (System.InvalidOperationException) { - var gaugeBinDir = Utils.GetGaugeBinDir(); - try - { - return _directoryWrapper - .EnumerateFiles(gaugeBinDir, "*.deps.json", SearchOption.TopDirectoryOnly) - .First().Replace(".deps.json", ".dll"); - } - catch (System.InvalidOperationException) - { - throw new GaugeTestAssemblyNotFoundException(gaugeBinDir); - } + throw new GaugeTestAssemblyNotFoundException(gaugeBinDir); } } } \ No newline at end of file diff --git a/src/AssemblyPath.cs b/src/AssemblyPath.cs deleted file mode 100644 index 760759c..0000000 --- a/src/AssemblyPath.cs +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -namespace Gauge.Dotnet -{ - public class AssemblyPath - { - private readonly string _path; - - public AssemblyPath(string path) - { - this._path = path; - } - - public static implicit operator string(AssemblyPath path) - { - return path._path; - } - - public static implicit operator AssemblyPath(string path) - { - return new AssemblyPath(path); - } - } -} \ No newline at end of file diff --git a/src/AttributesLoader.cs b/src/AttributesLoader.cs index 185f8f8..cec37e9 100644 --- a/src/AttributesLoader.cs +++ b/src/AttributesLoader.cs @@ -5,19 +5,24 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; using System.Xml.Linq; -using Gauge.CSharp.Core; +using Gauge.Dotnet.Extensions; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public class AttributesLoader : IAttributesLoader { - public class AttributesLoader : IAttributesLoader + private readonly IConfiguration _config; + + public AttributesLoader(IConfiguration config) + { + _config = config; + } + + public virtual IEnumerable GetRemovedAttributes() { - public virtual IEnumerable GetRemovedAttributes() - { - var xmldoc = XDocument.Load(Utils.ReadEnvValue("GAUGE_CSHARP_PROJECT_FILE")); - var attributes = xmldoc.Descendants().Attributes("Remove"); - return attributes; - } + var xmldoc = XDocument.Load(_config.GetGaugeCSharpProjectFile()); + var attributes = xmldoc.Descendants().Attributes("Remove"); + return attributes; } } \ No newline at end of file diff --git a/src/AuthoringRunnerServiceHandler.cs b/src/AuthoringRunnerServiceHandler.cs index 3d4596c..0199073 100644 --- a/src/AuthoringRunnerServiceHandler.cs +++ b/src/AuthoringRunnerServiceHandler.cs @@ -5,119 +5,78 @@ *----------------------------------------------------------------*/ -using System.Threading.Tasks; -using Gauge.Dotnet.Executor; -using Gauge.Dotnet.Helpers; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; -using Gauge.Dotnet.Processors; using Gauge.Messages; using Grpc.Core; -using Microsoft.Extensions.Hosting; -namespace Gauge.Dotnet -{ - internal class AuthoringRunnerServiceHandler : Runner.RunnerBase - { - private readonly int DefaultExecutionStream = 1; - - private readonly IStaticLoader _loader; - protected readonly ExecutorPool _pool; - private readonly IHostApplicationLifetime lifetime; - protected IStepRegistry _stepRegistry; - - private StepValidationProcessor stepValidateRequestProcessor; - private StepNameProcessor stepNameRequestProcessor; - private RefactorProcessor refactorRequestProcessor; - private CacheFileProcessor cacheFileRequestProcessor; - private StubImplementationCodeProcessor stubImplementationCodeRequestProcessor; - private StepPositionsProcessor stepPositionsRequestProcessor; - private StepNamesProcessor stepNamesRequestProcessor; - - public AuthoringRunnerServiceHandler(IStaticLoader loader, ExecutorPool pool, IHostApplicationLifetime lifetime) - { - this._pool = pool; - this.lifetime = lifetime; - this._loader = loader; - _stepRegistry = loader.GetStepRegistry(); - this.InitializeMessageProcessors(); - } - - public override Task ValidateStep(StepValidateRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.stepValidateRequestProcessor.Process(request)); - } +namespace Gauge.Dotnet; +internal class AuthoringRunnerServiceHandler : Runner.RunnerBase +{ + private const int DefaultStream = 1; + protected IExecutor Executor { get; private init; } + private readonly IHostApplicationLifetime _lifetime; + protected IStepRegistry _stepRegistry; + protected ILogger _logger; - public override Task CacheFile(CacheFileRequest request, ServerCallContext context) - { - return _pool.Execute(1, () => this.cacheFileRequestProcessor.Process(request)); - } + public AuthoringRunnerServiceHandler(IExecutor executor, IHostApplicationLifetime lifetime, IStepRegistry stepRegistry, ILogger logger) + { + Executor = executor; + _lifetime = lifetime; + _stepRegistry = stepRegistry; + _logger = logger; + } - public override Task GetGlobPatterns(Empty request, ServerCallContext context) - { - var response = new ImplementationFileGlobPatternResponse(); - response.GlobPatterns.Add(FileHelper.GetImplementationGlobPatterns()); - return _pool.Execute(1, () => response); - } + public override Task ValidateStep(StepValidateRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } + public override Task CacheFile(CacheFileRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task GetImplementationFiles(Empty request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream,() => { - var response = new ImplementationFileListResponse(); - response.ImplementationFilePaths.AddRange(FileHelper.GetImplementationFiles()); - return response; - }); - } + public override Task GetGlobPatterns(Empty request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task GetStepName(StepNameRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.stepNameRequestProcessor.Process(request)); - } + public override Task GetImplementationFiles(Empty request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task GetStepNames(StepNamesRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.stepNamesRequestProcessor.Process(request)); - } + public override Task GetStepName(StepNameRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task GetStepPositions(StepPositionsRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.stepPositionsRequestProcessor.Process(request)); - } + public override Task GetStepNames(StepNamesRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task ImplementStub(StubImplementationCodeRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.stubImplementationCodeRequestProcessor.Process(request)); - } + public override Task GetStepPositions(StepPositionsRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task Refactor(RefactorRequest request, ServerCallContext context) - { - return _pool.Execute(DefaultExecutionStream, () => this.refactorRequestProcessor.Process(request)); - } + public override Task ImplementStub(StubImplementationCodeRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - protected void InitializeMessageProcessors() - { - this.stepValidateRequestProcessor = new StepValidationProcessor(_stepRegistry); - this.stepNameRequestProcessor = new StepNameProcessor(_stepRegistry); - this.refactorRequestProcessor = new RefactorProcessor(_stepRegistry); - this.cacheFileRequestProcessor = new CacheFileProcessor(_loader); - this.stubImplementationCodeRequestProcessor = new StubImplementationCodeProcessor(); - this.stepPositionsRequestProcessor = new StepPositionsProcessor(_stepRegistry); - this.stepNamesRequestProcessor = new StepNamesProcessor(_stepRegistry); - } + public override Task Refactor(RefactorRequest request, ServerCallContext context) + { + return Executor.Execute(DefaultStream, request); + } - public override Task Kill(KillProcessRequest request, ServerCallContext context) - { - try - { - Logger.Debug("KillProcessrequest received"); - lifetime.StopApplication(); - return Task.FromResult(new Empty()); - } - finally - { - _pool.Dispose(); - } - } + public override Task Kill(KillProcessRequest request, ServerCallContext context) + { + _logger.LogDebug("KillProcessrequest received"); + _lifetime.StopApplication(); + return Task.FromResult(new Empty()); } } \ No newline at end of file diff --git a/src/Exceptions/StreamNotFountException.cs b/src/Exceptions/StreamNotFountException.cs deleted file mode 100644 index ef6cbc2..0000000 --- a/src/Exceptions/StreamNotFountException.cs +++ /dev/null @@ -1,20 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -using System; - -namespace Gauge.Dotnet.Executor -{ - [Serializable] - internal class StreamNotFountException : Exception - { - private static string _message = "Requested stream {0} not found."; - - public StreamNotFountException(int stream) : base(String.Format(_message, stream)) - { - } - } -} \ No newline at end of file diff --git a/src/ExecutableRunnerServiceHandler.cs b/src/ExecutableRunnerServiceHandler.cs index 9d72d89..8eacb12 100644 --- a/src/ExecutableRunnerServiceHandler.cs +++ b/src/ExecutableRunnerServiceHandler.cs @@ -5,163 +5,117 @@ *----------------------------------------------------------------*/ -using System; -using System.Threading; -using System.Threading.Tasks; -using Gauge.Dotnet.Executor; -using Gauge.Dotnet.Processors; -using Gauge.Dotnet.Wrappers; +using Gauge.Dotnet.Executors; +using Gauge.Dotnet.Extensions; +using Gauge.Dotnet.Models; using Gauge.Messages; using Grpc.Core; -using Microsoft.Extensions.Hosting; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +internal class ExecutableRunnerServiceHandler : AuthoringRunnerServiceHandler { - internal class ExecutableRunnerServiceHandler : AuthoringRunnerServiceHandler - { - private readonly IActivatorWrapper _activatorWrapper; - private readonly IReflectionWrapper _reflectionWrapper; - private readonly IAssemblyLoader _assemblyLoader; - private ExecutionStartingProcessor executionStartingProcessor; - private ExecutionEndingProcessor executionEndingProcessor; - private SpecExecutionStartingProcessor specExecutionStartingProcessor; - private SpecExecutionEndingProcessor specExecutionEndingProcessor; - private ScenarioExecutionStartingProcessor scenarioExecutionStartingProcessor; - private ScenarioExecutionEndingProcessor scenarioExecutionEndingProcessor; - private StepExecutionStartingProcessor stepExecutionStartingProcessor; - private StepExecutionEndingProcessor stepExecutionEndingProcessor; - private ConceptExecutionStartingProcessor conceptExecutionStartingProcessor; - private ConceptExecutionEndingProcessor conceptExecutionEndingProcessor; - private ExecuteStepProcessor executeStepProcessor; - private ScenarioDataStoreInitProcessor scenarioDataStoreInitProcessor; - private SpecDataStoreInitProcessor specDataStoreInitProcessor; - private SuiteDataStoreInitProcessor suiteDataStoreInitProcessor; - public ExecutableRunnerServiceHandler(IActivatorWrapper activationWrapper, IReflectionWrapper reflectionWrapper, - IAssemblyLoader assemblyLoader, IStaticLoader loader, ExecutorPool pool, IHostApplicationLifetime lifetime) - : base(loader, pool, lifetime) - { - this._activatorWrapper = activationWrapper; - this._reflectionWrapper = reflectionWrapper; - this._assemblyLoader = assemblyLoader; - _stepRegistry = assemblyLoader.GetStepRegistry(); - InitializeExecutionMessageHandlers(); - } - public override Task InitializeSuiteDataStore(SuiteDataStoreInitRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.suiteDataStoreInitProcessor.Process()); - } + private readonly IConfiguration _config; - public override Task ExecuteStep(ExecuteStepRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.executeStepProcessor.Process(request)); - } + public IAssemblyLoader AssemblyLoader { get; private set; } - public override Task FinishExecution(ExecutionEndingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.executionEndingProcessor.Process(request)); - } + public ExecutableRunnerServiceHandler(IExecutor executor, IAssemblyLoader assemblyLoader, IHostApplicationLifetime lifetime, IStepRegistry stepRegistry, + IConfiguration config, ILogger logger) + : base(executor, lifetime, stepRegistry, logger) + { + _config = config; + AssemblyLoader = assemblyLoader; + } + public override Task InitializeSuiteDataStore(SuiteDataStoreInitRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task FinishScenarioExecution(ScenarioExecutionEndingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.scenarioExecutionEndingProcessor.Process(request)); - } + public override Task ExecuteStep(ExecuteStepRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task FinishSpecExecution(SpecExecutionEndingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.specExecutionEndingProcessor.Process(request)); - } + public override Task FinishExecution(ExecutionEndingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task FinishStepExecution(StepExecutionEndingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.stepExecutionEndingProcessor.Process(request)); - } + public override Task FinishScenarioExecution(ScenarioExecutionEndingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task InitializeScenarioDataStore(ScenarioDataStoreInitRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.scenarioDataStoreInitProcessor.Process()); - } + public override Task FinishSpecExecution(SpecExecutionEndingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task InitializeSpecDataStore(SpecDataStoreInitRequest request, ServerCallContext context) - { - try - { - return _pool.Execute(getStream(request.Stream), () => this.specDataStoreInitProcessor.Process()); - } - catch (System.Exception e) - { - Console.WriteLine(e); - Environment.Exit(1); - } - return null; - } + public override Task FinishStepExecution(StepExecutionEndingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task StartExecution(ExecutionStartingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.executionStartingProcessor.Process(request)); - } + public override Task InitializeScenarioDataStore(ScenarioDataStoreInitRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task StartScenarioExecution(ScenarioExecutionStartingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.scenarioExecutionStartingProcessor.Process(request)); - } + public override Task InitializeSpecDataStore(SpecDataStoreInitRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task StartSpecExecution(SpecExecutionStartingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.specExecutionStartingProcessor.Process(request)); - } + public override Task StartExecution(ExecutionStartingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task StartStepExecution(StepExecutionStartingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.stepExecutionStartingProcessor.Process(request)); - } + public override Task StartScenarioExecution(ScenarioExecutionStartingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task NotifyConceptExecutionStarting(ConceptExecutionStartingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.conceptExecutionStartingProcessor.Process(request)); - } + public override Task StartSpecExecution(SpecExecutionStartingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - public override Task NotifyConceptExecutionEnding(ConceptExecutionEndingRequest request, ServerCallContext context) - { - return _pool.Execute(getStream(request.Stream), () => this.conceptExecutionEndingProcessor.Process(request)); - } + public override Task StartStepExecution(StepExecutionStartingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } + public override Task NotifyConceptExecutionStarting(ConceptExecutionStartingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - private void InitializeExecutionMessageHandlers() - { - var tableFormatter = new TableFormatter(this._assemblyLoader, this._activatorWrapper); - var classInstanceManager = new ThreadLocal(() => - { - return this._assemblyLoader.GetClassInstanceManager(); - }); - var executionInfoMapper = new ExecutionInfoMapper(this._assemblyLoader, this._activatorWrapper); - var executionOrchestrator = new ExecutionOrchestrator(this._reflectionWrapper, this._assemblyLoader, - classInstanceManager.Value, - new HookExecutor(this._assemblyLoader, this._reflectionWrapper, classInstanceManager.Value, executionInfoMapper), - new StepExecutor(this._assemblyLoader, this._reflectionWrapper, classInstanceManager.Value)); - - this.executionStartingProcessor = new ExecutionStartingProcessor(executionOrchestrator); - this.executionEndingProcessor = new ExecutionEndingProcessor(executionOrchestrator); - this.specExecutionStartingProcessor = new SpecExecutionStartingProcessor(executionOrchestrator); - this.specExecutionEndingProcessor = new SpecExecutionEndingProcessor(executionOrchestrator); - this.scenarioExecutionStartingProcessor = new ScenarioExecutionStartingProcessor(executionOrchestrator); - this.scenarioExecutionEndingProcessor = new ScenarioExecutionEndingProcessor(executionOrchestrator); - this.stepExecutionStartingProcessor = new StepExecutionStartingProcessor(executionOrchestrator); - this.stepExecutionEndingProcessor = new StepExecutionEndingProcessor(executionOrchestrator); - this.conceptExecutionStartingProcessor = new ConceptExecutionStartingProcessor(executionOrchestrator); - this.conceptExecutionEndingProcessor = new ConceptExecutionEndingProcessor(executionOrchestrator); - this.executeStepProcessor = new ExecuteStepProcessor(_stepRegistry, executionOrchestrator, tableFormatter); - this.scenarioDataStoreInitProcessor = new ScenarioDataStoreInitProcessor(this._assemblyLoader); - this.specDataStoreInitProcessor = new SpecDataStoreInitProcessor(this._assemblyLoader); - this.suiteDataStoreInitProcessor = new SuiteDataStoreInitProcessor(this._assemblyLoader); - } + public override Task NotifyConceptExecutionEnding(ConceptExecutionEndingRequest request, ServerCallContext context) + { + request.Stream = GetStream(request.Stream); + return Executor.Execute(request.Stream, request); + } - private int getStream(int stream) + private int GetStream(int stream) + { + if (!_config.IsMultithreading()) { - if (!_pool.IsMultithreading) - { - return 1; - } - return Math.Max(stream, 1); + return 1; } + return Math.Max(stream, 1); } } \ No newline at end of file diff --git a/src/ExecutionInfoMapper.cs b/src/ExecutionInfoMapper.cs deleted file mode 100644 index a8a519e..0000000 --- a/src/ExecutionInfoMapper.cs +++ /dev/null @@ -1,96 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.Collections.Generic; -using System.Linq; -using Gauge.Dotnet.Wrappers; -using Gauge.Messages; -using Gauge.CSharp.Lib; -using Gauge.Dotnet.Processors; - -namespace Gauge.Dotnet -{ - public class ExecutionInfoMapper : IExecutionInfoMapper - { - private Type _executionContextType; - private readonly IActivatorWrapper activatorWrapper; - private readonly ITableFormatter tableFormatter; - - public ExecutionInfoMapper(IAssemblyLoader assemblyLoader, IActivatorWrapper activatorWrapper) - { - _executionContextType = assemblyLoader.GetLibType(LibType.ExecutionContext); - this.activatorWrapper = activatorWrapper; - tableFormatter = new TableFormatter(assemblyLoader, activatorWrapper); - } - - public dynamic ExecutionContextFrom(ExecutionInfo currentExecutionInfo) - { - if (currentExecutionInfo == null) - return activatorWrapper.CreateInstance(_executionContextType); - - return activatorWrapper.CreateInstance(_executionContextType, SpecificationFrom(currentExecutionInfo.CurrentSpec), - ScenarioFrom(currentExecutionInfo.CurrentScenario), - StepFrom(currentExecutionInfo.CurrentStep)); - } - - private dynamic SpecificationFrom(SpecInfo currentSpec) - { - var executionContextSpecType = _executionContextType.GetNestedType("Specification"); - return currentSpec != null - ? activatorWrapper.CreateInstance(executionContextSpecType, currentSpec.Name, currentSpec.FileName, currentSpec.IsFailed, - currentSpec.Tags.ToArray()) - : activatorWrapper.CreateInstance(executionContextSpecType); - } - - private dynamic ScenarioFrom(ScenarioInfo currentScenario) - { - var executionContextScenarioType = _executionContextType.GetNestedType("Scenario"); - if (currentScenario != null && currentScenario.Retries == null) - { - currentScenario.Retries = new ScenarioRetriesInfo{MaxRetries=0, CurrentRetry=0}; - } - return currentScenario != null - ? activatorWrapper.CreateInstance(executionContextScenarioType, currentScenario.Name, currentScenario.IsFailed, - currentScenario.Tags.ToArray(), currentScenario.Retries.MaxRetries, currentScenario.Retries.CurrentRetry) - : activatorWrapper.CreateInstance(executionContextScenarioType); - } - - private dynamic StepFrom(StepInfo currentStep) - { - var executionContextStepType = _executionContextType.GetNestedType("StepDetails"); ; - if (currentStep == null || currentStep.Step == null) - return activatorWrapper.CreateInstance(executionContextStepType); - - var parameters = new List>(); - foreach (var parameter in currentStep.Step.Parameters) { - if (parameter.ParameterType == Parameter.Types.ParameterType.Static) { - parameters.Add(new List { "Static", parameter.Name, parameter.Value }); - } - else if (parameter.ParameterType == Parameter.Types.ParameterType.Dynamic) { - parameters.Add(new List { "Dynamic", parameter.Name, parameter.Value }); - } - else if (parameter.ParameterType == Parameter.Types.ParameterType.SpecialString) { - parameters.Add(new List { "Special", parameter.Name, parameter.Value }); - } - else if (parameter.ParameterType == Parameter.Types.ParameterType.SpecialTable || - parameter.ParameterType == Parameter.Types.ParameterType.Table) { - var asJSon = tableFormatter.GetJSON(parameter.Table); - parameters.Add(new List { "Table", parameter.Name, asJSon }); - } - } - - var inst = activatorWrapper.CreateInstance( - executionContextStepType, - currentStep.Step.ActualStepText, currentStep.IsFailed, - currentStep.StackTrace, currentStep.ErrorMessage, - parameters); - - return inst; - } - } -} \ No newline at end of file diff --git a/src/ExecutionOrchestrator.cs b/src/ExecutionOrchestrator.cs deleted file mode 100644 index 0c8e3f9..0000000 --- a/src/ExecutionOrchestrator.cs +++ /dev/null @@ -1,152 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Reflection; -using Gauge.CSharp.Core; -using Gauge.Dotnet.Models; -using Gauge.Dotnet.Strategy; -using Gauge.Dotnet.Wrappers; -using Gauge.Messages; - -namespace Gauge.Dotnet -{ - public class ExecutionOrchestrator : IExecutionOrchestrator - { - private readonly IAssemblyLoader _assemblyLoader; - private readonly object _classInstanceManager; - private readonly IHookExecutor _hookExecutor; - private readonly IReflectionWrapper _reflectionWrapper; - private readonly IStepExecutor _stepExecutor; - - public ExecutionOrchestrator(IReflectionWrapper reflectionWrapper, IAssemblyLoader assemblyLoader, - object classInstanceManager, IHookExecutor hookExecutor, - IStepExecutor stepExecutor) - { - _reflectionWrapper = reflectionWrapper; - _assemblyLoader = assemblyLoader; - _classInstanceManager = classInstanceManager; - _hookExecutor = hookExecutor; - _stepExecutor = stepExecutor; - } - - - [DebuggerHidden] - public ProtoExecutionResult ExecuteStep(GaugeMethod method, params string[] args) - { - var stopwatch = Stopwatch.StartNew(); - - var executionResult = _stepExecutor.Execute(method, args); - return BuildResult(stopwatch, executionResult); - } - - public void ClearCache() - { - _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, - "ClearCache"); - } - - public void StartExecutionScope(string tag) - { - _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, - "StartScope", tag); - } - - public void CloseExecutionScope() - { - _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, - "CloseScope"); - } - - public IEnumerable GetAllPendingMessages() - { - var messageCollectorType = _assemblyLoader.GetLibType(LibType.MessageCollector); - return _reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingMessages", - BindingFlags.Static | BindingFlags.Public) as IEnumerable; - } - - public IEnumerable GetAllPendingScreenshotFiles() - { - var messageCollectorType = _assemblyLoader.GetLibType(LibType.ScreenshotFilesCollector); - return _reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingScreenshotFiles", - BindingFlags.Static | BindingFlags.Public) as IEnumerable; - } - - [DebuggerHidden] - public ProtoExecutionResult ExecuteHooks(string hookType, HooksStrategy strategy, IList applicableTags, - ExecutionInfo info) - { - var stopwatch = Stopwatch.StartNew(); - var executionResult = _hookExecutor.Execute(hookType, strategy, applicableTags, info); - return BuildResult(stopwatch, executionResult); - } - - private ProtoExecutionResult BuildResult(Stopwatch stopwatch, ExecutionResult executionResult) - { - var result = new ProtoExecutionResult - { - Failed = false, - ExecutionTime = stopwatch.ElapsedMilliseconds, - SkipScenario = executionResult.SkipScenario - }; - var allPendingMessages = GetAllPendingMessages().Where(m => m != null); - result.Message.AddRange(allPendingMessages); - var allPendingScreenShotFiles = GetAllPendingScreenshotFiles().Where(s => s != null); - result.ScreenshotFiles.AddRange(allPendingScreenShotFiles); - - // If runtime skipped scenario return Error message and stack info - if (!string.IsNullOrEmpty(executionResult.ExceptionMessage)) - { - result.ErrorMessage = executionResult.ExceptionMessage; - } - if (!string.IsNullOrEmpty(executionResult.StackTrace)) - { - result.StackTrace = executionResult.StackTrace; - } - if (executionResult.Success) return result; - - var elapsedMilliseconds = stopwatch.ElapsedMilliseconds; - result.Failed = true; - var isScreenShotEnabled = Utils.TryReadEnvValue("SCREENSHOT_ON_FAILURE"); - if (isScreenShotEnabled == null || isScreenShotEnabled.ToLower() != "false") - { - var screenshotFile = TryScreenCapture(); - if(!string.IsNullOrEmpty(screenshotFile)){ - result.FailureScreenshotFile = screenshotFile; - } - } - - result.RecoverableError = executionResult.Recoverable; - result.ExecutionTime = elapsedMilliseconds; - return result; - } - - private string TryScreenCapture() - { - try - { - InvokeScreenshotCapture(); - } - catch (System.Exception ex) - { - Logger.Warning($"Unable to capture screenshot, CustomScreenshotWriter is probably not set.({ex.Message})\n{ex.StackTrace}"); - return null; - } - var messageCollectorType = _assemblyLoader.GetLibType(LibType.ScreenshotFilesCollector); - return (_reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingScreenshotFiles", - BindingFlags.Static | BindingFlags.Public) as IEnumerable).FirstOrDefault(); - } - - private void InvokeScreenshotCapture() { - var gaugeScreenshotsType = _assemblyLoader.GetLibType(LibType.GaugeScreenshots); - _reflectionWrapper.InvokeMethod(gaugeScreenshotsType, null, "Capture", - BindingFlags.Static | BindingFlags.Public); - } - } -} \ No newline at end of file diff --git a/src/Executor/CustomTaskScheduler.cs b/src/Executor/CustomTaskScheduler.cs deleted file mode 100644 index b409f76..0000000 --- a/src/Executor/CustomTaskScheduler.cs +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Gauge.Dotnet.Executor -{ - public sealed class CustomTaskScheduler : TaskScheduler, IDisposable - { - private BlockingCollection tasksCollection = new BlockingCollection(); - - private readonly Thread thread = null; - - public CustomTaskScheduler() - { - thread = new Thread(new ThreadStart(Execute)); - if (!thread.IsAlive) - { - thread.Start(); - } - } - - private void Execute() - { - foreach (var task in tasksCollection.GetConsumingEnumerable()) - { - TryExecuteTask(task); - } - } - protected override IEnumerable GetScheduledTasks() - { - return tasksCollection.ToArray(); - } - protected override void QueueTask(Task task) - { - if (task != null) - tasksCollection.Add(task); - } - protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued) - { - return false; - } - - public void Dispose() - { - tasksCollection.CompleteAdding(); - thread.Join(); - tasksCollection.Dispose(); - } - } -} \ No newline at end of file diff --git a/src/Executor/ExecutorPool.cs b/src/Executor/ExecutorPool.cs deleted file mode 100644 index df7751b..0000000 --- a/src/Executor/ExecutorPool.cs +++ /dev/null @@ -1,57 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -using System; -using System.Collections.Concurrent; -using System.Threading; -using System.Threading.Tasks; - -namespace Gauge.Dotnet.Executor -{ - public class ExecutorPool : IDisposable - { - public bool IsMultithreading { get; internal set; } - private ConcurrentDictionary _workers = new ConcurrentDictionary(); - - public ExecutorPool(int size, bool isMultithreading) - { - for (int i = 1; i <= size; i++) - { - bool added = _workers.TryAdd(GetName(i), new CustomTaskScheduler()); - if (!added) - { - Logger.Fatal("Failed to add Wroker for stream " + i); - } - } - - IsMultithreading = isMultithreading; - } - - public void Dispose() - { - foreach (var w in _workers) - { - w.Value.Dispose(); - } - } - - public Task Execute(int stream, Func fn) - { - bool found = _workers.TryGetValue(GetName(stream), out CustomTaskScheduler scheduler); - if (found) - { - return Task.Factory.StartNew(fn, new CancellationToken(), TaskCreationOptions.None, scheduler); - } - throw new StreamNotFountException(stream); - } - - private string GetName(int i) - { - return $"Executor-{i}"; - } - - } -} \ No newline at end of file diff --git a/src/Executors/ExecutionInfoMapper.cs b/src/Executors/ExecutionInfoMapper.cs new file mode 100644 index 0000000..5aa03b1 --- /dev/null +++ b/src/Executors/ExecutionInfoMapper.cs @@ -0,0 +1,96 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using Gauge.Dotnet.Processors; +using Gauge.Dotnet.Wrappers; +using Gauge.Messages; + +namespace Gauge.Dotnet.Executors; + +public class ExecutionInfoMapper : IExecutionInfoMapper +{ + private Type _executionContextType; + private readonly IActivatorWrapper activatorWrapper; + private readonly ITableFormatter tableFormatter; + + public ExecutionInfoMapper(IAssemblyLoader assemblyLoader, IActivatorWrapper activatorWrapper) + { + _executionContextType = assemblyLoader.GetLibType(LibType.ExecutionContext); + this.activatorWrapper = activatorWrapper; + tableFormatter = new TableFormatter(assemblyLoader, activatorWrapper); + } + + public dynamic ExecutionContextFrom(ExecutionInfo currentExecutionInfo) + { + if (currentExecutionInfo == null) + return activatorWrapper.CreateInstance(_executionContextType); + + return activatorWrapper.CreateInstance(_executionContextType, SpecificationFrom(currentExecutionInfo.CurrentSpec), + ScenarioFrom(currentExecutionInfo.CurrentScenario), + StepFrom(currentExecutionInfo.CurrentStep)); + } + + private dynamic SpecificationFrom(SpecInfo currentSpec) + { + var executionContextSpecType = _executionContextType.GetNestedType("Specification"); + return currentSpec != null + ? activatorWrapper.CreateInstance(executionContextSpecType, currentSpec.Name, currentSpec.FileName, currentSpec.IsFailed, + currentSpec.Tags.ToArray()) + : activatorWrapper.CreateInstance(executionContextSpecType); + } + + private dynamic ScenarioFrom(ScenarioInfo currentScenario) + { + var executionContextScenarioType = _executionContextType.GetNestedType("Scenario"); + if (currentScenario != null && currentScenario.Retries == null) + { + currentScenario.Retries = new ScenarioRetriesInfo { MaxRetries = 0, CurrentRetry = 0 }; + } + return currentScenario != null + ? activatorWrapper.CreateInstance(executionContextScenarioType, currentScenario.Name, currentScenario.IsFailed, + currentScenario.Tags.ToArray(), currentScenario.Retries.MaxRetries, currentScenario.Retries.CurrentRetry) + : activatorWrapper.CreateInstance(executionContextScenarioType); + } + + private dynamic StepFrom(StepInfo currentStep) + { + var executionContextStepType = _executionContextType.GetNestedType("StepDetails"); ; + if (currentStep == null || currentStep.Step == null) + return activatorWrapper.CreateInstance(executionContextStepType); + + var parameters = new List>(); + foreach (var parameter in currentStep.Step.Parameters) + { + if (parameter.ParameterType == Parameter.Types.ParameterType.Static) + { + parameters.Add(new List { "Static", parameter.Name, parameter.Value }); + } + else if (parameter.ParameterType == Parameter.Types.ParameterType.Dynamic) + { + parameters.Add(new List { "Dynamic", parameter.Name, parameter.Value }); + } + else if (parameter.ParameterType == Parameter.Types.ParameterType.SpecialString) + { + parameters.Add(new List { "Special", parameter.Name, parameter.Value }); + } + else if (parameter.ParameterType == Parameter.Types.ParameterType.SpecialTable || + parameter.ParameterType == Parameter.Types.ParameterType.Table) + { + var asJSon = tableFormatter.GetJSON(parameter.Table); + parameters.Add(new List { "Table", parameter.Name, asJSon }); + } + } + + var inst = activatorWrapper.CreateInstance( + executionContextStepType, + currentStep.Step.ActualStepText, currentStep.IsFailed, + currentStep.StackTrace, currentStep.ErrorMessage, + parameters); + + return inst; + } +} \ No newline at end of file diff --git a/src/Executors/ExecutionOrchestrator.cs b/src/Executors/ExecutionOrchestrator.cs new file mode 100644 index 0000000..3c19ed5 --- /dev/null +++ b/src/Executors/ExecutionOrchestrator.cs @@ -0,0 +1,149 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using System.Diagnostics; +using System.Reflection; +using Gauge.Dotnet.Extensions; +using Gauge.Dotnet.Models; +using Gauge.Dotnet.Strategy; +using Gauge.Dotnet.Wrappers; +using Gauge.Messages; + +namespace Gauge.Dotnet.Executors; + +public class ExecutionOrchestrator : IExecutionOrchestrator +{ + private readonly IAssemblyLoader _assemblyLoader; + private readonly object _classInstanceManager; + private readonly IHookExecutor _hookExecutor; + private readonly IReflectionWrapper _reflectionWrapper; + private readonly IStepExecutor _stepExecutor; + private readonly IConfiguration _config; + private readonly ILogger _logger; + + public ExecutionOrchestrator(IReflectionWrapper reflectionWrapper, IAssemblyLoader assemblyLoader, IHookExecutor hookExecutor, IStepExecutor stepExecutor, + IConfiguration config, ILogger logger) + { + _reflectionWrapper = reflectionWrapper; + _assemblyLoader = assemblyLoader; + _classInstanceManager = assemblyLoader.GetClassInstanceManager(); + _hookExecutor = hookExecutor; + _stepExecutor = stepExecutor; + _config = config; + _logger = logger; + } + + + [DebuggerHidden] + public async Task ExecuteStep(GaugeMethod method, int streamId, params string[] args) + { + var stopwatch = Stopwatch.StartNew(); + + var executionResult = await _stepExecutor.Execute(method, streamId, args); + return BuildResult(stopwatch, executionResult); + } + + public void ClearCache() + { + _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, "ClearCache"); + } + + public void StartExecutionScope(string tag) + { + _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, "StartScope", tag); + } + + public void CloseExecutionScope() + { + _reflectionWrapper.InvokeMethod(_assemblyLoader.ClassInstanceManagerType, _classInstanceManager, "CloseScope"); + } + + public IEnumerable GetAllPendingMessages() + { + var messageCollectorType = _assemblyLoader.GetLibType(LibType.MessageCollector); + return _reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingMessages", + BindingFlags.Static | BindingFlags.Public) as IEnumerable; + } + + public IEnumerable GetAllPendingScreenshotFiles() + { + var messageCollectorType = _assemblyLoader.GetLibType(LibType.ScreenshotFilesCollector); + return _reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingScreenshotFiles", + BindingFlags.Static | BindingFlags.Public) as IEnumerable; + } + + [DebuggerHidden] + public async Task ExecuteHooks(string hookType, HooksStrategy strategy, IList applicableTags, int streamId, ExecutionInfo info) + { + var stopwatch = Stopwatch.StartNew(); + var executionResult = await _hookExecutor.Execute(hookType, strategy, applicableTags, streamId, info); + return BuildResult(stopwatch, executionResult); + } + + private ProtoExecutionResult BuildResult(Stopwatch stopwatch, ExecutionResult executionResult) + { + var result = new ProtoExecutionResult + { + Failed = false, + ExecutionTime = stopwatch.ElapsedMilliseconds, + SkipScenario = executionResult.SkipScenario + }; + var allPendingMessages = GetAllPendingMessages().Where(m => m != null); + result.Message.AddRange(allPendingMessages); + var allPendingScreenShotFiles = GetAllPendingScreenshotFiles().Where(s => s != null); + result.ScreenshotFiles.AddRange(allPendingScreenShotFiles); + + // If runtime skipped scenario return Error message and stack info + if (!string.IsNullOrEmpty(executionResult.ExceptionMessage)) + { + result.ErrorMessage = executionResult.ExceptionMessage; + } + if (!string.IsNullOrEmpty(executionResult.StackTrace)) + { + result.StackTrace = executionResult.StackTrace; + } + if (executionResult.Success) return result; + + var elapsedMilliseconds = stopwatch.ElapsedMilliseconds; + result.Failed = true; + if (_config.ScreenshotOnFailure()) + { + var screenshotFile = TryScreenCapture(); + if (!string.IsNullOrEmpty(screenshotFile)) + { + result.FailureScreenshotFile = screenshotFile; + } + } + + result.RecoverableError = executionResult.Recoverable; + result.ExecutionTime = elapsedMilliseconds; + return result; + } + + private string TryScreenCapture() + { + try + { + InvokeScreenshotCapture(); + } + catch (Exception ex) + { + _logger.LogWarning("Unable to capture screenshot, CustomScreenshotWriter is probably not set.({Message})\n{StackTrace}", ex.Message, ex.StackTrace); + return null; + } + var messageCollectorType = _assemblyLoader.GetLibType(LibType.ScreenshotFilesCollector); + return (_reflectionWrapper.InvokeMethod(messageCollectorType, null, "GetAllPendingScreenshotFiles", + BindingFlags.Static | BindingFlags.Public) as IEnumerable).FirstOrDefault(); + } + + private void InvokeScreenshotCapture() + { + var gaugeScreenshotsType = _assemblyLoader.GetLibType(LibType.GaugeScreenshots); + _reflectionWrapper.InvokeMethod(gaugeScreenshotsType, null, "Capture", + BindingFlags.Static | BindingFlags.Public); + } +} \ No newline at end of file diff --git a/src/Executors/Executor.cs b/src/Executors/Executor.cs new file mode 100644 index 0000000..ad5b16d --- /dev/null +++ b/src/Executors/Executor.cs @@ -0,0 +1,20 @@ +using Gauge.Dotnet.Processors; + +namespace Gauge.Dotnet.Executors; + +internal class Executor : IExecutor +{ + private readonly IServiceProvider _serviceProvider; + + public Executor(IServiceProvider serviceProvider) + { + _serviceProvider = serviceProvider; + } + + public Task Execute(int streamId, TRequest request) + { + var processor = _serviceProvider.GetRequiredService>(); + var result = processor.Process(streamId, request); + return result; + } +} diff --git a/src/Executors/HookExecutor.cs b/src/Executors/HookExecutor.cs new file mode 100644 index 0000000..3a95d24 --- /dev/null +++ b/src/Executors/HookExecutor.cs @@ -0,0 +1,127 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using System.Reflection; +using Gauge.Dotnet.Models; +using Gauge.Dotnet.Strategy; +using Gauge.Messages; + +namespace Gauge.Dotnet.Executors; + +public class HookExecutor : MethodExecutor, IHookExecutor +{ + private readonly IAssemblyLoader _assemblyLoader; + private readonly IHookRegistry _registry; + private readonly IExecutionInfoMapper _executionInfoMapper; + private readonly ILogger _logger; + + public HookExecutor(IAssemblyLoader assemblyLoader, IExecutionInfoMapper mapper, IHookRegistry registry, ILogger logger) + : base(assemblyLoader) + { + _assemblyLoader = assemblyLoader; + _registry = registry; + _executionInfoMapper = mapper; + _logger = logger; + } + + public async Task Execute(string hookType, IHooksStrategy strategy, IList applicableTags, int streamId, ExecutionInfo info) + { + var methods = GetHookMethods(hookType, strategy, applicableTags); + var executionResult = new ExecutionResult + { + Success = true, + SkipScenario = false + }; + foreach (var method in methods) + { + var methodInfo = _registry.MethodFor(method); + try + { + var context = _executionInfoMapper.ExecutionContextFrom(info); + await ExecuteHook(methodInfo, streamId, context); + } + catch (Exception ex) + { + var baseException = ex.GetBaseException(); + if (baseException != null && + baseException.GetType().Name.Contains("SkipScenario", StringComparison.OrdinalIgnoreCase)) + { + _logger.LogDebug("Skipping scenario when executing hook: {ClassFullName}.{MethodName} : {ExceptionMessage}", methodInfo.DeclaringType.FullName, methodInfo.Name, baseException.Message); + executionResult.StackTrace = baseException.StackTrace; + executionResult.ExceptionMessage = baseException.Message; + executionResult.Source = baseException.Source; + executionResult.Success = true; + executionResult.SkipScenario = true; + } + else + { + _logger.LogDebug("{HookType} Hook execution failed : {ClassFullName}.{MethodName}", hookType, methodInfo.DeclaringType.FullName, methodInfo.Name); + var innerException = ex.InnerException ?? ex; + executionResult.ExceptionMessage = innerException.Message; + executionResult.StackTrace = innerException.StackTrace; + executionResult.Source = innerException.Source; + executionResult.Success = false; + } + } + } + + return executionResult; + } + + private async Task ExecuteHook(MethodInfo method, int streamId, params object[] objects) + { + if (HasArguments(method, objects)) + await Execute(method, streamId, objects); + else + await Execute(method, streamId); + } + + + private static bool HasArguments(MethodInfo method, object[] args) + { + if (method.GetParameters().Length != args.Length) + return false; + return !args.Where((t, i) => t.GetType() != method.GetParameters()[i].ParameterType).Any(); + } + + + private IEnumerable GetHookMethods(string hookType, IHooksStrategy strategy, IEnumerable applicableTags) + { + var hooksFromRegistry = GetHooksFromRegistry(hookType); + return strategy.GetApplicableHooks(applicableTags, hooksFromRegistry); + } + + + private IEnumerable GetHooksFromRegistry(string hookType) + { + switch (hookType) + { + case "BeforeSuite": + return _registry.BeforeSuiteHooks; + case "BeforeSpec": + return _registry.BeforeSpecHooks; + case "BeforeScenario": + return _registry.BeforeScenarioHooks; + case "BeforeStep": + return _registry.BeforeStepHooks; + case "AfterStep": + return _registry.AfterStepHooks; + case "BeforeConcept": + return _registry.BeforeConceptHooks; + case "AfterConcept": + return _registry.AfterConceptHooks; + case "AfterScenario": + return _registry.AfterScenarioHooks; + case "AfterSpec": + return _registry.AfterSpecHooks; + case "AfterSuite": + return _registry.AfterSuiteHooks; + default: + return null; + } + } +} \ No newline at end of file diff --git a/src/IExecutionInfoMapper.cs b/src/Executors/IExecutionInfoMapper.cs similarity index 67% rename from src/IExecutionInfoMapper.cs rename to src/Executors/IExecutionInfoMapper.cs index 353b4bd..fde6b93 100644 --- a/src/IExecutionInfoMapper.cs +++ b/src/Executors/IExecutionInfoMapper.cs @@ -7,10 +7,9 @@ using Gauge.Messages; -namespace Gauge.Dotnet +namespace Gauge.Dotnet.Executors; + +public interface IExecutionInfoMapper { - public interface IExecutionInfoMapper - { - dynamic ExecutionContextFrom(ExecutionInfo currentExecutionInfo); - } + dynamic ExecutionContextFrom(ExecutionInfo currentExecutionInfo); } \ No newline at end of file diff --git a/src/Executors/IExecutionOrchestrator.cs b/src/Executors/IExecutionOrchestrator.cs new file mode 100644 index 0000000..c894835 --- /dev/null +++ b/src/Executors/IExecutionOrchestrator.cs @@ -0,0 +1,27 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using Gauge.Dotnet.Models; +using Gauge.Dotnet.Strategy; +using Gauge.Messages; + +namespace Gauge.Dotnet.Executors; + +public interface IExecutionOrchestrator +{ + Task ExecuteStep(GaugeMethod method, int streamId, params string[] args); + + Task ExecuteHooks(string hookType, HooksStrategy strategy, IList applicableTags, int streamId, ExecutionInfo context); + + void ClearCache(); + + void StartExecutionScope(string tag); + void CloseExecutionScope(); + IEnumerable GetAllPendingMessages(); + IEnumerable GetAllPendingScreenshotFiles(); + +} \ No newline at end of file diff --git a/src/Executors/IExecutor.cs b/src/Executors/IExecutor.cs new file mode 100644 index 0000000..19ff207 --- /dev/null +++ b/src/Executors/IExecutor.cs @@ -0,0 +1,6 @@ +namespace Gauge.Dotnet.Executors; + +public interface IExecutor +{ + Task Execute(int stream, TRequest request); +} diff --git a/src/IHookExecutor.cs b/src/Executors/IHookExecutor.cs similarity index 60% rename from src/IHookExecutor.cs rename to src/Executors/IHookExecutor.cs index 90a7acf..1e13b12 100644 --- a/src/IHookExecutor.cs +++ b/src/Executors/IHookExecutor.cs @@ -5,16 +5,13 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using Gauge.Messages; using Gauge.Dotnet.Models; using Gauge.Dotnet.Strategy; +using Gauge.Messages; + +namespace Gauge.Dotnet.Executors; -namespace Gauge.Dotnet +public interface IHookExecutor { - public interface IHookExecutor - { - ExecutionResult Execute(string hookType, IHooksStrategy strategy, IList applicableTags, - ExecutionInfo context); - } + Task Execute(string hookType, IHooksStrategy strategy, IList applicableTags, int streamId, ExecutionInfo context); } \ No newline at end of file diff --git a/src/IStepExecutor.cs b/src/Executors/IStepExecutor.cs similarity index 67% rename from src/IStepExecutor.cs rename to src/Executors/IStepExecutor.cs index 334073c..470a9ae 100644 --- a/src/IStepExecutor.cs +++ b/src/Executors/IStepExecutor.cs @@ -7,10 +7,9 @@ using Gauge.Dotnet.Models; -namespace Gauge.Dotnet +namespace Gauge.Dotnet.Executors; + +public interface IStepExecutor { - public interface IStepExecutor - { - ExecutionResult Execute(GaugeMethod gaugeMethod, string[] args); - } + Task Execute(GaugeMethod gaugeMethod, int streamId, string[] args); } \ No newline at end of file diff --git a/src/Executors/MethodExecutor.cs b/src/Executors/MethodExecutor.cs new file mode 100644 index 0000000..9c2d801 --- /dev/null +++ b/src/Executors/MethodExecutor.cs @@ -0,0 +1,33 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using System.Reflection; + +namespace Gauge.Dotnet.Executors; + +public abstract class MethodExecutor +{ + private readonly object _classInstanceManager; + private readonly Type _classInstanceManagerType; + + + protected MethodExecutor(IAssemblyLoader assemblyLoader) + { + _classInstanceManagerType = assemblyLoader.ClassInstanceManagerType; + _classInstanceManager = assemblyLoader.GetClassInstanceManager(); + } + + protected async Task Execute(MethodInfo method, int streamId, params object[] parameters) + { + var invokeMethod = _classInstanceManagerType.GetMethod("InvokeMethod"); + var response = invokeMethod.Invoke(_classInstanceManager, new object[] { method, streamId, parameters }); + if (response is Task task) + { + await task; + } + } +} \ No newline at end of file diff --git a/src/Executors/StepExecutor.cs b/src/Executors/StepExecutor.cs new file mode 100644 index 0000000..abf4e17 --- /dev/null +++ b/src/Executors/StepExecutor.cs @@ -0,0 +1,92 @@ +/*---------------------------------------------------------------- + * Copyright (c) ThoughtWorks, Inc. + * Licensed under the Apache License, Version 2.0 + * See LICENSE.txt in the project root for license information. + *----------------------------------------------------------------*/ + + +using System.Runtime.Serialization.Json; +using System.Text; +using Gauge.Dotnet.Converters; +using Gauge.Dotnet.Models; + +namespace Gauge.Dotnet.Executors; + +public class StepExecutor : MethodExecutor, IStepExecutor +{ + private readonly IAssemblyLoader _assemblyLoader; + private readonly ILogger _logger; + + public StepExecutor(IAssemblyLoader assemblyLoader, ILogger logger) + : base(assemblyLoader) + { + _assemblyLoader = assemblyLoader; + _logger = logger; + } + + public async Task Execute(GaugeMethod gaugeMethod, int streamId, params string[] args) + { + { + var method = gaugeMethod.MethodInfo; + var executionResult = new ExecutionResult + { + Success = true, + SkipScenario = false + }; + try + { + var parameters = args.Select(o => + { + try + { + return GetTable(o); + } + catch + { + return o; + } + }).ToArray(); + _logger.LogDebug("Executing method: {MethodName}", gaugeMethod.Name); + await Execute(method, streamId, StringParamConverter.TryConvertParams(method, parameters)); + executionResult.Success = true; + } + catch (Exception ex) + { + var baseException = ex.GetBaseException(); + if (baseException != null && + baseException.GetType().Name.Contains("SkipScenario", StringComparison.OrdinalIgnoreCase)) + { + _logger.LogDebug("Skipping scenario when executing method: {MethodName} : {ExceptionMessage}", method.Name, baseException.Message); + executionResult.ExceptionMessage = baseException.Message; + executionResult.StackTrace = baseException.StackTrace; + executionResult.Source = baseException.Source; + executionResult.Success = true; + executionResult.SkipScenario = true; + } + else + { + _logger.LogDebug("Error executing {MethodName} : {ExceptionMessage}", method.Name, method.Name); + var innerException = ex.InnerException ?? ex; + executionResult.ExceptionMessage = innerException.Message; + executionResult.StackTrace = innerException is AggregateException + ? innerException.ToString() + : innerException.StackTrace; + executionResult.Source = innerException.Source; + executionResult.Recoverable = gaugeMethod.ContinueOnFailure; + executionResult.Success = false; + } + } + + return executionResult; + } + } + + private object GetTable(string jsonString) + { + var serializer = new DataContractJsonSerializer(_assemblyLoader.GetLibType(LibType.Table)); + using (var ms = new MemoryStream(Encoding.UTF8.GetBytes(jsonString))) + { + return serializer.ReadObject(ms); + } + } +} \ No newline at end of file diff --git a/src/Extensions/ConfigurationExtensions.cs b/src/Extensions/ConfigurationExtensions.cs new file mode 100644 index 0000000..bc8ec65 --- /dev/null +++ b/src/Extensions/ConfigurationExtensions.cs @@ -0,0 +1,63 @@ +namespace Gauge.Dotnet.Extensions; + +public static class ConfigurationExtensions +{ + public static bool IgnoreBuildFailures(this IConfiguration config) => + config.GetValue("GAUGE_IGNORE_RUNNER_BUILD_FAILURES", false); + + public static bool IsDaemon(this IConfiguration config) => + config.GetValue("IS_DAEMON", false); + + public static bool IsMultithreading(this IConfiguration config) => + config.GetValue("ENABLE_MULTITHREADING", false); + + public static bool ScreenshotOnFailure(this IConfiguration config) => + config.GetValue("SCREENSHOT_ON_FAILURE", true); + + public static bool IsDebugging(this IConfiguration config) => + config.GetValue("DEBUGGING", false); + + public static string GetGaugeProjectRoot(this IConfiguration config) => + config.GetValue("GAUGE_PROJECT_ROOT"); + + public static string GetGaugeCustomBuildPath(this IConfiguration config) => + config.GetValue("GAUGE_CUSTOM_BUILD_PATH"); + + public static string GetGaugeCSharpProjectFile(this IConfiguration config) => + config.GetValue("GAUGE_CSHARP_PROJECT_FILE"); + + public static string GetGaugeCSharpBuildArgs(this IConfiguration config) => + config.GetValue("GAUGE_DOTNET_BUILD_ARGS"); + + public static string GetGaugeCSharpRuntime(this IConfiguration config) => + config.GetValue("GAUGE_DOTNET_RUNTIME"); + + public static string GetGaugeCSharpConfig(this IConfiguration config) => + config.GetValue("GAUGE_CSHARP_PROJECT_CONFIG") ?? "release"; + + public static string GetGaugeLogLevel(this IConfiguration config) => + config.GetValue("GAUGE_LOG_LEVEL"); + + public static string GetGaugeClearStateFlag(this IConfiguration config) => + config.GetValue("GAUGE_CLEAR_STATE_LEVEL"); + + public static string GetGaugeExcludeDirs(this IConfiguration config) => + config.GetValue("GAUGE_EXCLUDE_DIRS"); + + public static string GetGaugeBinDir(this IConfiguration config) + { + var customBuildPath = config.GetValue("GAUGE_CUSTOM_BUILD_PATH"); + if (string.IsNullOrEmpty(customBuildPath)) + return Path.Combine(config.GetGaugeProjectRoot(), "gauge_bin"); + try + { + return Uri.TryCreate(customBuildPath, UriKind.Absolute, out _) + ? customBuildPath + : Path.Combine(config.GetGaugeProjectRoot(), customBuildPath); + } + catch (Exception) + { + return Path.Combine(config.GetGaugeProjectRoot(), "gauge_bin"); + } + } +} diff --git a/src/Gauge.CSharp.Core/AbstractGaugeConnection.cs b/src/Gauge.CSharp.Core/AbstractGaugeConnection.cs deleted file mode 100644 index 5621295..0000000 --- a/src/Gauge.CSharp.Core/AbstractGaugeConnection.cs +++ /dev/null @@ -1,50 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using Google.Protobuf; - -namespace Gauge.CSharp.Core -{ - public abstract class AbstractGaugeConnection : IDisposable - { - protected readonly ITcpClientWrapper TcpClientWrapper; - - protected AbstractGaugeConnection(ITcpClientWrapper tcpClientWrapper) - { - TcpClientWrapper = tcpClientWrapper; - } - - public bool Connected => TcpClientWrapper.Connected; - - public void Dispose() - { - TcpClientWrapper.Close(); - } - - public void WriteMessage(IMessage request) - { - var bytes = request.ToByteArray(); - var cos = new CodedOutputStream(TcpClientWrapper.GetStream()); - cos.WriteUInt64((ulong) bytes.Length); - cos.Flush(); - TcpClientWrapper.GetStream().Write(bytes, 0, bytes.Length); - TcpClientWrapper.GetStream().Flush(); - } - - public IEnumerable ReadBytes() - { - var networkStream = TcpClientWrapper.GetStream(); - var codedInputStream = new CodedInputStream(networkStream); - return codedInputStream.ReadBytes(); - } - - protected static long GenerateMessageId() - { - return DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond; - } - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/Api.cs b/src/Gauge.CSharp.Core/Api.cs deleted file mode 100644 index b0dcc4b..0000000 --- a/src/Gauge.CSharp.Core/Api.cs +++ /dev/null @@ -1,7026 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: api.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 Gauge.Messages { - - /// Holder for reflection information generated from api.proto - public static partial class ApiReflection { - - #region Descriptor - /// File descriptor for api.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ApiReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CglhcGkucHJvdG8SDmdhdWdlLm1lc3NhZ2VzGgpzcGVjLnByb3RvIhcKFUdl", - "dFByb2plY3RSb290UmVxdWVzdCItChZHZXRQcm9qZWN0Um9vdFJlc3BvbnNl", - "EhMKC3Byb2plY3RSb290GAEgASgJIhwKGkdldEluc3RhbGxhdGlvblJvb3RS", - "ZXF1ZXN0IjcKG0dldEluc3RhbGxhdGlvblJvb3RSZXNwb25zZRIYChBpbnN0", - "YWxsYXRpb25Sb290GAEgASgJIhQKEkdldEFsbFN0ZXBzUmVxdWVzdCJHChNH", - "ZXRBbGxTdGVwc1Jlc3BvbnNlEjAKCGFsbFN0ZXBzGAEgAygLMh4uZ2F1Z2Uu", - "bWVzc2FnZXMuUHJvdG9TdGVwVmFsdWUiHQoMU3BlY3NSZXF1ZXN0Eg0KBXNw", - "ZWNzGAEgAygJIq0BCg1TcGVjc1Jlc3BvbnNlEjkKB2RldGFpbHMYASADKAsy", - "KC5nYXVnZS5tZXNzYWdlcy5TcGVjc1Jlc3BvbnNlLlNwZWNEZXRhaWwaYQoK", - "U3BlY0RldGFpbBInCgRzcGVjGAEgASgLMhkuZ2F1Z2UubWVzc2FnZXMuUHJv", - "dG9TcGVjEioKC3BhcnNlRXJyb3JzGAIgAygLMhUuZ2F1Z2UubWVzc2FnZXMu", - "RXJyb3IiFwoVR2V0QWxsQ29uY2VwdHNSZXF1ZXN0IkcKFkdldEFsbENvbmNl", - "cHRzUmVzcG9uc2USLQoIY29uY2VwdHMYASADKAsyGy5nYXVnZS5tZXNzYWdl", - "cy5Db25jZXB0SW5mbyJmCgtDb25jZXB0SW5mbxIxCglzdGVwVmFsdWUYASAB", - "KAsyHi5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBWYWx1ZRIQCghmaWxlcGF0", - "aBgCIAEoCRISCgpsaW5lTnVtYmVyGAMgASgFIj8KE0dldFN0ZXBWYWx1ZVJl", - "cXVlc3QSEAoIc3RlcFRleHQYASABKAkSFgoOaGFzSW5saW5lVGFibGUYAiAB", - "KAgiSQoUR2V0U3RlcFZhbHVlUmVzcG9uc2USMQoJc3RlcFZhbHVlGAEgASgL", - "Mh4uZ2F1Z2UubWVzc2FnZXMuUHJvdG9TdGVwVmFsdWUiMwofR2V0TGFuZ3Vh", - "Z2VQbHVnaW5MaWJQYXRoUmVxdWVzdBIQCghsYW5ndWFnZRgBIAEoCSIwCiBH", - "ZXRMYW5ndWFnZVBsdWdpbkxpYlBhdGhSZXNwb25zZRIMCgRwYXRoGAEgASgJ", - "Ih4KDUVycm9yUmVzcG9uc2USDQoFZXJyb3IYASABKAkiPQoZUGVyZm9ybVJl", - "ZmFjdG9yaW5nUmVxdWVzdBIPCgdvbGRTdGVwGAEgASgJEg8KB25ld1N0ZXAY", - "AiABKAkiUwoaUGVyZm9ybVJlZmFjdG9yaW5nUmVzcG9uc2USDwoHc3VjY2Vz", - "cxgBIAEoCBIOCgZlcnJvcnMYAiADKAkSFAoMZmlsZXNDaGFuZ2VkGAMgAygJ", - "ItEBChVFeHRyYWN0Q29uY2VwdFJlcXVlc3QSKQoLY29uY2VwdE5hbWUYASAB", - "KAsyFC5nYXVnZS5tZXNzYWdlcy5zdGVwEiMKBXN0ZXBzGAIgAygLMhQuZ2F1", - "Z2UubWVzc2FnZXMuc3RlcBIbChNjaGFuZ2VBY3Jvc3NQcm9qZWN0GAMgASgI", - "EhcKD2NvbmNlcHRGaWxlTmFtZRgEIAEoCRIyChBzZWxlY3RlZFRleHRJbmZv", - "GAUgASgLMhguZ2F1Z2UubWVzc2FnZXMudGV4dEluZm8iRwoIdGV4dEluZm8S", - "EAoIZmlsZU5hbWUYASABKAkSFgoOc3RhcnRpbmdMaW5lTm8YAiABKAUSEQoJ", - "ZW5kTGluZU5vGAMgASgFIjsKBHN0ZXASDAoEbmFtZRgBIAEoCRINCgV0YWJs", - "ZRgCIAEoCRIWCg5wYXJhbVRhYmxlTmFtZRgDIAEoCSJQChZFeHRyYWN0Q29u", - "Y2VwdFJlc3BvbnNlEhEKCWlzU3VjY2VzcxgBIAEoCBINCgVlcnJvchgCIAEo", - "CRIUCgxmaWxlc0NoYW5nZWQYAyADKAkiIwoSRm9ybWF0U3BlY3NSZXF1ZXN0", - "Eg0KBXNwZWNzGAEgAygJIjcKE0Zvcm1hdFNwZWNzUmVzcG9uc2USDgoGZXJy", - "b3JzGAEgAygJEhAKCHdhcm5pbmdzGAIgAygJIh8KHVVuc3VwcG9ydGVkQXBp", - "TWVzc2FnZVJlc3BvbnNlIqkRCgpBUElNZXNzYWdlEj4KC21lc3NhZ2VUeXBl", - "GAEgASgOMikuZ2F1Z2UubWVzc2FnZXMuQVBJTWVzc2FnZS5BUElNZXNzYWdl", - "VHlwZRIRCgltZXNzYWdlSWQYAiABKAMSQQoScHJvamVjdFJvb3RSZXF1ZXN0", - "GAMgASgLMiUuZ2F1Z2UubWVzc2FnZXMuR2V0UHJvamVjdFJvb3RSZXF1ZXN0", - "EkMKE3Byb2plY3RSb290UmVzcG9uc2UYBCABKAsyJi5nYXVnZS5tZXNzYWdl", - "cy5HZXRQcm9qZWN0Um9vdFJlc3BvbnNlEksKF2luc3RhbGxhdGlvblJvb3RS", - "ZXF1ZXN0GAUgASgLMiouZ2F1Z2UubWVzc2FnZXMuR2V0SW5zdGFsbGF0aW9u", - "Um9vdFJlcXVlc3QSTQoYaW5zdGFsbGF0aW9uUm9vdFJlc3BvbnNlGAYgASgL", - "MisuZ2F1Z2UubWVzc2FnZXMuR2V0SW5zdGFsbGF0aW9uUm9vdFJlc3BvbnNl", - "EjsKD2FsbFN0ZXBzUmVxdWVzdBgHIAEoCzIiLmdhdWdlLm1lc3NhZ2VzLkdl", - "dEFsbFN0ZXBzUmVxdWVzdBI9ChBhbGxTdGVwc1Jlc3BvbnNlGAggASgLMiMu", - "Z2F1Z2UubWVzc2FnZXMuR2V0QWxsU3RlcHNSZXNwb25zZRIyCgxzcGVjc1Jl", - "cXVlc3QYCSABKAsyHC5nYXVnZS5tZXNzYWdlcy5TcGVjc1JlcXVlc3QSNAoN", - "c3BlY3NSZXNwb25zZRgKIAEoCzIdLmdhdWdlLm1lc3NhZ2VzLlNwZWNzUmVz", - "cG9uc2USPQoQc3RlcFZhbHVlUmVxdWVzdBgLIAEoCzIjLmdhdWdlLm1lc3Nh", - "Z2VzLkdldFN0ZXBWYWx1ZVJlcXVlc3QSPwoRc3RlcFZhbHVlUmVzcG9uc2UY", - "DCABKAsyJC5nYXVnZS5tZXNzYWdlcy5HZXRTdGVwVmFsdWVSZXNwb25zZRJH", - "Cg5saWJQYXRoUmVxdWVzdBgNIAEoCzIvLmdhdWdlLm1lc3NhZ2VzLkdldExh", - "bmd1YWdlUGx1Z2luTGliUGF0aFJlcXVlc3QSSQoPbGliUGF0aFJlc3BvbnNl", - "GA4gASgLMjAuZ2F1Z2UubWVzc2FnZXMuR2V0TGFuZ3VhZ2VQbHVnaW5MaWJQ", - "YXRoUmVzcG9uc2USLAoFZXJyb3IYDyABKAsyHS5nYXVnZS5tZXNzYWdlcy5F", - "cnJvclJlc3BvbnNlEkEKEmFsbENvbmNlcHRzUmVxdWVzdBgQIAEoCzIlLmdh", - "dWdlLm1lc3NhZ2VzLkdldEFsbENvbmNlcHRzUmVxdWVzdBJDChNhbGxDb25j", - "ZXB0c1Jlc3BvbnNlGBEgASgLMiYuZ2F1Z2UubWVzc2FnZXMuR2V0QWxsQ29u", - "Y2VwdHNSZXNwb25zZRJMChlwZXJmb3JtUmVmYWN0b3JpbmdSZXF1ZXN0GBIg", - "ASgLMikuZ2F1Z2UubWVzc2FnZXMuUGVyZm9ybVJlZmFjdG9yaW5nUmVxdWVz", - "dBJOChpwZXJmb3JtUmVmYWN0b3JpbmdSZXNwb25zZRgTIAEoCzIqLmdhdWdl", - "Lm1lc3NhZ2VzLlBlcmZvcm1SZWZhY3RvcmluZ1Jlc3BvbnNlEkQKFWV4dHJh", - "Y3RDb25jZXB0UmVxdWVzdBgUIAEoCzIlLmdhdWdlLm1lc3NhZ2VzLkV4dHJh", - "Y3RDb25jZXB0UmVxdWVzdBJGChZleHRyYWN0Q29uY2VwdFJlc3BvbnNlGBUg", - "ASgLMiYuZ2F1Z2UubWVzc2FnZXMuRXh0cmFjdENvbmNlcHRSZXNwb25zZRI+", - "ChJmb3JtYXRTcGVjc1JlcXVlc3QYFiABKAsyIi5nYXVnZS5tZXNzYWdlcy5G", - "b3JtYXRTcGVjc1JlcXVlc3QSQAoTZm9ybWF0U3BlY3NSZXNwb25zZRgXIAEo", - "CzIjLmdhdWdlLm1lc3NhZ2VzLkZvcm1hdFNwZWNzUmVzcG9uc2USVAoddW5z", - "dXBwb3J0ZWRBcGlNZXNzYWdlUmVzcG9uc2UYGCABKAsyLS5nYXVnZS5tZXNz", - "YWdlcy5VbnN1cHBvcnRlZEFwaU1lc3NhZ2VSZXNwb25zZSLvBAoOQVBJTWVz", - "c2FnZVR5cGUSGQoVR2V0UHJvamVjdFJvb3RSZXF1ZXN0EAASGgoWR2V0UHJv", - "amVjdFJvb3RSZXNwb25zZRABEh4KGkdldEluc3RhbGxhdGlvblJvb3RSZXF1", - "ZXN0EAISHwobR2V0SW5zdGFsbGF0aW9uUm9vdFJlc3BvbnNlEAMSFgoSR2V0", - "QWxsU3RlcHNSZXF1ZXN0EAQSFgoSR2V0QWxsU3RlcFJlc3BvbnNlEAUSEAoM", - "U3BlY3NSZXF1ZXN0EAYSEQoNU3BlY3NSZXNwb25zZRAHEhcKE0dldFN0ZXBW", - "YWx1ZVJlcXVlc3QQCBIYChRHZXRTdGVwVmFsdWVSZXNwb25zZRAJEiMKH0dl", - "dExhbmd1YWdlUGx1Z2luTGliUGF0aFJlcXVlc3QQChIkCiBHZXRMYW5ndWFn", - "ZVBsdWdpbkxpYlBhdGhSZXNwb25zZRALEhEKDUVycm9yUmVzcG9uc2UQDBIZ", - "ChVHZXRBbGxDb25jZXB0c1JlcXVlc3QQDRIaChZHZXRBbGxDb25jZXB0c1Jl", - "c3BvbnNlEA4SHQoZUGVyZm9ybVJlZmFjdG9yaW5nUmVxdWVzdBAPEh4KGlBl", - "cmZvcm1SZWZhY3RvcmluZ1Jlc3BvbnNlEBASGQoVRXh0cmFjdENvbmNlcHRS", - "ZXF1ZXN0EBESGgoWRXh0cmFjdENvbmNlcHRSZXNwb25zZRASEhYKEkZvcm1h", - "dFNwZWNzUmVxdWVzdBATEhcKE0Zvcm1hdFNwZWNzUmVzcG9uc2UQFBIhCh1V", - "bnN1cHBvcnRlZEFwaU1lc3NhZ2VSZXNwb25zZRAVQlwKFmNvbS50aG91Z2h0", - "d29ya3MuZ2F1Z2VaMWdpdGh1Yi5jb20vZ2V0Z2F1Z2UvZ2F1Z2UtcHJvdG8v", - "Z28vZ2F1Z2VfbWVzc2FnZXOqAg5HYXVnZS5NZXNzYWdlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Gauge.Messages.SpecReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetProjectRootRequest), global::Gauge.Messages.GetProjectRootRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetProjectRootResponse), global::Gauge.Messages.GetProjectRootResponse.Parser, new[]{ "ProjectRoot" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetInstallationRootRequest), global::Gauge.Messages.GetInstallationRootRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetInstallationRootResponse), global::Gauge.Messages.GetInstallationRootResponse.Parser, new[]{ "InstallationRoot" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetAllStepsRequest), global::Gauge.Messages.GetAllStepsRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetAllStepsResponse), global::Gauge.Messages.GetAllStepsResponse.Parser, new[]{ "AllSteps" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecsRequest), global::Gauge.Messages.SpecsRequest.Parser, new[]{ "Specs" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecsResponse), global::Gauge.Messages.SpecsResponse.Parser, new[]{ "Details" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecsResponse.Types.SpecDetail), global::Gauge.Messages.SpecsResponse.Types.SpecDetail.Parser, new[]{ "Spec", "ParseErrors" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetAllConceptsRequest), global::Gauge.Messages.GetAllConceptsRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetAllConceptsResponse), global::Gauge.Messages.GetAllConceptsResponse.Parser, new[]{ "Concepts" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ConceptInfo), global::Gauge.Messages.ConceptInfo.Parser, new[]{ "StepValue", "Filepath", "LineNumber" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetStepValueRequest), global::Gauge.Messages.GetStepValueRequest.Parser, new[]{ "StepText", "HasInlineTable" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetStepValueResponse), global::Gauge.Messages.GetStepValueResponse.Parser, new[]{ "StepValue" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetLanguagePluginLibPathRequest), global::Gauge.Messages.GetLanguagePluginLibPathRequest.Parser, new[]{ "Language" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.GetLanguagePluginLibPathResponse), global::Gauge.Messages.GetLanguagePluginLibPathResponse.Parser, new[]{ "Path" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ErrorResponse), global::Gauge.Messages.ErrorResponse.Parser, new[]{ "Error" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.PerformRefactoringRequest), global::Gauge.Messages.PerformRefactoringRequest.Parser, new[]{ "OldStep", "NewStep" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.PerformRefactoringResponse), global::Gauge.Messages.PerformRefactoringResponse.Parser, new[]{ "Success", "Errors", "FilesChanged" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExtractConceptRequest), global::Gauge.Messages.ExtractConceptRequest.Parser, new[]{ "ConceptName", "Steps", "ChangeAcrossProject", "ConceptFileName", "SelectedTextInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.textInfo), global::Gauge.Messages.textInfo.Parser, new[]{ "FileName", "StartingLineNo", "EndLineNo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.step), global::Gauge.Messages.step.Parser, new[]{ "Name", "Table", "ParamTableName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExtractConceptResponse), global::Gauge.Messages.ExtractConceptResponse.Parser, new[]{ "IsSuccess", "Error", "FilesChanged" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.FormatSpecsRequest), global::Gauge.Messages.FormatSpecsRequest.Parser, new[]{ "Specs" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.FormatSpecsResponse), global::Gauge.Messages.FormatSpecsResponse.Parser, new[]{ "Errors", "Warnings" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.UnsupportedApiMessageResponse), global::Gauge.Messages.UnsupportedApiMessageResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.APIMessage), global::Gauge.Messages.APIMessage.Parser, new[]{ "MessageType", "MessageId", "ProjectRootRequest", "ProjectRootResponse", "InstallationRootRequest", "InstallationRootResponse", "AllStepsRequest", "AllStepsResponse", "SpecsRequest", "SpecsResponse", "StepValueRequest", "StepValueResponse", "LibPathRequest", "LibPathResponse", "Error", "AllConceptsRequest", "AllConceptsResponse", "PerformRefactoringRequest", "PerformRefactoringResponse", "ExtractConceptRequest", "ExtractConceptResponse", "FormatSpecsRequest", "FormatSpecsResponse", "UnsupportedApiMessageResponse" }, null, new[]{ typeof(global::Gauge.Messages.APIMessage.Types.APIMessageType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - //// Request to get the Root Directory of the project - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetProjectRootRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetProjectRootRequest()); - 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::Gauge.Messages.ApiReflection.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 GetProjectRootRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetProjectRootRequest(GetProjectRootRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetProjectRootRequest Clone() { - return new GetProjectRootRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetProjectRootRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetProjectRootRequest 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(GetProjectRootRequest 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 - - } - - /// - //// Response of GetProjectRootRequest. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetProjectRootResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetProjectRootResponse()); - 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::Gauge.Messages.ApiReflection.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 GetProjectRootResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetProjectRootResponse(GetProjectRootResponse other) : this() { - projectRoot_ = other.projectRoot_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetProjectRootResponse Clone() { - return new GetProjectRootResponse(this); - } - - /// Field number for the "projectRoot" field. - public const int ProjectRootFieldNumber = 1; - private string projectRoot_ = ""; - /// - //// Holds the absolute path of the Project Root directory. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectRoot { - get { return projectRoot_; } - set { - projectRoot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetProjectRootResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetProjectRootResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ProjectRoot != other.ProjectRoot) 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 (ProjectRoot.Length != 0) hash ^= ProjectRoot.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 (ProjectRoot.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProjectRoot); - } - 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 (ProjectRoot.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProjectRoot); - } - 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 (ProjectRoot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectRoot); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetProjectRootResponse other) { - if (other == null) { - return; - } - if (other.ProjectRoot.Length != 0) { - ProjectRoot = other.ProjectRoot; - } - _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: { - ProjectRoot = 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: { - ProjectRoot = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Request to get the Root Directory of the Gauge installation - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetInstallationRootRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInstallationRootRequest()); - 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::Gauge.Messages.ApiReflection.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 GetInstallationRootRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInstallationRootRequest(GetInstallationRootRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInstallationRootRequest Clone() { - return new GetInstallationRootRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetInstallationRootRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetInstallationRootRequest 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(GetInstallationRootRequest 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 - - } - - /// - //// Response of GetInstallationRootRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetInstallationRootResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInstallationRootResponse()); - 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::Gauge.Messages.ApiReflection.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 GetInstallationRootResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInstallationRootResponse(GetInstallationRootResponse other) : this() { - installationRoot_ = other.installationRoot_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetInstallationRootResponse Clone() { - return new GetInstallationRootResponse(this); - } - - /// Field number for the "installationRoot" field. - public const int InstallationRootFieldNumber = 1; - private string installationRoot_ = ""; - /// - //// Holds the absolute path of the Gauge installation directory - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string InstallationRoot { - get { return installationRoot_; } - set { - installationRoot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetInstallationRootResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetInstallationRootResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (InstallationRoot != other.InstallationRoot) 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 (InstallationRoot.Length != 0) hash ^= InstallationRoot.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 (InstallationRoot.Length != 0) { - output.WriteRawTag(10); - output.WriteString(InstallationRoot); - } - 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 (InstallationRoot.Length != 0) { - output.WriteRawTag(10); - output.WriteString(InstallationRoot); - } - 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 (InstallationRoot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InstallationRoot); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetInstallationRootResponse other) { - if (other == null) { - return; - } - if (other.InstallationRoot.Length != 0) { - InstallationRoot = other.InstallationRoot; - } - _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: { - InstallationRoot = 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: { - InstallationRoot = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Request to get all Steps in the project - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetAllStepsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllStepsRequest()); - 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::Gauge.Messages.ApiReflection.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 GetAllStepsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllStepsRequest(GetAllStepsRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllStepsRequest Clone() { - return new GetAllStepsRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAllStepsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAllStepsRequest 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(GetAllStepsRequest 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 - - } - - /// - //// Response to GetAllStepsRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetAllStepsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllStepsResponse()); - 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::Gauge.Messages.ApiReflection.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 GetAllStepsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllStepsResponse(GetAllStepsResponse other) : this() { - allSteps_ = other.allSteps_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllStepsResponse Clone() { - return new GetAllStepsResponse(this); - } - - /// Field number for the "allSteps" field. - public const int AllStepsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_allSteps_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.ProtoStepValue.Parser); - private readonly pbc::RepeatedField allSteps_ = new pbc::RepeatedField(); - /// - //// Holds a collection of Steps that are defined in the project. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AllSteps { - get { return allSteps_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAllStepsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAllStepsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!allSteps_.Equals(other.allSteps_)) 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 ^= allSteps_.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 - allSteps_.WriteTo(output, _repeated_allSteps_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) { - allSteps_.WriteTo(ref output, _repeated_allSteps_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 += allSteps_.CalculateSize(_repeated_allSteps_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAllStepsResponse other) { - if (other == null) { - return; - } - allSteps_.Add(other.allSteps_); - _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: { - allSteps_.AddEntriesFrom(input, _repeated_allSteps_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: { - allSteps_.AddEntriesFrom(ref input, _repeated_allSteps_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request to get all Specs in the project - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecsRequest()); - 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::Gauge.Messages.ApiReflection.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 SpecsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecsRequest(SpecsRequest other) : this() { - specs_ = other.specs_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecsRequest Clone() { - return new SpecsRequest(this); - } - - /// Field number for the "specs" field. - public const int SpecsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_specs_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField specs_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Specs { - get { return specs_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!specs_.Equals(other.specs_)) 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 ^= specs_.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 - specs_.WriteTo(output, _repeated_specs_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) { - specs_.WriteTo(ref output, _repeated_specs_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 += specs_.CalculateSize(_repeated_specs_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecsRequest other) { - if (other == null) { - return; - } - specs_.Add(other.specs_); - _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: { - specs_.AddEntriesFrom(input, _repeated_specs_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: { - specs_.AddEntriesFrom(ref input, _repeated_specs_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Response to GetAllSpecsRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecsResponse()); - 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::Gauge.Messages.ApiReflection.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 SpecsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecsResponse(SpecsResponse other) : this() { - details_ = other.details_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecsResponse Clone() { - return new SpecsResponse(this); - } - - /// Field number for the "details" field. - public const int DetailsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_details_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.SpecsResponse.Types.SpecDetail.Parser); - private readonly pbc::RepeatedField details_ = new pbc::RepeatedField(); - /// - //// Holds a collection of Spec details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Details { - get { return details_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!details_.Equals(other.details_)) 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 ^= details_.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 - details_.WriteTo(output, _repeated_details_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) { - details_.WriteTo(ref output, _repeated_details_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 += details_.CalculateSize(_repeated_details_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecsResponse other) { - if (other == null) { - return; - } - details_.Add(other.details_); - _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: { - details_.AddEntriesFrom(input, _repeated_details_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: { - details_.AddEntriesFrom(ref input, _repeated_details_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SpecsResponse 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 SpecDetail : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecDetail()); - 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::Gauge.Messages.SpecsResponse.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 SpecDetail() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetail(SpecDetail other) : this() { - spec_ = other.spec_ != null ? other.spec_.Clone() : null; - parseErrors_ = other.parseErrors_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetail Clone() { - return new SpecDetail(this); - } - - /// Field number for the "spec" field. - public const int SpecFieldNumber = 1; - private global::Gauge.Messages.ProtoSpec spec_; - /// - //// Holds a collection of Specs that are defined in the project. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSpec Spec { - get { return spec_; } - set { - spec_ = value; - } - } - - /// Field number for the "parseErrors" field. - public const int ParseErrorsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_parseErrors_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.Error.Parser); - private readonly pbc::RepeatedField parseErrors_ = new pbc::RepeatedField(); - /// - //// Holds a collection of parse errors present in the above spec. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParseErrors { - get { return parseErrors_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecDetail); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecDetail other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Spec, other.Spec)) return false; - if(!parseErrors_.Equals(other.parseErrors_)) 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 (spec_ != null) hash ^= Spec.GetHashCode(); - hash ^= parseErrors_.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 (spec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Spec); - } - parseErrors_.WriteTo(output, _repeated_parseErrors_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 (spec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Spec); - } - parseErrors_.WriteTo(ref output, _repeated_parseErrors_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 (spec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); - } - size += parseErrors_.CalculateSize(_repeated_parseErrors_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecDetail other) { - if (other == null) { - return; - } - if (other.spec_ != null) { - if (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - Spec.MergeFrom(other.Spec); - } - parseErrors_.Add(other.parseErrors_); - _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 (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(Spec); - break; - } - case 18: { - parseErrors_.AddEntriesFrom(input, _repeated_parseErrors_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: { - if (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(Spec); - break; - } - case 18: { - parseErrors_.AddEntriesFrom(ref input, _repeated_parseErrors_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - //// Request to get all Concepts in the project - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetAllConceptsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllConceptsRequest()); - 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::Gauge.Messages.ApiReflection.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 GetAllConceptsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllConceptsRequest(GetAllConceptsRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllConceptsRequest Clone() { - return new GetAllConceptsRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAllConceptsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAllConceptsRequest 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(GetAllConceptsRequest 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 - - } - - /// - //// Response to GetAllConceptsResponse - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetAllConceptsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllConceptsResponse()); - 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::Gauge.Messages.ApiReflection.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 GetAllConceptsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllConceptsResponse(GetAllConceptsResponse other) : this() { - concepts_ = other.concepts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAllConceptsResponse Clone() { - return new GetAllConceptsResponse(this); - } - - /// Field number for the "concepts" field. - public const int ConceptsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_concepts_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.ConceptInfo.Parser); - private readonly pbc::RepeatedField concepts_ = new pbc::RepeatedField(); - /// - //// Holds a collection of Concepts that are defined in the project. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Concepts { - get { return concepts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAllConceptsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAllConceptsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!concepts_.Equals(other.concepts_)) 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 ^= concepts_.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 - concepts_.WriteTo(output, _repeated_concepts_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) { - concepts_.WriteTo(ref output, _repeated_concepts_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 += concepts_.CalculateSize(_repeated_concepts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAllConceptsResponse other) { - if (other == null) { - return; - } - concepts_.Add(other.concepts_); - _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: { - concepts_.AddEntriesFrom(input, _repeated_concepts_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: { - concepts_.AddEntriesFrom(ref input, _repeated_concepts_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Details of a Concept - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConceptInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConceptInfo()); - 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::Gauge.Messages.ApiReflection.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 ConceptInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptInfo(ConceptInfo other) : this() { - stepValue_ = other.stepValue_ != null ? other.stepValue_.Clone() : null; - filepath_ = other.filepath_; - lineNumber_ = other.lineNumber_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptInfo Clone() { - return new ConceptInfo(this); - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 1; - private global::Gauge.Messages.ProtoStepValue stepValue_; - /// - //// The text that defines a concept - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepValue StepValue { - get { return stepValue_; } - set { - stepValue_ = value; - } - } - - /// Field number for the "filepath" field. - public const int FilepathFieldNumber = 2; - private string filepath_ = ""; - /// - //// The absolute path to the file that contains the Concept - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Filepath { - get { return filepath_; } - set { - filepath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "lineNumber" field. - public const int LineNumberFieldNumber = 3; - private int lineNumber_; - /// - //// The line number in the file where the concept is defined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LineNumber { - get { return lineNumber_; } - set { - lineNumber_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConceptInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConceptInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(StepValue, other.StepValue)) return false; - if (Filepath != other.Filepath) return false; - if (LineNumber != other.LineNumber) 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 (stepValue_ != null) hash ^= StepValue.GetHashCode(); - if (Filepath.Length != 0) hash ^= Filepath.GetHashCode(); - if (LineNumber != 0) hash ^= LineNumber.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 (stepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(StepValue); - } - if (Filepath.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Filepath); - } - if (LineNumber != 0) { - output.WriteRawTag(24); - output.WriteInt32(LineNumber); - } - 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 (stepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(StepValue); - } - if (Filepath.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Filepath); - } - if (LineNumber != 0) { - output.WriteRawTag(24); - output.WriteInt32(LineNumber); - } - 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 (stepValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValue); - } - if (Filepath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Filepath); - } - if (LineNumber != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineNumber); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConceptInfo other) { - if (other == null) { - return; - } - if (other.stepValue_ != null) { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - StepValue.MergeFrom(other.StepValue); - } - if (other.Filepath.Length != 0) { - Filepath = other.Filepath; - } - if (other.LineNumber != 0) { - LineNumber = other.LineNumber; - } - _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 (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - break; - } - case 18: { - Filepath = input.ReadString(); - break; - } - case 24: { - LineNumber = 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: { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - break; - } - case 18: { - Filepath = input.ReadString(); - break; - } - case 24: { - LineNumber = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Request to get a Step Value. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetStepValueRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStepValueRequest()); - 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::Gauge.Messages.ApiReflection.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 GetStepValueRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetStepValueRequest(GetStepValueRequest other) : this() { - stepText_ = other.stepText_; - hasInlineTable_ = other.hasInlineTable_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetStepValueRequest Clone() { - return new GetStepValueRequest(this); - } - - /// Field number for the "stepText" field. - public const int StepTextFieldNumber = 1; - private string stepText_ = ""; - /// - //// The text of the Step. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StepText { - get { return stepText_; } - set { - stepText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hasInlineTable" field. - public const int HasInlineTableFieldNumber = 2; - private bool hasInlineTable_; - /// - //// Flag to indicate if the Step has an inline table. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasInlineTable { - get { return hasInlineTable_; } - set { - hasInlineTable_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetStepValueRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetStepValueRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StepText != other.StepText) return false; - if (HasInlineTable != other.HasInlineTable) 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 (StepText.Length != 0) hash ^= StepText.GetHashCode(); - if (HasInlineTable != false) hash ^= HasInlineTable.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 (StepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepText); - } - if (HasInlineTable != false) { - output.WriteRawTag(16); - output.WriteBool(HasInlineTable); - } - 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 (StepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepText); - } - if (HasInlineTable != false) { - output.WriteRawTag(16); - output.WriteBool(HasInlineTable); - } - 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 (StepText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StepText); - } - if (HasInlineTable != false) { - 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(GetStepValueRequest other) { - if (other == null) { - return; - } - if (other.StepText.Length != 0) { - StepText = other.StepText; - } - if (other.HasInlineTable != false) { - HasInlineTable = other.HasInlineTable; - } - _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: { - StepText = input.ReadString(); - break; - } - case 16: { - HasInlineTable = 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 10: { - StepText = input.ReadString(); - break; - } - case 16: { - HasInlineTable = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - //// Response to GetStepValueRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetStepValueResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStepValueResponse()); - 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::Gauge.Messages.ApiReflection.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 GetStepValueResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetStepValueResponse(GetStepValueResponse other) : this() { - stepValue_ = other.stepValue_ != null ? other.stepValue_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetStepValueResponse Clone() { - return new GetStepValueResponse(this); - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 1; - private global::Gauge.Messages.ProtoStepValue stepValue_; - /// - //// The Step corresponding to the request provided. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepValue StepValue { - get { return stepValue_; } - set { - stepValue_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetStepValueResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetStepValueResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(StepValue, other.StepValue)) 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 (stepValue_ != null) hash ^= StepValue.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 (stepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(StepValue); - } - 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 (stepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(StepValue); - } - 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 (stepValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValue); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetStepValueResponse other) { - if (other == null) { - return; - } - if (other.stepValue_ != null) { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - StepValue.MergeFrom(other.StepValue); - } - _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 (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - 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 (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - break; - } - } - } - } - #endif - - } - - /// - //// Request to get the location of language plugin's Lib directory - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetLanguagePluginLibPathRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLanguagePluginLibPathRequest()); - 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::Gauge.Messages.ApiReflection.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 GetLanguagePluginLibPathRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLanguagePluginLibPathRequest(GetLanguagePluginLibPathRequest other) : this() { - language_ = other.language_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLanguagePluginLibPathRequest Clone() { - return new GetLanguagePluginLibPathRequest(this); - } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 1; - private string language_ = ""; - /// - //// The language to locate the lib directory for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Language { - get { return language_; } - set { - language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetLanguagePluginLibPathRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetLanguagePluginLibPathRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Language != other.Language) 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 (Language.Length != 0) hash ^= Language.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 (Language.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Language); - } - 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 (Language.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Language); - } - 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 (Language.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetLanguagePluginLibPathRequest other) { - if (other == null) { - return; - } - if (other.Language.Length != 0) { - Language = other.Language; - } - _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: { - Language = 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: { - Language = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Response to GetLanguagePluginLibPathRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetLanguagePluginLibPathResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLanguagePluginLibPathResponse()); - 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::Gauge.Messages.ApiReflection.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 GetLanguagePluginLibPathResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLanguagePluginLibPathResponse(GetLanguagePluginLibPathResponse other) : this() { - path_ = other.path_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetLanguagePluginLibPathResponse Clone() { - return new GetLanguagePluginLibPathResponse(this); - } - - /// Field number for the "path" field. - public const int PathFieldNumber = 1; - private string path_ = ""; - /// - //// Absolute path to the Lib directory of the language. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path { - get { return path_; } - set { - path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetLanguagePluginLibPathResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetLanguagePluginLibPathResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Path != other.Path) 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 (Path.Length != 0) hash ^= Path.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 (Path.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Path); - } - 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 (Path.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Path); - } - 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 (Path.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetLanguagePluginLibPathResponse other) { - if (other == null) { - return; - } - if (other.Path.Length != 0) { - Path = other.Path; - } - _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: { - Path = 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: { - Path = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A generic failure response - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ErrorResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorResponse()); - 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::Gauge.Messages.ApiReflection.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 ErrorResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorResponse(ErrorResponse other) : this() { - error_ = other.error_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorResponse Clone() { - return new ErrorResponse(this); - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 1; - private string error_ = ""; - /// - //// Actual error message - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ErrorResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ErrorResponse 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 (Error.Length != 0) 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 (Error.Length != 0) { - 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 (Error.Length != 0) { - 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 (Error.Length != 0) { - 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(ErrorResponse other) { - if (other == null) { - return; - } - if (other.Error.Length != 0) { - 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 - - } - - /// - //// Request to perform a Refactor - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class PerformRefactoringRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformRefactoringRequest()); - 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::Gauge.Messages.ApiReflection.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 PerformRefactoringRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformRefactoringRequest(PerformRefactoringRequest other) : this() { - oldStep_ = other.oldStep_; - newStep_ = other.newStep_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformRefactoringRequest Clone() { - return new PerformRefactoringRequest(this); - } - - /// Field number for the "oldStep" field. - public const int OldStepFieldNumber = 1; - private string oldStep_ = ""; - /// - //// Step to refactor - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OldStep { - get { return oldStep_; } - set { - oldStep_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "newStep" field. - public const int NewStepFieldNumber = 2; - private string newStep_ = ""; - /// - //// Change to be made - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NewStep { - get { return newStep_; } - set { - newStep_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PerformRefactoringRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PerformRefactoringRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OldStep != other.OldStep) return false; - if (NewStep != other.NewStep) 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 (OldStep.Length != 0) hash ^= OldStep.GetHashCode(); - if (NewStep.Length != 0) hash ^= NewStep.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 (OldStep.Length != 0) { - output.WriteRawTag(10); - output.WriteString(OldStep); - } - if (NewStep.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NewStep); - } - 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 (OldStep.Length != 0) { - output.WriteRawTag(10); - output.WriteString(OldStep); - } - if (NewStep.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NewStep); - } - 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 (OldStep.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OldStep); - } - if (NewStep.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NewStep); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PerformRefactoringRequest other) { - if (other == null) { - return; - } - if (other.OldStep.Length != 0) { - OldStep = other.OldStep; - } - if (other.NewStep.Length != 0) { - NewStep = other.NewStep; - } - _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: { - OldStep = input.ReadString(); - break; - } - case 18: { - NewStep = 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: { - OldStep = input.ReadString(); - break; - } - case 18: { - NewStep = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Response to PerformRefactoringRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class PerformRefactoringResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformRefactoringResponse()); - 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::Gauge.Messages.ApiReflection.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 PerformRefactoringResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformRefactoringResponse(PerformRefactoringResponse other) : this() { - success_ = other.success_; - errors_ = other.errors_.Clone(); - filesChanged_ = other.filesChanged_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformRefactoringResponse Clone() { - return new PerformRefactoringResponse(this); - } - - /// Field number for the "success" field. - public const int SuccessFieldNumber = 1; - private bool success_; - /// - //// Flag indicating Success - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Success { - get { return success_; } - set { - success_ = value; - } - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - //// Error message if the refactoring was unsuccessful. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "filesChanged" field. - public const int FilesChangedFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_filesChanged_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField filesChanged_ = new pbc::RepeatedField(); - /// - //// Collection of files that were changed as part of the Refactoring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FilesChanged { - get { return filesChanged_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PerformRefactoringResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PerformRefactoringResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Success != other.Success) return false; - if(!errors_.Equals(other.errors_)) return false; - if(!filesChanged_.Equals(other.filesChanged_)) 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 (Success != false) hash ^= Success.GetHashCode(); - hash ^= errors_.GetHashCode(); - hash ^= filesChanged_.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 (Success != false) { - output.WriteRawTag(8); - output.WriteBool(Success); - } - errors_.WriteTo(output, _repeated_errors_codec); - filesChanged_.WriteTo(output, _repeated_filesChanged_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 (Success != false) { - output.WriteRawTag(8); - output.WriteBool(Success); - } - errors_.WriteTo(ref output, _repeated_errors_codec); - filesChanged_.WriteTo(ref output, _repeated_filesChanged_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 (Success != false) { - size += 1 + 1; - } - size += errors_.CalculateSize(_repeated_errors_codec); - size += filesChanged_.CalculateSize(_repeated_filesChanged_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PerformRefactoringResponse other) { - if (other == null) { - return; - } - if (other.Success != false) { - Success = other.Success; - } - errors_.Add(other.errors_); - filesChanged_.Add(other.filesChanged_); - _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: { - Success = input.ReadBool(); - break; - } - case 18: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(input, _repeated_filesChanged_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: { - Success = input.ReadBool(); - break; - } - case 18: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(ref input, _repeated_filesChanged_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request to perform Extract to Concept refactoring - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExtractConceptRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtractConceptRequest()); - 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::Gauge.Messages.ApiReflection.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 ExtractConceptRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtractConceptRequest(ExtractConceptRequest other) : this() { - conceptName_ = other.conceptName_ != null ? other.conceptName_.Clone() : null; - steps_ = other.steps_.Clone(); - changeAcrossProject_ = other.changeAcrossProject_; - conceptFileName_ = other.conceptFileName_; - selectedTextInfo_ = other.selectedTextInfo_ != null ? other.selectedTextInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtractConceptRequest Clone() { - return new ExtractConceptRequest(this); - } - - /// Field number for the "conceptName" field. - public const int ConceptNameFieldNumber = 1; - private global::Gauge.Messages.step conceptName_; - /// - //// The Concept name given by the user - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.step ConceptName { - get { return conceptName_; } - set { - conceptName_ = value; - } - } - - /// Field number for the "steps" field. - public const int StepsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_steps_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.step.Parser); - private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); - /// - //// steps to extract - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Steps { - get { return steps_; } - } - - /// Field number for the "changeAcrossProject" field. - public const int ChangeAcrossProjectFieldNumber = 3; - private bool changeAcrossProject_; - /// - //// Flag indicating if refactoring should be done across project - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ChangeAcrossProject { - get { return changeAcrossProject_; } - set { - changeAcrossProject_ = value; - } - } - - /// Field number for the "conceptFileName" field. - public const int ConceptFileNameFieldNumber = 4; - private string conceptFileName_ = ""; - /// - //// The concept filename in which extracted concept will be added - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConceptFileName { - get { return conceptFileName_; } - set { - conceptFileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "selectedTextInfo" field. - public const int SelectedTextInfoFieldNumber = 5; - private global::Gauge.Messages.textInfo selectedTextInfo_; - /// - //// Info related to selected text, only if changeAcrossProject is false - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.textInfo SelectedTextInfo { - get { return selectedTextInfo_; } - set { - selectedTextInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtractConceptRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtractConceptRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ConceptName, other.ConceptName)) return false; - if(!steps_.Equals(other.steps_)) return false; - if (ChangeAcrossProject != other.ChangeAcrossProject) return false; - if (ConceptFileName != other.ConceptFileName) return false; - if (!object.Equals(SelectedTextInfo, other.SelectedTextInfo)) 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 (conceptName_ != null) hash ^= ConceptName.GetHashCode(); - hash ^= steps_.GetHashCode(); - if (ChangeAcrossProject != false) hash ^= ChangeAcrossProject.GetHashCode(); - if (ConceptFileName.Length != 0) hash ^= ConceptFileName.GetHashCode(); - if (selectedTextInfo_ != null) hash ^= SelectedTextInfo.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 (conceptName_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ConceptName); - } - steps_.WriteTo(output, _repeated_steps_codec); - if (ChangeAcrossProject != false) { - output.WriteRawTag(24); - output.WriteBool(ChangeAcrossProject); - } - if (ConceptFileName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ConceptFileName); - } - if (selectedTextInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(SelectedTextInfo); - } - 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 (conceptName_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ConceptName); - } - steps_.WriteTo(ref output, _repeated_steps_codec); - if (ChangeAcrossProject != false) { - output.WriteRawTag(24); - output.WriteBool(ChangeAcrossProject); - } - if (ConceptFileName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ConceptFileName); - } - if (selectedTextInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(SelectedTextInfo); - } - 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 (conceptName_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConceptName); - } - size += steps_.CalculateSize(_repeated_steps_codec); - if (ChangeAcrossProject != false) { - size += 1 + 1; - } - if (ConceptFileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConceptFileName); - } - if (selectedTextInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SelectedTextInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtractConceptRequest other) { - if (other == null) { - return; - } - if (other.conceptName_ != null) { - if (conceptName_ == null) { - ConceptName = new global::Gauge.Messages.step(); - } - ConceptName.MergeFrom(other.ConceptName); - } - steps_.Add(other.steps_); - if (other.ChangeAcrossProject != false) { - ChangeAcrossProject = other.ChangeAcrossProject; - } - if (other.ConceptFileName.Length != 0) { - ConceptFileName = other.ConceptFileName; - } - if (other.selectedTextInfo_ != null) { - if (selectedTextInfo_ == null) { - SelectedTextInfo = new global::Gauge.Messages.textInfo(); - } - SelectedTextInfo.MergeFrom(other.SelectedTextInfo); - } - _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 (conceptName_ == null) { - ConceptName = new global::Gauge.Messages.step(); - } - input.ReadMessage(ConceptName); - break; - } - case 18: { - steps_.AddEntriesFrom(input, _repeated_steps_codec); - break; - } - case 24: { - ChangeAcrossProject = input.ReadBool(); - break; - } - case 34: { - ConceptFileName = input.ReadString(); - break; - } - case 42: { - if (selectedTextInfo_ == null) { - SelectedTextInfo = new global::Gauge.Messages.textInfo(); - } - input.ReadMessage(SelectedTextInfo); - 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 (conceptName_ == null) { - ConceptName = new global::Gauge.Messages.step(); - } - input.ReadMessage(ConceptName); - break; - } - case 18: { - steps_.AddEntriesFrom(ref input, _repeated_steps_codec); - break; - } - case 24: { - ChangeAcrossProject = input.ReadBool(); - break; - } - case 34: { - ConceptFileName = input.ReadString(); - break; - } - case 42: { - if (selectedTextInfo_ == null) { - SelectedTextInfo = new global::Gauge.Messages.textInfo(); - } - input.ReadMessage(SelectedTextInfo); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class textInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new textInfo()); - 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::Gauge.Messages.ApiReflection.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 textInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public textInfo(textInfo other) : this() { - fileName_ = other.fileName_; - startingLineNo_ = other.startingLineNo_; - endLineNo_ = other.endLineNo_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public textInfo Clone() { - return new textInfo(this); - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 1; - private string fileName_ = ""; - /// - //// The filename from where concept is being extracted - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "startingLineNo" field. - public const int StartingLineNoFieldNumber = 2; - private int startingLineNo_; - /// - //// storing the starting and ending line number of selected text - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartingLineNo { - get { return startingLineNo_; } - set { - startingLineNo_ = value; - } - } - - /// Field number for the "endLineNo" field. - public const int EndLineNoFieldNumber = 3; - private int endLineNo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int EndLineNo { - get { return endLineNo_; } - set { - endLineNo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as textInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(textInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FileName != other.FileName) return false; - if (StartingLineNo != other.StartingLineNo) return false; - if (EndLineNo != other.EndLineNo) 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 (FileName.Length != 0) hash ^= FileName.GetHashCode(); - if (StartingLineNo != 0) hash ^= StartingLineNo.GetHashCode(); - if (EndLineNo != 0) hash ^= EndLineNo.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 (FileName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FileName); - } - if (StartingLineNo != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartingLineNo); - } - if (EndLineNo != 0) { - output.WriteRawTag(24); - output.WriteInt32(EndLineNo); - } - 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 (FileName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FileName); - } - if (StartingLineNo != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartingLineNo); - } - if (EndLineNo != 0) { - output.WriteRawTag(24); - output.WriteInt32(EndLineNo); - } - 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 (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (StartingLineNo != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartingLineNo); - } - if (EndLineNo != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndLineNo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(textInfo other) { - if (other == null) { - return; - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - if (other.StartingLineNo != 0) { - StartingLineNo = other.StartingLineNo; - } - if (other.EndLineNo != 0) { - EndLineNo = other.EndLineNo; - } - _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: { - FileName = input.ReadString(); - break; - } - case 16: { - StartingLineNo = input.ReadInt32(); - break; - } - case 24: { - EndLineNo = 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: { - FileName = input.ReadString(); - break; - } - case 16: { - StartingLineNo = input.ReadInt32(); - break; - } - case 24: { - EndLineNo = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class step : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new step()); - 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::Gauge.Messages.ApiReflection.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 step() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public step(step other) : this() { - name_ = other.name_; - table_ = other.table_; - paramTableName_ = other.paramTableName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public step Clone() { - return new step(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - //// name of the step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "table" field. - public const int TableFieldNumber = 2; - private string table_ = ""; - /// - //// table present in step as parameter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Table { - get { return table_; } - set { - table_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "paramTableName" field. - public const int ParamTableNameFieldNumber = 3; - private string paramTableName_ = ""; - /// - //// name of table in concept heading, if it comes as a param to concept - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParamTableName { - get { return paramTableName_; } - set { - paramTableName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as step); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(step other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Table != other.Table) return false; - if (ParamTableName != other.ParamTableName) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Table.Length != 0) hash ^= Table.GetHashCode(); - if (ParamTableName.Length != 0) hash ^= ParamTableName.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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Table.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Table); - } - if (ParamTableName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ParamTableName); - } - 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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Table.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Table); - } - if (ParamTableName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ParamTableName); - } - 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 (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Table.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Table); - } - if (ParamTableName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParamTableName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(step other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Table.Length != 0) { - Table = other.Table; - } - if (other.ParamTableName.Length != 0) { - ParamTableName = other.ParamTableName; - } - _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: { - Table = input.ReadString(); - break; - } - case 26: { - ParamTableName = 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: { - Table = input.ReadString(); - break; - } - case 26: { - ParamTableName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Response to perform Extract to Concept refactoring - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExtractConceptResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtractConceptResponse()); - 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::Gauge.Messages.ApiReflection.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 ExtractConceptResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtractConceptResponse(ExtractConceptResponse other) : this() { - isSuccess_ = other.isSuccess_; - error_ = other.error_; - filesChanged_ = other.filesChanged_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtractConceptResponse Clone() { - return new ExtractConceptResponse(this); - } - - /// Field number for the "isSuccess" field. - public const int IsSuccessFieldNumber = 1; - private bool isSuccess_; - /// - //// Flag indicating Success - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsSuccess { - get { return isSuccess_; } - set { - isSuccess_ = value; - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private string error_ = ""; - /// - //// Error message if the refactoring was unsuccessful. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "filesChanged" field. - public const int FilesChangedFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_filesChanged_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField filesChanged_ = new pbc::RepeatedField(); - /// - //// Collection of files that were changed as part of the Refactoring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FilesChanged { - get { return filesChanged_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtractConceptResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtractConceptResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (IsSuccess != other.IsSuccess) return false; - if (Error != other.Error) return false; - if(!filesChanged_.Equals(other.filesChanged_)) 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 (IsSuccess != false) hash ^= IsSuccess.GetHashCode(); - if (Error.Length != 0) hash ^= Error.GetHashCode(); - hash ^= filesChanged_.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 (IsSuccess != false) { - output.WriteRawTag(8); - output.WriteBool(IsSuccess); - } - if (Error.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Error); - } - filesChanged_.WriteTo(output, _repeated_filesChanged_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 (IsSuccess != false) { - output.WriteRawTag(8); - output.WriteBool(IsSuccess); - } - if (Error.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Error); - } - filesChanged_.WriteTo(ref output, _repeated_filesChanged_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 (IsSuccess != false) { - size += 1 + 1; - } - if (Error.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } - size += filesChanged_.CalculateSize(_repeated_filesChanged_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtractConceptResponse other) { - if (other == null) { - return; - } - if (other.IsSuccess != false) { - IsSuccess = other.IsSuccess; - } - if (other.Error.Length != 0) { - Error = other.Error; - } - filesChanged_.Add(other.filesChanged_); - _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: { - IsSuccess = input.ReadBool(); - break; - } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(input, _repeated_filesChanged_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: { - IsSuccess = input.ReadBool(); - break; - } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(ref input, _repeated_filesChanged_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request to format spec files - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FormatSpecsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FormatSpecsRequest()); - 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::Gauge.Messages.ApiReflection.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 FormatSpecsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FormatSpecsRequest(FormatSpecsRequest other) : this() { - specs_ = other.specs_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FormatSpecsRequest Clone() { - return new FormatSpecsRequest(this); - } - - /// Field number for the "specs" field. - public const int SpecsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_specs_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField specs_ = new pbc::RepeatedField(); - /// - //// Specs to be formatted - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Specs { - get { return specs_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FormatSpecsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FormatSpecsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!specs_.Equals(other.specs_)) 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 ^= specs_.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 - specs_.WriteTo(output, _repeated_specs_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) { - specs_.WriteTo(ref output, _repeated_specs_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 += specs_.CalculateSize(_repeated_specs_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FormatSpecsRequest other) { - if (other == null) { - return; - } - specs_.Add(other.specs_); - _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: { - specs_.AddEntriesFrom(input, _repeated_specs_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: { - specs_.AddEntriesFrom(ref input, _repeated_specs_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Response on formatting spec files - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FormatSpecsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FormatSpecsResponse()); - 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::Gauge.Messages.ApiReflection.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 FormatSpecsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FormatSpecsResponse(FormatSpecsResponse other) : this() { - errors_ = other.errors_.Clone(); - warnings_ = other.warnings_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FormatSpecsResponse Clone() { - return new FormatSpecsResponse(this); - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - //// Errors occurred on formatting - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "warnings" field. - public const int WarningsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_warnings_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField warnings_ = new pbc::RepeatedField(); - /// - //// Warnings occurred on formatting - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Warnings { - get { return warnings_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FormatSpecsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FormatSpecsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!errors_.Equals(other.errors_)) return false; - if(!warnings_.Equals(other.warnings_)) 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 ^= errors_.GetHashCode(); - hash ^= warnings_.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 - errors_.WriteTo(output, _repeated_errors_codec); - warnings_.WriteTo(output, _repeated_warnings_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) { - errors_.WriteTo(ref output, _repeated_errors_codec); - warnings_.WriteTo(ref output, _repeated_warnings_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 += errors_.CalculateSize(_repeated_errors_codec); - size += warnings_.CalculateSize(_repeated_warnings_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FormatSpecsResponse other) { - if (other == null) { - return; - } - errors_.Add(other.errors_); - warnings_.Add(other.warnings_); - _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: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 18: { - warnings_.AddEntriesFrom(input, _repeated_warnings_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: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 18: { - warnings_.AddEntriesFrom(ref input, _repeated_warnings_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Response when a API message request is not supported. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UnsupportedApiMessageResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsupportedApiMessageResponse()); - 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::Gauge.Messages.ApiReflection.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 UnsupportedApiMessageResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnsupportedApiMessageResponse(UnsupportedApiMessageResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnsupportedApiMessageResponse Clone() { - return new UnsupportedApiMessageResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UnsupportedApiMessageResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnsupportedApiMessageResponse 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(UnsupportedApiMessageResponse 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 - - } - - /// - //// A generic message composing of all possible operations. - //// One of the Request/Response fields will have value, depending on the MessageType set. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class APIMessage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new APIMessage()); - 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::Gauge.Messages.ApiReflection.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 APIMessage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public APIMessage(APIMessage other) : this() { - messageType_ = other.messageType_; - messageId_ = other.messageId_; - projectRootRequest_ = other.projectRootRequest_ != null ? other.projectRootRequest_.Clone() : null; - projectRootResponse_ = other.projectRootResponse_ != null ? other.projectRootResponse_.Clone() : null; - installationRootRequest_ = other.installationRootRequest_ != null ? other.installationRootRequest_.Clone() : null; - installationRootResponse_ = other.installationRootResponse_ != null ? other.installationRootResponse_.Clone() : null; - allStepsRequest_ = other.allStepsRequest_ != null ? other.allStepsRequest_.Clone() : null; - allStepsResponse_ = other.allStepsResponse_ != null ? other.allStepsResponse_.Clone() : null; - specsRequest_ = other.specsRequest_ != null ? other.specsRequest_.Clone() : null; - specsResponse_ = other.specsResponse_ != null ? other.specsResponse_.Clone() : null; - stepValueRequest_ = other.stepValueRequest_ != null ? other.stepValueRequest_.Clone() : null; - stepValueResponse_ = other.stepValueResponse_ != null ? other.stepValueResponse_.Clone() : null; - libPathRequest_ = other.libPathRequest_ != null ? other.libPathRequest_.Clone() : null; - libPathResponse_ = other.libPathResponse_ != null ? other.libPathResponse_.Clone() : null; - error_ = other.error_ != null ? other.error_.Clone() : null; - allConceptsRequest_ = other.allConceptsRequest_ != null ? other.allConceptsRequest_.Clone() : null; - allConceptsResponse_ = other.allConceptsResponse_ != null ? other.allConceptsResponse_.Clone() : null; - performRefactoringRequest_ = other.performRefactoringRequest_ != null ? other.performRefactoringRequest_.Clone() : null; - performRefactoringResponse_ = other.performRefactoringResponse_ != null ? other.performRefactoringResponse_.Clone() : null; - extractConceptRequest_ = other.extractConceptRequest_ != null ? other.extractConceptRequest_.Clone() : null; - extractConceptResponse_ = other.extractConceptResponse_ != null ? other.extractConceptResponse_.Clone() : null; - formatSpecsRequest_ = other.formatSpecsRequest_ != null ? other.formatSpecsRequest_.Clone() : null; - formatSpecsResponse_ = other.formatSpecsResponse_ != null ? other.formatSpecsResponse_.Clone() : null; - unsupportedApiMessageResponse_ = other.unsupportedApiMessageResponse_ != null ? other.unsupportedApiMessageResponse_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public APIMessage Clone() { - return new APIMessage(this); - } - - /// Field number for the "messageType" field. - public const int MessageTypeFieldNumber = 1; - private global::Gauge.Messages.APIMessage.Types.APIMessageType messageType_ = global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest; - /// - //// Type of API call being made - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.APIMessage.Types.APIMessageType MessageType { - get { return messageType_; } - set { - messageType_ = value; - } - } - - /// Field number for the "messageId" field. - public const int MessageIdFieldNumber = 2; - private long messageId_; - /// - //// A unique id to represent this message. A response to the message should copy over this value. - //// This is used to synchronize messages & responses - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MessageId { - get { return messageId_; } - set { - messageId_ = value; - } - } - - /// Field number for the "projectRootRequest" field. - public const int ProjectRootRequestFieldNumber = 3; - private global::Gauge.Messages.GetProjectRootRequest projectRootRequest_; - /// - //// [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetProjectRootRequest ProjectRootRequest { - get { return projectRootRequest_; } - set { - projectRootRequest_ = value; - } - } - - /// Field number for the "projectRootResponse" field. - public const int ProjectRootResponseFieldNumber = 4; - private global::Gauge.Messages.GetProjectRootResponse projectRootResponse_; - /// - //// [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetProjectRootResponse ProjectRootResponse { - get { return projectRootResponse_; } - set { - projectRootResponse_ = value; - } - } - - /// Field number for the "installationRootRequest" field. - public const int InstallationRootRequestFieldNumber = 5; - private global::Gauge.Messages.GetInstallationRootRequest installationRootRequest_; - /// - //// [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetInstallationRootRequest InstallationRootRequest { - get { return installationRootRequest_; } - set { - installationRootRequest_ = value; - } - } - - /// Field number for the "installationRootResponse" field. - public const int InstallationRootResponseFieldNumber = 6; - private global::Gauge.Messages.GetInstallationRootResponse installationRootResponse_; - /// - //// [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetInstallationRootResponse InstallationRootResponse { - get { return installationRootResponse_; } - set { - installationRootResponse_ = value; - } - } - - /// Field number for the "allStepsRequest" field. - public const int AllStepsRequestFieldNumber = 7; - private global::Gauge.Messages.GetAllStepsRequest allStepsRequest_; - /// - //// [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetAllStepsRequest AllStepsRequest { - get { return allStepsRequest_; } - set { - allStepsRequest_ = value; - } - } - - /// Field number for the "allStepsResponse" field. - public const int AllStepsResponseFieldNumber = 8; - private global::Gauge.Messages.GetAllStepsResponse allStepsResponse_; - /// - //// [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetAllStepsResponse AllStepsResponse { - get { return allStepsResponse_; } - set { - allStepsResponse_ = value; - } - } - - /// Field number for the "specsRequest" field. - public const int SpecsRequestFieldNumber = 9; - private global::Gauge.Messages.SpecsRequest specsRequest_; - /// - //// [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecsRequest SpecsRequest { - get { return specsRequest_; } - set { - specsRequest_ = value; - } - } - - /// Field number for the "specsResponse" field. - public const int SpecsResponseFieldNumber = 10; - private global::Gauge.Messages.SpecsResponse specsResponse_; - /// - //// [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecsResponse SpecsResponse { - get { return specsResponse_; } - set { - specsResponse_ = value; - } - } - - /// Field number for the "stepValueRequest" field. - public const int StepValueRequestFieldNumber = 11; - private global::Gauge.Messages.GetStepValueRequest stepValueRequest_; - /// - //// [GetStepValueRequest](#gauge.messages.GetStepValueRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetStepValueRequest StepValueRequest { - get { return stepValueRequest_; } - set { - stepValueRequest_ = value; - } - } - - /// Field number for the "stepValueResponse" field. - public const int StepValueResponseFieldNumber = 12; - private global::Gauge.Messages.GetStepValueResponse stepValueResponse_; - /// - //// [GetStepValueResponse](#gauge.messages.GetStepValueResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetStepValueResponse StepValueResponse { - get { return stepValueResponse_; } - set { - stepValueResponse_ = value; - } - } - - /// Field number for the "libPathRequest" field. - public const int LibPathRequestFieldNumber = 13; - private global::Gauge.Messages.GetLanguagePluginLibPathRequest libPathRequest_; - /// - //// [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetLanguagePluginLibPathRequest LibPathRequest { - get { return libPathRequest_; } - set { - libPathRequest_ = value; - } - } - - /// Field number for the "libPathResponse" field. - public const int LibPathResponseFieldNumber = 14; - private global::Gauge.Messages.GetLanguagePluginLibPathResponse libPathResponse_; - /// - //// [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetLanguagePluginLibPathResponse LibPathResponse { - get { return libPathResponse_; } - set { - libPathResponse_ = value; - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 15; - private global::Gauge.Messages.ErrorResponse error_; - /// - //// [ErrorResponse](#gauge.messages.ErrorResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ErrorResponse Error { - get { return error_; } - set { - error_ = value; - } - } - - /// Field number for the "allConceptsRequest" field. - public const int AllConceptsRequestFieldNumber = 16; - private global::Gauge.Messages.GetAllConceptsRequest allConceptsRequest_; - /// - //// [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetAllConceptsRequest AllConceptsRequest { - get { return allConceptsRequest_; } - set { - allConceptsRequest_ = value; - } - } - - /// Field number for the "allConceptsResponse" field. - public const int AllConceptsResponseFieldNumber = 17; - private global::Gauge.Messages.GetAllConceptsResponse allConceptsResponse_; - /// - //// [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.GetAllConceptsResponse AllConceptsResponse { - get { return allConceptsResponse_; } - set { - allConceptsResponse_ = value; - } - } - - /// Field number for the "performRefactoringRequest" field. - public const int PerformRefactoringRequestFieldNumber = 18; - private global::Gauge.Messages.PerformRefactoringRequest performRefactoringRequest_; - /// - //// [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.PerformRefactoringRequest PerformRefactoringRequest { - get { return performRefactoringRequest_; } - set { - performRefactoringRequest_ = value; - } - } - - /// Field number for the "performRefactoringResponse" field. - public const int PerformRefactoringResponseFieldNumber = 19; - private global::Gauge.Messages.PerformRefactoringResponse performRefactoringResponse_; - /// - //// [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.PerformRefactoringResponse PerformRefactoringResponse { - get { return performRefactoringResponse_; } - set { - performRefactoringResponse_ = value; - } - } - - /// Field number for the "extractConceptRequest" field. - public const int ExtractConceptRequestFieldNumber = 20; - private global::Gauge.Messages.ExtractConceptRequest extractConceptRequest_; - /// - //// [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExtractConceptRequest ExtractConceptRequest { - get { return extractConceptRequest_; } - set { - extractConceptRequest_ = value; - } - } - - /// Field number for the "extractConceptResponse" field. - public const int ExtractConceptResponseFieldNumber = 21; - private global::Gauge.Messages.ExtractConceptResponse extractConceptResponse_; - /// - //// [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExtractConceptResponse ExtractConceptResponse { - get { return extractConceptResponse_; } - set { - extractConceptResponse_ = value; - } - } - - /// Field number for the "formatSpecsRequest" field. - public const int FormatSpecsRequestFieldNumber = 22; - private global::Gauge.Messages.FormatSpecsRequest formatSpecsRequest_; - /// - //// [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.FormatSpecsRequest FormatSpecsRequest { - get { return formatSpecsRequest_; } - set { - formatSpecsRequest_ = value; - } - } - - /// Field number for the "formatSpecsResponse" field. - public const int FormatSpecsResponseFieldNumber = 23; - private global::Gauge.Messages.FormatSpecsResponse formatSpecsResponse_; - /// - //// [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.FormatSpecsResponse FormatSpecsResponse { - get { return formatSpecsResponse_; } - set { - formatSpecsResponse_ = value; - } - } - - /// Field number for the "unsupportedApiMessageResponse" field. - public const int UnsupportedApiMessageResponseFieldNumber = 24; - private global::Gauge.Messages.UnsupportedApiMessageResponse unsupportedApiMessageResponse_; - /// - //// [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.UnsupportedApiMessageResponse UnsupportedApiMessageResponse { - get { return unsupportedApiMessageResponse_; } - set { - unsupportedApiMessageResponse_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as APIMessage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(APIMessage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MessageType != other.MessageType) return false; - if (MessageId != other.MessageId) return false; - if (!object.Equals(ProjectRootRequest, other.ProjectRootRequest)) return false; - if (!object.Equals(ProjectRootResponse, other.ProjectRootResponse)) return false; - if (!object.Equals(InstallationRootRequest, other.InstallationRootRequest)) return false; - if (!object.Equals(InstallationRootResponse, other.InstallationRootResponse)) return false; - if (!object.Equals(AllStepsRequest, other.AllStepsRequest)) return false; - if (!object.Equals(AllStepsResponse, other.AllStepsResponse)) return false; - if (!object.Equals(SpecsRequest, other.SpecsRequest)) return false; - if (!object.Equals(SpecsResponse, other.SpecsResponse)) return false; - if (!object.Equals(StepValueRequest, other.StepValueRequest)) return false; - if (!object.Equals(StepValueResponse, other.StepValueResponse)) return false; - if (!object.Equals(LibPathRequest, other.LibPathRequest)) return false; - if (!object.Equals(LibPathResponse, other.LibPathResponse)) return false; - if (!object.Equals(Error, other.Error)) return false; - if (!object.Equals(AllConceptsRequest, other.AllConceptsRequest)) return false; - if (!object.Equals(AllConceptsResponse, other.AllConceptsResponse)) return false; - if (!object.Equals(PerformRefactoringRequest, other.PerformRefactoringRequest)) return false; - if (!object.Equals(PerformRefactoringResponse, other.PerformRefactoringResponse)) return false; - if (!object.Equals(ExtractConceptRequest, other.ExtractConceptRequest)) return false; - if (!object.Equals(ExtractConceptResponse, other.ExtractConceptResponse)) return false; - if (!object.Equals(FormatSpecsRequest, other.FormatSpecsRequest)) return false; - if (!object.Equals(FormatSpecsResponse, other.FormatSpecsResponse)) return false; - if (!object.Equals(UnsupportedApiMessageResponse, other.UnsupportedApiMessageResponse)) 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 (MessageType != global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest) hash ^= MessageType.GetHashCode(); - if (MessageId != 0L) hash ^= MessageId.GetHashCode(); - if (projectRootRequest_ != null) hash ^= ProjectRootRequest.GetHashCode(); - if (projectRootResponse_ != null) hash ^= ProjectRootResponse.GetHashCode(); - if (installationRootRequest_ != null) hash ^= InstallationRootRequest.GetHashCode(); - if (installationRootResponse_ != null) hash ^= InstallationRootResponse.GetHashCode(); - if (allStepsRequest_ != null) hash ^= AllStepsRequest.GetHashCode(); - if (allStepsResponse_ != null) hash ^= AllStepsResponse.GetHashCode(); - if (specsRequest_ != null) hash ^= SpecsRequest.GetHashCode(); - if (specsResponse_ != null) hash ^= SpecsResponse.GetHashCode(); - if (stepValueRequest_ != null) hash ^= StepValueRequest.GetHashCode(); - if (stepValueResponse_ != null) hash ^= StepValueResponse.GetHashCode(); - if (libPathRequest_ != null) hash ^= LibPathRequest.GetHashCode(); - if (libPathResponse_ != null) hash ^= LibPathResponse.GetHashCode(); - if (error_ != null) hash ^= Error.GetHashCode(); - if (allConceptsRequest_ != null) hash ^= AllConceptsRequest.GetHashCode(); - if (allConceptsResponse_ != null) hash ^= AllConceptsResponse.GetHashCode(); - if (performRefactoringRequest_ != null) hash ^= PerformRefactoringRequest.GetHashCode(); - if (performRefactoringResponse_ != null) hash ^= PerformRefactoringResponse.GetHashCode(); - if (extractConceptRequest_ != null) hash ^= ExtractConceptRequest.GetHashCode(); - if (extractConceptResponse_ != null) hash ^= ExtractConceptResponse.GetHashCode(); - if (formatSpecsRequest_ != null) hash ^= FormatSpecsRequest.GetHashCode(); - if (formatSpecsResponse_ != null) hash ^= FormatSpecsResponse.GetHashCode(); - if (unsupportedApiMessageResponse_ != null) hash ^= UnsupportedApiMessageResponse.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 (MessageType != global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest) { - output.WriteRawTag(8); - output.WriteEnum((int) MessageType); - } - if (MessageId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(MessageId); - } - if (projectRootRequest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ProjectRootRequest); - } - if (projectRootResponse_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ProjectRootResponse); - } - if (installationRootRequest_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InstallationRootRequest); - } - if (installationRootResponse_ != null) { - output.WriteRawTag(50); - output.WriteMessage(InstallationRootResponse); - } - if (allStepsRequest_ != null) { - output.WriteRawTag(58); - output.WriteMessage(AllStepsRequest); - } - if (allStepsResponse_ != null) { - output.WriteRawTag(66); - output.WriteMessage(AllStepsResponse); - } - if (specsRequest_ != null) { - output.WriteRawTag(74); - output.WriteMessage(SpecsRequest); - } - if (specsResponse_ != null) { - output.WriteRawTag(82); - output.WriteMessage(SpecsResponse); - } - if (stepValueRequest_ != null) { - output.WriteRawTag(90); - output.WriteMessage(StepValueRequest); - } - if (stepValueResponse_ != null) { - output.WriteRawTag(98); - output.WriteMessage(StepValueResponse); - } - if (libPathRequest_ != null) { - output.WriteRawTag(106); - output.WriteMessage(LibPathRequest); - } - if (libPathResponse_ != null) { - output.WriteRawTag(114); - output.WriteMessage(LibPathResponse); - } - if (error_ != null) { - output.WriteRawTag(122); - output.WriteMessage(Error); - } - if (allConceptsRequest_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AllConceptsRequest); - } - if (allConceptsResponse_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AllConceptsResponse); - } - if (performRefactoringRequest_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(PerformRefactoringRequest); - } - if (performRefactoringResponse_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(PerformRefactoringResponse); - } - if (extractConceptRequest_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(ExtractConceptRequest); - } - if (extractConceptResponse_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(ExtractConceptResponse); - } - if (formatSpecsRequest_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(FormatSpecsRequest); - } - if (formatSpecsResponse_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(FormatSpecsResponse); - } - if (unsupportedApiMessageResponse_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(UnsupportedApiMessageResponse); - } - 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 (MessageType != global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest) { - output.WriteRawTag(8); - output.WriteEnum((int) MessageType); - } - if (MessageId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(MessageId); - } - if (projectRootRequest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ProjectRootRequest); - } - if (projectRootResponse_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ProjectRootResponse); - } - if (installationRootRequest_ != null) { - output.WriteRawTag(42); - output.WriteMessage(InstallationRootRequest); - } - if (installationRootResponse_ != null) { - output.WriteRawTag(50); - output.WriteMessage(InstallationRootResponse); - } - if (allStepsRequest_ != null) { - output.WriteRawTag(58); - output.WriteMessage(AllStepsRequest); - } - if (allStepsResponse_ != null) { - output.WriteRawTag(66); - output.WriteMessage(AllStepsResponse); - } - if (specsRequest_ != null) { - output.WriteRawTag(74); - output.WriteMessage(SpecsRequest); - } - if (specsResponse_ != null) { - output.WriteRawTag(82); - output.WriteMessage(SpecsResponse); - } - if (stepValueRequest_ != null) { - output.WriteRawTag(90); - output.WriteMessage(StepValueRequest); - } - if (stepValueResponse_ != null) { - output.WriteRawTag(98); - output.WriteMessage(StepValueResponse); - } - if (libPathRequest_ != null) { - output.WriteRawTag(106); - output.WriteMessage(LibPathRequest); - } - if (libPathResponse_ != null) { - output.WriteRawTag(114); - output.WriteMessage(LibPathResponse); - } - if (error_ != null) { - output.WriteRawTag(122); - output.WriteMessage(Error); - } - if (allConceptsRequest_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AllConceptsRequest); - } - if (allConceptsResponse_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AllConceptsResponse); - } - if (performRefactoringRequest_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(PerformRefactoringRequest); - } - if (performRefactoringResponse_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(PerformRefactoringResponse); - } - if (extractConceptRequest_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(ExtractConceptRequest); - } - if (extractConceptResponse_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(ExtractConceptResponse); - } - if (formatSpecsRequest_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(FormatSpecsRequest); - } - if (formatSpecsResponse_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(FormatSpecsResponse); - } - if (unsupportedApiMessageResponse_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(UnsupportedApiMessageResponse); - } - 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 (MessageType != global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); - } - if (MessageId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MessageId); - } - if (projectRootRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProjectRootRequest); - } - if (projectRootResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProjectRootResponse); - } - if (installationRootRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstallationRootRequest); - } - if (installationRootResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstallationRootResponse); - } - if (allStepsRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllStepsRequest); - } - if (allStepsResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllStepsResponse); - } - if (specsRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecsRequest); - } - if (specsResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecsResponse); - } - if (stepValueRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValueRequest); - } - if (stepValueResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValueResponse); - } - if (libPathRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LibPathRequest); - } - if (libPathResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LibPathResponse); - } - if (error_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); - } - if (allConceptsRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AllConceptsRequest); - } - if (allConceptsResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AllConceptsResponse); - } - if (performRefactoringRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformRefactoringRequest); - } - if (performRefactoringResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformRefactoringResponse); - } - if (extractConceptRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExtractConceptRequest); - } - if (extractConceptResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExtractConceptResponse); - } - if (formatSpecsRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FormatSpecsRequest); - } - if (formatSpecsResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FormatSpecsResponse); - } - if (unsupportedApiMessageResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UnsupportedApiMessageResponse); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(APIMessage other) { - if (other == null) { - return; - } - if (other.MessageType != global::Gauge.Messages.APIMessage.Types.APIMessageType.GetProjectRootRequest) { - MessageType = other.MessageType; - } - if (other.MessageId != 0L) { - MessageId = other.MessageId; - } - if (other.projectRootRequest_ != null) { - if (projectRootRequest_ == null) { - ProjectRootRequest = new global::Gauge.Messages.GetProjectRootRequest(); - } - ProjectRootRequest.MergeFrom(other.ProjectRootRequest); - } - if (other.projectRootResponse_ != null) { - if (projectRootResponse_ == null) { - ProjectRootResponse = new global::Gauge.Messages.GetProjectRootResponse(); - } - ProjectRootResponse.MergeFrom(other.ProjectRootResponse); - } - if (other.installationRootRequest_ != null) { - if (installationRootRequest_ == null) { - InstallationRootRequest = new global::Gauge.Messages.GetInstallationRootRequest(); - } - InstallationRootRequest.MergeFrom(other.InstallationRootRequest); - } - if (other.installationRootResponse_ != null) { - if (installationRootResponse_ == null) { - InstallationRootResponse = new global::Gauge.Messages.GetInstallationRootResponse(); - } - InstallationRootResponse.MergeFrom(other.InstallationRootResponse); - } - if (other.allStepsRequest_ != null) { - if (allStepsRequest_ == null) { - AllStepsRequest = new global::Gauge.Messages.GetAllStepsRequest(); - } - AllStepsRequest.MergeFrom(other.AllStepsRequest); - } - if (other.allStepsResponse_ != null) { - if (allStepsResponse_ == null) { - AllStepsResponse = new global::Gauge.Messages.GetAllStepsResponse(); - } - AllStepsResponse.MergeFrom(other.AllStepsResponse); - } - if (other.specsRequest_ != null) { - if (specsRequest_ == null) { - SpecsRequest = new global::Gauge.Messages.SpecsRequest(); - } - SpecsRequest.MergeFrom(other.SpecsRequest); - } - if (other.specsResponse_ != null) { - if (specsResponse_ == null) { - SpecsResponse = new global::Gauge.Messages.SpecsResponse(); - } - SpecsResponse.MergeFrom(other.SpecsResponse); - } - if (other.stepValueRequest_ != null) { - if (stepValueRequest_ == null) { - StepValueRequest = new global::Gauge.Messages.GetStepValueRequest(); - } - StepValueRequest.MergeFrom(other.StepValueRequest); - } - if (other.stepValueResponse_ != null) { - if (stepValueResponse_ == null) { - StepValueResponse = new global::Gauge.Messages.GetStepValueResponse(); - } - StepValueResponse.MergeFrom(other.StepValueResponse); - } - if (other.libPathRequest_ != null) { - if (libPathRequest_ == null) { - LibPathRequest = new global::Gauge.Messages.GetLanguagePluginLibPathRequest(); - } - LibPathRequest.MergeFrom(other.LibPathRequest); - } - if (other.libPathResponse_ != null) { - if (libPathResponse_ == null) { - LibPathResponse = new global::Gauge.Messages.GetLanguagePluginLibPathResponse(); - } - LibPathResponse.MergeFrom(other.LibPathResponse); - } - if (other.error_ != null) { - if (error_ == null) { - Error = new global::Gauge.Messages.ErrorResponse(); - } - Error.MergeFrom(other.Error); - } - if (other.allConceptsRequest_ != null) { - if (allConceptsRequest_ == null) { - AllConceptsRequest = new global::Gauge.Messages.GetAllConceptsRequest(); - } - AllConceptsRequest.MergeFrom(other.AllConceptsRequest); - } - if (other.allConceptsResponse_ != null) { - if (allConceptsResponse_ == null) { - AllConceptsResponse = new global::Gauge.Messages.GetAllConceptsResponse(); - } - AllConceptsResponse.MergeFrom(other.AllConceptsResponse); - } - if (other.performRefactoringRequest_ != null) { - if (performRefactoringRequest_ == null) { - PerformRefactoringRequest = new global::Gauge.Messages.PerformRefactoringRequest(); - } - PerformRefactoringRequest.MergeFrom(other.PerformRefactoringRequest); - } - if (other.performRefactoringResponse_ != null) { - if (performRefactoringResponse_ == null) { - PerformRefactoringResponse = new global::Gauge.Messages.PerformRefactoringResponse(); - } - PerformRefactoringResponse.MergeFrom(other.PerformRefactoringResponse); - } - if (other.extractConceptRequest_ != null) { - if (extractConceptRequest_ == null) { - ExtractConceptRequest = new global::Gauge.Messages.ExtractConceptRequest(); - } - ExtractConceptRequest.MergeFrom(other.ExtractConceptRequest); - } - if (other.extractConceptResponse_ != null) { - if (extractConceptResponse_ == null) { - ExtractConceptResponse = new global::Gauge.Messages.ExtractConceptResponse(); - } - ExtractConceptResponse.MergeFrom(other.ExtractConceptResponse); - } - if (other.formatSpecsRequest_ != null) { - if (formatSpecsRequest_ == null) { - FormatSpecsRequest = new global::Gauge.Messages.FormatSpecsRequest(); - } - FormatSpecsRequest.MergeFrom(other.FormatSpecsRequest); - } - if (other.formatSpecsResponse_ != null) { - if (formatSpecsResponse_ == null) { - FormatSpecsResponse = new global::Gauge.Messages.FormatSpecsResponse(); - } - FormatSpecsResponse.MergeFrom(other.FormatSpecsResponse); - } - if (other.unsupportedApiMessageResponse_ != null) { - if (unsupportedApiMessageResponse_ == null) { - UnsupportedApiMessageResponse = new global::Gauge.Messages.UnsupportedApiMessageResponse(); - } - UnsupportedApiMessageResponse.MergeFrom(other.UnsupportedApiMessageResponse); - } - _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: { - MessageType = (global::Gauge.Messages.APIMessage.Types.APIMessageType) input.ReadEnum(); - break; - } - case 16: { - MessageId = input.ReadInt64(); - break; - } - case 26: { - if (projectRootRequest_ == null) { - ProjectRootRequest = new global::Gauge.Messages.GetProjectRootRequest(); - } - input.ReadMessage(ProjectRootRequest); - break; - } - case 34: { - if (projectRootResponse_ == null) { - ProjectRootResponse = new global::Gauge.Messages.GetProjectRootResponse(); - } - input.ReadMessage(ProjectRootResponse); - break; - } - case 42: { - if (installationRootRequest_ == null) { - InstallationRootRequest = new global::Gauge.Messages.GetInstallationRootRequest(); - } - input.ReadMessage(InstallationRootRequest); - break; - } - case 50: { - if (installationRootResponse_ == null) { - InstallationRootResponse = new global::Gauge.Messages.GetInstallationRootResponse(); - } - input.ReadMessage(InstallationRootResponse); - break; - } - case 58: { - if (allStepsRequest_ == null) { - AllStepsRequest = new global::Gauge.Messages.GetAllStepsRequest(); - } - input.ReadMessage(AllStepsRequest); - break; - } - case 66: { - if (allStepsResponse_ == null) { - AllStepsResponse = new global::Gauge.Messages.GetAllStepsResponse(); - } - input.ReadMessage(AllStepsResponse); - break; - } - case 74: { - if (specsRequest_ == null) { - SpecsRequest = new global::Gauge.Messages.SpecsRequest(); - } - input.ReadMessage(SpecsRequest); - break; - } - case 82: { - if (specsResponse_ == null) { - SpecsResponse = new global::Gauge.Messages.SpecsResponse(); - } - input.ReadMessage(SpecsResponse); - break; - } - case 90: { - if (stepValueRequest_ == null) { - StepValueRequest = new global::Gauge.Messages.GetStepValueRequest(); - } - input.ReadMessage(StepValueRequest); - break; - } - case 98: { - if (stepValueResponse_ == null) { - StepValueResponse = new global::Gauge.Messages.GetStepValueResponse(); - } - input.ReadMessage(StepValueResponse); - break; - } - case 106: { - if (libPathRequest_ == null) { - LibPathRequest = new global::Gauge.Messages.GetLanguagePluginLibPathRequest(); - } - input.ReadMessage(LibPathRequest); - break; - } - case 114: { - if (libPathResponse_ == null) { - LibPathResponse = new global::Gauge.Messages.GetLanguagePluginLibPathResponse(); - } - input.ReadMessage(LibPathResponse); - break; - } - case 122: { - if (error_ == null) { - Error = new global::Gauge.Messages.ErrorResponse(); - } - input.ReadMessage(Error); - break; - } - case 130: { - if (allConceptsRequest_ == null) { - AllConceptsRequest = new global::Gauge.Messages.GetAllConceptsRequest(); - } - input.ReadMessage(AllConceptsRequest); - break; - } - case 138: { - if (allConceptsResponse_ == null) { - AllConceptsResponse = new global::Gauge.Messages.GetAllConceptsResponse(); - } - input.ReadMessage(AllConceptsResponse); - break; - } - case 146: { - if (performRefactoringRequest_ == null) { - PerformRefactoringRequest = new global::Gauge.Messages.PerformRefactoringRequest(); - } - input.ReadMessage(PerformRefactoringRequest); - break; - } - case 154: { - if (performRefactoringResponse_ == null) { - PerformRefactoringResponse = new global::Gauge.Messages.PerformRefactoringResponse(); - } - input.ReadMessage(PerformRefactoringResponse); - break; - } - case 162: { - if (extractConceptRequest_ == null) { - ExtractConceptRequest = new global::Gauge.Messages.ExtractConceptRequest(); - } - input.ReadMessage(ExtractConceptRequest); - break; - } - case 170: { - if (extractConceptResponse_ == null) { - ExtractConceptResponse = new global::Gauge.Messages.ExtractConceptResponse(); - } - input.ReadMessage(ExtractConceptResponse); - break; - } - case 178: { - if (formatSpecsRequest_ == null) { - FormatSpecsRequest = new global::Gauge.Messages.FormatSpecsRequest(); - } - input.ReadMessage(FormatSpecsRequest); - break; - } - case 186: { - if (formatSpecsResponse_ == null) { - FormatSpecsResponse = new global::Gauge.Messages.FormatSpecsResponse(); - } - input.ReadMessage(FormatSpecsResponse); - break; - } - case 194: { - if (unsupportedApiMessageResponse_ == null) { - UnsupportedApiMessageResponse = new global::Gauge.Messages.UnsupportedApiMessageResponse(); - } - input.ReadMessage(UnsupportedApiMessageResponse); - 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: { - MessageType = (global::Gauge.Messages.APIMessage.Types.APIMessageType) input.ReadEnum(); - break; - } - case 16: { - MessageId = input.ReadInt64(); - break; - } - case 26: { - if (projectRootRequest_ == null) { - ProjectRootRequest = new global::Gauge.Messages.GetProjectRootRequest(); - } - input.ReadMessage(ProjectRootRequest); - break; - } - case 34: { - if (projectRootResponse_ == null) { - ProjectRootResponse = new global::Gauge.Messages.GetProjectRootResponse(); - } - input.ReadMessage(ProjectRootResponse); - break; - } - case 42: { - if (installationRootRequest_ == null) { - InstallationRootRequest = new global::Gauge.Messages.GetInstallationRootRequest(); - } - input.ReadMessage(InstallationRootRequest); - break; - } - case 50: { - if (installationRootResponse_ == null) { - InstallationRootResponse = new global::Gauge.Messages.GetInstallationRootResponse(); - } - input.ReadMessage(InstallationRootResponse); - break; - } - case 58: { - if (allStepsRequest_ == null) { - AllStepsRequest = new global::Gauge.Messages.GetAllStepsRequest(); - } - input.ReadMessage(AllStepsRequest); - break; - } - case 66: { - if (allStepsResponse_ == null) { - AllStepsResponse = new global::Gauge.Messages.GetAllStepsResponse(); - } - input.ReadMessage(AllStepsResponse); - break; - } - case 74: { - if (specsRequest_ == null) { - SpecsRequest = new global::Gauge.Messages.SpecsRequest(); - } - input.ReadMessage(SpecsRequest); - break; - } - case 82: { - if (specsResponse_ == null) { - SpecsResponse = new global::Gauge.Messages.SpecsResponse(); - } - input.ReadMessage(SpecsResponse); - break; - } - case 90: { - if (stepValueRequest_ == null) { - StepValueRequest = new global::Gauge.Messages.GetStepValueRequest(); - } - input.ReadMessage(StepValueRequest); - break; - } - case 98: { - if (stepValueResponse_ == null) { - StepValueResponse = new global::Gauge.Messages.GetStepValueResponse(); - } - input.ReadMessage(StepValueResponse); - break; - } - case 106: { - if (libPathRequest_ == null) { - LibPathRequest = new global::Gauge.Messages.GetLanguagePluginLibPathRequest(); - } - input.ReadMessage(LibPathRequest); - break; - } - case 114: { - if (libPathResponse_ == null) { - LibPathResponse = new global::Gauge.Messages.GetLanguagePluginLibPathResponse(); - } - input.ReadMessage(LibPathResponse); - break; - } - case 122: { - if (error_ == null) { - Error = new global::Gauge.Messages.ErrorResponse(); - } - input.ReadMessage(Error); - break; - } - case 130: { - if (allConceptsRequest_ == null) { - AllConceptsRequest = new global::Gauge.Messages.GetAllConceptsRequest(); - } - input.ReadMessage(AllConceptsRequest); - break; - } - case 138: { - if (allConceptsResponse_ == null) { - AllConceptsResponse = new global::Gauge.Messages.GetAllConceptsResponse(); - } - input.ReadMessage(AllConceptsResponse); - break; - } - case 146: { - if (performRefactoringRequest_ == null) { - PerformRefactoringRequest = new global::Gauge.Messages.PerformRefactoringRequest(); - } - input.ReadMessage(PerformRefactoringRequest); - break; - } - case 154: { - if (performRefactoringResponse_ == null) { - PerformRefactoringResponse = new global::Gauge.Messages.PerformRefactoringResponse(); - } - input.ReadMessage(PerformRefactoringResponse); - break; - } - case 162: { - if (extractConceptRequest_ == null) { - ExtractConceptRequest = new global::Gauge.Messages.ExtractConceptRequest(); - } - input.ReadMessage(ExtractConceptRequest); - break; - } - case 170: { - if (extractConceptResponse_ == null) { - ExtractConceptResponse = new global::Gauge.Messages.ExtractConceptResponse(); - } - input.ReadMessage(ExtractConceptResponse); - break; - } - case 178: { - if (formatSpecsRequest_ == null) { - FormatSpecsRequest = new global::Gauge.Messages.FormatSpecsRequest(); - } - input.ReadMessage(FormatSpecsRequest); - break; - } - case 186: { - if (formatSpecsResponse_ == null) { - FormatSpecsResponse = new global::Gauge.Messages.FormatSpecsResponse(); - } - input.ReadMessage(FormatSpecsResponse); - break; - } - case 194: { - if (unsupportedApiMessageResponse_ == null) { - UnsupportedApiMessageResponse = new global::Gauge.Messages.UnsupportedApiMessageResponse(); - } - input.ReadMessage(UnsupportedApiMessageResponse); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the APIMessage message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum APIMessageType { - [pbr::OriginalName("GetProjectRootRequest")] GetProjectRootRequest = 0, - [pbr::OriginalName("GetProjectRootResponse")] GetProjectRootResponse = 1, - [pbr::OriginalName("GetInstallationRootRequest")] GetInstallationRootRequest = 2, - [pbr::OriginalName("GetInstallationRootResponse")] GetInstallationRootResponse = 3, - [pbr::OriginalName("GetAllStepsRequest")] GetAllStepsRequest = 4, - [pbr::OriginalName("GetAllStepResponse")] GetAllStepResponse = 5, - [pbr::OriginalName("SpecsRequest")] SpecsRequest = 6, - [pbr::OriginalName("SpecsResponse")] SpecsResponse = 7, - [pbr::OriginalName("GetStepValueRequest")] GetStepValueRequest = 8, - [pbr::OriginalName("GetStepValueResponse")] GetStepValueResponse = 9, - [pbr::OriginalName("GetLanguagePluginLibPathRequest")] GetLanguagePluginLibPathRequest = 10, - [pbr::OriginalName("GetLanguagePluginLibPathResponse")] GetLanguagePluginLibPathResponse = 11, - [pbr::OriginalName("ErrorResponse")] ErrorResponse = 12, - [pbr::OriginalName("GetAllConceptsRequest")] GetAllConceptsRequest = 13, - [pbr::OriginalName("GetAllConceptsResponse")] GetAllConceptsResponse = 14, - [pbr::OriginalName("PerformRefactoringRequest")] PerformRefactoringRequest = 15, - [pbr::OriginalName("PerformRefactoringResponse")] PerformRefactoringResponse = 16, - [pbr::OriginalName("ExtractConceptRequest")] ExtractConceptRequest = 17, - [pbr::OriginalName("ExtractConceptResponse")] ExtractConceptResponse = 18, - [pbr::OriginalName("FormatSpecsRequest")] FormatSpecsRequest = 19, - [pbr::OriginalName("FormatSpecsResponse")] FormatSpecsResponse = 20, - [pbr::OriginalName("UnsupportedApiMessageResponse")] UnsupportedApiMessageResponse = 21, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/src/Gauge.CSharp.Core/GaugeApiConnection.cs b/src/Gauge.CSharp.Core/GaugeApiConnection.cs deleted file mode 100644 index 716d481..0000000 --- a/src/Gauge.CSharp.Core/GaugeApiConnection.cs +++ /dev/null @@ -1,54 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; -using Gauge.Messages; -using Google.Protobuf; - -namespace Gauge.CSharp.Core -{ - public class GaugeApiConnection : AbstractGaugeConnection, IGaugeApiConnection - { - public GaugeApiConnection(ITcpClientWrapper clientWrapper) : base(clientWrapper) - { - } - - public IEnumerable GetStepValues(IEnumerable stepTexts, bool hasInlineTable) - { - foreach (var stepText in stepTexts) - { - var stepValueRequest = new GetStepValueRequest - { - StepText = stepText, - HasInlineTable = hasInlineTable - }; - var stepValueRequestMessage = new APIMessage - { - MessageId = GenerateMessageId(), - MessageType = APIMessage.Types.APIMessageType.GetStepValueRequest, - StepValueRequest = stepValueRequest - }; - var apiMessage = WriteAndReadApiMessage(stepValueRequestMessage); - yield return apiMessage.StepValueResponse.StepValue.StepValue; - } - } - - public APIMessage WriteAndReadApiMessage(IMessage stepValueRequestMessage) - { - lock (TcpClientWrapper) - { - WriteMessage(stepValueRequestMessage); - return ReadMessage(); - } - } - - private APIMessage ReadMessage() - { - var responseBytes = ReadBytes(); - return APIMessage.Parser.ParseFrom(responseBytes.ToArray()); - } - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/GaugeConnection.cs b/src/Gauge.CSharp.Core/GaugeConnection.cs deleted file mode 100644 index 4b1922f..0000000 --- a/src/Gauge.CSharp.Core/GaugeConnection.cs +++ /dev/null @@ -1,14 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -namespace Gauge.CSharp.Core -{ - public class GaugeConnection : AbstractGaugeConnection - { - public GaugeConnection(ITcpClientWrapper tcpClientWrapper) : base(tcpClientWrapper) - { - } - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/IGaugeApiConnection.cs b/src/Gauge.CSharp.Core/IGaugeApiConnection.cs deleted file mode 100644 index f2b713b..0000000 --- a/src/Gauge.CSharp.Core/IGaugeApiConnection.cs +++ /dev/null @@ -1,21 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System.Collections.Generic; -using Gauge.Messages; -using Google.Protobuf; - -namespace Gauge.CSharp.Core -{ - public interface IGaugeApiConnection - { - bool Connected { get; } - IEnumerable GetStepValues(IEnumerable stepTexts, bool hasInlineTable); - APIMessage WriteAndReadApiMessage(IMessage stepValueRequestMessage); - void WriteMessage(IMessage request); - IEnumerable ReadBytes(); - void Dispose(); - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/ITcpClientWrapper.cs b/src/Gauge.CSharp.Core/ITcpClientWrapper.cs deleted file mode 100644 index 812743c..0000000 --- a/src/Gauge.CSharp.Core/ITcpClientWrapper.cs +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System.IO; - -namespace Gauge.CSharp.Core -{ - public interface ITcpClientWrapper - { - bool Connected { get; } - Stream GetStream(); - void Close(); - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/Lsp.cs b/src/Gauge.CSharp.Core/Lsp.cs deleted file mode 100644 index c46dd2e..0000000 --- a/src/Gauge.CSharp.Core/Lsp.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: lsp.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 Gauge.Messages { - - /// Holder for reflection information generated from lsp.proto - public static partial class LspReflection { - - #region Descriptor - /// File descriptor for lsp.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static LspReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cglsc3AucHJvdG8SDmdhdWdlLm1lc3NhZ2VzGg5tZXNzYWdlcy5wcm90bzKc", - "BwoKbHNwU2VydmljZRJYCgxHZXRTdGVwTmFtZXMSIC5nYXVnZS5tZXNzYWdl", - "cy5TdGVwTmFtZXNSZXF1ZXN0GiEuZ2F1Z2UubWVzc2FnZXMuU3RlcE5hbWVz", - "UmVzcG9uc2UiA4gCARJJCglDYWNoZUZpbGUSIC5nYXVnZS5tZXNzYWdlcy5D", - "YWNoZUZpbGVSZXF1ZXN0GhUuZ2F1Z2UubWVzc2FnZXMuRW1wdHkiA4gCARJk", - "ChBHZXRTdGVwUG9zaXRpb25zEiQuZ2F1Z2UubWVzc2FnZXMuU3RlcFBvc2l0", - "aW9uc1JlcXVlc3QaJS5nYXVnZS5tZXNzYWdlcy5TdGVwUG9zaXRpb25zUmVz", - "cG9uc2UiA4gCARJkChZHZXRJbXBsZW1lbnRhdGlvbkZpbGVzEhUuZ2F1Z2Uu", - "bWVzc2FnZXMuRW1wdHkaLi5nYXVnZS5tZXNzYWdlcy5JbXBsZW1lbnRhdGlv", - "bkZpbGVMaXN0UmVzcG9uc2UiA4gCARJdCg1JbXBsZW1lbnRTdHViEi0uZ2F1", - "Z2UubWVzc2FnZXMuU3R1YkltcGxlbWVudGF0aW9uQ29kZVJlcXVlc3QaGC5n", - "YXVnZS5tZXNzYWdlcy5GaWxlRGlmZiIDiAIBEl4KDFZhbGlkYXRlU3RlcBIj", - "LmdhdWdlLm1lc3NhZ2VzLlN0ZXBWYWxpZGF0ZVJlcXVlc3QaJC5nYXVnZS5t", - "ZXNzYWdlcy5TdGVwVmFsaWRhdGVSZXNwb25zZSIDiAIBElIKCFJlZmFjdG9y", - "Eh8uZ2F1Z2UubWVzc2FnZXMuUmVmYWN0b3JSZXF1ZXN0GiAuZ2F1Z2UubWVz", - "c2FnZXMuUmVmYWN0b3JSZXNwb25zZSIDiAIBElUKC0dldFN0ZXBOYW1lEh8u", - "Z2F1Z2UubWVzc2FnZXMuU3RlcE5hbWVSZXF1ZXN0GiAuZ2F1Z2UubWVzc2Fn", - "ZXMuU3RlcE5hbWVSZXNwb25zZSIDiAIBEmQKD0dldEdsb2JQYXR0ZXJucxIV", - "LmdhdWdlLm1lc3NhZ2VzLkVtcHR5GjUuZ2F1Z2UubWVzc2FnZXMuSW1wbGVt", - "ZW50YXRpb25GaWxlR2xvYlBhdHRlcm5SZXNwb25zZSIDiAIBEk0KC0tpbGxQ", - "cm9jZXNzEiIuZ2F1Z2UubWVzc2FnZXMuS2lsbFByb2Nlc3NSZXF1ZXN0GhUu", - "Z2F1Z2UubWVzc2FnZXMuRW1wdHkiA4gCAUJcChZjb20udGhvdWdodHdvcmtz", - "LmdhdWdlWjFnaXRodWIuY29tL2dldGdhdWdlL2dhdWdlLXByb3RvL2dvL2dh", - "dWdlX21lc3NhZ2VzqgIOR2F1Z2UuTWVzc2FnZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Gauge.Messages.MessagesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, null)); - } - #endregion - - } -} - -#endregion Designer generated code diff --git a/src/Gauge.CSharp.Core/LspGrpc.cs b/src/Gauge.CSharp.Core/LspGrpc.cs deleted file mode 100644 index 88ff991..0000000 --- a/src/Gauge.CSharp.Core/LspGrpc.cs +++ /dev/null @@ -1,566 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: lsp.proto -// -// Original file comments: -// ---------------------------------------------------------------- -// Copyright (c) ThoughtWorks, Inc. -// Licensed under the Apache License, Version 2.0 -// See LICENSE in the project root for license information. -// ---------------------------------------------------------------- -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Gauge.Messages { - public static partial class lspService - { - static readonly string __ServiceName = "gauge.messages.lspService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNamesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNamesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNamesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNamesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_CacheFileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.CacheFileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepPositionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepPositionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepPositionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepPositionsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ImplementationFileListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ImplementationFileListResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StubImplementationCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StubImplementationCodeRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_FileDiff = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.FileDiff.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepValidateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepValidateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepValidateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepValidateResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_RefactorRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.RefactorRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_RefactorResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.RefactorResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNameRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNameRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNameResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNameResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ImplementationFileGlobPatternResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ImplementationFileGlobPatternResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_KillProcessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.KillProcessRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepNames = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepNames", - __Marshaller_gauge_messages_StepNamesRequest, - __Marshaller_gauge_messages_StepNamesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CacheFile = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CacheFile", - __Marshaller_gauge_messages_CacheFileRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepPositions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepPositions", - __Marshaller_gauge_messages_StepPositionsRequest, - __Marshaller_gauge_messages_StepPositionsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetImplementationFiles = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetImplementationFiles", - __Marshaller_gauge_messages_Empty, - __Marshaller_gauge_messages_ImplementationFileListResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ImplementStub = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ImplementStub", - __Marshaller_gauge_messages_StubImplementationCodeRequest, - __Marshaller_gauge_messages_FileDiff); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ValidateStep = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ValidateStep", - __Marshaller_gauge_messages_StepValidateRequest, - __Marshaller_gauge_messages_StepValidateResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Refactor = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Refactor", - __Marshaller_gauge_messages_RefactorRequest, - __Marshaller_gauge_messages_RefactorResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepName = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepName", - __Marshaller_gauge_messages_StepNameRequest, - __Marshaller_gauge_messages_StepNameResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGlobPatterns = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGlobPatterns", - __Marshaller_gauge_messages_Empty, - __Marshaller_gauge_messages_ImplementationFileGlobPatternResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_KillProcess = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "KillProcess", - __Marshaller_gauge_messages_KillProcessRequest, - __Marshaller_gauge_messages_Empty); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Gauge.Messages.LspReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of lspService - [grpc::BindServiceMethod(typeof(lspService), "BindService")] - public abstract partial class lspServiceBase - { - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Refactor(global::Gauge.Messages.RefactorRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task KillProcess(global::Gauge.Messages.KillProcessRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for lspService - public partial class lspServiceClient : grpc::ClientBase - { - /// Creates a new client for lspService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public lspServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for lspService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public lspServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected lspServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected lspServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNamesResponse GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNamesResponse GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepNames, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNamesAsync(global::Gauge.Messages.StepNamesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNamesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNamesAsync(global::Gauge.Messages.StepNamesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepNames, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CacheFile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CacheFile, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CacheFileAsync(global::Gauge.Messages.CacheFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CacheFileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CacheFileAsync(global::Gauge.Messages.CacheFileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CacheFile, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepPositionsResponse GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepPositions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepPositionsResponse GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepPositions, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepPositionsAsync(global::Gauge.Messages.StepPositionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepPositionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepPositionsAsync(global::Gauge.Messages.StepPositionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepPositions, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileListResponse GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetImplementationFiles(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileListResponse GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetImplementationFiles, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetImplementationFilesAsync(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetImplementationFilesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetImplementationFilesAsync(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetImplementationFiles, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.FileDiff ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ImplementStub(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.FileDiff ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ImplementStub, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ImplementStubAsync(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ImplementStubAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ImplementStubAsync(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ImplementStub, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepValidateResponse ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ValidateStep(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepValidateResponse ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ValidateStep, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ValidateStepAsync(global::Gauge.Messages.StepValidateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ValidateStepAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ValidateStepAsync(global::Gauge.Messages.StepValidateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ValidateStep, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.RefactorResponse Refactor(global::Gauge.Messages.RefactorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Refactor(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.RefactorResponse Refactor(global::Gauge.Messages.RefactorRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Refactor, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RefactorAsync(global::Gauge.Messages.RefactorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RefactorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RefactorAsync(global::Gauge.Messages.RefactorRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Refactor, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNameResponse GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepName(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNameResponse GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepName, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNameAsync(global::Gauge.Messages.StepNameRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNameAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNameAsync(global::Gauge.Messages.StepNameRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepName, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileGlobPatternResponse GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGlobPatterns(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileGlobPatternResponse GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGlobPatterns, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGlobPatternsAsync(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGlobPatternsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGlobPatternsAsync(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGlobPatterns, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty KillProcess(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return KillProcess(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty KillProcess(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_KillProcess, null, options, request); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillProcessAsync(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return KillProcessAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - [global::System.ObsoleteAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillProcessAsync(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_KillProcess, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override lspServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new lspServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(lspServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GetStepNames, serviceImpl.GetStepNames) - .AddMethod(__Method_CacheFile, serviceImpl.CacheFile) - .AddMethod(__Method_GetStepPositions, serviceImpl.GetStepPositions) - .AddMethod(__Method_GetImplementationFiles, serviceImpl.GetImplementationFiles) - .AddMethod(__Method_ImplementStub, serviceImpl.ImplementStub) - .AddMethod(__Method_ValidateStep, serviceImpl.ValidateStep) - .AddMethod(__Method_Refactor, serviceImpl.Refactor) - .AddMethod(__Method_GetStepName, serviceImpl.GetStepName) - .AddMethod(__Method_GetGlobPatterns, serviceImpl.GetGlobPatterns) - .AddMethod(__Method_KillProcess, serviceImpl.KillProcess).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, lspServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GetStepNames, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepNames)); - serviceBinder.AddMethod(__Method_CacheFile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CacheFile)); - serviceBinder.AddMethod(__Method_GetStepPositions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepPositions)); - serviceBinder.AddMethod(__Method_GetImplementationFiles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetImplementationFiles)); - serviceBinder.AddMethod(__Method_ImplementStub, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ImplementStub)); - serviceBinder.AddMethod(__Method_ValidateStep, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ValidateStep)); - serviceBinder.AddMethod(__Method_Refactor, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Refactor)); - serviceBinder.AddMethod(__Method_GetStepName, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepName)); - serviceBinder.AddMethod(__Method_GetGlobPatterns, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGlobPatterns)); - serviceBinder.AddMethod(__Method_KillProcess, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.KillProcess)); - } - - } -} -#endregion diff --git a/src/Gauge.CSharp.Core/Messages.cs b/src/Gauge.CSharp.Core/Messages.cs deleted file mode 100644 index 2ed0814..0000000 --- a/src/Gauge.CSharp.Core/Messages.cs +++ /dev/null @@ -1,14898 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: messages.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 Gauge.Messages { - - /// Holder for reflection information generated from messages.proto - public static partial class MessagesReflection { - - #region Descriptor - /// File descriptor for messages.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static MessagesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cg5tZXNzYWdlcy5wcm90bxIOZ2F1Z2UubWVzc2FnZXMaCnNwZWMucHJvdG8i", - "FAoSS2lsbFByb2Nlc3NSZXF1ZXN0IlgKF0V4ZWN1dGlvblN0YXR1c1Jlc3Bv", - "bnNlEj0KD2V4ZWN1dGlvblJlc3VsdBgBIAEoCzIkLmdhdWdlLm1lc3NhZ2Vz", - "LlByb3RvRXhlY3V0aW9uUmVzdWx0Ip4BChhFeGVjdXRpb25TdGFydGluZ1Jl", - "cXVlc3QSOwoUY3VycmVudEV4ZWN1dGlvbkluZm8YASABKAsyHS5nYXVnZS5t", - "ZXNzYWdlcy5FeGVjdXRpb25JbmZvEjUKC3N1aXRlUmVzdWx0GAIgASgLMiAu", - "Z2F1Z2UubWVzc2FnZXMuUHJvdG9TdWl0ZVJlc3VsdBIOCgZzdHJlYW0YAyAB", - "KAUinAEKFkV4ZWN1dGlvbkVuZGluZ1JlcXVlc3QSOwoUY3VycmVudEV4ZWN1", - "dGlvbkluZm8YASABKAsyHS5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25JbmZv", - "EjUKC3N1aXRlUmVzdWx0GAIgASgLMiAuZ2F1Z2UubWVzc2FnZXMuUHJvdG9T", - "dWl0ZVJlc3VsdBIOCgZzdHJlYW0YAyABKAUioAEKHFNwZWNFeGVjdXRpb25T", - "dGFydGluZ1JlcXVlc3QSOwoUY3VycmVudEV4ZWN1dGlvbkluZm8YASABKAsy", - "HS5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25JbmZvEjMKCnNwZWNSZXN1bHQY", - "AiABKAsyHy5nYXVnZS5tZXNzYWdlcy5Qcm90b1NwZWNSZXN1bHQSDgoGc3Ry", - "ZWFtGAMgASgFIp4BChpTcGVjRXhlY3V0aW9uRW5kaW5nUmVxdWVzdBI7ChRj", - "dXJyZW50RXhlY3V0aW9uSW5mbxgBIAEoCzIdLmdhdWdlLm1lc3NhZ2VzLkV4", - "ZWN1dGlvbkluZm8SMwoKc3BlY1Jlc3VsdBgCIAEoCzIfLmdhdWdlLm1lc3Nh", - "Z2VzLlByb3RvU3BlY1Jlc3VsdBIOCgZzdHJlYW0YAyABKAUirAEKIFNjZW5h", - "cmlvRXhlY3V0aW9uU3RhcnRpbmdSZXF1ZXN0EjsKFGN1cnJlbnRFeGVjdXRp", - "b25JbmZvGAEgASgLMh0uZ2F1Z2UubWVzc2FnZXMuRXhlY3V0aW9uSW5mbxI7", - "Cg5zY2VuYXJpb1Jlc3VsdBgCIAEoCzIjLmdhdWdlLm1lc3NhZ2VzLlByb3Rv", - "U2NlbmFyaW9SZXN1bHQSDgoGc3RyZWFtGAMgASgFIqoBCh5TY2VuYXJpb0V4", - "ZWN1dGlvbkVuZGluZ1JlcXVlc3QSOwoUY3VycmVudEV4ZWN1dGlvbkluZm8Y", - "ASABKAsyHS5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25JbmZvEjsKDnNjZW5h", - "cmlvUmVzdWx0GAIgASgLMiMuZ2F1Z2UubWVzc2FnZXMuUHJvdG9TY2VuYXJp", - "b1Jlc3VsdBIOCgZzdHJlYW0YAyABKAUioAEKHFN0ZXBFeGVjdXRpb25TdGFy", - "dGluZ1JlcXVlc3QSOwoUY3VycmVudEV4ZWN1dGlvbkluZm8YASABKAsyHS5n", - "YXVnZS5tZXNzYWdlcy5FeGVjdXRpb25JbmZvEjMKCnN0ZXBSZXN1bHQYAiAB", - "KAsyHy5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBSZXN1bHQSDgoGc3RyZWFt", - "GAMgASgFIp4BChpTdGVwRXhlY3V0aW9uRW5kaW5nUmVxdWVzdBI7ChRjdXJy", - "ZW50RXhlY3V0aW9uSW5mbxgBIAEoCzIdLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1", - "dGlvbkluZm8SMwoKc3RlcFJlc3VsdBgCIAEoCzIfLmdhdWdlLm1lc3NhZ2Vz", - "LlByb3RvU3RlcFJlc3VsdBIOCgZzdHJlYW0YAyABKAUiowEKH0NvbmNlcHRF", - "eGVjdXRpb25TdGFydGluZ1JlcXVlc3QSOwoUY3VycmVudEV4ZWN1dGlvbklu", - "Zm8YASABKAsyHS5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25JbmZvEjMKCnN0", - "ZXBSZXN1bHQYAiABKAsyHy5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBSZXN1", - "bHQSDgoGc3RyZWFtGAMgASgFIqEBCh1Db25jZXB0RXhlY3V0aW9uRW5kaW5n", - "UmVxdWVzdBI7ChRjdXJyZW50RXhlY3V0aW9uSW5mbxgBIAEoCzIdLmdhdWdl", - "Lm1lc3NhZ2VzLkV4ZWN1dGlvbkluZm8SMwoKc3RlcFJlc3VsdBgCIAEoCzIf", - "LmdhdWdlLm1lc3NhZ2VzLlByb3RvU3RlcFJlc3VsdBIOCgZzdHJlYW0YAyAB", - "KAUiMwoMRXhlY3V0aW9uQXJnEhAKCGZsYWdOYW1lGAEgASgJEhEKCWZsYWdW", - "YWx1ZRgCIAMoCSK2AgoNRXhlY3V0aW9uSW5mbxItCgtjdXJyZW50U3BlYxgB", - "IAEoCzIYLmdhdWdlLm1lc3NhZ2VzLlNwZWNJbmZvEjUKD2N1cnJlbnRTY2Vu", - "YXJpbxgCIAEoCzIcLmdhdWdlLm1lc3NhZ2VzLlNjZW5hcmlvSW5mbxItCgtj", - "dXJyZW50U3RlcBgDIAEoCzIYLmdhdWdlLm1lc3NhZ2VzLlN0ZXBJbmZvEhIK", - "CnN0YWNrdHJhY2UYBCABKAkSEwoLcHJvamVjdE5hbWUYBSABKAkSMwoNRXhl", - "Y3V0aW9uQXJncxgGIAMoCzIcLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlvbkFy", - "ZxIgChhudW1iZXJPZkV4ZWN1dGlvblN0cmVhbXMYByABKAUSEAoIcnVubmVy", - "SWQYCCABKAUiSgoIU3BlY0luZm8SDAoEbmFtZRgBIAEoCRIQCghmaWxlTmFt", - "ZRgCIAEoCRIQCghpc0ZhaWxlZBgDIAEoCBIMCgR0YWdzGAQgAygJInIKDFNj", - "ZW5hcmlvSW5mbxIMCgRuYW1lGAEgASgJEhAKCGlzRmFpbGVkGAIgASgIEgwK", - "BHRhZ3MYAyADKAkSNAoHcmV0cmllcxgEIAEoCzIjLmdhdWdlLm1lc3NhZ2Vz", - "LlNjZW5hcmlvUmV0cmllc0luZm8iPwoTU2NlbmFyaW9SZXRyaWVzSW5mbxIS", - "CgptYXhSZXRyaWVzGAEgASgFEhQKDGN1cnJlbnRSZXRyeRgCIAEoBSJ4CghT", - "dGVwSW5mbxIwCgRzdGVwGAEgASgLMiIuZ2F1Z2UubWVzc2FnZXMuRXhlY3V0", - "ZVN0ZXBSZXF1ZXN0EhAKCGlzRmFpbGVkGAIgASgIEhIKCnN0YWNrVHJhY2UY", - "AyABKAkSFAoMZXJyb3JNZXNzYWdlGAQgASgJIpwBChJFeGVjdXRlU3RlcFJl", - "cXVlc3QSFgoOYWN0dWFsU3RlcFRleHQYASABKAkSFgoOcGFyc2VkU3RlcFRl", - "eHQYAiABKAkSFwoPc2NlbmFyaW9GYWlsaW5nGAMgASgIEi0KCnBhcmFtZXRl", - "cnMYBCADKAsyGS5nYXVnZS5tZXNzYWdlcy5QYXJhbWV0ZXISDgoGc3RyZWFt", - "GAUgASgFInYKE1N0ZXBWYWxpZGF0ZVJlcXVlc3QSEAoIc3RlcFRleHQYASAB", - "KAkSGgoSbnVtYmVyT2ZQYXJhbWV0ZXJzGAIgASgFEjEKCXN0ZXBWYWx1ZRgD", - "IAEoCzIeLmdhdWdlLm1lc3NhZ2VzLlByb3RvU3RlcFZhbHVlIucBChRTdGVw", - "VmFsaWRhdGVSZXNwb25zZRIPCgdpc1ZhbGlkGAEgASgIEhQKDGVycm9yTWVz", - "c2FnZRgCIAEoCRJBCgllcnJvclR5cGUYAyABKA4yLi5nYXVnZS5tZXNzYWdl", - "cy5TdGVwVmFsaWRhdGVSZXNwb25zZS5FcnJvclR5cGUSEgoKc3VnZ2VzdGlv", - "bhgEIAEoCSJRCglFcnJvclR5cGUSIQodU1RFUF9JTVBMRU1FTlRBVElPTl9O", - "T1RfRk9VTkQQABIhCh1EVVBMSUNBVEVfU1RFUF9JTVBMRU1FTlRBVElPThAB", - "Ik0KFFN1aXRlRXhlY3V0aW9uUmVzdWx0EjUKC3N1aXRlUmVzdWx0GAEgASgL", - "MiAuZ2F1Z2UubWVzc2FnZXMuUHJvdG9TdWl0ZVJlc3VsdCJJChhTdWl0ZUV4", - "ZWN1dGlvblJlc3VsdEl0ZW0SLQoKcmVzdWx0SXRlbRgBIAEoCzIZLmdhdWdl", - "Lm1lc3NhZ2VzLlByb3RvSXRlbSISChBTdGVwTmFtZXNSZXF1ZXN0IiIKEVN0", - "ZXBOYW1lc1Jlc3BvbnNlEg0KBXN0ZXBzGAEgAygJIi4KHFNjZW5hcmlvRGF0", - "YVN0b3JlSW5pdFJlcXVlc3QSDgoGc3RyZWFtGAEgASgFIioKGFNwZWNEYXRh", - "U3RvcmVJbml0UmVxdWVzdBIOCgZzdHJlYW0YASABKAUiKwoZU3VpdGVEYXRh", - "U3RvcmVJbml0UmVxdWVzdBIOCgZzdHJlYW0YASABKAUiPQoRUGFyYW1ldGVy", - "UG9zaXRpb24SEwoLb2xkUG9zaXRpb24YASABKAUSEwoLbmV3UG9zaXRpb24Y", - "AiABKAUizQEKD1JlZmFjdG9yUmVxdWVzdBI0CgxvbGRTdGVwVmFsdWUYASAB", - "KAsyHi5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBWYWx1ZRI0CgxuZXdTdGVw", - "VmFsdWUYAiABKAsyHi5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBWYWx1ZRI5", - "Cg5wYXJhbVBvc2l0aW9ucxgDIAMoCzIhLmdhdWdlLm1lc3NhZ2VzLlBhcmFt", - "ZXRlclBvc2l0aW9uEhMKC3NhdmVDaGFuZ2VzGAQgASgIImEKC0ZpbGVDaGFu", - "Z2VzEhAKCGZpbGVOYW1lGAEgASgJEhcKC2ZpbGVDb250ZW50GAIgASgJQgIY", - "ARInCgVkaWZmcxgDIAMoCzIYLmdhdWdlLm1lc3NhZ2VzLlRleHREaWZmInoK", - "EFJlZmFjdG9yUmVzcG9uc2USDwoHc3VjY2VzcxgBIAEoCBINCgVlcnJvchgC", - "IAEoCRIUCgxmaWxlc0NoYW5nZWQYAyADKAkSMAoLZmlsZUNoYW5nZXMYBCAD", - "KAsyGy5nYXVnZS5tZXNzYWdlcy5GaWxlQ2hhbmdlcyIkCg9TdGVwTmFtZVJl", - "cXVlc3QSEQoJc3RlcFZhbHVlGAEgASgJIpcBChBTdGVwTmFtZVJlc3BvbnNl", - "EhUKDWlzU3RlcFByZXNlbnQYASABKAgSEAoIc3RlcE5hbWUYAiADKAkSEAoI", - "aGFzQWxpYXMYAyABKAgSEAoIZmlsZU5hbWUYBCABKAkSIgoEc3BhbhgFIAEo", - "CzIULmdhdWdlLm1lc3NhZ2VzLlNwYW4SEgoKaXNFeHRlcm5hbBgGIAEoCCIt", - "ChpVbnN1cHBvcnRlZE1lc3NhZ2VSZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJ", - "ItEBChBDYWNoZUZpbGVSZXF1ZXN0Eg8KB2NvbnRlbnQYASABKAkSEAoIZmls", - "ZVBhdGgYAiABKAkSEAoIaXNDbG9zZWQYAyABKAgSOwoGc3RhdHVzGAQgASgO", - "MisuZ2F1Z2UubWVzc2FnZXMuQ2FjaGVGaWxlUmVxdWVzdC5GaWxlU3RhdHVz", - "IksKCkZpbGVTdGF0dXMSCwoHQ0hBTkdFRBAAEgoKBkNMT1NFRBABEgsKB0NS", - "RUFURUQQAhILCgdERUxFVEVEEAMSCgoGT1BFTkVEEAQiKAoUU3RlcFBvc2l0", - "aW9uc1JlcXVlc3QSEAoIZmlsZVBhdGgYASABKAkiuAEKFVN0ZXBQb3NpdGlv", - "bnNSZXNwb25zZRJJCg1zdGVwUG9zaXRpb25zGAEgAygLMjIuZ2F1Z2UubWVz", - "c2FnZXMuU3RlcFBvc2l0aW9uc1Jlc3BvbnNlLlN0ZXBQb3NpdGlvbhINCgVl", - "cnJvchgCIAEoCRpFCgxTdGVwUG9zaXRpb24SEQoJc3RlcFZhbHVlGAEgASgJ", - "EiIKBHNwYW4YAiABKAsyFC5nYXVnZS5tZXNzYWdlcy5TcGFuIiYKJEltcGxl", - "bWVudGF0aW9uRmlsZUdsb2JQYXR0ZXJuUmVxdWVzdCI9CiVJbXBsZW1lbnRh", - "dGlvbkZpbGVHbG9iUGF0dGVyblJlc3BvbnNlEhQKDGdsb2JQYXR0ZXJucxgB", - "IAMoCSIfCh1JbXBsZW1lbnRhdGlvbkZpbGVMaXN0UmVxdWVzdCJBCh5JbXBs", - "ZW1lbnRhdGlvbkZpbGVMaXN0UmVzcG9uc2USHwoXaW1wbGVtZW50YXRpb25G", - "aWxlUGF0aHMYASADKAkiTgodU3R1YkltcGxlbWVudGF0aW9uQ29kZVJlcXVl", - "c3QSHgoWaW1wbGVtZW50YXRpb25GaWxlUGF0aBgBIAEoCRINCgVjb2RlcxgC", - "IAMoCSI/CghUZXh0RGlmZhIiCgRzcGFuGAEgASgLMhQuZ2F1Z2UubWVzc2Fn", - "ZXMuU3BhbhIPCgdjb250ZW50GAIgASgJIkkKCEZpbGVEaWZmEhAKCGZpbGVQ", - "YXRoGAEgASgJEisKCXRleHREaWZmcxgCIAMoCzIYLmdhdWdlLm1lc3NhZ2Vz", - "LlRleHREaWZmIh0KCUtlZXBBbGl2ZRIQCghwbHVnaW5JZBgBIAEoCSKpAQoL", - "U3BlY0RldGFpbHMSNwoHZGV0YWlscxgBIAMoCzImLmdhdWdlLm1lc3NhZ2Vz", - "LlNwZWNEZXRhaWxzLlNwZWNEZXRhaWwaYQoKU3BlY0RldGFpbBInCgRzcGVj", - "GAEgASgLMhkuZ2F1Z2UubWVzc2FnZXMuUHJvdG9TcGVjEioKC3BhcnNlRXJy", - "b3JzGAIgAygLMhUuZ2F1Z2UubWVzc2FnZXMuRXJyb3IiBwoFRW1wdHki5x0K", - "B01lc3NhZ2USOAoLbWVzc2FnZVR5cGUYASABKA4yIy5nYXVnZS5tZXNzYWdl", - "cy5NZXNzYWdlLk1lc3NhZ2VUeXBlEhEKCW1lc3NhZ2VJZBgCIAEoAxJKChhl", - "eGVjdXRpb25TdGFydGluZ1JlcXVlc3QYAyABKAsyKC5nYXVnZS5tZXNzYWdl", - "cy5FeGVjdXRpb25TdGFydGluZ1JlcXVlc3QSUgocc3BlY0V4ZWN1dGlvblN0", - "YXJ0aW5nUmVxdWVzdBgEIAEoCzIsLmdhdWdlLm1lc3NhZ2VzLlNwZWNFeGVj", - "dXRpb25TdGFydGluZ1JlcXVlc3QSTgoac3BlY0V4ZWN1dGlvbkVuZGluZ1Jl", - "cXVlc3QYBSABKAsyKi5nYXVnZS5tZXNzYWdlcy5TcGVjRXhlY3V0aW9uRW5k", - "aW5nUmVxdWVzdBJaCiBzY2VuYXJpb0V4ZWN1dGlvblN0YXJ0aW5nUmVxdWVz", - "dBgGIAEoCzIwLmdhdWdlLm1lc3NhZ2VzLlNjZW5hcmlvRXhlY3V0aW9uU3Rh", - "cnRpbmdSZXF1ZXN0ElYKHnNjZW5hcmlvRXhlY3V0aW9uRW5kaW5nUmVxdWVz", - "dBgHIAEoCzIuLmdhdWdlLm1lc3NhZ2VzLlNjZW5hcmlvRXhlY3V0aW9uRW5k", - "aW5nUmVxdWVzdBJSChxzdGVwRXhlY3V0aW9uU3RhcnRpbmdSZXF1ZXN0GAgg", - "ASgLMiwuZ2F1Z2UubWVzc2FnZXMuU3RlcEV4ZWN1dGlvblN0YXJ0aW5nUmVx", - "dWVzdBJOChpzdGVwRXhlY3V0aW9uRW5kaW5nUmVxdWVzdBgJIAEoCzIqLmdh", - "dWdlLm1lc3NhZ2VzLlN0ZXBFeGVjdXRpb25FbmRpbmdSZXF1ZXN0Ej4KEmV4", - "ZWN1dGVTdGVwUmVxdWVzdBgKIAEoCzIiLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1", - "dGVTdGVwUmVxdWVzdBJGChZleGVjdXRpb25FbmRpbmdSZXF1ZXN0GAsgASgL", - "MiYuZ2F1Z2UubWVzc2FnZXMuRXhlY3V0aW9uRW5kaW5nUmVxdWVzdBJAChNz", - "dGVwVmFsaWRhdGVSZXF1ZXN0GAwgASgLMiMuZ2F1Z2UubWVzc2FnZXMuU3Rl", - "cFZhbGlkYXRlUmVxdWVzdBJCChRzdGVwVmFsaWRhdGVSZXNwb25zZRgNIAEo", - "CzIkLmdhdWdlLm1lc3NhZ2VzLlN0ZXBWYWxpZGF0ZVJlc3BvbnNlEkgKF2V4", - "ZWN1dGlvblN0YXR1c1Jlc3BvbnNlGA4gASgLMicuZ2F1Z2UubWVzc2FnZXMu", - "RXhlY3V0aW9uU3RhdHVzUmVzcG9uc2USOgoQc3RlcE5hbWVzUmVxdWVzdBgP", - "IAEoCzIgLmdhdWdlLm1lc3NhZ2VzLlN0ZXBOYW1lc1JlcXVlc3QSPAoRc3Rl", - "cE5hbWVzUmVzcG9uc2UYECABKAsyIS5nYXVnZS5tZXNzYWdlcy5TdGVwTmFt", - "ZXNSZXNwb25zZRJCChRzdWl0ZUV4ZWN1dGlvblJlc3VsdBgRIAEoCzIkLmdh", - "dWdlLm1lc3NhZ2VzLlN1aXRlRXhlY3V0aW9uUmVzdWx0Ej4KEmtpbGxQcm9j", - "ZXNzUmVxdWVzdBgSIAEoCzIiLmdhdWdlLm1lc3NhZ2VzLktpbGxQcm9jZXNz", - "UmVxdWVzdBJSChxzY2VuYXJpb0RhdGFTdG9yZUluaXRSZXF1ZXN0GBMgASgL", - "MiwuZ2F1Z2UubWVzc2FnZXMuU2NlbmFyaW9EYXRhU3RvcmVJbml0UmVxdWVz", - "dBJKChhzcGVjRGF0YVN0b3JlSW5pdFJlcXVlc3QYFCABKAsyKC5nYXVnZS5t", - "ZXNzYWdlcy5TcGVjRGF0YVN0b3JlSW5pdFJlcXVlc3QSTAoZc3VpdGVEYXRh", - "U3RvcmVJbml0UmVxdWVzdBgVIAEoCzIpLmdhdWdlLm1lc3NhZ2VzLlN1aXRl", - "RGF0YVN0b3JlSW5pdFJlcXVlc3QSOAoPc3RlcE5hbWVSZXF1ZXN0GBYgASgL", - "Mh8uZ2F1Z2UubWVzc2FnZXMuU3RlcE5hbWVSZXF1ZXN0EjoKEHN0ZXBOYW1l", - "UmVzcG9uc2UYFyABKAsyIC5nYXVnZS5tZXNzYWdlcy5TdGVwTmFtZVJlc3Bv", - "bnNlEjgKD3JlZmFjdG9yUmVxdWVzdBgYIAEoCzIfLmdhdWdlLm1lc3NhZ2Vz", - "LlJlZmFjdG9yUmVxdWVzdBI6ChByZWZhY3RvclJlc3BvbnNlGBkgASgLMiAu", - "Z2F1Z2UubWVzc2FnZXMuUmVmYWN0b3JSZXNwb25zZRJOChp1bnN1cHBvcnRl", - "ZE1lc3NhZ2VSZXNwb25zZRgaIAEoCzIqLmdhdWdlLm1lc3NhZ2VzLlVuc3Vw", - "cG9ydGVkTWVzc2FnZVJlc3BvbnNlEjoKEGNhY2hlRmlsZVJlcXVlc3QYGyAB", - "KAsyIC5nYXVnZS5tZXNzYWdlcy5DYWNoZUZpbGVSZXF1ZXN0EkIKFHN0ZXBQ", - "b3NpdGlvbnNSZXF1ZXN0GBwgASgLMiQuZ2F1Z2UubWVzc2FnZXMuU3RlcFBv", - "c2l0aW9uc1JlcXVlc3QSRAoVc3RlcFBvc2l0aW9uc1Jlc3BvbnNlGB0gASgL", - "MiUuZ2F1Z2UubWVzc2FnZXMuU3RlcFBvc2l0aW9uc1Jlc3BvbnNlElQKHWlt", - "cGxlbWVudGF0aW9uRmlsZUxpc3RSZXF1ZXN0GB4gASgLMi0uZ2F1Z2UubWVz", - "c2FnZXMuSW1wbGVtZW50YXRpb25GaWxlTGlzdFJlcXVlc3QSVgoeaW1wbGVt", - "ZW50YXRpb25GaWxlTGlzdFJlc3BvbnNlGB8gASgLMi4uZ2F1Z2UubWVzc2Fn", - "ZXMuSW1wbGVtZW50YXRpb25GaWxlTGlzdFJlc3BvbnNlElQKHXN0dWJJbXBs", - "ZW1lbnRhdGlvbkNvZGVSZXF1ZXN0GCAgASgLMi0uZ2F1Z2UubWVzc2FnZXMu", - "U3R1YkltcGxlbWVudGF0aW9uQ29kZVJlcXVlc3QSKgoIZmlsZURpZmYYISAB", - "KAsyGC5nYXVnZS5tZXNzYWdlcy5GaWxlRGlmZhJiCiRpbXBsZW1lbnRhdGlv", - "bkZpbGVHbG9iUGF0dGVyblJlcXVlc3QYIiABKAsyNC5nYXVnZS5tZXNzYWdl", - "cy5JbXBsZW1lbnRhdGlvbkZpbGVHbG9iUGF0dGVyblJlcXVlc3QSZAolaW1w", - "bGVtZW50YXRpb25GaWxlR2xvYlBhdHRlcm5SZXNwb25zZRgjIAEoCzI1Lmdh", - "dWdlLm1lc3NhZ2VzLkltcGxlbWVudGF0aW9uRmlsZUdsb2JQYXR0ZXJuUmVz", - "cG9uc2USSgoYc3VpdGVFeGVjdXRpb25SZXN1bHRJdGVtGCQgASgLMiguZ2F1", - "Z2UubWVzc2FnZXMuU3VpdGVFeGVjdXRpb25SZXN1bHRJdGVtEiwKCWtlZXBB", - "bGl2ZRglIAEoCzIZLmdhdWdlLm1lc3NhZ2VzLktlZXBBbGl2ZRJYCh9jb25j", - "ZXB0RXhlY3V0aW9uU3RhcnRpbmdSZXF1ZXN0GCYgASgLMi8uZ2F1Z2UubWVz", - "c2FnZXMuQ29uY2VwdEV4ZWN1dGlvblN0YXJ0aW5nUmVxdWVzdBJUCh1jb25j", - "ZXB0RXhlY3V0aW9uRW5kaW5nUmVxdWVzdBgnIAEoCzItLmdhdWdlLm1lc3Nh", - "Z2VzLkNvbmNlcHRFeGVjdXRpb25FbmRpbmdSZXF1ZXN0ItwHCgtNZXNzYWdl", - "VHlwZRIVChFFeGVjdXRpb25TdGFydGluZxAAEhkKFVNwZWNFeGVjdXRpb25T", - "dGFydGluZxABEhcKE1NwZWNFeGVjdXRpb25FbmRpbmcQAhIdChlTY2VuYXJp", - "b0V4ZWN1dGlvblN0YXJ0aW5nEAMSGwoXU2NlbmFyaW9FeGVjdXRpb25FbmRp", - "bmcQBBIZChVTdGVwRXhlY3V0aW9uU3RhcnRpbmcQBRIXChNTdGVwRXhlY3V0", - "aW9uRW5kaW5nEAYSDwoLRXhlY3V0ZVN0ZXAQBxITCg9FeGVjdXRpb25FbmRp", - "bmcQCBIXChNTdGVwVmFsaWRhdGVSZXF1ZXN0EAkSGAoUU3RlcFZhbGlkYXRl", - "UmVzcG9uc2UQChIbChdFeGVjdXRpb25TdGF0dXNSZXNwb25zZRALEhQKEFN0", - "ZXBOYW1lc1JlcXVlc3QQDBIVChFTdGVwTmFtZXNSZXNwb25zZRANEhYKEktp", - "bGxQcm9jZXNzUmVxdWVzdBAOEhgKFFN1aXRlRXhlY3V0aW9uUmVzdWx0EA8S", - "GQoVU2NlbmFyaW9EYXRhU3RvcmVJbml0EBASFQoRU3BlY0RhdGFTdG9yZUlu", - "aXQQERIWChJTdWl0ZURhdGFTdG9yZUluaXQQEhITCg9TdGVwTmFtZVJlcXVl", - "c3QQExIUChBTdGVwTmFtZVJlc3BvbnNlEBQSEwoPUmVmYWN0b3JSZXF1ZXN0", - "EBUSFAoQUmVmYWN0b3JSZXNwb25zZRAWEh4KGlVuc3VwcG9ydGVkTWVzc2Fn", - "ZVJlc3BvbnNlEBcSFAoQQ2FjaGVGaWxlUmVxdWVzdBAYEhgKFFN0ZXBQb3Np", - "dGlvbnNSZXF1ZXN0EBkSGQoVU3RlcFBvc2l0aW9uc1Jlc3BvbnNlEBoSIQod", - "SW1wbGVtZW50YXRpb25GaWxlTGlzdFJlcXVlc3QQGxIiCh5JbXBsZW1lbnRh", - "dGlvbkZpbGVMaXN0UmVzcG9uc2UQHBIhCh1TdHViSW1wbGVtZW50YXRpb25D", - "b2RlUmVxdWVzdBAdEgwKCEZpbGVEaWZmEB4SKAokSW1wbGVtZW50YXRpb25G", - "aWxlR2xvYlBhdHRlcm5SZXF1ZXN0EB8SKQolSW1wbGVtZW50YXRpb25GaWxl", - "R2xvYlBhdHRlcm5SZXNwb25zZRAgEhwKGFN1aXRlRXhlY3V0aW9uUmVzdWx0", - "SXRlbRAhEg0KCUtlZXBBbGl2ZRAiEhwKGENvbmNlcHRFeGVjdXRpb25TdGFy", - "dGluZxAjEhoKFkNvbmNlcHRFeGVjdXRpb25FbmRpbmcQJEJcChZjb20udGhv", - "dWdodHdvcmtzLmdhdWdlWjFnaXRodWIuY29tL2dldGdhdWdlL2dhdWdlLXBy", - "b3RvL2dvL2dhdWdlX21lc3NhZ2VzqgIOR2F1Z2UuTWVzc2FnZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Gauge.Messages.SpecReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.KillProcessRequest), global::Gauge.Messages.KillProcessRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecutionStatusResponse), global::Gauge.Messages.ExecutionStatusResponse.Parser, new[]{ "ExecutionResult" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecutionStartingRequest), global::Gauge.Messages.ExecutionStartingRequest.Parser, new[]{ "CurrentExecutionInfo", "SuiteResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecutionEndingRequest), global::Gauge.Messages.ExecutionEndingRequest.Parser, new[]{ "CurrentExecutionInfo", "SuiteResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecExecutionStartingRequest), global::Gauge.Messages.SpecExecutionStartingRequest.Parser, new[]{ "CurrentExecutionInfo", "SpecResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecExecutionEndingRequest), global::Gauge.Messages.SpecExecutionEndingRequest.Parser, new[]{ "CurrentExecutionInfo", "SpecResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ScenarioExecutionStartingRequest), global::Gauge.Messages.ScenarioExecutionStartingRequest.Parser, new[]{ "CurrentExecutionInfo", "ScenarioResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ScenarioExecutionEndingRequest), global::Gauge.Messages.ScenarioExecutionEndingRequest.Parser, new[]{ "CurrentExecutionInfo", "ScenarioResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepExecutionStartingRequest), global::Gauge.Messages.StepExecutionStartingRequest.Parser, new[]{ "CurrentExecutionInfo", "StepResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepExecutionEndingRequest), global::Gauge.Messages.StepExecutionEndingRequest.Parser, new[]{ "CurrentExecutionInfo", "StepResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ConceptExecutionStartingRequest), global::Gauge.Messages.ConceptExecutionStartingRequest.Parser, new[]{ "CurrentExecutionInfo", "StepResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ConceptExecutionEndingRequest), global::Gauge.Messages.ConceptExecutionEndingRequest.Parser, new[]{ "CurrentExecutionInfo", "StepResult", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecutionArg), global::Gauge.Messages.ExecutionArg.Parser, new[]{ "FlagName", "FlagValue" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecutionInfo), global::Gauge.Messages.ExecutionInfo.Parser, new[]{ "CurrentSpec", "CurrentScenario", "CurrentStep", "Stacktrace", "ProjectName", "ExecutionArgs", "NumberOfExecutionStreams", "RunnerId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecInfo), global::Gauge.Messages.SpecInfo.Parser, new[]{ "Name", "FileName", "IsFailed", "Tags" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ScenarioInfo), global::Gauge.Messages.ScenarioInfo.Parser, new[]{ "Name", "IsFailed", "Tags", "Retries" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ScenarioRetriesInfo), global::Gauge.Messages.ScenarioRetriesInfo.Parser, new[]{ "MaxRetries", "CurrentRetry" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepInfo), global::Gauge.Messages.StepInfo.Parser, new[]{ "Step", "IsFailed", "StackTrace", "ErrorMessage" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ExecuteStepRequest), global::Gauge.Messages.ExecuteStepRequest.Parser, new[]{ "ActualStepText", "ParsedStepText", "ScenarioFailing", "Parameters", "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepValidateRequest), global::Gauge.Messages.StepValidateRequest.Parser, new[]{ "StepText", "NumberOfParameters", "StepValue" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepValidateResponse), global::Gauge.Messages.StepValidateResponse.Parser, new[]{ "IsValid", "ErrorMessage", "ErrorType", "Suggestion" }, null, new[]{ typeof(global::Gauge.Messages.StepValidateResponse.Types.ErrorType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SuiteExecutionResult), global::Gauge.Messages.SuiteExecutionResult.Parser, new[]{ "SuiteResult" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SuiteExecutionResultItem), global::Gauge.Messages.SuiteExecutionResultItem.Parser, new[]{ "ResultItem" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepNamesRequest), global::Gauge.Messages.StepNamesRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepNamesResponse), global::Gauge.Messages.StepNamesResponse.Parser, new[]{ "Steps" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ScenarioDataStoreInitRequest), global::Gauge.Messages.ScenarioDataStoreInitRequest.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecDataStoreInitRequest), global::Gauge.Messages.SpecDataStoreInitRequest.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SuiteDataStoreInitRequest), global::Gauge.Messages.SuiteDataStoreInitRequest.Parser, new[]{ "Stream" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ParameterPosition), global::Gauge.Messages.ParameterPosition.Parser, new[]{ "OldPosition", "NewPosition" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.RefactorRequest), global::Gauge.Messages.RefactorRequest.Parser, new[]{ "OldStepValue", "NewStepValue", "ParamPositions", "SaveChanges" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.FileChanges), global::Gauge.Messages.FileChanges.Parser, new[]{ "FileName", "FileContent", "Diffs" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.RefactorResponse), global::Gauge.Messages.RefactorResponse.Parser, new[]{ "Success", "Error", "FilesChanged", "FileChanges" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepNameRequest), global::Gauge.Messages.StepNameRequest.Parser, new[]{ "StepValue" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepNameResponse), global::Gauge.Messages.StepNameResponse.Parser, new[]{ "IsStepPresent", "StepName", "HasAlias", "FileName", "Span", "IsExternal" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.UnsupportedMessageResponse), global::Gauge.Messages.UnsupportedMessageResponse.Parser, new[]{ "Message" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.CacheFileRequest), global::Gauge.Messages.CacheFileRequest.Parser, new[]{ "Content", "FilePath", "IsClosed", "Status" }, null, new[]{ typeof(global::Gauge.Messages.CacheFileRequest.Types.FileStatus) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepPositionsRequest), global::Gauge.Messages.StepPositionsRequest.Parser, new[]{ "FilePath" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepPositionsResponse), global::Gauge.Messages.StepPositionsResponse.Parser, new[]{ "StepPositions", "Error" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StepPositionsResponse.Types.StepPosition), global::Gauge.Messages.StepPositionsResponse.Types.StepPosition.Parser, new[]{ "StepValue", "Span" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ImplementationFileGlobPatternRequest), global::Gauge.Messages.ImplementationFileGlobPatternRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ImplementationFileGlobPatternResponse), global::Gauge.Messages.ImplementationFileGlobPatternResponse.Parser, new[]{ "GlobPatterns" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ImplementationFileListRequest), global::Gauge.Messages.ImplementationFileListRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ImplementationFileListResponse), global::Gauge.Messages.ImplementationFileListResponse.Parser, new[]{ "ImplementationFilePaths" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.StubImplementationCodeRequest), global::Gauge.Messages.StubImplementationCodeRequest.Parser, new[]{ "ImplementationFilePath", "Codes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.TextDiff), global::Gauge.Messages.TextDiff.Parser, new[]{ "Span", "Content" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.FileDiff), global::Gauge.Messages.FileDiff.Parser, new[]{ "FilePath", "TextDiffs" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.KeepAlive), global::Gauge.Messages.KeepAlive.Parser, new[]{ "PluginId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecDetails), global::Gauge.Messages.SpecDetails.Parser, new[]{ "Details" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.SpecDetails.Types.SpecDetail), global::Gauge.Messages.SpecDetails.Types.SpecDetail.Parser, new[]{ "Spec", "ParseErrors" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Empty), global::Gauge.Messages.Empty.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Message), global::Gauge.Messages.Message.Parser, new[]{ "MessageType", "MessageId", "ExecutionStartingRequest", "SpecExecutionStartingRequest", "SpecExecutionEndingRequest", "ScenarioExecutionStartingRequest", "ScenarioExecutionEndingRequest", "StepExecutionStartingRequest", "StepExecutionEndingRequest", "ExecuteStepRequest", "ExecutionEndingRequest", "StepValidateRequest", "StepValidateResponse", "ExecutionStatusResponse", "StepNamesRequest", "StepNamesResponse", "SuiteExecutionResult", "KillProcessRequest", "ScenarioDataStoreInitRequest", "SpecDataStoreInitRequest", "SuiteDataStoreInitRequest", "StepNameRequest", "StepNameResponse", "RefactorRequest", "RefactorResponse", "UnsupportedMessageResponse", "CacheFileRequest", "StepPositionsRequest", "StepPositionsResponse", "ImplementationFileListRequest", "ImplementationFileListResponse", "StubImplementationCodeRequest", "FileDiff", "ImplementationFileGlobPatternRequest", "ImplementationFileGlobPatternResponse", "SuiteExecutionResultItem", "KeepAlive", "ConceptExecutionStartingRequest", "ConceptExecutionEndingRequest" }, null, new[]{ typeof(global::Gauge.Messages.Message.Types.MessageType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - //// Default request. Tells the runner to shutdown. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class KillProcessRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KillProcessRequest()); - 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::Gauge.Messages.MessagesReflection.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 KillProcessRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KillProcessRequest(KillProcessRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KillProcessRequest Clone() { - return new KillProcessRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KillProcessRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KillProcessRequest 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(KillProcessRequest 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 - - } - - /// - //// Sends to any request which needs a execution status as response - //// usually step execution, hooks etc will return this - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecutionStatusResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionStatusResponse()); - 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::Gauge.Messages.MessagesReflection.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 ExecutionStatusResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionStatusResponse(ExecutionStatusResponse other) : this() { - executionResult_ = other.executionResult_ != null ? other.executionResult_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionStatusResponse Clone() { - return new ExecutionStatusResponse(this); - } - - /// Field number for the "executionResult" field. - public const int ExecutionResultFieldNumber = 1; - private global::Gauge.Messages.ProtoExecutionResult executionResult_; - /// - //// Holds the suite result after suite execution done. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoExecutionResult ExecutionResult { - get { return executionResult_; } - set { - executionResult_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionStatusResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionStatusResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ExecutionResult, other.ExecutionResult)) 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 (executionResult_ != null) hash ^= ExecutionResult.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 (executionResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ExecutionResult); - } - 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 (executionResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ExecutionResult); - } - 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 (executionResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionResult); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionStatusResponse other) { - if (other == null) { - return; - } - if (other.executionResult_ != null) { - if (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - ExecutionResult.MergeFrom(other.ExecutionResult); - } - _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 (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - input.ReadMessage(ExecutionResult); - 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 (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - input.ReadMessage(ExecutionResult); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at start of Suite Execution. Tells the runner to execute `before_suite` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecutionStartingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionStartingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ExecutionStartingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionStartingRequest(ExecutionStartingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - suiteResult_ = other.suiteResult_ != null ? other.suiteResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionStartingRequest Clone() { - return new ExecutionStartingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current suite execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "suiteResult" field. - public const int SuiteResultFieldNumber = 2; - private global::Gauge.Messages.ProtoSuiteResult suiteResult_; - /// - //// Holds the suite result in execution starting. - //// Some fields will not be populated before execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSuiteResult SuiteResult { - get { return suiteResult_; } - set { - suiteResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionStartingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionStartingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(SuiteResult, other.SuiteResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (suiteResult_ != null) hash ^= SuiteResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SuiteResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SuiteResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuiteResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionStartingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.suiteResult_ != null) { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - SuiteResult.MergeFrom(other.SuiteResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at end of Suite Execution. Tells the runner to execute `after_suite` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecutionEndingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionEndingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ExecutionEndingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionEndingRequest(ExecutionEndingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - suiteResult_ = other.suiteResult_ != null ? other.suiteResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionEndingRequest Clone() { - return new ExecutionEndingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current suite execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "suiteResult" field. - public const int SuiteResultFieldNumber = 2; - private global::Gauge.Messages.ProtoSuiteResult suiteResult_; - /// - //// Holds the suite result in execution ending. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSuiteResult SuiteResult { - get { return suiteResult_; } - set { - suiteResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionEndingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionEndingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(SuiteResult, other.SuiteResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (suiteResult_ != null) hash ^= SuiteResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SuiteResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SuiteResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (suiteResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuiteResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionEndingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.suiteResult_ != null) { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - SuiteResult.MergeFrom(other.SuiteResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at start of Spec Execution. Tells the runner to execute `before_spec` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecExecutionStartingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecExecutionStartingRequest()); - 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::Gauge.Messages.MessagesReflection.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 SpecExecutionStartingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecExecutionStartingRequest(SpecExecutionStartingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - specResult_ = other.specResult_ != null ? other.specResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecExecutionStartingRequest Clone() { - return new SpecExecutionStartingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current spec execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "specResult" field. - public const int SpecResultFieldNumber = 2; - private global::Gauge.Messages.ProtoSpecResult specResult_; - /// - //// Holds the specs result in spec execution starting. - //// Some fields will not be populated before execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSpecResult SpecResult { - get { return specResult_; } - set { - specResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecExecutionStartingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecExecutionStartingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(SpecResult, other.SpecResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (specResult_ != null) hash ^= SpecResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (specResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SpecResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (specResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SpecResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (specResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecExecutionStartingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.specResult_ != null) { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - SpecResult.MergeFrom(other.SpecResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - input.ReadMessage(SpecResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - input.ReadMessage(SpecResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at end of Spec Execution. Tells the runner to execute `after_spec` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecExecutionEndingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecExecutionEndingRequest()); - 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::Gauge.Messages.MessagesReflection.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 SpecExecutionEndingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecExecutionEndingRequest(SpecExecutionEndingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - specResult_ = other.specResult_ != null ? other.specResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecExecutionEndingRequest Clone() { - return new SpecExecutionEndingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current spec execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "specResult" field. - public const int SpecResultFieldNumber = 2; - private global::Gauge.Messages.ProtoSpecResult specResult_; - /// - //// Holds the specs result in spec execution ending. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSpecResult SpecResult { - get { return specResult_; } - set { - specResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecExecutionEndingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecExecutionEndingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(SpecResult, other.SpecResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (specResult_ != null) hash ^= SpecResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (specResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SpecResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (specResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(SpecResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (specResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecExecutionEndingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.specResult_ != null) { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - SpecResult.MergeFrom(other.SpecResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - input.ReadMessage(SpecResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (specResult_ == null) { - SpecResult = new global::Gauge.Messages.ProtoSpecResult(); - } - input.ReadMessage(SpecResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at start of Scenario Execution. Tells the runner to execute `before_scenario` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ScenarioExecutionStartingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenarioExecutionStartingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ScenarioExecutionStartingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioExecutionStartingRequest(ScenarioExecutionStartingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - scenarioResult_ = other.scenarioResult_ != null ? other.scenarioResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioExecutionStartingRequest Clone() { - return new ScenarioExecutionStartingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current sceanrio execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "scenarioResult" field. - public const int ScenarioResultFieldNumber = 2; - private global::Gauge.Messages.ProtoScenarioResult scenarioResult_; - /// - //// Holds the scenarion result in scenarion execution starting. - //// Some fields will not be populated before execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoScenarioResult ScenarioResult { - get { return scenarioResult_; } - set { - scenarioResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScenarioExecutionStartingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScenarioExecutionStartingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(ScenarioResult, other.ScenarioResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (scenarioResult_ != null) hash ^= ScenarioResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ScenarioResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ScenarioResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScenarioExecutionStartingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.scenarioResult_ != null) { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - ScenarioResult.MergeFrom(other.ScenarioResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - input.ReadMessage(ScenarioResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - input.ReadMessage(ScenarioResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at end of Scenario Execution. Tells the runner to execute `after_scenario` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ScenarioExecutionEndingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenarioExecutionEndingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ScenarioExecutionEndingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioExecutionEndingRequest(ScenarioExecutionEndingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - scenarioResult_ = other.scenarioResult_ != null ? other.scenarioResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioExecutionEndingRequest Clone() { - return new ScenarioExecutionEndingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current scenario execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "scenarioResult" field. - public const int ScenarioResultFieldNumber = 2; - private global::Gauge.Messages.ProtoScenarioResult scenarioResult_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoScenarioResult ScenarioResult { - get { return scenarioResult_; } - set { - scenarioResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScenarioExecutionEndingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScenarioExecutionEndingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(ScenarioResult, other.ScenarioResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (scenarioResult_ != null) hash ^= ScenarioResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ScenarioResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ScenarioResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (scenarioResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScenarioExecutionEndingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.scenarioResult_ != null) { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - ScenarioResult.MergeFrom(other.ScenarioResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - input.ReadMessage(ScenarioResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (scenarioResult_ == null) { - ScenarioResult = new global::Gauge.Messages.ProtoScenarioResult(); - } - input.ReadMessage(ScenarioResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at start of Step Execution. Tells the runner to execute `before_step` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepExecutionStartingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepExecutionStartingRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepExecutionStartingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepExecutionStartingRequest(StepExecutionStartingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - stepResult_ = other.stepResult_ != null ? other.stepResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepExecutionStartingRequest Clone() { - return new StepExecutionStartingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current step execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "stepResult" field. - public const int StepResultFieldNumber = 2; - private global::Gauge.Messages.ProtoStepResult stepResult_; - /// - //// Holds step result in step execution starting. - //// Some fields will not be populated before execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepResult StepResult { - get { return stepResult_; } - set { - stepResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepExecutionStartingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepExecutionStartingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(StepResult, other.StepResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (stepResult_ != null) hash ^= StepResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (stepResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepExecutionStartingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.stepResult_ != null) { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - StepResult.MergeFrom(other.StepResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at end of Step Execution. Tells the runner to execute `after_step` hook. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepExecutionEndingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepExecutionEndingRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepExecutionEndingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepExecutionEndingRequest(StepExecutionEndingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - stepResult_ = other.stepResult_ != null ? other.stepResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepExecutionEndingRequest Clone() { - return new StepExecutionEndingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current step execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "stepResult" field. - public const int StepResultFieldNumber = 2; - private global::Gauge.Messages.ProtoStepResult stepResult_; - /// - //// Holds step result in step execution ending. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepResult StepResult { - get { return stepResult_; } - set { - stepResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepExecutionEndingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepExecutionEndingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(StepResult, other.StepResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (stepResult_ != null) hash ^= StepResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (stepResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepExecutionEndingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.stepResult_ != null) { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - StepResult.MergeFrom(other.StepResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at start of Concept Execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConceptExecutionStartingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConceptExecutionStartingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ConceptExecutionStartingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptExecutionStartingRequest(ConceptExecutionStartingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - stepResult_ = other.stepResult_ != null ? other.stepResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptExecutionStartingRequest Clone() { - return new ConceptExecutionStartingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current step execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "stepResult" field. - public const int StepResultFieldNumber = 2; - private global::Gauge.Messages.ProtoStepResult stepResult_; - /// - //// Holds step result in step execution starting. - //// Some fields will not be populated before execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepResult StepResult { - get { return stepResult_; } - set { - stepResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConceptExecutionStartingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConceptExecutionStartingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(StepResult, other.StepResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (stepResult_ != null) hash ^= StepResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (stepResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConceptExecutionStartingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.stepResult_ != null) { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - StepResult.MergeFrom(other.StepResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Sent at end of Concept Execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ConceptExecutionEndingRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConceptExecutionEndingRequest()); - 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::Gauge.Messages.MessagesReflection.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 ConceptExecutionEndingRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptExecutionEndingRequest(ConceptExecutionEndingRequest other) : this() { - currentExecutionInfo_ = other.currentExecutionInfo_ != null ? other.currentExecutionInfo_.Clone() : null; - stepResult_ = other.stepResult_ != null ? other.stepResult_.Clone() : null; - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptExecutionEndingRequest Clone() { - return new ConceptExecutionEndingRequest(this); - } - - /// Field number for the "currentExecutionInfo" field. - public const int CurrentExecutionInfoFieldNumber = 1; - private global::Gauge.Messages.ExecutionInfo currentExecutionInfo_; - /// - //// Holds the current step execution info. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionInfo CurrentExecutionInfo { - get { return currentExecutionInfo_; } - set { - currentExecutionInfo_ = value; - } - } - - /// Field number for the "stepResult" field. - public const int StepResultFieldNumber = 2; - private global::Gauge.Messages.ProtoStepResult stepResult_; - /// - //// Holds step result in step execution ending. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepResult StepResult { - get { return stepResult_; } - set { - stepResult_ = value; - } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 3; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConceptExecutionEndingRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConceptExecutionEndingRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentExecutionInfo, other.CurrentExecutionInfo)) return false; - if (!object.Equals(StepResult, other.StepResult)) return false; - if (Stream != other.Stream) 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 (currentExecutionInfo_ != null) hash ^= CurrentExecutionInfo.GetHashCode(); - if (stepResult_ != null) hash ^= StepResult.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentExecutionInfo); - } - if (stepResult_ != null) { - output.WriteRawTag(18); - output.WriteMessage(StepResult); - } - if (Stream != 0) { - output.WriteRawTag(24); - output.WriteInt32(Stream); - } - 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 (currentExecutionInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentExecutionInfo); - } - if (stepResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepResult); - } - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConceptExecutionEndingRequest other) { - if (other == null) { - return; - } - if (other.currentExecutionInfo_ != null) { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - CurrentExecutionInfo.MergeFrom(other.CurrentExecutionInfo); - } - if (other.stepResult_ != null) { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - StepResult.MergeFrom(other.StepResult); - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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 (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = 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: { - if (currentExecutionInfo_ == null) { - CurrentExecutionInfo = new global::Gauge.Messages.ExecutionInfo(); - } - input.ReadMessage(CurrentExecutionInfo); - break; - } - case 18: { - if (stepResult_ == null) { - StepResult = new global::Gauge.Messages.ProtoStepResult(); - } - input.ReadMessage(StepResult); - break; - } - case 24: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Contains command line arguments which passed by user during execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecutionArg : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionArg()); - 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::Gauge.Messages.MessagesReflection.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 ExecutionArg() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionArg(ExecutionArg other) : this() { - flagName_ = other.flagName_; - flagValue_ = other.flagValue_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionArg Clone() { - return new ExecutionArg(this); - } - - /// Field number for the "flagName" field. - public const int FlagNameFieldNumber = 1; - private string flagName_ = ""; - /// - //// Holds the flag name passed from command line. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FlagName { - get { return flagName_; } - set { - flagName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flagValue" field. - public const int FlagValueFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_flagValue_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField flagValue_ = new pbc::RepeatedField(); - /// - //// Holds the flag value passed from command line. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FlagValue { - get { return flagValue_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionArg); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionArg other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FlagName != other.FlagName) return false; - if(!flagValue_.Equals(other.flagValue_)) 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 (FlagName.Length != 0) hash ^= FlagName.GetHashCode(); - hash ^= flagValue_.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 (FlagName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FlagName); - } - flagValue_.WriteTo(output, _repeated_flagValue_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 (FlagName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FlagName); - } - flagValue_.WriteTo(ref output, _repeated_flagValue_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 (FlagName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FlagName); - } - size += flagValue_.CalculateSize(_repeated_flagValue_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionArg other) { - if (other == null) { - return; - } - if (other.FlagName.Length != 0) { - FlagName = other.FlagName; - } - flagValue_.Add(other.flagValue_); - _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: { - FlagName = input.ReadString(); - break; - } - case 18: { - flagValue_.AddEntriesFrom(input, _repeated_flagValue_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: { - FlagName = input.ReadString(); - break; - } - case 18: { - flagValue_.AddEntriesFrom(ref input, _repeated_flagValue_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Contains details of the execution. - //// Depending on the context (Step, Scenario, Spec or Suite), the respective fields are set. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecutionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecutionInfo()); - 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::Gauge.Messages.MessagesReflection.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 ExecutionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionInfo(ExecutionInfo other) : this() { - currentSpec_ = other.currentSpec_ != null ? other.currentSpec_.Clone() : null; - currentScenario_ = other.currentScenario_ != null ? other.currentScenario_.Clone() : null; - currentStep_ = other.currentStep_ != null ? other.currentStep_.Clone() : null; - stacktrace_ = other.stacktrace_; - projectName_ = other.projectName_; - executionArgs_ = other.executionArgs_.Clone(); - numberOfExecutionStreams_ = other.numberOfExecutionStreams_; - runnerId_ = other.runnerId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecutionInfo Clone() { - return new ExecutionInfo(this); - } - - /// Field number for the "currentSpec" field. - public const int CurrentSpecFieldNumber = 1; - private global::Gauge.Messages.SpecInfo currentSpec_; - /// - //// Holds the information of the current Spec. Valid in context of Spec execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecInfo CurrentSpec { - get { return currentSpec_; } - set { - currentSpec_ = value; - } - } - - /// Field number for the "currentScenario" field. - public const int CurrentScenarioFieldNumber = 2; - private global::Gauge.Messages.ScenarioInfo currentScenario_; - /// - //// Holds the information of the current Scenario. Valid in context of Scenario execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ScenarioInfo CurrentScenario { - get { return currentScenario_; } - set { - currentScenario_ = value; - } - } - - /// Field number for the "currentStep" field. - public const int CurrentStepFieldNumber = 3; - private global::Gauge.Messages.StepInfo currentStep_; - /// - //// Holds the information of the current Step. Valid in context of Step execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepInfo CurrentStep { - get { return currentStep_; } - set { - currentStep_ = value; - } - } - - /// Field number for the "stacktrace" field. - public const int StacktraceFieldNumber = 4; - private string stacktrace_ = ""; - /// - //// Stacktrace of the execution. Valid only if there is an error in execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Stacktrace { - get { return stacktrace_; } - set { - stacktrace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "projectName" field. - public const int ProjectNameFieldNumber = 5; - private string projectName_ = ""; - /// - //// Holds the project name - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectName { - get { return projectName_; } - set { - projectName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ExecutionArgs" field. - public const int ExecutionArgsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_executionArgs_codec - = pb::FieldCodec.ForMessage(50, global::Gauge.Messages.ExecutionArg.Parser); - private readonly pbc::RepeatedField executionArgs_ = new pbc::RepeatedField(); - /// - //// Holds the command line arguments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExecutionArgs { - get { return executionArgs_; } - } - - /// Field number for the "numberOfExecutionStreams" field. - public const int NumberOfExecutionStreamsFieldNumber = 7; - private int numberOfExecutionStreams_; - /// - //// Holds the number of running execution streams. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NumberOfExecutionStreams { - get { return numberOfExecutionStreams_; } - set { - numberOfExecutionStreams_ = value; - } - } - - /// Field number for the "runnerId" field. - public const int RunnerIdFieldNumber = 8; - private int runnerId_; - /// - //// Holds the runner id for parallel execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int RunnerId { - get { return runnerId_; } - set { - runnerId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecutionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecutionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CurrentSpec, other.CurrentSpec)) return false; - if (!object.Equals(CurrentScenario, other.CurrentScenario)) return false; - if (!object.Equals(CurrentStep, other.CurrentStep)) return false; - if (Stacktrace != other.Stacktrace) return false; - if (ProjectName != other.ProjectName) return false; - if(!executionArgs_.Equals(other.executionArgs_)) return false; - if (NumberOfExecutionStreams != other.NumberOfExecutionStreams) return false; - if (RunnerId != other.RunnerId) 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 (currentSpec_ != null) hash ^= CurrentSpec.GetHashCode(); - if (currentScenario_ != null) hash ^= CurrentScenario.GetHashCode(); - if (currentStep_ != null) hash ^= CurrentStep.GetHashCode(); - if (Stacktrace.Length != 0) hash ^= Stacktrace.GetHashCode(); - if (ProjectName.Length != 0) hash ^= ProjectName.GetHashCode(); - hash ^= executionArgs_.GetHashCode(); - if (NumberOfExecutionStreams != 0) hash ^= NumberOfExecutionStreams.GetHashCode(); - if (RunnerId != 0) hash ^= RunnerId.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 (currentSpec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentSpec); - } - if (currentScenario_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CurrentScenario); - } - if (currentStep_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CurrentStep); - } - if (Stacktrace.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Stacktrace); - } - if (ProjectName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ProjectName); - } - executionArgs_.WriteTo(output, _repeated_executionArgs_codec); - if (NumberOfExecutionStreams != 0) { - output.WriteRawTag(56); - output.WriteInt32(NumberOfExecutionStreams); - } - if (RunnerId != 0) { - output.WriteRawTag(64); - output.WriteInt32(RunnerId); - } - 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 (currentSpec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CurrentSpec); - } - if (currentScenario_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CurrentScenario); - } - if (currentStep_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CurrentStep); - } - if (Stacktrace.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Stacktrace); - } - if (ProjectName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ProjectName); - } - executionArgs_.WriteTo(ref output, _repeated_executionArgs_codec); - if (NumberOfExecutionStreams != 0) { - output.WriteRawTag(56); - output.WriteInt32(NumberOfExecutionStreams); - } - if (RunnerId != 0) { - output.WriteRawTag(64); - output.WriteInt32(RunnerId); - } - 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 (currentSpec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentSpec); - } - if (currentScenario_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentScenario); - } - if (currentStep_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrentStep); - } - if (Stacktrace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Stacktrace); - } - if (ProjectName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectName); - } - size += executionArgs_.CalculateSize(_repeated_executionArgs_codec); - if (NumberOfExecutionStreams != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumberOfExecutionStreams); - } - if (RunnerId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RunnerId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecutionInfo other) { - if (other == null) { - return; - } - if (other.currentSpec_ != null) { - if (currentSpec_ == null) { - CurrentSpec = new global::Gauge.Messages.SpecInfo(); - } - CurrentSpec.MergeFrom(other.CurrentSpec); - } - if (other.currentScenario_ != null) { - if (currentScenario_ == null) { - CurrentScenario = new global::Gauge.Messages.ScenarioInfo(); - } - CurrentScenario.MergeFrom(other.CurrentScenario); - } - if (other.currentStep_ != null) { - if (currentStep_ == null) { - CurrentStep = new global::Gauge.Messages.StepInfo(); - } - CurrentStep.MergeFrom(other.CurrentStep); - } - if (other.Stacktrace.Length != 0) { - Stacktrace = other.Stacktrace; - } - if (other.ProjectName.Length != 0) { - ProjectName = other.ProjectName; - } - executionArgs_.Add(other.executionArgs_); - if (other.NumberOfExecutionStreams != 0) { - NumberOfExecutionStreams = other.NumberOfExecutionStreams; - } - if (other.RunnerId != 0) { - RunnerId = other.RunnerId; - } - _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 (currentSpec_ == null) { - CurrentSpec = new global::Gauge.Messages.SpecInfo(); - } - input.ReadMessage(CurrentSpec); - break; - } - case 18: { - if (currentScenario_ == null) { - CurrentScenario = new global::Gauge.Messages.ScenarioInfo(); - } - input.ReadMessage(CurrentScenario); - break; - } - case 26: { - if (currentStep_ == null) { - CurrentStep = new global::Gauge.Messages.StepInfo(); - } - input.ReadMessage(CurrentStep); - break; - } - case 34: { - Stacktrace = input.ReadString(); - break; - } - case 42: { - ProjectName = input.ReadString(); - break; - } - case 50: { - executionArgs_.AddEntriesFrom(input, _repeated_executionArgs_codec); - break; - } - case 56: { - NumberOfExecutionStreams = input.ReadInt32(); - break; - } - case 64: { - RunnerId = 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: { - if (currentSpec_ == null) { - CurrentSpec = new global::Gauge.Messages.SpecInfo(); - } - input.ReadMessage(CurrentSpec); - break; - } - case 18: { - if (currentScenario_ == null) { - CurrentScenario = new global::Gauge.Messages.ScenarioInfo(); - } - input.ReadMessage(CurrentScenario); - break; - } - case 26: { - if (currentStep_ == null) { - CurrentStep = new global::Gauge.Messages.StepInfo(); - } - input.ReadMessage(CurrentStep); - break; - } - case 34: { - Stacktrace = input.ReadString(); - break; - } - case 42: { - ProjectName = input.ReadString(); - break; - } - case 50: { - executionArgs_.AddEntriesFrom(ref input, _repeated_executionArgs_codec); - break; - } - case 56: { - NumberOfExecutionStreams = input.ReadInt32(); - break; - } - case 64: { - RunnerId = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Contains details of the Spec execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecInfo()); - 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::Gauge.Messages.MessagesReflection.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 SpecInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecInfo(SpecInfo other) : this() { - name_ = other.name_; - fileName_ = other.fileName_; - isFailed_ = other.isFailed_; - tags_ = other.tags_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecInfo Clone() { - return new SpecInfo(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - //// Name of the current Spec being executed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 2; - private string fileName_ = ""; - /// - //// Full File path containing the current Spec being executed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "isFailed" field. - public const int IsFailedFieldNumber = 3; - private bool isFailed_; - /// - //// Flag to indicate if the current Spec execution failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsFailed { - get { return isFailed_; } - set { - isFailed_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - //// Tags relevant to the current Spec execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (FileName != other.FileName) return false; - if (IsFailed != other.IsFailed) return false; - if(!tags_.Equals(other.tags_)) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); - if (FileName.Length != 0) hash ^= FileName.GetHashCode(); - if (IsFailed != false) hash ^= IsFailed.GetHashCode(); - hash ^= tags_.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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (FileName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FileName); - } - if (IsFailed != false) { - output.WriteRawTag(24); - output.WriteBool(IsFailed); - } - tags_.WriteTo(output, _repeated_tags_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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (FileName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FileName); - } - if (IsFailed != false) { - output.WriteRawTag(24); - output.WriteBool(IsFailed); - } - tags_.WriteTo(ref output, _repeated_tags_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 (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (IsFailed != false) { - size += 1 + 1; - } - size += tags_.CalculateSize(_repeated_tags_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecInfo other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - if (other.IsFailed != false) { - IsFailed = other.IsFailed; - } - tags_.Add(other.tags_); - _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: { - FileName = input.ReadString(); - break; - } - case 24: { - IsFailed = input.ReadBool(); - break; - } - case 34: { - tags_.AddEntriesFrom(input, _repeated_tags_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: { - Name = input.ReadString(); - break; - } - case 18: { - FileName = input.ReadString(); - break; - } - case 24: { - IsFailed = input.ReadBool(); - break; - } - case 34: { - tags_.AddEntriesFrom(ref input, _repeated_tags_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Contains details of the Scenario execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ScenarioInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenarioInfo()); - 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::Gauge.Messages.MessagesReflection.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 ScenarioInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioInfo(ScenarioInfo other) : this() { - name_ = other.name_; - isFailed_ = other.isFailed_; - tags_ = other.tags_.Clone(); - retries_ = other.retries_ != null ? other.retries_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioInfo Clone() { - return new ScenarioInfo(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - //// Name of the current Scenario being executed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "isFailed" field. - public const int IsFailedFieldNumber = 2; - private bool isFailed_; - /// - //// Flag to indicate if the current Scenario execution failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsFailed { - get { return isFailed_; } - set { - isFailed_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - //// Tags relevant to the current Scenario execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 4; - private global::Gauge.Messages.ScenarioRetriesInfo retries_; - /// - //// Retries info - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ScenarioRetriesInfo Retries { - get { return retries_; } - set { - retries_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScenarioInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScenarioInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (IsFailed != other.IsFailed) return false; - if(!tags_.Equals(other.tags_)) return false; - if (!object.Equals(Retries, other.Retries)) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); - if (IsFailed != false) hash ^= IsFailed.GetHashCode(); - hash ^= tags_.GetHashCode(); - if (retries_ != null) hash ^= Retries.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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (IsFailed != false) { - output.WriteRawTag(16); - output.WriteBool(IsFailed); - } - tags_.WriteTo(output, _repeated_tags_codec); - if (retries_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Retries); - } - 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 (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (IsFailed != false) { - output.WriteRawTag(16); - output.WriteBool(IsFailed); - } - tags_.WriteTo(ref output, _repeated_tags_codec); - if (retries_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Retries); - } - 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 (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (IsFailed != false) { - size += 1 + 1; - } - size += tags_.CalculateSize(_repeated_tags_codec); - if (retries_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Retries); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScenarioInfo other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.IsFailed != false) { - IsFailed = other.IsFailed; - } - tags_.Add(other.tags_); - if (other.retries_ != null) { - if (retries_ == null) { - Retries = new global::Gauge.Messages.ScenarioRetriesInfo(); - } - Retries.MergeFrom(other.Retries); - } - _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 16: { - IsFailed = input.ReadBool(); - break; - } - case 26: { - tags_.AddEntriesFrom(input, _repeated_tags_codec); - break; - } - case 34: { - if (retries_ == null) { - Retries = new global::Gauge.Messages.ScenarioRetriesInfo(); - } - input.ReadMessage(Retries); - 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 16: { - IsFailed = input.ReadBool(); - break; - } - case 26: { - tags_.AddEntriesFrom(ref input, _repeated_tags_codec); - break; - } - case 34: { - if (retries_ == null) { - Retries = new global::Gauge.Messages.ScenarioRetriesInfo(); - } - input.ReadMessage(Retries); - break; - } - } - } - } - #endif - - } - - /// - //// Contains details of the Scenario repeat execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ScenarioRetriesInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenarioRetriesInfo()); - 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::Gauge.Messages.MessagesReflection.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 ScenarioRetriesInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioRetriesInfo(ScenarioRetriesInfo other) : this() { - maxRetries_ = other.maxRetries_; - currentRetry_ = other.currentRetry_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioRetriesInfo Clone() { - return new ScenarioRetriesInfo(this); - } - - /// Field number for the "maxRetries" field. - public const int MaxRetriesFieldNumber = 1; - private int maxRetries_; - /// - /// Maximum retries. Related to '--max-retries-count' run parameter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MaxRetries { - get { return maxRetries_; } - set { - maxRetries_ = value; - } - } - - /// Field number for the "currentRetry" field. - public const int CurrentRetryFieldNumber = 2; - private int currentRetry_; - /// - /// Current retry attempt. It's 0 for the normal first run - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CurrentRetry { - get { return currentRetry_; } - set { - currentRetry_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScenarioRetriesInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScenarioRetriesInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MaxRetries != other.MaxRetries) return false; - if (CurrentRetry != other.CurrentRetry) 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 (MaxRetries != 0) hash ^= MaxRetries.GetHashCode(); - if (CurrentRetry != 0) hash ^= CurrentRetry.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 (MaxRetries != 0) { - output.WriteRawTag(8); - output.WriteInt32(MaxRetries); - } - if (CurrentRetry != 0) { - output.WriteRawTag(16); - output.WriteInt32(CurrentRetry); - } - 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 (MaxRetries != 0) { - output.WriteRawTag(8); - output.WriteInt32(MaxRetries); - } - if (CurrentRetry != 0) { - output.WriteRawTag(16); - output.WriteInt32(CurrentRetry); - } - 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 (MaxRetries != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxRetries); - } - if (CurrentRetry != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrentRetry); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScenarioRetriesInfo other) { - if (other == null) { - return; - } - if (other.MaxRetries != 0) { - MaxRetries = other.MaxRetries; - } - if (other.CurrentRetry != 0) { - CurrentRetry = other.CurrentRetry; - } - _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: { - MaxRetries = input.ReadInt32(); - break; - } - case 16: { - CurrentRetry = 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: { - MaxRetries = input.ReadInt32(); - break; - } - case 16: { - CurrentRetry = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Contains details of the Step execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepInfo()); - 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::Gauge.Messages.MessagesReflection.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 StepInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepInfo(StepInfo other) : this() { - step_ = other.step_ != null ? other.step_.Clone() : null; - isFailed_ = other.isFailed_; - stackTrace_ = other.stackTrace_; - errorMessage_ = other.errorMessage_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepInfo Clone() { - return new StepInfo(this); - } - - /// Field number for the "step" field. - public const int StepFieldNumber = 1; - private global::Gauge.Messages.ExecuteStepRequest step_; - /// - //// The current request to execute Step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecuteStepRequest Step { - get { return step_; } - set { - step_ = value; - } - } - - /// Field number for the "isFailed" field. - public const int IsFailedFieldNumber = 2; - private bool isFailed_; - /// - //// Flag to indicate if the current Step execution failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsFailed { - get { return isFailed_; } - set { - isFailed_ = value; - } - } - - /// Field number for the "stackTrace" field. - public const int StackTraceFieldNumber = 3; - private string stackTrace_ = ""; - /// - //// The current stack trace in case of failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StackTrace { - get { return stackTrace_; } - set { - stackTrace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 4; - private string errorMessage_ = ""; - /// - //// The error message in case of failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } - set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Step, other.Step)) return false; - if (IsFailed != other.IsFailed) return false; - if (StackTrace != other.StackTrace) return false; - if (ErrorMessage != other.ErrorMessage) 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 (step_ != null) hash ^= Step.GetHashCode(); - if (IsFailed != false) hash ^= IsFailed.GetHashCode(); - if (StackTrace.Length != 0) hash ^= StackTrace.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.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 (step_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Step); - } - if (IsFailed != false) { - output.WriteRawTag(16); - output.WriteBool(IsFailed); - } - if (StackTrace.Length != 0) { - output.WriteRawTag(26); - output.WriteString(StackTrace); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ErrorMessage); - } - 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 (step_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Step); - } - if (IsFailed != false) { - output.WriteRawTag(16); - output.WriteBool(IsFailed); - } - if (StackTrace.Length != 0) { - output.WriteRawTag(26); - output.WriteString(StackTrace); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ErrorMessage); - } - 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 (step_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Step); - } - if (IsFailed != false) { - size += 1 + 1; - } - if (StackTrace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StackTrace); - } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepInfo other) { - if (other == null) { - return; - } - if (other.step_ != null) { - if (step_ == null) { - Step = new global::Gauge.Messages.ExecuteStepRequest(); - } - Step.MergeFrom(other.Step); - } - if (other.IsFailed != false) { - IsFailed = other.IsFailed; - } - if (other.StackTrace.Length != 0) { - StackTrace = other.StackTrace; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; - } - _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 (step_ == null) { - Step = new global::Gauge.Messages.ExecuteStepRequest(); - } - input.ReadMessage(Step); - break; - } - case 16: { - IsFailed = input.ReadBool(); - break; - } - case 26: { - StackTrace = input.ReadString(); - break; - } - case 34: { - ErrorMessage = 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: { - if (step_ == null) { - Step = new global::Gauge.Messages.ExecuteStepRequest(); - } - input.ReadMessage(Step); - break; - } - case 16: { - IsFailed = input.ReadBool(); - break; - } - case 26: { - StackTrace = input.ReadString(); - break; - } - case 34: { - ErrorMessage = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Request sent ot the runner to Execute a Step - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ExecuteStepRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExecuteStepRequest()); - 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::Gauge.Messages.MessagesReflection.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 ExecuteStepRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecuteStepRequest(ExecuteStepRequest other) : this() { - actualStepText_ = other.actualStepText_; - parsedStepText_ = other.parsedStepText_; - scenarioFailing_ = other.scenarioFailing_; - parameters_ = other.parameters_.Clone(); - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExecuteStepRequest Clone() { - return new ExecuteStepRequest(this); - } - - /// Field number for the "actualStepText" field. - public const int ActualStepTextFieldNumber = 1; - private string actualStepText_ = ""; - /// - //// Contains the actual text of the Step being executed. - //// This contains the parameters as defined in the Spec. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActualStepText { - get { return actualStepText_; } - set { - actualStepText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parsedStepText" field. - public const int ParsedStepTextFieldNumber = 2; - private string parsedStepText_ = ""; - /// - //// Contains the parsed text of the Step being executed. - //// The paramters are replaced with placeholders. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParsedStepText { - get { return parsedStepText_; } - set { - parsedStepText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "scenarioFailing" field. - public const int ScenarioFailingFieldNumber = 3; - private bool scenarioFailing_; - /// - //// Flag to indicate if the execution of the Scenario, containing the current Step, failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ScenarioFailing { - get { return scenarioFailing_; } - set { - scenarioFailing_ = value; - } - } - - /// Field number for the "parameters" field. - public const int ParametersFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_parameters_codec - = pb::FieldCodec.ForMessage(34, global::Gauge.Messages.Parameter.Parser); - private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); - /// - //// Collection of parameters applicable to the current Step. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Parameters { - get { return parameters_; } - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 5; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExecuteStepRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExecuteStepRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ActualStepText != other.ActualStepText) return false; - if (ParsedStepText != other.ParsedStepText) return false; - if (ScenarioFailing != other.ScenarioFailing) return false; - if(!parameters_.Equals(other.parameters_)) return false; - if (Stream != other.Stream) 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 (ActualStepText.Length != 0) hash ^= ActualStepText.GetHashCode(); - if (ParsedStepText.Length != 0) hash ^= ParsedStepText.GetHashCode(); - if (ScenarioFailing != false) hash ^= ScenarioFailing.GetHashCode(); - hash ^= parameters_.GetHashCode(); - if (Stream != 0) hash ^= Stream.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 (ActualStepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ActualStepText); - } - if (ParsedStepText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParsedStepText); - } - if (ScenarioFailing != false) { - output.WriteRawTag(24); - output.WriteBool(ScenarioFailing); - } - parameters_.WriteTo(output, _repeated_parameters_codec); - if (Stream != 0) { - output.WriteRawTag(40); - output.WriteInt32(Stream); - } - 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 (ActualStepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ActualStepText); - } - if (ParsedStepText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParsedStepText); - } - if (ScenarioFailing != false) { - output.WriteRawTag(24); - output.WriteBool(ScenarioFailing); - } - parameters_.WriteTo(ref output, _repeated_parameters_codec); - if (Stream != 0) { - output.WriteRawTag(40); - output.WriteInt32(Stream); - } - 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 (ActualStepText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActualStepText); - } - if (ParsedStepText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParsedStepText); - } - if (ScenarioFailing != false) { - size += 1 + 1; - } - size += parameters_.CalculateSize(_repeated_parameters_codec); - if (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExecuteStepRequest other) { - if (other == null) { - return; - } - if (other.ActualStepText.Length != 0) { - ActualStepText = other.ActualStepText; - } - if (other.ParsedStepText.Length != 0) { - ParsedStepText = other.ParsedStepText; - } - if (other.ScenarioFailing != false) { - ScenarioFailing = other.ScenarioFailing; - } - parameters_.Add(other.parameters_); - if (other.Stream != 0) { - Stream = other.Stream; - } - _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: { - ActualStepText = input.ReadString(); - break; - } - case 18: { - ParsedStepText = input.ReadString(); - break; - } - case 24: { - ScenarioFailing = input.ReadBool(); - break; - } - case 34: { - parameters_.AddEntriesFrom(input, _repeated_parameters_codec); - break; - } - case 40: { - Stream = 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: { - ActualStepText = input.ReadString(); - break; - } - case 18: { - ParsedStepText = input.ReadString(); - break; - } - case 24: { - ScenarioFailing = input.ReadBool(); - break; - } - case 34: { - parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); - break; - } - case 40: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Request sent ot the runner to check if given Step is valid. - //// The runner should check if there is an implementation defined for the given Step Text. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepValidateRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepValidateRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepValidateRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepValidateRequest(StepValidateRequest other) : this() { - stepText_ = other.stepText_; - numberOfParameters_ = other.numberOfParameters_; - stepValue_ = other.stepValue_ != null ? other.stepValue_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepValidateRequest Clone() { - return new StepValidateRequest(this); - } - - /// Field number for the "stepText" field. - public const int StepTextFieldNumber = 1; - private string stepText_ = ""; - /// - //// The text is used to lookup Step implementation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StepText { - get { return stepText_; } - set { - stepText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "numberOfParameters" field. - public const int NumberOfParametersFieldNumber = 2; - private int numberOfParameters_; - /// - //// The number of paramters in the Step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NumberOfParameters { - get { return numberOfParameters_; } - set { - numberOfParameters_ = value; - } - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 3; - private global::Gauge.Messages.ProtoStepValue stepValue_; - /// - ////This is use to generate step implementation template - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepValue StepValue { - get { return stepValue_; } - set { - stepValue_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepValidateRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepValidateRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StepText != other.StepText) return false; - if (NumberOfParameters != other.NumberOfParameters) return false; - if (!object.Equals(StepValue, other.StepValue)) 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 (StepText.Length != 0) hash ^= StepText.GetHashCode(); - if (NumberOfParameters != 0) hash ^= NumberOfParameters.GetHashCode(); - if (stepValue_ != null) hash ^= StepValue.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 (StepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepText); - } - if (NumberOfParameters != 0) { - output.WriteRawTag(16); - output.WriteInt32(NumberOfParameters); - } - if (stepValue_ != null) { - output.WriteRawTag(26); - output.WriteMessage(StepValue); - } - 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 (StepText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepText); - } - if (NumberOfParameters != 0) { - output.WriteRawTag(16); - output.WriteInt32(NumberOfParameters); - } - if (stepValue_ != null) { - output.WriteRawTag(26); - output.WriteMessage(StepValue); - } - 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 (StepText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StepText); - } - if (NumberOfParameters != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumberOfParameters); - } - if (stepValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValue); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepValidateRequest other) { - if (other == null) { - return; - } - if (other.StepText.Length != 0) { - StepText = other.StepText; - } - if (other.NumberOfParameters != 0) { - NumberOfParameters = other.NumberOfParameters; - } - if (other.stepValue_ != null) { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - StepValue.MergeFrom(other.StepValue); - } - _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: { - StepText = input.ReadString(); - break; - } - case 16: { - NumberOfParameters = input.ReadInt32(); - break; - } - case 26: { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - 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: { - StepText = input.ReadString(); - break; - } - case 16: { - NumberOfParameters = input.ReadInt32(); - break; - } - case 26: { - if (stepValue_ == null) { - StepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(StepValue); - break; - } - } - } - } - #endif - - } - - /// - //// Response of StepValidateRequest. - //// The runner tells the caller if the Request was valid, - //// i.e. an implementation exists for given Step text. - //// Returns an error message if it is an error response. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepValidateResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepValidateResponse()); - 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::Gauge.Messages.MessagesReflection.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 StepValidateResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepValidateResponse(StepValidateResponse other) : this() { - isValid_ = other.isValid_; - errorMessage_ = other.errorMessage_; - errorType_ = other.errorType_; - suggestion_ = other.suggestion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepValidateResponse Clone() { - return new StepValidateResponse(this); - } - - /// Field number for the "isValid" field. - public const int IsValidFieldNumber = 1; - private bool isValid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsValid { - get { return isValid_; } - set { - isValid_ = value; - } - } - - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 2; - private string errorMessage_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } - set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "errorType" field. - public const int ErrorTypeFieldNumber = 3; - private global::Gauge.Messages.StepValidateResponse.Types.ErrorType errorType_ = global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepValidateResponse.Types.ErrorType ErrorType { - get { return errorType_; } - set { - errorType_ = value; - } - } - - /// Field number for the "suggestion" field. - public const int SuggestionFieldNumber = 4; - private string suggestion_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Suggestion { - get { return suggestion_; } - set { - suggestion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepValidateResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepValidateResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (IsValid != other.IsValid) return false; - if (ErrorMessage != other.ErrorMessage) return false; - if (ErrorType != other.ErrorType) return false; - if (Suggestion != other.Suggestion) 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 (IsValid != false) hash ^= IsValid.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); - if (ErrorType != global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound) hash ^= ErrorType.GetHashCode(); - if (Suggestion.Length != 0) hash ^= Suggestion.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 (IsValid != false) { - output.WriteRawTag(8); - output.WriteBool(IsValid); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ErrorMessage); - } - if (ErrorType != global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound) { - output.WriteRawTag(24); - output.WriteEnum((int) ErrorType); - } - if (Suggestion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Suggestion); - } - 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 (IsValid != false) { - output.WriteRawTag(8); - output.WriteBool(IsValid); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ErrorMessage); - } - if (ErrorType != global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound) { - output.WriteRawTag(24); - output.WriteEnum((int) ErrorType); - } - if (Suggestion.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Suggestion); - } - 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 (IsValid != false) { - size += 1 + 1; - } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); - } - if (ErrorType != global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ErrorType); - } - if (Suggestion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Suggestion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepValidateResponse other) { - if (other == null) { - return; - } - if (other.IsValid != false) { - IsValid = other.IsValid; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; - } - if (other.ErrorType != global::Gauge.Messages.StepValidateResponse.Types.ErrorType.StepImplementationNotFound) { - ErrorType = other.ErrorType; - } - if (other.Suggestion.Length != 0) { - Suggestion = other.Suggestion; - } - _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: { - IsValid = input.ReadBool(); - break; - } - case 18: { - ErrorMessage = input.ReadString(); - break; - } - case 24: { - ErrorType = (global::Gauge.Messages.StepValidateResponse.Types.ErrorType) input.ReadEnum(); - break; - } - case 34: { - Suggestion = 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: { - IsValid = input.ReadBool(); - break; - } - case 18: { - ErrorMessage = input.ReadString(); - break; - } - case 24: { - ErrorType = (global::Gauge.Messages.StepValidateResponse.Types.ErrorType) input.ReadEnum(); - break; - } - case 34: { - Suggestion = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the StepValidateResponse message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum ErrorType { - [pbr::OriginalName("STEP_IMPLEMENTATION_NOT_FOUND")] StepImplementationNotFound = 0, - [pbr::OriginalName("DUPLICATE_STEP_IMPLEMENTATION")] DuplicateStepImplementation = 1, - } - - } - #endregion - - } - - /// - //// Result of the Suite Execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SuiteExecutionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuiteExecutionResult()); - 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::Gauge.Messages.MessagesReflection.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 SuiteExecutionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteExecutionResult(SuiteExecutionResult other) : this() { - suiteResult_ = other.suiteResult_ != null ? other.suiteResult_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteExecutionResult Clone() { - return new SuiteExecutionResult(this); - } - - /// Field number for the "suiteResult" field. - public const int SuiteResultFieldNumber = 1; - private global::Gauge.Messages.ProtoSuiteResult suiteResult_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSuiteResult SuiteResult { - get { return suiteResult_; } - set { - suiteResult_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuiteExecutionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuiteExecutionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(SuiteResult, other.SuiteResult)) 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 (suiteResult_ != null) hash ^= SuiteResult.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 (suiteResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SuiteResult); - } - 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 (suiteResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(SuiteResult); - } - 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 (suiteResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuiteResult); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuiteExecutionResult other) { - if (other == null) { - return; - } - if (other.suiteResult_ != null) { - if (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - SuiteResult.MergeFrom(other.SuiteResult); - } - _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 (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - 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 (suiteResult_ == null) { - SuiteResult = new global::Gauge.Messages.ProtoSuiteResult(); - } - input.ReadMessage(SuiteResult); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SuiteExecutionResultItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuiteExecutionResultItem()); - 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::Gauge.Messages.MessagesReflection.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 SuiteExecutionResultItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteExecutionResultItem(SuiteExecutionResultItem other) : this() { - resultItem_ = other.resultItem_ != null ? other.resultItem_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteExecutionResultItem Clone() { - return new SuiteExecutionResultItem(this); - } - - /// Field number for the "resultItem" field. - public const int ResultItemFieldNumber = 1; - private global::Gauge.Messages.ProtoItem resultItem_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoItem ResultItem { - get { return resultItem_; } - set { - resultItem_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuiteExecutionResultItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuiteExecutionResultItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ResultItem, other.ResultItem)) 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 (resultItem_ != null) hash ^= ResultItem.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 (resultItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ResultItem); - } - 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 (resultItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ResultItem); - } - 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 (resultItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResultItem); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuiteExecutionResultItem other) { - if (other == null) { - return; - } - if (other.resultItem_ != null) { - if (resultItem_ == null) { - ResultItem = new global::Gauge.Messages.ProtoItem(); - } - ResultItem.MergeFrom(other.ResultItem); - } - _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 (resultItem_ == null) { - ResultItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ResultItem); - 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 (resultItem_ == null) { - ResultItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ResultItem); - break; - } - } - } - } - #endif - - } - - /// - //// Requests Gauge to give all Step Names. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepNamesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepNamesRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepNamesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNamesRequest(StepNamesRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNamesRequest Clone() { - return new StepNamesRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepNamesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepNamesRequest 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(StepNamesRequest 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 - - } - - /// - //// Response to StepNamesRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepNamesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepNamesResponse()); - 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::Gauge.Messages.MessagesReflection.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 StepNamesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNamesResponse(StepNamesResponse other) : this() { - steps_ = other.steps_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNamesResponse Clone() { - return new StepNamesResponse(this); - } - - /// Field number for the "steps" field. - public const int StepsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_steps_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); - /// - //// Collection of strings corresponding to Step texts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Steps { - get { return steps_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepNamesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepNamesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!steps_.Equals(other.steps_)) 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 ^= steps_.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 - steps_.WriteTo(output, _repeated_steps_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) { - steps_.WriteTo(ref output, _repeated_steps_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 += steps_.CalculateSize(_repeated_steps_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepNamesResponse other) { - if (other == null) { - return; - } - steps_.Add(other.steps_); - _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: { - steps_.AddEntriesFrom(input, _repeated_steps_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: { - steps_.AddEntriesFrom(ref input, _repeated_steps_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request runner to initialize Scenario DataStore - //// Scenario Datastore is reset after every Scenario execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ScenarioDataStoreInitRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScenarioDataStoreInitRequest()); - 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::Gauge.Messages.MessagesReflection.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 ScenarioDataStoreInitRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioDataStoreInitRequest(ScenarioDataStoreInitRequest other) : this() { - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScenarioDataStoreInitRequest Clone() { - return new ScenarioDataStoreInitRequest(this); - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 1; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScenarioDataStoreInitRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScenarioDataStoreInitRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Stream != other.Stream) 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 (Stream != 0) hash ^= Stream.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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScenarioDataStoreInitRequest other) { - if (other == null) { - return; - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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: { - Stream = 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: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Request runner to initialize Spec DataStore - //// Spec Datastore is reset after every Spec execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecDataStoreInitRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecDataStoreInitRequest()); - 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::Gauge.Messages.MessagesReflection.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 SpecDataStoreInitRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDataStoreInitRequest(SpecDataStoreInitRequest other) : this() { - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDataStoreInitRequest Clone() { - return new SpecDataStoreInitRequest(this); - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 1; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecDataStoreInitRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecDataStoreInitRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Stream != other.Stream) 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 (Stream != 0) hash ^= Stream.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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecDataStoreInitRequest other) { - if (other == null) { - return; - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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: { - Stream = 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: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Request runner to initialize Suite DataStore - //// Suite Datastore is reset after every Suite execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SuiteDataStoreInitRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuiteDataStoreInitRequest()); - 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::Gauge.Messages.MessagesReflection.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 SuiteDataStoreInitRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteDataStoreInitRequest(SuiteDataStoreInitRequest other) : this() { - stream_ = other.stream_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuiteDataStoreInitRequest Clone() { - return new SuiteDataStoreInitRequest(this); - } - - /// Field number for the "stream" field. - public const int StreamFieldNumber = 1; - private int stream_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Stream { - get { return stream_; } - set { - stream_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuiteDataStoreInitRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuiteDataStoreInitRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Stream != other.Stream) 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 (Stream != 0) hash ^= Stream.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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - output.WriteRawTag(8); - output.WriteInt32(Stream); - } - 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 (Stream != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Stream); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuiteDataStoreInitRequest other) { - if (other == null) { - return; - } - if (other.Stream != 0) { - Stream = other.Stream; - } - _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: { - Stream = 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: { - Stream = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Holds the new and old positions of a parameter. - //// Used when refactoring a Step. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ParameterPosition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParameterPosition()); - 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::Gauge.Messages.MessagesReflection.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 ParameterPosition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParameterPosition(ParameterPosition other) : this() { - oldPosition_ = other.oldPosition_; - newPosition_ = other.newPosition_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParameterPosition Clone() { - return new ParameterPosition(this); - } - - /// Field number for the "oldPosition" field. - public const int OldPositionFieldNumber = 1; - private int oldPosition_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int OldPosition { - get { return oldPosition_; } - set { - oldPosition_ = value; - } - } - - /// Field number for the "newPosition" field. - public const int NewPositionFieldNumber = 2; - private int newPosition_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NewPosition { - get { return newPosition_; } - set { - newPosition_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ParameterPosition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParameterPosition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OldPosition != other.OldPosition) return false; - if (NewPosition != other.NewPosition) 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 (OldPosition != 0) hash ^= OldPosition.GetHashCode(); - if (NewPosition != 0) hash ^= NewPosition.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 (OldPosition != 0) { - output.WriteRawTag(8); - output.WriteInt32(OldPosition); - } - if (NewPosition != 0) { - output.WriteRawTag(16); - output.WriteInt32(NewPosition); - } - 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 (OldPosition != 0) { - output.WriteRawTag(8); - output.WriteInt32(OldPosition); - } - if (NewPosition != 0) { - output.WriteRawTag(16); - output.WriteInt32(NewPosition); - } - 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 (OldPosition != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(OldPosition); - } - if (NewPosition != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NewPosition); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParameterPosition other) { - if (other == null) { - return; - } - if (other.OldPosition != 0) { - OldPosition = other.OldPosition; - } - if (other.NewPosition != 0) { - NewPosition = other.NewPosition; - } - _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: { - OldPosition = input.ReadInt32(); - break; - } - case 16: { - NewPosition = 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: { - OldPosition = input.ReadInt32(); - break; - } - case 16: { - NewPosition = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - //// Tells the runner to refactor the specified Step. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RefactorRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RefactorRequest()); - 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::Gauge.Messages.MessagesReflection.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 RefactorRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RefactorRequest(RefactorRequest other) : this() { - oldStepValue_ = other.oldStepValue_ != null ? other.oldStepValue_.Clone() : null; - newStepValue_ = other.newStepValue_ != null ? other.newStepValue_.Clone() : null; - paramPositions_ = other.paramPositions_.Clone(); - saveChanges_ = other.saveChanges_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RefactorRequest Clone() { - return new RefactorRequest(this); - } - - /// Field number for the "oldStepValue" field. - public const int OldStepValueFieldNumber = 1; - private global::Gauge.Messages.ProtoStepValue oldStepValue_; - /// - //// Old value, used to lookup Step to refactor - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepValue OldStepValue { - get { return oldStepValue_; } - set { - oldStepValue_ = value; - } - } - - /// Field number for the "newStepValue" field. - public const int NewStepValueFieldNumber = 2; - private global::Gauge.Messages.ProtoStepValue newStepValue_; - /// - //// New value, the to-be value of Step being refactored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepValue NewStepValue { - get { return newStepValue_; } - set { - newStepValue_ = value; - } - } - - /// Field number for the "paramPositions" field. - public const int ParamPositionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_paramPositions_codec - = pb::FieldCodec.ForMessage(26, global::Gauge.Messages.ParameterPosition.Parser); - private readonly pbc::RepeatedField paramPositions_ = new pbc::RepeatedField(); - /// - //// Holds parameter positions of all parameters. Contains old and new parameter positions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParamPositions { - get { return paramPositions_; } - } - - /// Field number for the "saveChanges" field. - public const int SaveChangesFieldNumber = 4; - private bool saveChanges_; - /// - //// If set to true, the refactored files should be saved to the file system before returning the response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SaveChanges { - get { return saveChanges_; } - set { - saveChanges_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RefactorRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RefactorRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(OldStepValue, other.OldStepValue)) return false; - if (!object.Equals(NewStepValue, other.NewStepValue)) return false; - if(!paramPositions_.Equals(other.paramPositions_)) return false; - if (SaveChanges != other.SaveChanges) 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 (oldStepValue_ != null) hash ^= OldStepValue.GetHashCode(); - if (newStepValue_ != null) hash ^= NewStepValue.GetHashCode(); - hash ^= paramPositions_.GetHashCode(); - if (SaveChanges != false) hash ^= SaveChanges.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 (oldStepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OldStepValue); - } - if (newStepValue_ != null) { - output.WriteRawTag(18); - output.WriteMessage(NewStepValue); - } - paramPositions_.WriteTo(output, _repeated_paramPositions_codec); - if (SaveChanges != false) { - output.WriteRawTag(32); - output.WriteBool(SaveChanges); - } - 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 (oldStepValue_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OldStepValue); - } - if (newStepValue_ != null) { - output.WriteRawTag(18); - output.WriteMessage(NewStepValue); - } - paramPositions_.WriteTo(ref output, _repeated_paramPositions_codec); - if (SaveChanges != false) { - output.WriteRawTag(32); - output.WriteBool(SaveChanges); - } - 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 (oldStepValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldStepValue); - } - if (newStepValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewStepValue); - } - size += paramPositions_.CalculateSize(_repeated_paramPositions_codec); - if (SaveChanges != false) { - 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(RefactorRequest other) { - if (other == null) { - return; - } - if (other.oldStepValue_ != null) { - if (oldStepValue_ == null) { - OldStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - OldStepValue.MergeFrom(other.OldStepValue); - } - if (other.newStepValue_ != null) { - if (newStepValue_ == null) { - NewStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - NewStepValue.MergeFrom(other.NewStepValue); - } - paramPositions_.Add(other.paramPositions_); - if (other.SaveChanges != false) { - SaveChanges = other.SaveChanges; - } - _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 (oldStepValue_ == null) { - OldStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(OldStepValue); - break; - } - case 18: { - if (newStepValue_ == null) { - NewStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(NewStepValue); - break; - } - case 26: { - paramPositions_.AddEntriesFrom(input, _repeated_paramPositions_codec); - break; - } - case 32: { - SaveChanges = 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 10: { - if (oldStepValue_ == null) { - OldStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(OldStepValue); - break; - } - case 18: { - if (newStepValue_ == null) { - NewStepValue = new global::Gauge.Messages.ProtoStepValue(); - } - input.ReadMessage(NewStepValue); - break; - } - case 26: { - paramPositions_.AddEntriesFrom(ref input, _repeated_paramPositions_codec); - break; - } - case 32: { - SaveChanges = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - //// Give all file changes to be made to file system - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FileChanges : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileChanges()); - 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::Gauge.Messages.MessagesReflection.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 FileChanges() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FileChanges(FileChanges other) : this() { - fileName_ = other.fileName_; - fileContent_ = other.fileContent_; - diffs_ = other.diffs_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FileChanges Clone() { - return new FileChanges(this); - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 1; - private string fileName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fileContent" field. - public const int FileContentFieldNumber = 2; - private string fileContent_ = ""; - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileContent { - get { return fileContent_; } - set { - fileContent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "diffs" field. - public const int DiffsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_diffs_codec - = pb::FieldCodec.ForMessage(26, global::Gauge.Messages.TextDiff.Parser); - private readonly pbc::RepeatedField diffs_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Diffs { - get { return diffs_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FileChanges); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FileChanges other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FileName != other.FileName) return false; - if (FileContent != other.FileContent) return false; - if(!diffs_.Equals(other.diffs_)) 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 (FileName.Length != 0) hash ^= FileName.GetHashCode(); - if (FileContent.Length != 0) hash ^= FileContent.GetHashCode(); - hash ^= diffs_.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 (FileName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FileName); - } - if (FileContent.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FileContent); - } - diffs_.WriteTo(output, _repeated_diffs_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 (FileName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FileName); - } - if (FileContent.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FileContent); - } - diffs_.WriteTo(ref output, _repeated_diffs_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 (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (FileContent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileContent); - } - size += diffs_.CalculateSize(_repeated_diffs_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FileChanges other) { - if (other == null) { - return; - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - if (other.FileContent.Length != 0) { - FileContent = other.FileContent; - } - diffs_.Add(other.diffs_); - _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: { - FileName = input.ReadString(); - break; - } - case 18: { - FileContent = input.ReadString(); - break; - } - case 26: { - diffs_.AddEntriesFrom(input, _repeated_diffs_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: { - FileName = input.ReadString(); - break; - } - case 18: { - FileContent = input.ReadString(); - break; - } - case 26: { - diffs_.AddEntriesFrom(ref input, _repeated_diffs_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Response of a RefactorRequest - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RefactorResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RefactorResponse()); - 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::Gauge.Messages.MessagesReflection.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 RefactorResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RefactorResponse(RefactorResponse other) : this() { - success_ = other.success_; - error_ = other.error_; - filesChanged_ = other.filesChanged_.Clone(); - fileChanges_ = other.fileChanges_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RefactorResponse Clone() { - return new RefactorResponse(this); - } - - /// Field number for the "success" field. - public const int SuccessFieldNumber = 1; - private bool success_; - /// - //// Flag indicating the success of Refactor operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Success { - get { return success_; } - set { - success_ = value; - } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private string error_ = ""; - /// - //// Error message, valid only if Refactor wasn't successful - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "filesChanged" field. - public const int FilesChangedFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_filesChanged_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField filesChanged_ = new pbc::RepeatedField(); - /// - //// List of files that were affected because of the refactoring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FilesChanged { - get { return filesChanged_; } - } - - /// Field number for the "fileChanges" field. - public const int FileChangesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_fileChanges_codec - = pb::FieldCodec.ForMessage(34, global::Gauge.Messages.FileChanges.Parser); - private readonly pbc::RepeatedField fileChanges_ = new pbc::RepeatedField(); - /// - //// List of file changes to be made to successfully achieve refactoring. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FileChanges { - get { return fileChanges_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RefactorResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RefactorResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Success != other.Success) return false; - if (Error != other.Error) return false; - if(!filesChanged_.Equals(other.filesChanged_)) return false; - if(!fileChanges_.Equals(other.fileChanges_)) 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 (Success != false) hash ^= Success.GetHashCode(); - if (Error.Length != 0) hash ^= Error.GetHashCode(); - hash ^= filesChanged_.GetHashCode(); - hash ^= fileChanges_.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 (Success != false) { - output.WriteRawTag(8); - output.WriteBool(Success); - } - if (Error.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Error); - } - filesChanged_.WriteTo(output, _repeated_filesChanged_codec); - fileChanges_.WriteTo(output, _repeated_fileChanges_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 (Success != false) { - output.WriteRawTag(8); - output.WriteBool(Success); - } - if (Error.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Error); - } - filesChanged_.WriteTo(ref output, _repeated_filesChanged_codec); - fileChanges_.WriteTo(ref output, _repeated_fileChanges_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 (Success != false) { - size += 1 + 1; - } - if (Error.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); - } - size += filesChanged_.CalculateSize(_repeated_filesChanged_codec); - size += fileChanges_.CalculateSize(_repeated_fileChanges_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RefactorResponse other) { - if (other == null) { - return; - } - if (other.Success != false) { - Success = other.Success; - } - if (other.Error.Length != 0) { - Error = other.Error; - } - filesChanged_.Add(other.filesChanged_); - fileChanges_.Add(other.fileChanges_); - _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: { - Success = input.ReadBool(); - break; - } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(input, _repeated_filesChanged_codec); - break; - } - case 34: { - fileChanges_.AddEntriesFrom(input, _repeated_fileChanges_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: { - Success = input.ReadBool(); - break; - } - case 18: { - Error = input.ReadString(); - break; - } - case 26: { - filesChanged_.AddEntriesFrom(ref input, _repeated_filesChanged_codec); - break; - } - case 34: { - fileChanges_.AddEntriesFrom(ref input, _repeated_fileChanges_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request for details on a Single Step. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepNameRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepNameRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepNameRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNameRequest(StepNameRequest other) : this() { - stepValue_ = other.stepValue_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNameRequest Clone() { - return new StepNameRequest(this); - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 1; - private string stepValue_ = ""; - /// - //// Step text to lookup the Step. - //// This is the parsed step value, i.e. with placeholders for parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StepValue { - get { return stepValue_; } - set { - stepValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepNameRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepNameRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StepValue != other.StepValue) 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 (StepValue.Length != 0) hash ^= StepValue.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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - 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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - 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 (StepValue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StepValue); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepNameRequest other) { - if (other == null) { - return; - } - if (other.StepValue.Length != 0) { - StepValue = other.StepValue; - } - _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: { - StepValue = 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: { - StepValue = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Response to StepNameRequest. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepNameResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepNameResponse()); - 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::Gauge.Messages.MessagesReflection.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 StepNameResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNameResponse(StepNameResponse other) : this() { - isStepPresent_ = other.isStepPresent_; - stepName_ = other.stepName_.Clone(); - hasAlias_ = other.hasAlias_; - fileName_ = other.fileName_; - span_ = other.span_ != null ? other.span_.Clone() : null; - isExternal_ = other.isExternal_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepNameResponse Clone() { - return new StepNameResponse(this); - } - - /// Field number for the "isStepPresent" field. - public const int IsStepPresentFieldNumber = 1; - private bool isStepPresent_; - /// - //// Flag indicating if there is a match for the given Step Text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsStepPresent { - get { return isStepPresent_; } - set { - isStepPresent_ = value; - } - } - - /// Field number for the "stepName" field. - public const int StepNameFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_stepName_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField stepName_ = new pbc::RepeatedField(); - /// - //// The Step name of the given step. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField StepName { - get { return stepName_; } - } - - /// Field number for the "hasAlias" field. - public const int HasAliasFieldNumber = 3; - private bool hasAlias_; - /// - //// Flag indicating if the given Step is an alias. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAlias { - get { return hasAlias_; } - set { - hasAlias_ = value; - } - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 4; - private string fileName_ = ""; - /// - //// File name in which the step implementation exists - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "span" field. - public const int SpanFieldNumber = 5; - private global::Gauge.Messages.Span span_; - /// - //// Range of step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Span Span { - get { return span_; } - set { - span_ = value; - } - } - - /// Field number for the "isExternal" field. - public const int IsExternalFieldNumber = 6; - private bool isExternal_; - /// - //// Flag indicating if the given Step defined in some external library and the source code can not be accessed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsExternal { - get { return isExternal_; } - set { - isExternal_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepNameResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepNameResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (IsStepPresent != other.IsStepPresent) return false; - if(!stepName_.Equals(other.stepName_)) return false; - if (HasAlias != other.HasAlias) return false; - if (FileName != other.FileName) return false; - if (!object.Equals(Span, other.Span)) return false; - if (IsExternal != other.IsExternal) 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 (IsStepPresent != false) hash ^= IsStepPresent.GetHashCode(); - hash ^= stepName_.GetHashCode(); - if (HasAlias != false) hash ^= HasAlias.GetHashCode(); - if (FileName.Length != 0) hash ^= FileName.GetHashCode(); - if (span_ != null) hash ^= Span.GetHashCode(); - if (IsExternal != false) hash ^= IsExternal.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 (IsStepPresent != false) { - output.WriteRawTag(8); - output.WriteBool(IsStepPresent); - } - stepName_.WriteTo(output, _repeated_stepName_codec); - if (HasAlias != false) { - output.WriteRawTag(24); - output.WriteBool(HasAlias); - } - if (FileName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(FileName); - } - if (span_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Span); - } - if (IsExternal != false) { - output.WriteRawTag(48); - output.WriteBool(IsExternal); - } - 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 (IsStepPresent != false) { - output.WriteRawTag(8); - output.WriteBool(IsStepPresent); - } - stepName_.WriteTo(ref output, _repeated_stepName_codec); - if (HasAlias != false) { - output.WriteRawTag(24); - output.WriteBool(HasAlias); - } - if (FileName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(FileName); - } - if (span_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Span); - } - if (IsExternal != false) { - output.WriteRawTag(48); - output.WriteBool(IsExternal); - } - 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 (IsStepPresent != false) { - size += 1 + 1; - } - size += stepName_.CalculateSize(_repeated_stepName_codec); - if (HasAlias != false) { - size += 1 + 1; - } - if (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (span_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Span); - } - if (IsExternal != false) { - 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(StepNameResponse other) { - if (other == null) { - return; - } - if (other.IsStepPresent != false) { - IsStepPresent = other.IsStepPresent; - } - stepName_.Add(other.stepName_); - if (other.HasAlias != false) { - HasAlias = other.HasAlias; - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - if (other.span_ != null) { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - Span.MergeFrom(other.Span); - } - if (other.IsExternal != false) { - IsExternal = other.IsExternal; - } - _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: { - IsStepPresent = input.ReadBool(); - break; - } - case 18: { - stepName_.AddEntriesFrom(input, _repeated_stepName_codec); - break; - } - case 24: { - HasAlias = input.ReadBool(); - break; - } - case 34: { - FileName = input.ReadString(); - break; - } - case 42: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 48: { - IsExternal = 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: { - IsStepPresent = input.ReadBool(); - break; - } - case 18: { - stepName_.AddEntriesFrom(ref input, _repeated_stepName_codec); - break; - } - case 24: { - HasAlias = input.ReadBool(); - break; - } - case 34: { - FileName = input.ReadString(); - break; - } - case 42: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 48: { - IsExternal = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - //// Response when a unsupported message request is sent. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class UnsupportedMessageResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsupportedMessageResponse()); - 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::Gauge.Messages.MessagesReflection.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 UnsupportedMessageResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnsupportedMessageResponse(UnsupportedMessageResponse other) : this() { - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnsupportedMessageResponse Clone() { - return new UnsupportedMessageResponse(this); - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 1; - private string message_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UnsupportedMessageResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnsupportedMessageResponse 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 (Message.Length != 0) 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.Length != 0) { - 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 (Message.Length != 0) { - 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 (Message.Length != 0) { - 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(UnsupportedMessageResponse other) { - if (other == null) { - return; - } - if (other.Message.Length != 0) { - 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 - - } - - /// - //// Request for caching a file. - //// Gauge sends this request when running in LSP mode, - //// so runner can cache file contents present on the client(an editor). - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class CacheFileRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CacheFileRequest()); - 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::Gauge.Messages.MessagesReflection.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 CacheFileRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CacheFileRequest(CacheFileRequest other) : this() { - content_ = other.content_; - filePath_ = other.filePath_; - isClosed_ = other.isClosed_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CacheFileRequest Clone() { - return new CacheFileRequest(this); - } - - /// Field number for the "content" field. - public const int ContentFieldNumber = 1; - private string content_ = ""; - /// - //// File content of the file to be cached - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Content { - get { return content_; } - set { - content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "filePath" field. - public const int FilePathFieldNumber = 2; - private string filePath_ = ""; - /// - //// File path of the file to be cached - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FilePath { - get { return filePath_; } - set { - filePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "isClosed" field. - public const int IsClosedFieldNumber = 3; - private bool isClosed_; - /// - //// Specifies if the file is closed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsClosed { - get { return isClosed_; } - set { - isClosed_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Gauge.Messages.CacheFileRequest.Types.FileStatus status_ = global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed; - /// - //// Specifies the status of the file - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.CacheFileRequest.Types.FileStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CacheFileRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CacheFileRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Content != other.Content) return false; - if (FilePath != other.FilePath) return false; - if (IsClosed != other.IsClosed) return false; - if (Status != other.Status) 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 (Content.Length != 0) hash ^= Content.GetHashCode(); - if (FilePath.Length != 0) hash ^= FilePath.GetHashCode(); - if (IsClosed != false) hash ^= IsClosed.GetHashCode(); - if (Status != global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed) hash ^= Status.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 (Content.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Content); - } - if (FilePath.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FilePath); - } - if (IsClosed != false) { - output.WriteRawTag(24); - output.WriteBool(IsClosed); - } - if (Status != global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - 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 (Content.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Content); - } - if (FilePath.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FilePath); - } - if (IsClosed != false) { - output.WriteRawTag(24); - output.WriteBool(IsClosed); - } - if (Status != global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - 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 (Content.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); - } - if (FilePath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePath); - } - if (IsClosed != false) { - size += 1 + 1; - } - if (Status != global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CacheFileRequest other) { - if (other == null) { - return; - } - if (other.Content.Length != 0) { - Content = other.Content; - } - if (other.FilePath.Length != 0) { - FilePath = other.FilePath; - } - if (other.IsClosed != false) { - IsClosed = other.IsClosed; - } - if (other.Status != global::Gauge.Messages.CacheFileRequest.Types.FileStatus.Changed) { - Status = other.Status; - } - _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: { - Content = input.ReadString(); - break; - } - case 18: { - FilePath = input.ReadString(); - break; - } - case 24: { - IsClosed = input.ReadBool(); - break; - } - case 32: { - Status = (global::Gauge.Messages.CacheFileRequest.Types.FileStatus) input.ReadEnum(); - 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: { - Content = input.ReadString(); - break; - } - case 18: { - FilePath = input.ReadString(); - break; - } - case 24: { - IsClosed = input.ReadBool(); - break; - } - case 32: { - Status = (global::Gauge.Messages.CacheFileRequest.Types.FileStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CacheFileRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum FileStatus { - /// - //// The file content was changed in the client - /// - [pbr::OriginalName("CHANGED")] Changed = 0, - /// - //// The file was closed in the client - /// - [pbr::OriginalName("CLOSED")] Closed = 1, - /// - //// The file was created on the client - /// - [pbr::OriginalName("CREATED")] Created = 2, - /// - //// The file was deleted on the client - /// - [pbr::OriginalName("DELETED")] Deleted = 3, - /// - //// The file is opened in the client - /// - [pbr::OriginalName("OPENED")] Opened = 4, - } - - } - #endregion - - } - - /// - //// Request for find step positions - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepPositionsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepPositionsRequest()); - 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::Gauge.Messages.MessagesReflection.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 StepPositionsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPositionsRequest(StepPositionsRequest other) : this() { - filePath_ = other.filePath_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPositionsRequest Clone() { - return new StepPositionsRequest(this); - } - - /// Field number for the "filePath" field. - public const int FilePathFieldNumber = 1; - private string filePath_ = ""; - /// - //// Get step positions for file path - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FilePath { - get { return filePath_; } - set { - filePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepPositionsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepPositionsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FilePath != other.FilePath) 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 (FilePath.Length != 0) hash ^= FilePath.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 (FilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FilePath); - } - 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 (FilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FilePath); - } - 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 (FilePath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePath); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepPositionsRequest other) { - if (other == null) { - return; - } - if (other.FilePath.Length != 0) { - FilePath = other.FilePath; - } - _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: { - FilePath = 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: { - FilePath = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Response for find step positions - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepPositionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepPositionsResponse()); - 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::Gauge.Messages.MessagesReflection.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 StepPositionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPositionsResponse(StepPositionsResponse other) : this() { - stepPositions_ = other.stepPositions_.Clone(); - error_ = other.error_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPositionsResponse Clone() { - return new StepPositionsResponse(this); - } - - /// Field number for the "stepPositions" field. - public const int StepPositionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_stepPositions_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.StepPositionsResponse.Types.StepPosition.Parser); - private readonly pbc::RepeatedField stepPositions_ = new pbc::RepeatedField(); - /// - //// Step Position - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField StepPositions { - get { return stepPositions_; } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 2; - private string error_ = ""; - /// - //// Error message - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepPositionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepPositionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!stepPositions_.Equals(other.stepPositions_)) return false; - 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; - hash ^= stepPositions_.GetHashCode(); - if (Error.Length != 0) 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 - stepPositions_.WriteTo(output, _repeated_stepPositions_codec); - if (Error.Length != 0) { - output.WriteRawTag(18); - 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) { - stepPositions_.WriteTo(ref output, _repeated_stepPositions_codec); - if (Error.Length != 0) { - output.WriteRawTag(18); - 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; - size += stepPositions_.CalculateSize(_repeated_stepPositions_codec); - if (Error.Length != 0) { - 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(StepPositionsResponse other) { - if (other == null) { - return; - } - stepPositions_.Add(other.stepPositions_); - if (other.Error.Length != 0) { - 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: { - stepPositions_.AddEntriesFrom(input, _repeated_stepPositions_codec); - break; - } - case 18: { - 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: { - stepPositions_.AddEntriesFrom(ref input, _repeated_stepPositions_codec); - break; - } - case 18: { - Error = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the StepPositionsResponse message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - //// Step position for each step implementation - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StepPosition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StepPosition()); - 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::Gauge.Messages.StepPositionsResponse.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 StepPosition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPosition(StepPosition other) : this() { - stepValue_ = other.stepValue_; - span_ = other.span_ != null ? other.span_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StepPosition Clone() { - return new StepPosition(this); - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 1; - private string stepValue_ = ""; - /// - //// Step Value - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StepValue { - get { return stepValue_; } - set { - stepValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "span" field. - public const int SpanFieldNumber = 2; - private global::Gauge.Messages.Span span_; - /// - //// Range of step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Span Span { - get { return span_; } - set { - span_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StepPosition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StepPosition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StepValue != other.StepValue) return false; - if (!object.Equals(Span, other.Span)) 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 (StepValue.Length != 0) hash ^= StepValue.GetHashCode(); - if (span_ != null) hash ^= Span.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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - if (span_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Span); - } - 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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - if (span_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Span); - } - 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 (StepValue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StepValue); - } - if (span_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Span); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StepPosition other) { - if (other == null) { - return; - } - if (other.StepValue.Length != 0) { - StepValue = other.StepValue; - } - if (other.span_ != null) { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - Span.MergeFrom(other.Span); - } - _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: { - StepValue = input.ReadString(); - break; - } - case 18: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - 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: { - StepValue = input.ReadString(); - break; - } - case 18: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - //// Request for getting Implementation file glob pattern - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ImplementationFileGlobPatternRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImplementationFileGlobPatternRequest()); - 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::Gauge.Messages.MessagesReflection.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 ImplementationFileGlobPatternRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileGlobPatternRequest(ImplementationFileGlobPatternRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileGlobPatternRequest Clone() { - return new ImplementationFileGlobPatternRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImplementationFileGlobPatternRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImplementationFileGlobPatternRequest 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(ImplementationFileGlobPatternRequest 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 - - } - - /// - //// Response for getting Implementation file glob pattern - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ImplementationFileGlobPatternResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImplementationFileGlobPatternResponse()); - 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::Gauge.Messages.MessagesReflection.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 ImplementationFileGlobPatternResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileGlobPatternResponse(ImplementationFileGlobPatternResponse other) : this() { - globPatterns_ = other.globPatterns_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileGlobPatternResponse Clone() { - return new ImplementationFileGlobPatternResponse(this); - } - - /// Field number for the "globPatterns" field. - public const int GlobPatternsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_globPatterns_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField globPatterns_ = new pbc::RepeatedField(); - /// - //// List of implementation file glob patterns - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GlobPatterns { - get { return globPatterns_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImplementationFileGlobPatternResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImplementationFileGlobPatternResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!globPatterns_.Equals(other.globPatterns_)) 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 ^= globPatterns_.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 - globPatterns_.WriteTo(output, _repeated_globPatterns_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) { - globPatterns_.WriteTo(ref output, _repeated_globPatterns_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 += globPatterns_.CalculateSize(_repeated_globPatterns_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImplementationFileGlobPatternResponse other) { - if (other == null) { - return; - } - globPatterns_.Add(other.globPatterns_); - _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: { - globPatterns_.AddEntriesFrom(input, _repeated_globPatterns_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: { - globPatterns_.AddEntriesFrom(ref input, _repeated_globPatterns_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request for getting Implementation file list - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ImplementationFileListRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImplementationFileListRequest()); - 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::Gauge.Messages.MessagesReflection.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 ImplementationFileListRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileListRequest(ImplementationFileListRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileListRequest Clone() { - return new ImplementationFileListRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImplementationFileListRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImplementationFileListRequest 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(ImplementationFileListRequest 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 - - } - - /// - //// Response for getting Implementation file list - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ImplementationFileListResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImplementationFileListResponse()); - 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::Gauge.Messages.MessagesReflection.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 ImplementationFileListResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileListResponse(ImplementationFileListResponse other) : this() { - implementationFilePaths_ = other.implementationFilePaths_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImplementationFileListResponse Clone() { - return new ImplementationFileListResponse(this); - } - - /// Field number for the "implementationFilePaths" field. - public const int ImplementationFilePathsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_implementationFilePaths_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField implementationFilePaths_ = new pbc::RepeatedField(); - /// - //// List of implementation files - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ImplementationFilePaths { - get { return implementationFilePaths_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImplementationFileListResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImplementationFileListResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!implementationFilePaths_.Equals(other.implementationFilePaths_)) 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 ^= implementationFilePaths_.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 - implementationFilePaths_.WriteTo(output, _repeated_implementationFilePaths_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) { - implementationFilePaths_.WriteTo(ref output, _repeated_implementationFilePaths_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 += implementationFilePaths_.CalculateSize(_repeated_implementationFilePaths_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImplementationFileListResponse other) { - if (other == null) { - return; - } - implementationFilePaths_.Add(other.implementationFilePaths_); - _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: { - implementationFilePaths_.AddEntriesFrom(input, _repeated_implementationFilePaths_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: { - implementationFilePaths_.AddEntriesFrom(ref input, _repeated_implementationFilePaths_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Request for injecting code snippet into implementation file - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class StubImplementationCodeRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubImplementationCodeRequest()); - 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::Gauge.Messages.MessagesReflection.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 StubImplementationCodeRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StubImplementationCodeRequest(StubImplementationCodeRequest other) : this() { - implementationFilePath_ = other.implementationFilePath_; - codes_ = other.codes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StubImplementationCodeRequest Clone() { - return new StubImplementationCodeRequest(this); - } - - /// Field number for the "implementationFilePath" field. - public const int ImplementationFilePathFieldNumber = 1; - private string implementationFilePath_ = ""; - /// - //// Path of the file where the new stub implementation will be added - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImplementationFilePath { - get { return implementationFilePath_; } - set { - implementationFilePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "codes" field. - public const int CodesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_codes_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); - /// - //// List of implementation codes to be appended to implementation file. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Codes { - get { return codes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StubImplementationCodeRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StubImplementationCodeRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ImplementationFilePath != other.ImplementationFilePath) return false; - if(!codes_.Equals(other.codes_)) 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 (ImplementationFilePath.Length != 0) hash ^= ImplementationFilePath.GetHashCode(); - hash ^= codes_.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 (ImplementationFilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ImplementationFilePath); - } - codes_.WriteTo(output, _repeated_codes_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 (ImplementationFilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ImplementationFilePath); - } - codes_.WriteTo(ref output, _repeated_codes_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 (ImplementationFilePath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImplementationFilePath); - } - size += codes_.CalculateSize(_repeated_codes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StubImplementationCodeRequest other) { - if (other == null) { - return; - } - if (other.ImplementationFilePath.Length != 0) { - ImplementationFilePath = other.ImplementationFilePath; - } - codes_.Add(other.codes_); - _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: { - ImplementationFilePath = input.ReadString(); - break; - } - case 18: { - codes_.AddEntriesFrom(input, _repeated_codes_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: { - ImplementationFilePath = input.ReadString(); - break; - } - case 18: { - codes_.AddEntriesFrom(ref input, _repeated_codes_codec); - break; - } - } - } - } - #endif - - } - - /// - //// A Single Replace Diff Element to be applied - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class TextDiff : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextDiff()); - 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::Gauge.Messages.MessagesReflection.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 TextDiff() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextDiff(TextDiff other) : this() { - span_ = other.span_ != null ? other.span_.Clone() : null; - content_ = other.content_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextDiff Clone() { - return new TextDiff(this); - } - - /// Field number for the "span" field. - public const int SpanFieldNumber = 1; - private global::Gauge.Messages.Span span_; - /// - //// Range of file to be replaced - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Span Span { - get { return span_; } - set { - span_ = value; - } - } - - /// Field number for the "content" field. - public const int ContentFieldNumber = 2; - private string content_ = ""; - /// - //// New content to replace the content in the span - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Content { - get { return content_; } - set { - content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TextDiff); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TextDiff other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Span, other.Span)) return false; - if (Content != other.Content) 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 (span_ != null) hash ^= Span.GetHashCode(); - if (Content.Length != 0) hash ^= Content.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 (span_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Span); - } - if (Content.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Content); - } - 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 (span_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Span); - } - if (Content.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Content); - } - 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 (span_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Span); - } - if (Content.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TextDiff other) { - if (other == null) { - return; - } - if (other.span_ != null) { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - Span.MergeFrom(other.Span); - } - if (other.Content.Length != 0) { - Content = other.Content; - } - _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 (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 18: { - Content = 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: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 18: { - Content = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// Diffs to be applied to a file - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FileDiff : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileDiff()); - 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::Gauge.Messages.MessagesReflection.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 FileDiff() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FileDiff(FileDiff other) : this() { - filePath_ = other.filePath_; - textDiffs_ = other.textDiffs_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FileDiff Clone() { - return new FileDiff(this); - } - - /// Field number for the "filePath" field. - public const int FilePathFieldNumber = 1; - private string filePath_ = ""; - /// - //// File Path where the new content needs to be put in - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FilePath { - get { return filePath_; } - set { - filePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "textDiffs" field. - public const int TextDiffsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_textDiffs_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.TextDiff.Parser); - private readonly pbc::RepeatedField textDiffs_ = new pbc::RepeatedField(); - /// - //// The diffs which need to be applied to this file - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TextDiffs { - get { return textDiffs_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FileDiff); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FileDiff other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FilePath != other.FilePath) return false; - if(!textDiffs_.Equals(other.textDiffs_)) 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 (FilePath.Length != 0) hash ^= FilePath.GetHashCode(); - hash ^= textDiffs_.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 (FilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FilePath); - } - textDiffs_.WriteTo(output, _repeated_textDiffs_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 (FilePath.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FilePath); - } - textDiffs_.WriteTo(ref output, _repeated_textDiffs_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 (FilePath.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePath); - } - size += textDiffs_.CalculateSize(_repeated_textDiffs_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FileDiff other) { - if (other == null) { - return; - } - if (other.FilePath.Length != 0) { - FilePath = other.FilePath; - } - textDiffs_.Add(other.textDiffs_); - _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: { - FilePath = input.ReadString(); - break; - } - case 18: { - textDiffs_.AddEntriesFrom(input, _repeated_textDiffs_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: { - FilePath = input.ReadString(); - break; - } - case 18: { - textDiffs_.AddEntriesFrom(ref input, _repeated_textDiffs_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Tell gauge to reset the kill timer, thus extending the life - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class KeepAlive : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeepAlive()); - 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::Gauge.Messages.MessagesReflection.Descriptor.MessageTypes[45]; } - } - - [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 KeepAlive() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeepAlive(KeepAlive other) : this() { - pluginId_ = other.pluginId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeepAlive Clone() { - return new KeepAlive(this); - } - - /// Field number for the "pluginId" field. - public const int PluginIdFieldNumber = 1; - private string pluginId_ = ""; - /// - //// ID of the plugin initiating this request - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PluginId { - get { return pluginId_; } - set { - pluginId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeepAlive); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeepAlive other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PluginId != other.PluginId) 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 (PluginId.Length != 0) hash ^= PluginId.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 (PluginId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PluginId); - } - 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 (PluginId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PluginId); - } - 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 (PluginId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeepAlive other) { - if (other == null) { - return; - } - if (other.PluginId.Length != 0) { - PluginId = other.PluginId; - } - _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: { - PluginId = 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: { - PluginId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SpecDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecDetails()); - 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::Gauge.Messages.MessagesReflection.Descriptor.MessageTypes[46]; } - } - - [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 SpecDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetails(SpecDetails other) : this() { - details_ = other.details_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetails Clone() { - return new SpecDetails(this); - } - - /// Field number for the "details" field. - public const int DetailsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_details_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.SpecDetails.Types.SpecDetail.Parser); - private readonly pbc::RepeatedField details_ = new pbc::RepeatedField(); - /// - //// Holds a collection of Spec details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Details { - get { return details_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!details_.Equals(other.details_)) 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 ^= details_.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 - details_.WriteTo(output, _repeated_details_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) { - details_.WriteTo(ref output, _repeated_details_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 += details_.CalculateSize(_repeated_details_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecDetails other) { - if (other == null) { - return; - } - details_.Add(other.details_); - _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: { - details_.AddEntriesFrom(input, _repeated_details_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: { - details_.AddEntriesFrom(ref input, _repeated_details_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SpecDetails 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 SpecDetail : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecDetail()); - 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::Gauge.Messages.SpecDetails.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 SpecDetail() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetail(SpecDetail other) : this() { - spec_ = other.spec_ != null ? other.spec_.Clone() : null; - parseErrors_ = other.parseErrors_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecDetail Clone() { - return new SpecDetail(this); - } - - /// Field number for the "spec" field. - public const int SpecFieldNumber = 1; - private global::Gauge.Messages.ProtoSpec spec_; - /// - //// Holds a collection of Specs that are defined in the project. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSpec Spec { - get { return spec_; } - set { - spec_ = value; - } - } - - /// Field number for the "parseErrors" field. - public const int ParseErrorsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_parseErrors_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.Error.Parser); - private readonly pbc::RepeatedField parseErrors_ = new pbc::RepeatedField(); - /// - //// Holds a collection of parse errors present in the above spec. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParseErrors { - get { return parseErrors_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SpecDetail); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecDetail other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Spec, other.Spec)) return false; - if(!parseErrors_.Equals(other.parseErrors_)) 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 (spec_ != null) hash ^= Spec.GetHashCode(); - hash ^= parseErrors_.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 (spec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Spec); - } - parseErrors_.WriteTo(output, _repeated_parseErrors_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 (spec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Spec); - } - parseErrors_.WriteTo(ref output, _repeated_parseErrors_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 (spec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); - } - size += parseErrors_.CalculateSize(_repeated_parseErrors_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecDetail other) { - if (other == null) { - return; - } - if (other.spec_ != null) { - if (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - Spec.MergeFrom(other.Spec); - } - parseErrors_.Add(other.parseErrors_); - _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 (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(Spec); - break; - } - case 18: { - parseErrors_.AddEntriesFrom(input, _repeated_parseErrors_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: { - if (spec_ == null) { - Spec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(Spec); - break; - } - case 18: { - parseErrors_.AddEntriesFrom(ref input, _repeated_parseErrors_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Empty is a blank response, to be used when there is no return expected. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Empty : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Empty()); - 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::Gauge.Messages.MessagesReflection.Descriptor.MessageTypes[47]; } - } - - [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 Empty() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty(Empty other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Empty Clone() { - return new Empty(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Empty); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Empty 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(Empty 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 - - } - - /// - //// This is the message which gets transferred all the time - //// with proper message type set - //// One of the Request/Response fields will have value, depending on the MessageType set. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Message : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Message()); - 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::Gauge.Messages.MessagesReflection.Descriptor.MessageTypes[48]; } - } - - [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 Message() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Message(Message other) : this() { - messageType_ = other.messageType_; - messageId_ = other.messageId_; - executionStartingRequest_ = other.executionStartingRequest_ != null ? other.executionStartingRequest_.Clone() : null; - specExecutionStartingRequest_ = other.specExecutionStartingRequest_ != null ? other.specExecutionStartingRequest_.Clone() : null; - specExecutionEndingRequest_ = other.specExecutionEndingRequest_ != null ? other.specExecutionEndingRequest_.Clone() : null; - scenarioExecutionStartingRequest_ = other.scenarioExecutionStartingRequest_ != null ? other.scenarioExecutionStartingRequest_.Clone() : null; - scenarioExecutionEndingRequest_ = other.scenarioExecutionEndingRequest_ != null ? other.scenarioExecutionEndingRequest_.Clone() : null; - stepExecutionStartingRequest_ = other.stepExecutionStartingRequest_ != null ? other.stepExecutionStartingRequest_.Clone() : null; - stepExecutionEndingRequest_ = other.stepExecutionEndingRequest_ != null ? other.stepExecutionEndingRequest_.Clone() : null; - executeStepRequest_ = other.executeStepRequest_ != null ? other.executeStepRequest_.Clone() : null; - executionEndingRequest_ = other.executionEndingRequest_ != null ? other.executionEndingRequest_.Clone() : null; - stepValidateRequest_ = other.stepValidateRequest_ != null ? other.stepValidateRequest_.Clone() : null; - stepValidateResponse_ = other.stepValidateResponse_ != null ? other.stepValidateResponse_.Clone() : null; - executionStatusResponse_ = other.executionStatusResponse_ != null ? other.executionStatusResponse_.Clone() : null; - stepNamesRequest_ = other.stepNamesRequest_ != null ? other.stepNamesRequest_.Clone() : null; - stepNamesResponse_ = other.stepNamesResponse_ != null ? other.stepNamesResponse_.Clone() : null; - suiteExecutionResult_ = other.suiteExecutionResult_ != null ? other.suiteExecutionResult_.Clone() : null; - killProcessRequest_ = other.killProcessRequest_ != null ? other.killProcessRequest_.Clone() : null; - scenarioDataStoreInitRequest_ = other.scenarioDataStoreInitRequest_ != null ? other.scenarioDataStoreInitRequest_.Clone() : null; - specDataStoreInitRequest_ = other.specDataStoreInitRequest_ != null ? other.specDataStoreInitRequest_.Clone() : null; - suiteDataStoreInitRequest_ = other.suiteDataStoreInitRequest_ != null ? other.suiteDataStoreInitRequest_.Clone() : null; - stepNameRequest_ = other.stepNameRequest_ != null ? other.stepNameRequest_.Clone() : null; - stepNameResponse_ = other.stepNameResponse_ != null ? other.stepNameResponse_.Clone() : null; - refactorRequest_ = other.refactorRequest_ != null ? other.refactorRequest_.Clone() : null; - refactorResponse_ = other.refactorResponse_ != null ? other.refactorResponse_.Clone() : null; - unsupportedMessageResponse_ = other.unsupportedMessageResponse_ != null ? other.unsupportedMessageResponse_.Clone() : null; - cacheFileRequest_ = other.cacheFileRequest_ != null ? other.cacheFileRequest_.Clone() : null; - stepPositionsRequest_ = other.stepPositionsRequest_ != null ? other.stepPositionsRequest_.Clone() : null; - stepPositionsResponse_ = other.stepPositionsResponse_ != null ? other.stepPositionsResponse_.Clone() : null; - implementationFileListRequest_ = other.implementationFileListRequest_ != null ? other.implementationFileListRequest_.Clone() : null; - implementationFileListResponse_ = other.implementationFileListResponse_ != null ? other.implementationFileListResponse_.Clone() : null; - stubImplementationCodeRequest_ = other.stubImplementationCodeRequest_ != null ? other.stubImplementationCodeRequest_.Clone() : null; - fileDiff_ = other.fileDiff_ != null ? other.fileDiff_.Clone() : null; - implementationFileGlobPatternRequest_ = other.implementationFileGlobPatternRequest_ != null ? other.implementationFileGlobPatternRequest_.Clone() : null; - implementationFileGlobPatternResponse_ = other.implementationFileGlobPatternResponse_ != null ? other.implementationFileGlobPatternResponse_.Clone() : null; - suiteExecutionResultItem_ = other.suiteExecutionResultItem_ != null ? other.suiteExecutionResultItem_.Clone() : null; - keepAlive_ = other.keepAlive_ != null ? other.keepAlive_.Clone() : null; - conceptExecutionStartingRequest_ = other.conceptExecutionStartingRequest_ != null ? other.conceptExecutionStartingRequest_.Clone() : null; - conceptExecutionEndingRequest_ = other.conceptExecutionEndingRequest_ != null ? other.conceptExecutionEndingRequest_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Message Clone() { - return new Message(this); - } - - /// Field number for the "messageType" field. - public const int MessageTypeFieldNumber = 1; - private global::Gauge.Messages.Message.Types.MessageType messageType_ = global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Message.Types.MessageType MessageType { - get { return messageType_; } - set { - messageType_ = value; - } - } - - /// Field number for the "messageId" field. - public const int MessageIdFieldNumber = 2; - private long messageId_; - /// - //// A unique id to represent this message. A response to the message should copy over this value. - //// This is used to synchronize messages & responses - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MessageId { - get { return messageId_; } - set { - messageId_ = value; - } - } - - /// Field number for the "executionStartingRequest" field. - public const int ExecutionStartingRequestFieldNumber = 3; - private global::Gauge.Messages.ExecutionStartingRequest executionStartingRequest_; - /// - //// [ExecutionStartingRequest](#gauge.messages.ExecutionStartingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionStartingRequest ExecutionStartingRequest { - get { return executionStartingRequest_; } - set { - executionStartingRequest_ = value; - } - } - - /// Field number for the "specExecutionStartingRequest" field. - public const int SpecExecutionStartingRequestFieldNumber = 4; - private global::Gauge.Messages.SpecExecutionStartingRequest specExecutionStartingRequest_; - /// - //// [SpecExecutionStartingRequest](#gauge.messages.SpecExecutionStartingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecExecutionStartingRequest SpecExecutionStartingRequest { - get { return specExecutionStartingRequest_; } - set { - specExecutionStartingRequest_ = value; - } - } - - /// Field number for the "specExecutionEndingRequest" field. - public const int SpecExecutionEndingRequestFieldNumber = 5; - private global::Gauge.Messages.SpecExecutionEndingRequest specExecutionEndingRequest_; - /// - //// [SpecExecutionEndingRequest](#gauge.messages.SpecExecutionEndingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecExecutionEndingRequest SpecExecutionEndingRequest { - get { return specExecutionEndingRequest_; } - set { - specExecutionEndingRequest_ = value; - } - } - - /// Field number for the "scenarioExecutionStartingRequest" field. - public const int ScenarioExecutionStartingRequestFieldNumber = 6; - private global::Gauge.Messages.ScenarioExecutionStartingRequest scenarioExecutionStartingRequest_; - /// - //// [ScenarioExecutionStartingRequest](#gauge.messages.ScenarioExecutionStartingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ScenarioExecutionStartingRequest ScenarioExecutionStartingRequest { - get { return scenarioExecutionStartingRequest_; } - set { - scenarioExecutionStartingRequest_ = value; - } - } - - /// Field number for the "scenarioExecutionEndingRequest" field. - public const int ScenarioExecutionEndingRequestFieldNumber = 7; - private global::Gauge.Messages.ScenarioExecutionEndingRequest scenarioExecutionEndingRequest_; - /// - //// [ScenarioExecutionEndingRequest](#gauge.messages.ScenarioExecutionEndingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ScenarioExecutionEndingRequest ScenarioExecutionEndingRequest { - get { return scenarioExecutionEndingRequest_; } - set { - scenarioExecutionEndingRequest_ = value; - } - } - - /// Field number for the "stepExecutionStartingRequest" field. - public const int StepExecutionStartingRequestFieldNumber = 8; - private global::Gauge.Messages.StepExecutionStartingRequest stepExecutionStartingRequest_; - /// - //// [StepExecutionStartingRequest](#gauge.messages.StepExecutionStartingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepExecutionStartingRequest StepExecutionStartingRequest { - get { return stepExecutionStartingRequest_; } - set { - stepExecutionStartingRequest_ = value; - } - } - - /// Field number for the "stepExecutionEndingRequest" field. - public const int StepExecutionEndingRequestFieldNumber = 9; - private global::Gauge.Messages.StepExecutionEndingRequest stepExecutionEndingRequest_; - /// - //// [StepExecutionEndingRequest](#gauge.messages.StepExecutionEndingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepExecutionEndingRequest StepExecutionEndingRequest { - get { return stepExecutionEndingRequest_; } - set { - stepExecutionEndingRequest_ = value; - } - } - - /// Field number for the "executeStepRequest" field. - public const int ExecuteStepRequestFieldNumber = 10; - private global::Gauge.Messages.ExecuteStepRequest executeStepRequest_; - /// - //// [ExecuteStepRequest](#gauge.messages.ExecuteStepRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecuteStepRequest ExecuteStepRequest { - get { return executeStepRequest_; } - set { - executeStepRequest_ = value; - } - } - - /// Field number for the "executionEndingRequest" field. - public const int ExecutionEndingRequestFieldNumber = 11; - private global::Gauge.Messages.ExecutionEndingRequest executionEndingRequest_; - /// - //// [ExecutionEndingRequest](#gauge.messages.ExecutionEndingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionEndingRequest ExecutionEndingRequest { - get { return executionEndingRequest_; } - set { - executionEndingRequest_ = value; - } - } - - /// Field number for the "stepValidateRequest" field. - public const int StepValidateRequestFieldNumber = 12; - private global::Gauge.Messages.StepValidateRequest stepValidateRequest_; - /// - //// [StepValidateRequest](#gauge.messages.StepValidateRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepValidateRequest StepValidateRequest { - get { return stepValidateRequest_; } - set { - stepValidateRequest_ = value; - } - } - - /// Field number for the "stepValidateResponse" field. - public const int StepValidateResponseFieldNumber = 13; - private global::Gauge.Messages.StepValidateResponse stepValidateResponse_; - /// - //// [StepValidateResponse](#gauge.messages.StepValidateResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepValidateResponse StepValidateResponse { - get { return stepValidateResponse_; } - set { - stepValidateResponse_ = value; - } - } - - /// Field number for the "executionStatusResponse" field. - public const int ExecutionStatusResponseFieldNumber = 14; - private global::Gauge.Messages.ExecutionStatusResponse executionStatusResponse_; - /// - //// [ExecutionStatusResponse](#gauge.messages.ExecutionStatusResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionStatusResponse ExecutionStatusResponse { - get { return executionStatusResponse_; } - set { - executionStatusResponse_ = value; - } - } - - /// Field number for the "stepNamesRequest" field. - public const int StepNamesRequestFieldNumber = 15; - private global::Gauge.Messages.StepNamesRequest stepNamesRequest_; - /// - //// [StepNamesRequest](#gauge.messages.StepNamesRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepNamesRequest StepNamesRequest { - get { return stepNamesRequest_; } - set { - stepNamesRequest_ = value; - } - } - - /// Field number for the "stepNamesResponse" field. - public const int StepNamesResponseFieldNumber = 16; - private global::Gauge.Messages.StepNamesResponse stepNamesResponse_; - /// - //// [StepNamesResponse](#gauge.messages.StepNamesResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepNamesResponse StepNamesResponse { - get { return stepNamesResponse_; } - set { - stepNamesResponse_ = value; - } - } - - /// Field number for the "suiteExecutionResult" field. - public const int SuiteExecutionResultFieldNumber = 17; - private global::Gauge.Messages.SuiteExecutionResult suiteExecutionResult_; - /// - //// [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SuiteExecutionResult SuiteExecutionResult { - get { return suiteExecutionResult_; } - set { - suiteExecutionResult_ = value; - } - } - - /// Field number for the "killProcessRequest" field. - public const int KillProcessRequestFieldNumber = 18; - private global::Gauge.Messages.KillProcessRequest killProcessRequest_; - /// - //// [KillProcessRequest](#gauge.messages.KillProcessRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.KillProcessRequest KillProcessRequest { - get { return killProcessRequest_; } - set { - killProcessRequest_ = value; - } - } - - /// Field number for the "scenarioDataStoreInitRequest" field. - public const int ScenarioDataStoreInitRequestFieldNumber = 19; - private global::Gauge.Messages.ScenarioDataStoreInitRequest scenarioDataStoreInitRequest_; - /// - //// [ScenarioDataStoreInitRequest](#gauge.messages.ScenarioDataStoreInitRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ScenarioDataStoreInitRequest ScenarioDataStoreInitRequest { - get { return scenarioDataStoreInitRequest_; } - set { - scenarioDataStoreInitRequest_ = value; - } - } - - /// Field number for the "specDataStoreInitRequest" field. - public const int SpecDataStoreInitRequestFieldNumber = 20; - private global::Gauge.Messages.SpecDataStoreInitRequest specDataStoreInitRequest_; - /// - //// [SpecDataStoreInitRequest](#gauge.messages.SpecDataStoreInitRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SpecDataStoreInitRequest SpecDataStoreInitRequest { - get { return specDataStoreInitRequest_; } - set { - specDataStoreInitRequest_ = value; - } - } - - /// Field number for the "suiteDataStoreInitRequest" field. - public const int SuiteDataStoreInitRequestFieldNumber = 21; - private global::Gauge.Messages.SuiteDataStoreInitRequest suiteDataStoreInitRequest_; - /// - //// [SuiteDataStoreInitRequest](#gauge.messages.SuiteDataStoreInitRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SuiteDataStoreInitRequest SuiteDataStoreInitRequest { - get { return suiteDataStoreInitRequest_; } - set { - suiteDataStoreInitRequest_ = value; - } - } - - /// Field number for the "stepNameRequest" field. - public const int StepNameRequestFieldNumber = 22; - private global::Gauge.Messages.StepNameRequest stepNameRequest_; - /// - //// [StepNameRequest](#gauge.messages.StepNameRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepNameRequest StepNameRequest { - get { return stepNameRequest_; } - set { - stepNameRequest_ = value; - } - } - - /// Field number for the "stepNameResponse" field. - public const int StepNameResponseFieldNumber = 23; - private global::Gauge.Messages.StepNameResponse stepNameResponse_; - /// - //// [StepNameResponse](#gauge.messages.StepNameResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepNameResponse StepNameResponse { - get { return stepNameResponse_; } - set { - stepNameResponse_ = value; - } - } - - /// Field number for the "refactorRequest" field. - public const int RefactorRequestFieldNumber = 24; - private global::Gauge.Messages.RefactorRequest refactorRequest_; - /// - //// [RefactorRequest](#gauge.messages.RefactorRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.RefactorRequest RefactorRequest { - get { return refactorRequest_; } - set { - refactorRequest_ = value; - } - } - - /// Field number for the "refactorResponse" field. - public const int RefactorResponseFieldNumber = 25; - private global::Gauge.Messages.RefactorResponse refactorResponse_; - /// - //// [RefactorResponse](#gauge.messages.RefactorResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.RefactorResponse RefactorResponse { - get { return refactorResponse_; } - set { - refactorResponse_ = value; - } - } - - /// Field number for the "unsupportedMessageResponse" field. - public const int UnsupportedMessageResponseFieldNumber = 26; - private global::Gauge.Messages.UnsupportedMessageResponse unsupportedMessageResponse_; - /// - //// [UnsupportedMessageResponse](#gauge.messages.UnsupportedMessageResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.UnsupportedMessageResponse UnsupportedMessageResponse { - get { return unsupportedMessageResponse_; } - set { - unsupportedMessageResponse_ = value; - } - } - - /// Field number for the "cacheFileRequest" field. - public const int CacheFileRequestFieldNumber = 27; - private global::Gauge.Messages.CacheFileRequest cacheFileRequest_; - /// - //// [CacheFileRequest](#gauge.messages.CacheFileRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.CacheFileRequest CacheFileRequest { - get { return cacheFileRequest_; } - set { - cacheFileRequest_ = value; - } - } - - /// Field number for the "stepPositionsRequest" field. - public const int StepPositionsRequestFieldNumber = 28; - private global::Gauge.Messages.StepPositionsRequest stepPositionsRequest_; - /// - //// [StepPositionsRequest](#gauge.messages.StepPositionsRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepPositionsRequest StepPositionsRequest { - get { return stepPositionsRequest_; } - set { - stepPositionsRequest_ = value; - } - } - - /// Field number for the "stepPositionsResponse" field. - public const int StepPositionsResponseFieldNumber = 29; - private global::Gauge.Messages.StepPositionsResponse stepPositionsResponse_; - /// - //// [StepPositionsResponse](#gauge.messages.StepPositionsResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StepPositionsResponse StepPositionsResponse { - get { return stepPositionsResponse_; } - set { - stepPositionsResponse_ = value; - } - } - - /// Field number for the "implementationFileListRequest" field. - public const int ImplementationFileListRequestFieldNumber = 30; - private global::Gauge.Messages.ImplementationFileListRequest implementationFileListRequest_; - /// - //// [ImplementationFileListRequest](#gauge.messages.ImplementationFileListRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ImplementationFileListRequest ImplementationFileListRequest { - get { return implementationFileListRequest_; } - set { - implementationFileListRequest_ = value; - } - } - - /// Field number for the "implementationFileListResponse" field. - public const int ImplementationFileListResponseFieldNumber = 31; - private global::Gauge.Messages.ImplementationFileListResponse implementationFileListResponse_; - /// - //// [ImplementationFileListResponse](#gauge.messages.ImplementationFileListResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ImplementationFileListResponse ImplementationFileListResponse { - get { return implementationFileListResponse_; } - set { - implementationFileListResponse_ = value; - } - } - - /// Field number for the "stubImplementationCodeRequest" field. - public const int StubImplementationCodeRequestFieldNumber = 32; - private global::Gauge.Messages.StubImplementationCodeRequest stubImplementationCodeRequest_; - /// - //// [StubImplementationCodeRequest](#gauge.messages.StubImplementationCodeRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.StubImplementationCodeRequest StubImplementationCodeRequest { - get { return stubImplementationCodeRequest_; } - set { - stubImplementationCodeRequest_ = value; - } - } - - /// Field number for the "fileDiff" field. - public const int FileDiffFieldNumber = 33; - private global::Gauge.Messages.FileDiff fileDiff_; - /// - //// [FileDiff](#gauge.messages.FileDiff) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.FileDiff FileDiff { - get { return fileDiff_; } - set { - fileDiff_ = value; - } - } - - /// Field number for the "implementationFileGlobPatternRequest" field. - public const int ImplementationFileGlobPatternRequestFieldNumber = 34; - private global::Gauge.Messages.ImplementationFileGlobPatternRequest implementationFileGlobPatternRequest_; - /// - //// [ImplementationFileGlobPatternRequest](#gauge.messages.ImplementationFileGlobPatternRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ImplementationFileGlobPatternRequest ImplementationFileGlobPatternRequest { - get { return implementationFileGlobPatternRequest_; } - set { - implementationFileGlobPatternRequest_ = value; - } - } - - /// Field number for the "implementationFileGlobPatternResponse" field. - public const int ImplementationFileGlobPatternResponseFieldNumber = 35; - private global::Gauge.Messages.ImplementationFileGlobPatternResponse implementationFileGlobPatternResponse_; - /// - //// [ImplementationFileGlobPatternResponse](#gauge.messages.ImplementationFileGlobPatternResponse) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ImplementationFileGlobPatternResponse ImplementationFileGlobPatternResponse { - get { return implementationFileGlobPatternResponse_; } - set { - implementationFileGlobPatternResponse_ = value; - } - } - - /// Field number for the "suiteExecutionResultItem" field. - public const int SuiteExecutionResultItemFieldNumber = 36; - private global::Gauge.Messages.SuiteExecutionResultItem suiteExecutionResultItem_; - /// - //// [SuiteExecutionResult ](#gauge.messages.SuiteExecutionResult ) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.SuiteExecutionResultItem SuiteExecutionResultItem { - get { return suiteExecutionResultItem_; } - set { - suiteExecutionResultItem_ = value; - } - } - - /// Field number for the "keepAlive" field. - public const int KeepAliveFieldNumber = 37; - private global::Gauge.Messages.KeepAlive keepAlive_; - /// - //// [KeepAlive ](#gauge.messages.KeepAlive ) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.KeepAlive KeepAlive { - get { return keepAlive_; } - set { - keepAlive_ = value; - } - } - - /// Field number for the "conceptExecutionStartingRequest" field. - public const int ConceptExecutionStartingRequestFieldNumber = 38; - private global::Gauge.Messages.ConceptExecutionStartingRequest conceptExecutionStartingRequest_; - /// - //// [ConceptExecutionStartingRequest](#gauge.messages.ConceptExecutionStartingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ConceptExecutionStartingRequest ConceptExecutionStartingRequest { - get { return conceptExecutionStartingRequest_; } - set { - conceptExecutionStartingRequest_ = value; - } - } - - /// Field number for the "conceptExecutionEndingRequest" field. - public const int ConceptExecutionEndingRequestFieldNumber = 39; - private global::Gauge.Messages.ConceptExecutionEndingRequest conceptExecutionEndingRequest_; - /// - //// [ConceptExecutionEndingRequest](#gauge.messages.ConceptExecutionEndingRequest) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ConceptExecutionEndingRequest ConceptExecutionEndingRequest { - get { return conceptExecutionEndingRequest_; } - set { - conceptExecutionEndingRequest_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Message); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Message other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MessageType != other.MessageType) return false; - if (MessageId != other.MessageId) return false; - if (!object.Equals(ExecutionStartingRequest, other.ExecutionStartingRequest)) return false; - if (!object.Equals(SpecExecutionStartingRequest, other.SpecExecutionStartingRequest)) return false; - if (!object.Equals(SpecExecutionEndingRequest, other.SpecExecutionEndingRequest)) return false; - if (!object.Equals(ScenarioExecutionStartingRequest, other.ScenarioExecutionStartingRequest)) return false; - if (!object.Equals(ScenarioExecutionEndingRequest, other.ScenarioExecutionEndingRequest)) return false; - if (!object.Equals(StepExecutionStartingRequest, other.StepExecutionStartingRequest)) return false; - if (!object.Equals(StepExecutionEndingRequest, other.StepExecutionEndingRequest)) return false; - if (!object.Equals(ExecuteStepRequest, other.ExecuteStepRequest)) return false; - if (!object.Equals(ExecutionEndingRequest, other.ExecutionEndingRequest)) return false; - if (!object.Equals(StepValidateRequest, other.StepValidateRequest)) return false; - if (!object.Equals(StepValidateResponse, other.StepValidateResponse)) return false; - if (!object.Equals(ExecutionStatusResponse, other.ExecutionStatusResponse)) return false; - if (!object.Equals(StepNamesRequest, other.StepNamesRequest)) return false; - if (!object.Equals(StepNamesResponse, other.StepNamesResponse)) return false; - if (!object.Equals(SuiteExecutionResult, other.SuiteExecutionResult)) return false; - if (!object.Equals(KillProcessRequest, other.KillProcessRequest)) return false; - if (!object.Equals(ScenarioDataStoreInitRequest, other.ScenarioDataStoreInitRequest)) return false; - if (!object.Equals(SpecDataStoreInitRequest, other.SpecDataStoreInitRequest)) return false; - if (!object.Equals(SuiteDataStoreInitRequest, other.SuiteDataStoreInitRequest)) return false; - if (!object.Equals(StepNameRequest, other.StepNameRequest)) return false; - if (!object.Equals(StepNameResponse, other.StepNameResponse)) return false; - if (!object.Equals(RefactorRequest, other.RefactorRequest)) return false; - if (!object.Equals(RefactorResponse, other.RefactorResponse)) return false; - if (!object.Equals(UnsupportedMessageResponse, other.UnsupportedMessageResponse)) return false; - if (!object.Equals(CacheFileRequest, other.CacheFileRequest)) return false; - if (!object.Equals(StepPositionsRequest, other.StepPositionsRequest)) return false; - if (!object.Equals(StepPositionsResponse, other.StepPositionsResponse)) return false; - if (!object.Equals(ImplementationFileListRequest, other.ImplementationFileListRequest)) return false; - if (!object.Equals(ImplementationFileListResponse, other.ImplementationFileListResponse)) return false; - if (!object.Equals(StubImplementationCodeRequest, other.StubImplementationCodeRequest)) return false; - if (!object.Equals(FileDiff, other.FileDiff)) return false; - if (!object.Equals(ImplementationFileGlobPatternRequest, other.ImplementationFileGlobPatternRequest)) return false; - if (!object.Equals(ImplementationFileGlobPatternResponse, other.ImplementationFileGlobPatternResponse)) return false; - if (!object.Equals(SuiteExecutionResultItem, other.SuiteExecutionResultItem)) return false; - if (!object.Equals(KeepAlive, other.KeepAlive)) return false; - if (!object.Equals(ConceptExecutionStartingRequest, other.ConceptExecutionStartingRequest)) return false; - if (!object.Equals(ConceptExecutionEndingRequest, other.ConceptExecutionEndingRequest)) 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 (MessageType != global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting) hash ^= MessageType.GetHashCode(); - if (MessageId != 0L) hash ^= MessageId.GetHashCode(); - if (executionStartingRequest_ != null) hash ^= ExecutionStartingRequest.GetHashCode(); - if (specExecutionStartingRequest_ != null) hash ^= SpecExecutionStartingRequest.GetHashCode(); - if (specExecutionEndingRequest_ != null) hash ^= SpecExecutionEndingRequest.GetHashCode(); - if (scenarioExecutionStartingRequest_ != null) hash ^= ScenarioExecutionStartingRequest.GetHashCode(); - if (scenarioExecutionEndingRequest_ != null) hash ^= ScenarioExecutionEndingRequest.GetHashCode(); - if (stepExecutionStartingRequest_ != null) hash ^= StepExecutionStartingRequest.GetHashCode(); - if (stepExecutionEndingRequest_ != null) hash ^= StepExecutionEndingRequest.GetHashCode(); - if (executeStepRequest_ != null) hash ^= ExecuteStepRequest.GetHashCode(); - if (executionEndingRequest_ != null) hash ^= ExecutionEndingRequest.GetHashCode(); - if (stepValidateRequest_ != null) hash ^= StepValidateRequest.GetHashCode(); - if (stepValidateResponse_ != null) hash ^= StepValidateResponse.GetHashCode(); - if (executionStatusResponse_ != null) hash ^= ExecutionStatusResponse.GetHashCode(); - if (stepNamesRequest_ != null) hash ^= StepNamesRequest.GetHashCode(); - if (stepNamesResponse_ != null) hash ^= StepNamesResponse.GetHashCode(); - if (suiteExecutionResult_ != null) hash ^= SuiteExecutionResult.GetHashCode(); - if (killProcessRequest_ != null) hash ^= KillProcessRequest.GetHashCode(); - if (scenarioDataStoreInitRequest_ != null) hash ^= ScenarioDataStoreInitRequest.GetHashCode(); - if (specDataStoreInitRequest_ != null) hash ^= SpecDataStoreInitRequest.GetHashCode(); - if (suiteDataStoreInitRequest_ != null) hash ^= SuiteDataStoreInitRequest.GetHashCode(); - if (stepNameRequest_ != null) hash ^= StepNameRequest.GetHashCode(); - if (stepNameResponse_ != null) hash ^= StepNameResponse.GetHashCode(); - if (refactorRequest_ != null) hash ^= RefactorRequest.GetHashCode(); - if (refactorResponse_ != null) hash ^= RefactorResponse.GetHashCode(); - if (unsupportedMessageResponse_ != null) hash ^= UnsupportedMessageResponse.GetHashCode(); - if (cacheFileRequest_ != null) hash ^= CacheFileRequest.GetHashCode(); - if (stepPositionsRequest_ != null) hash ^= StepPositionsRequest.GetHashCode(); - if (stepPositionsResponse_ != null) hash ^= StepPositionsResponse.GetHashCode(); - if (implementationFileListRequest_ != null) hash ^= ImplementationFileListRequest.GetHashCode(); - if (implementationFileListResponse_ != null) hash ^= ImplementationFileListResponse.GetHashCode(); - if (stubImplementationCodeRequest_ != null) hash ^= StubImplementationCodeRequest.GetHashCode(); - if (fileDiff_ != null) hash ^= FileDiff.GetHashCode(); - if (implementationFileGlobPatternRequest_ != null) hash ^= ImplementationFileGlobPatternRequest.GetHashCode(); - if (implementationFileGlobPatternResponse_ != null) hash ^= ImplementationFileGlobPatternResponse.GetHashCode(); - if (suiteExecutionResultItem_ != null) hash ^= SuiteExecutionResultItem.GetHashCode(); - if (keepAlive_ != null) hash ^= KeepAlive.GetHashCode(); - if (conceptExecutionStartingRequest_ != null) hash ^= ConceptExecutionStartingRequest.GetHashCode(); - if (conceptExecutionEndingRequest_ != null) hash ^= ConceptExecutionEndingRequest.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 (MessageType != global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting) { - output.WriteRawTag(8); - output.WriteEnum((int) MessageType); - } - if (MessageId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(MessageId); - } - if (executionStartingRequest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ExecutionStartingRequest); - } - if (specExecutionStartingRequest_ != null) { - output.WriteRawTag(34); - output.WriteMessage(SpecExecutionStartingRequest); - } - if (specExecutionEndingRequest_ != null) { - output.WriteRawTag(42); - output.WriteMessage(SpecExecutionEndingRequest); - } - if (scenarioExecutionStartingRequest_ != null) { - output.WriteRawTag(50); - output.WriteMessage(ScenarioExecutionStartingRequest); - } - if (scenarioExecutionEndingRequest_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScenarioExecutionEndingRequest); - } - if (stepExecutionStartingRequest_ != null) { - output.WriteRawTag(66); - output.WriteMessage(StepExecutionStartingRequest); - } - if (stepExecutionEndingRequest_ != null) { - output.WriteRawTag(74); - output.WriteMessage(StepExecutionEndingRequest); - } - if (executeStepRequest_ != null) { - output.WriteRawTag(82); - output.WriteMessage(ExecuteStepRequest); - } - if (executionEndingRequest_ != null) { - output.WriteRawTag(90); - output.WriteMessage(ExecutionEndingRequest); - } - if (stepValidateRequest_ != null) { - output.WriteRawTag(98); - output.WriteMessage(StepValidateRequest); - } - if (stepValidateResponse_ != null) { - output.WriteRawTag(106); - output.WriteMessage(StepValidateResponse); - } - if (executionStatusResponse_ != null) { - output.WriteRawTag(114); - output.WriteMessage(ExecutionStatusResponse); - } - if (stepNamesRequest_ != null) { - output.WriteRawTag(122); - output.WriteMessage(StepNamesRequest); - } - if (stepNamesResponse_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(StepNamesResponse); - } - if (suiteExecutionResult_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(SuiteExecutionResult); - } - if (killProcessRequest_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(KillProcessRequest); - } - if (scenarioDataStoreInitRequest_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(ScenarioDataStoreInitRequest); - } - if (specDataStoreInitRequest_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(SpecDataStoreInitRequest); - } - if (suiteDataStoreInitRequest_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(SuiteDataStoreInitRequest); - } - if (stepNameRequest_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(StepNameRequest); - } - if (stepNameResponse_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(StepNameResponse); - } - if (refactorRequest_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(RefactorRequest); - } - if (refactorResponse_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(RefactorResponse); - } - if (unsupportedMessageResponse_ != null) { - output.WriteRawTag(210, 1); - output.WriteMessage(UnsupportedMessageResponse); - } - if (cacheFileRequest_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(CacheFileRequest); - } - if (stepPositionsRequest_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(StepPositionsRequest); - } - if (stepPositionsResponse_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(StepPositionsResponse); - } - if (implementationFileListRequest_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(ImplementationFileListRequest); - } - if (implementationFileListResponse_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(ImplementationFileListResponse); - } - if (stubImplementationCodeRequest_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(StubImplementationCodeRequest); - } - if (fileDiff_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(FileDiff); - } - if (implementationFileGlobPatternRequest_ != null) { - output.WriteRawTag(146, 2); - output.WriteMessage(ImplementationFileGlobPatternRequest); - } - if (implementationFileGlobPatternResponse_ != null) { - output.WriteRawTag(154, 2); - output.WriteMessage(ImplementationFileGlobPatternResponse); - } - if (suiteExecutionResultItem_ != null) { - output.WriteRawTag(162, 2); - output.WriteMessage(SuiteExecutionResultItem); - } - if (keepAlive_ != null) { - output.WriteRawTag(170, 2); - output.WriteMessage(KeepAlive); - } - if (conceptExecutionStartingRequest_ != null) { - output.WriteRawTag(178, 2); - output.WriteMessage(ConceptExecutionStartingRequest); - } - if (conceptExecutionEndingRequest_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(ConceptExecutionEndingRequest); - } - 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 (MessageType != global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting) { - output.WriteRawTag(8); - output.WriteEnum((int) MessageType); - } - if (MessageId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(MessageId); - } - if (executionStartingRequest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ExecutionStartingRequest); - } - if (specExecutionStartingRequest_ != null) { - output.WriteRawTag(34); - output.WriteMessage(SpecExecutionStartingRequest); - } - if (specExecutionEndingRequest_ != null) { - output.WriteRawTag(42); - output.WriteMessage(SpecExecutionEndingRequest); - } - if (scenarioExecutionStartingRequest_ != null) { - output.WriteRawTag(50); - output.WriteMessage(ScenarioExecutionStartingRequest); - } - if (scenarioExecutionEndingRequest_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScenarioExecutionEndingRequest); - } - if (stepExecutionStartingRequest_ != null) { - output.WriteRawTag(66); - output.WriteMessage(StepExecutionStartingRequest); - } - if (stepExecutionEndingRequest_ != null) { - output.WriteRawTag(74); - output.WriteMessage(StepExecutionEndingRequest); - } - if (executeStepRequest_ != null) { - output.WriteRawTag(82); - output.WriteMessage(ExecuteStepRequest); - } - if (executionEndingRequest_ != null) { - output.WriteRawTag(90); - output.WriteMessage(ExecutionEndingRequest); - } - if (stepValidateRequest_ != null) { - output.WriteRawTag(98); - output.WriteMessage(StepValidateRequest); - } - if (stepValidateResponse_ != null) { - output.WriteRawTag(106); - output.WriteMessage(StepValidateResponse); - } - if (executionStatusResponse_ != null) { - output.WriteRawTag(114); - output.WriteMessage(ExecutionStatusResponse); - } - if (stepNamesRequest_ != null) { - output.WriteRawTag(122); - output.WriteMessage(StepNamesRequest); - } - if (stepNamesResponse_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(StepNamesResponse); - } - if (suiteExecutionResult_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(SuiteExecutionResult); - } - if (killProcessRequest_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(KillProcessRequest); - } - if (scenarioDataStoreInitRequest_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(ScenarioDataStoreInitRequest); - } - if (specDataStoreInitRequest_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(SpecDataStoreInitRequest); - } - if (suiteDataStoreInitRequest_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(SuiteDataStoreInitRequest); - } - if (stepNameRequest_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(StepNameRequest); - } - if (stepNameResponse_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(StepNameResponse); - } - if (refactorRequest_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(RefactorRequest); - } - if (refactorResponse_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(RefactorResponse); - } - if (unsupportedMessageResponse_ != null) { - output.WriteRawTag(210, 1); - output.WriteMessage(UnsupportedMessageResponse); - } - if (cacheFileRequest_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(CacheFileRequest); - } - if (stepPositionsRequest_ != null) { - output.WriteRawTag(226, 1); - output.WriteMessage(StepPositionsRequest); - } - if (stepPositionsResponse_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(StepPositionsResponse); - } - if (implementationFileListRequest_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(ImplementationFileListRequest); - } - if (implementationFileListResponse_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(ImplementationFileListResponse); - } - if (stubImplementationCodeRequest_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(StubImplementationCodeRequest); - } - if (fileDiff_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(FileDiff); - } - if (implementationFileGlobPatternRequest_ != null) { - output.WriteRawTag(146, 2); - output.WriteMessage(ImplementationFileGlobPatternRequest); - } - if (implementationFileGlobPatternResponse_ != null) { - output.WriteRawTag(154, 2); - output.WriteMessage(ImplementationFileGlobPatternResponse); - } - if (suiteExecutionResultItem_ != null) { - output.WriteRawTag(162, 2); - output.WriteMessage(SuiteExecutionResultItem); - } - if (keepAlive_ != null) { - output.WriteRawTag(170, 2); - output.WriteMessage(KeepAlive); - } - if (conceptExecutionStartingRequest_ != null) { - output.WriteRawTag(178, 2); - output.WriteMessage(ConceptExecutionStartingRequest); - } - if (conceptExecutionEndingRequest_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(ConceptExecutionEndingRequest); - } - 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 (MessageType != global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageType); - } - if (MessageId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MessageId); - } - if (executionStartingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionStartingRequest); - } - if (specExecutionStartingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecExecutionStartingRequest); - } - if (specExecutionEndingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecExecutionEndingRequest); - } - if (scenarioExecutionStartingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioExecutionStartingRequest); - } - if (scenarioExecutionEndingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioExecutionEndingRequest); - } - if (stepExecutionStartingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepExecutionStartingRequest); - } - if (stepExecutionEndingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepExecutionEndingRequest); - } - if (executeStepRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecuteStepRequest); - } - if (executionEndingRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionEndingRequest); - } - if (stepValidateRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValidateRequest); - } - if (stepValidateResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepValidateResponse); - } - if (executionStatusResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionStatusResponse); - } - if (stepNamesRequest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepNamesRequest); - } - if (stepNamesResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StepNamesResponse); - } - if (suiteExecutionResult_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SuiteExecutionResult); - } - if (killProcessRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KillProcessRequest); - } - if (scenarioDataStoreInitRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ScenarioDataStoreInitRequest); - } - if (specDataStoreInitRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SpecDataStoreInitRequest); - } - if (suiteDataStoreInitRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SuiteDataStoreInitRequest); - } - if (stepNameRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StepNameRequest); - } - if (stepNameResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StepNameResponse); - } - if (refactorRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RefactorRequest); - } - if (refactorResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RefactorResponse); - } - if (unsupportedMessageResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UnsupportedMessageResponse); - } - if (cacheFileRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CacheFileRequest); - } - if (stepPositionsRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StepPositionsRequest); - } - if (stepPositionsResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StepPositionsResponse); - } - if (implementationFileListRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImplementationFileListRequest); - } - if (implementationFileListResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImplementationFileListResponse); - } - if (stubImplementationCodeRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StubImplementationCodeRequest); - } - if (fileDiff_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FileDiff); - } - if (implementationFileGlobPatternRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImplementationFileGlobPatternRequest); - } - if (implementationFileGlobPatternResponse_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImplementationFileGlobPatternResponse); - } - if (suiteExecutionResultItem_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SuiteExecutionResultItem); - } - if (keepAlive_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeepAlive); - } - if (conceptExecutionStartingRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConceptExecutionStartingRequest); - } - if (conceptExecutionEndingRequest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConceptExecutionEndingRequest); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Message other) { - if (other == null) { - return; - } - if (other.MessageType != global::Gauge.Messages.Message.Types.MessageType.ExecutionStarting) { - MessageType = other.MessageType; - } - if (other.MessageId != 0L) { - MessageId = other.MessageId; - } - if (other.executionStartingRequest_ != null) { - if (executionStartingRequest_ == null) { - ExecutionStartingRequest = new global::Gauge.Messages.ExecutionStartingRequest(); - } - ExecutionStartingRequest.MergeFrom(other.ExecutionStartingRequest); - } - if (other.specExecutionStartingRequest_ != null) { - if (specExecutionStartingRequest_ == null) { - SpecExecutionStartingRequest = new global::Gauge.Messages.SpecExecutionStartingRequest(); - } - SpecExecutionStartingRequest.MergeFrom(other.SpecExecutionStartingRequest); - } - if (other.specExecutionEndingRequest_ != null) { - if (specExecutionEndingRequest_ == null) { - SpecExecutionEndingRequest = new global::Gauge.Messages.SpecExecutionEndingRequest(); - } - SpecExecutionEndingRequest.MergeFrom(other.SpecExecutionEndingRequest); - } - if (other.scenarioExecutionStartingRequest_ != null) { - if (scenarioExecutionStartingRequest_ == null) { - ScenarioExecutionStartingRequest = new global::Gauge.Messages.ScenarioExecutionStartingRequest(); - } - ScenarioExecutionStartingRequest.MergeFrom(other.ScenarioExecutionStartingRequest); - } - if (other.scenarioExecutionEndingRequest_ != null) { - if (scenarioExecutionEndingRequest_ == null) { - ScenarioExecutionEndingRequest = new global::Gauge.Messages.ScenarioExecutionEndingRequest(); - } - ScenarioExecutionEndingRequest.MergeFrom(other.ScenarioExecutionEndingRequest); - } - if (other.stepExecutionStartingRequest_ != null) { - if (stepExecutionStartingRequest_ == null) { - StepExecutionStartingRequest = new global::Gauge.Messages.StepExecutionStartingRequest(); - } - StepExecutionStartingRequest.MergeFrom(other.StepExecutionStartingRequest); - } - if (other.stepExecutionEndingRequest_ != null) { - if (stepExecutionEndingRequest_ == null) { - StepExecutionEndingRequest = new global::Gauge.Messages.StepExecutionEndingRequest(); - } - StepExecutionEndingRequest.MergeFrom(other.StepExecutionEndingRequest); - } - if (other.executeStepRequest_ != null) { - if (executeStepRequest_ == null) { - ExecuteStepRequest = new global::Gauge.Messages.ExecuteStepRequest(); - } - ExecuteStepRequest.MergeFrom(other.ExecuteStepRequest); - } - if (other.executionEndingRequest_ != null) { - if (executionEndingRequest_ == null) { - ExecutionEndingRequest = new global::Gauge.Messages.ExecutionEndingRequest(); - } - ExecutionEndingRequest.MergeFrom(other.ExecutionEndingRequest); - } - if (other.stepValidateRequest_ != null) { - if (stepValidateRequest_ == null) { - StepValidateRequest = new global::Gauge.Messages.StepValidateRequest(); - } - StepValidateRequest.MergeFrom(other.StepValidateRequest); - } - if (other.stepValidateResponse_ != null) { - if (stepValidateResponse_ == null) { - StepValidateResponse = new global::Gauge.Messages.StepValidateResponse(); - } - StepValidateResponse.MergeFrom(other.StepValidateResponse); - } - if (other.executionStatusResponse_ != null) { - if (executionStatusResponse_ == null) { - ExecutionStatusResponse = new global::Gauge.Messages.ExecutionStatusResponse(); - } - ExecutionStatusResponse.MergeFrom(other.ExecutionStatusResponse); - } - if (other.stepNamesRequest_ != null) { - if (stepNamesRequest_ == null) { - StepNamesRequest = new global::Gauge.Messages.StepNamesRequest(); - } - StepNamesRequest.MergeFrom(other.StepNamesRequest); - } - if (other.stepNamesResponse_ != null) { - if (stepNamesResponse_ == null) { - StepNamesResponse = new global::Gauge.Messages.StepNamesResponse(); - } - StepNamesResponse.MergeFrom(other.StepNamesResponse); - } - if (other.suiteExecutionResult_ != null) { - if (suiteExecutionResult_ == null) { - SuiteExecutionResult = new global::Gauge.Messages.SuiteExecutionResult(); - } - SuiteExecutionResult.MergeFrom(other.SuiteExecutionResult); - } - if (other.killProcessRequest_ != null) { - if (killProcessRequest_ == null) { - KillProcessRequest = new global::Gauge.Messages.KillProcessRequest(); - } - KillProcessRequest.MergeFrom(other.KillProcessRequest); - } - if (other.scenarioDataStoreInitRequest_ != null) { - if (scenarioDataStoreInitRequest_ == null) { - ScenarioDataStoreInitRequest = new global::Gauge.Messages.ScenarioDataStoreInitRequest(); - } - ScenarioDataStoreInitRequest.MergeFrom(other.ScenarioDataStoreInitRequest); - } - if (other.specDataStoreInitRequest_ != null) { - if (specDataStoreInitRequest_ == null) { - SpecDataStoreInitRequest = new global::Gauge.Messages.SpecDataStoreInitRequest(); - } - SpecDataStoreInitRequest.MergeFrom(other.SpecDataStoreInitRequest); - } - if (other.suiteDataStoreInitRequest_ != null) { - if (suiteDataStoreInitRequest_ == null) { - SuiteDataStoreInitRequest = new global::Gauge.Messages.SuiteDataStoreInitRequest(); - } - SuiteDataStoreInitRequest.MergeFrom(other.SuiteDataStoreInitRequest); - } - if (other.stepNameRequest_ != null) { - if (stepNameRequest_ == null) { - StepNameRequest = new global::Gauge.Messages.StepNameRequest(); - } - StepNameRequest.MergeFrom(other.StepNameRequest); - } - if (other.stepNameResponse_ != null) { - if (stepNameResponse_ == null) { - StepNameResponse = new global::Gauge.Messages.StepNameResponse(); - } - StepNameResponse.MergeFrom(other.StepNameResponse); - } - if (other.refactorRequest_ != null) { - if (refactorRequest_ == null) { - RefactorRequest = new global::Gauge.Messages.RefactorRequest(); - } - RefactorRequest.MergeFrom(other.RefactorRequest); - } - if (other.refactorResponse_ != null) { - if (refactorResponse_ == null) { - RefactorResponse = new global::Gauge.Messages.RefactorResponse(); - } - RefactorResponse.MergeFrom(other.RefactorResponse); - } - if (other.unsupportedMessageResponse_ != null) { - if (unsupportedMessageResponse_ == null) { - UnsupportedMessageResponse = new global::Gauge.Messages.UnsupportedMessageResponse(); - } - UnsupportedMessageResponse.MergeFrom(other.UnsupportedMessageResponse); - } - if (other.cacheFileRequest_ != null) { - if (cacheFileRequest_ == null) { - CacheFileRequest = new global::Gauge.Messages.CacheFileRequest(); - } - CacheFileRequest.MergeFrom(other.CacheFileRequest); - } - if (other.stepPositionsRequest_ != null) { - if (stepPositionsRequest_ == null) { - StepPositionsRequest = new global::Gauge.Messages.StepPositionsRequest(); - } - StepPositionsRequest.MergeFrom(other.StepPositionsRequest); - } - if (other.stepPositionsResponse_ != null) { - if (stepPositionsResponse_ == null) { - StepPositionsResponse = new global::Gauge.Messages.StepPositionsResponse(); - } - StepPositionsResponse.MergeFrom(other.StepPositionsResponse); - } - if (other.implementationFileListRequest_ != null) { - if (implementationFileListRequest_ == null) { - ImplementationFileListRequest = new global::Gauge.Messages.ImplementationFileListRequest(); - } - ImplementationFileListRequest.MergeFrom(other.ImplementationFileListRequest); - } - if (other.implementationFileListResponse_ != null) { - if (implementationFileListResponse_ == null) { - ImplementationFileListResponse = new global::Gauge.Messages.ImplementationFileListResponse(); - } - ImplementationFileListResponse.MergeFrom(other.ImplementationFileListResponse); - } - if (other.stubImplementationCodeRequest_ != null) { - if (stubImplementationCodeRequest_ == null) { - StubImplementationCodeRequest = new global::Gauge.Messages.StubImplementationCodeRequest(); - } - StubImplementationCodeRequest.MergeFrom(other.StubImplementationCodeRequest); - } - if (other.fileDiff_ != null) { - if (fileDiff_ == null) { - FileDiff = new global::Gauge.Messages.FileDiff(); - } - FileDiff.MergeFrom(other.FileDiff); - } - if (other.implementationFileGlobPatternRequest_ != null) { - if (implementationFileGlobPatternRequest_ == null) { - ImplementationFileGlobPatternRequest = new global::Gauge.Messages.ImplementationFileGlobPatternRequest(); - } - ImplementationFileGlobPatternRequest.MergeFrom(other.ImplementationFileGlobPatternRequest); - } - if (other.implementationFileGlobPatternResponse_ != null) { - if (implementationFileGlobPatternResponse_ == null) { - ImplementationFileGlobPatternResponse = new global::Gauge.Messages.ImplementationFileGlobPatternResponse(); - } - ImplementationFileGlobPatternResponse.MergeFrom(other.ImplementationFileGlobPatternResponse); - } - if (other.suiteExecutionResultItem_ != null) { - if (suiteExecutionResultItem_ == null) { - SuiteExecutionResultItem = new global::Gauge.Messages.SuiteExecutionResultItem(); - } - SuiteExecutionResultItem.MergeFrom(other.SuiteExecutionResultItem); - } - if (other.keepAlive_ != null) { - if (keepAlive_ == null) { - KeepAlive = new global::Gauge.Messages.KeepAlive(); - } - KeepAlive.MergeFrom(other.KeepAlive); - } - if (other.conceptExecutionStartingRequest_ != null) { - if (conceptExecutionStartingRequest_ == null) { - ConceptExecutionStartingRequest = new global::Gauge.Messages.ConceptExecutionStartingRequest(); - } - ConceptExecutionStartingRequest.MergeFrom(other.ConceptExecutionStartingRequest); - } - if (other.conceptExecutionEndingRequest_ != null) { - if (conceptExecutionEndingRequest_ == null) { - ConceptExecutionEndingRequest = new global::Gauge.Messages.ConceptExecutionEndingRequest(); - } - ConceptExecutionEndingRequest.MergeFrom(other.ConceptExecutionEndingRequest); - } - _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: { - MessageType = (global::Gauge.Messages.Message.Types.MessageType) input.ReadEnum(); - break; - } - case 16: { - MessageId = input.ReadInt64(); - break; - } - case 26: { - if (executionStartingRequest_ == null) { - ExecutionStartingRequest = new global::Gauge.Messages.ExecutionStartingRequest(); - } - input.ReadMessage(ExecutionStartingRequest); - break; - } - case 34: { - if (specExecutionStartingRequest_ == null) { - SpecExecutionStartingRequest = new global::Gauge.Messages.SpecExecutionStartingRequest(); - } - input.ReadMessage(SpecExecutionStartingRequest); - break; - } - case 42: { - if (specExecutionEndingRequest_ == null) { - SpecExecutionEndingRequest = new global::Gauge.Messages.SpecExecutionEndingRequest(); - } - input.ReadMessage(SpecExecutionEndingRequest); - break; - } - case 50: { - if (scenarioExecutionStartingRequest_ == null) { - ScenarioExecutionStartingRequest = new global::Gauge.Messages.ScenarioExecutionStartingRequest(); - } - input.ReadMessage(ScenarioExecutionStartingRequest); - break; - } - case 58: { - if (scenarioExecutionEndingRequest_ == null) { - ScenarioExecutionEndingRequest = new global::Gauge.Messages.ScenarioExecutionEndingRequest(); - } - input.ReadMessage(ScenarioExecutionEndingRequest); - break; - } - case 66: { - if (stepExecutionStartingRequest_ == null) { - StepExecutionStartingRequest = new global::Gauge.Messages.StepExecutionStartingRequest(); - } - input.ReadMessage(StepExecutionStartingRequest); - break; - } - case 74: { - if (stepExecutionEndingRequest_ == null) { - StepExecutionEndingRequest = new global::Gauge.Messages.StepExecutionEndingRequest(); - } - input.ReadMessage(StepExecutionEndingRequest); - break; - } - case 82: { - if (executeStepRequest_ == null) { - ExecuteStepRequest = new global::Gauge.Messages.ExecuteStepRequest(); - } - input.ReadMessage(ExecuteStepRequest); - break; - } - case 90: { - if (executionEndingRequest_ == null) { - ExecutionEndingRequest = new global::Gauge.Messages.ExecutionEndingRequest(); - } - input.ReadMessage(ExecutionEndingRequest); - break; - } - case 98: { - if (stepValidateRequest_ == null) { - StepValidateRequest = new global::Gauge.Messages.StepValidateRequest(); - } - input.ReadMessage(StepValidateRequest); - break; - } - case 106: { - if (stepValidateResponse_ == null) { - StepValidateResponse = new global::Gauge.Messages.StepValidateResponse(); - } - input.ReadMessage(StepValidateResponse); - break; - } - case 114: { - if (executionStatusResponse_ == null) { - ExecutionStatusResponse = new global::Gauge.Messages.ExecutionStatusResponse(); - } - input.ReadMessage(ExecutionStatusResponse); - break; - } - case 122: { - if (stepNamesRequest_ == null) { - StepNamesRequest = new global::Gauge.Messages.StepNamesRequest(); - } - input.ReadMessage(StepNamesRequest); - break; - } - case 130: { - if (stepNamesResponse_ == null) { - StepNamesResponse = new global::Gauge.Messages.StepNamesResponse(); - } - input.ReadMessage(StepNamesResponse); - break; - } - case 138: { - if (suiteExecutionResult_ == null) { - SuiteExecutionResult = new global::Gauge.Messages.SuiteExecutionResult(); - } - input.ReadMessage(SuiteExecutionResult); - break; - } - case 146: { - if (killProcessRequest_ == null) { - KillProcessRequest = new global::Gauge.Messages.KillProcessRequest(); - } - input.ReadMessage(KillProcessRequest); - break; - } - case 154: { - if (scenarioDataStoreInitRequest_ == null) { - ScenarioDataStoreInitRequest = new global::Gauge.Messages.ScenarioDataStoreInitRequest(); - } - input.ReadMessage(ScenarioDataStoreInitRequest); - break; - } - case 162: { - if (specDataStoreInitRequest_ == null) { - SpecDataStoreInitRequest = new global::Gauge.Messages.SpecDataStoreInitRequest(); - } - input.ReadMessage(SpecDataStoreInitRequest); - break; - } - case 170: { - if (suiteDataStoreInitRequest_ == null) { - SuiteDataStoreInitRequest = new global::Gauge.Messages.SuiteDataStoreInitRequest(); - } - input.ReadMessage(SuiteDataStoreInitRequest); - break; - } - case 178: { - if (stepNameRequest_ == null) { - StepNameRequest = new global::Gauge.Messages.StepNameRequest(); - } - input.ReadMessage(StepNameRequest); - break; - } - case 186: { - if (stepNameResponse_ == null) { - StepNameResponse = new global::Gauge.Messages.StepNameResponse(); - } - input.ReadMessage(StepNameResponse); - break; - } - case 194: { - if (refactorRequest_ == null) { - RefactorRequest = new global::Gauge.Messages.RefactorRequest(); - } - input.ReadMessage(RefactorRequest); - break; - } - case 202: { - if (refactorResponse_ == null) { - RefactorResponse = new global::Gauge.Messages.RefactorResponse(); - } - input.ReadMessage(RefactorResponse); - break; - } - case 210: { - if (unsupportedMessageResponse_ == null) { - UnsupportedMessageResponse = new global::Gauge.Messages.UnsupportedMessageResponse(); - } - input.ReadMessage(UnsupportedMessageResponse); - break; - } - case 218: { - if (cacheFileRequest_ == null) { - CacheFileRequest = new global::Gauge.Messages.CacheFileRequest(); - } - input.ReadMessage(CacheFileRequest); - break; - } - case 226: { - if (stepPositionsRequest_ == null) { - StepPositionsRequest = new global::Gauge.Messages.StepPositionsRequest(); - } - input.ReadMessage(StepPositionsRequest); - break; - } - case 234: { - if (stepPositionsResponse_ == null) { - StepPositionsResponse = new global::Gauge.Messages.StepPositionsResponse(); - } - input.ReadMessage(StepPositionsResponse); - break; - } - case 242: { - if (implementationFileListRequest_ == null) { - ImplementationFileListRequest = new global::Gauge.Messages.ImplementationFileListRequest(); - } - input.ReadMessage(ImplementationFileListRequest); - break; - } - case 250: { - if (implementationFileListResponse_ == null) { - ImplementationFileListResponse = new global::Gauge.Messages.ImplementationFileListResponse(); - } - input.ReadMessage(ImplementationFileListResponse); - break; - } - case 258: { - if (stubImplementationCodeRequest_ == null) { - StubImplementationCodeRequest = new global::Gauge.Messages.StubImplementationCodeRequest(); - } - input.ReadMessage(StubImplementationCodeRequest); - break; - } - case 266: { - if (fileDiff_ == null) { - FileDiff = new global::Gauge.Messages.FileDiff(); - } - input.ReadMessage(FileDiff); - break; - } - case 274: { - if (implementationFileGlobPatternRequest_ == null) { - ImplementationFileGlobPatternRequest = new global::Gauge.Messages.ImplementationFileGlobPatternRequest(); - } - input.ReadMessage(ImplementationFileGlobPatternRequest); - break; - } - case 282: { - if (implementationFileGlobPatternResponse_ == null) { - ImplementationFileGlobPatternResponse = new global::Gauge.Messages.ImplementationFileGlobPatternResponse(); - } - input.ReadMessage(ImplementationFileGlobPatternResponse); - break; - } - case 290: { - if (suiteExecutionResultItem_ == null) { - SuiteExecutionResultItem = new global::Gauge.Messages.SuiteExecutionResultItem(); - } - input.ReadMessage(SuiteExecutionResultItem); - break; - } - case 298: { - if (keepAlive_ == null) { - KeepAlive = new global::Gauge.Messages.KeepAlive(); - } - input.ReadMessage(KeepAlive); - break; - } - case 306: { - if (conceptExecutionStartingRequest_ == null) { - ConceptExecutionStartingRequest = new global::Gauge.Messages.ConceptExecutionStartingRequest(); - } - input.ReadMessage(ConceptExecutionStartingRequest); - break; - } - case 314: { - if (conceptExecutionEndingRequest_ == null) { - ConceptExecutionEndingRequest = new global::Gauge.Messages.ConceptExecutionEndingRequest(); - } - input.ReadMessage(ConceptExecutionEndingRequest); - 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: { - MessageType = (global::Gauge.Messages.Message.Types.MessageType) input.ReadEnum(); - break; - } - case 16: { - MessageId = input.ReadInt64(); - break; - } - case 26: { - if (executionStartingRequest_ == null) { - ExecutionStartingRequest = new global::Gauge.Messages.ExecutionStartingRequest(); - } - input.ReadMessage(ExecutionStartingRequest); - break; - } - case 34: { - if (specExecutionStartingRequest_ == null) { - SpecExecutionStartingRequest = new global::Gauge.Messages.SpecExecutionStartingRequest(); - } - input.ReadMessage(SpecExecutionStartingRequest); - break; - } - case 42: { - if (specExecutionEndingRequest_ == null) { - SpecExecutionEndingRequest = new global::Gauge.Messages.SpecExecutionEndingRequest(); - } - input.ReadMessage(SpecExecutionEndingRequest); - break; - } - case 50: { - if (scenarioExecutionStartingRequest_ == null) { - ScenarioExecutionStartingRequest = new global::Gauge.Messages.ScenarioExecutionStartingRequest(); - } - input.ReadMessage(ScenarioExecutionStartingRequest); - break; - } - case 58: { - if (scenarioExecutionEndingRequest_ == null) { - ScenarioExecutionEndingRequest = new global::Gauge.Messages.ScenarioExecutionEndingRequest(); - } - input.ReadMessage(ScenarioExecutionEndingRequest); - break; - } - case 66: { - if (stepExecutionStartingRequest_ == null) { - StepExecutionStartingRequest = new global::Gauge.Messages.StepExecutionStartingRequest(); - } - input.ReadMessage(StepExecutionStartingRequest); - break; - } - case 74: { - if (stepExecutionEndingRequest_ == null) { - StepExecutionEndingRequest = new global::Gauge.Messages.StepExecutionEndingRequest(); - } - input.ReadMessage(StepExecutionEndingRequest); - break; - } - case 82: { - if (executeStepRequest_ == null) { - ExecuteStepRequest = new global::Gauge.Messages.ExecuteStepRequest(); - } - input.ReadMessage(ExecuteStepRequest); - break; - } - case 90: { - if (executionEndingRequest_ == null) { - ExecutionEndingRequest = new global::Gauge.Messages.ExecutionEndingRequest(); - } - input.ReadMessage(ExecutionEndingRequest); - break; - } - case 98: { - if (stepValidateRequest_ == null) { - StepValidateRequest = new global::Gauge.Messages.StepValidateRequest(); - } - input.ReadMessage(StepValidateRequest); - break; - } - case 106: { - if (stepValidateResponse_ == null) { - StepValidateResponse = new global::Gauge.Messages.StepValidateResponse(); - } - input.ReadMessage(StepValidateResponse); - break; - } - case 114: { - if (executionStatusResponse_ == null) { - ExecutionStatusResponse = new global::Gauge.Messages.ExecutionStatusResponse(); - } - input.ReadMessage(ExecutionStatusResponse); - break; - } - case 122: { - if (stepNamesRequest_ == null) { - StepNamesRequest = new global::Gauge.Messages.StepNamesRequest(); - } - input.ReadMessage(StepNamesRequest); - break; - } - case 130: { - if (stepNamesResponse_ == null) { - StepNamesResponse = new global::Gauge.Messages.StepNamesResponse(); - } - input.ReadMessage(StepNamesResponse); - break; - } - case 138: { - if (suiteExecutionResult_ == null) { - SuiteExecutionResult = new global::Gauge.Messages.SuiteExecutionResult(); - } - input.ReadMessage(SuiteExecutionResult); - break; - } - case 146: { - if (killProcessRequest_ == null) { - KillProcessRequest = new global::Gauge.Messages.KillProcessRequest(); - } - input.ReadMessage(KillProcessRequest); - break; - } - case 154: { - if (scenarioDataStoreInitRequest_ == null) { - ScenarioDataStoreInitRequest = new global::Gauge.Messages.ScenarioDataStoreInitRequest(); - } - input.ReadMessage(ScenarioDataStoreInitRequest); - break; - } - case 162: { - if (specDataStoreInitRequest_ == null) { - SpecDataStoreInitRequest = new global::Gauge.Messages.SpecDataStoreInitRequest(); - } - input.ReadMessage(SpecDataStoreInitRequest); - break; - } - case 170: { - if (suiteDataStoreInitRequest_ == null) { - SuiteDataStoreInitRequest = new global::Gauge.Messages.SuiteDataStoreInitRequest(); - } - input.ReadMessage(SuiteDataStoreInitRequest); - break; - } - case 178: { - if (stepNameRequest_ == null) { - StepNameRequest = new global::Gauge.Messages.StepNameRequest(); - } - input.ReadMessage(StepNameRequest); - break; - } - case 186: { - if (stepNameResponse_ == null) { - StepNameResponse = new global::Gauge.Messages.StepNameResponse(); - } - input.ReadMessage(StepNameResponse); - break; - } - case 194: { - if (refactorRequest_ == null) { - RefactorRequest = new global::Gauge.Messages.RefactorRequest(); - } - input.ReadMessage(RefactorRequest); - break; - } - case 202: { - if (refactorResponse_ == null) { - RefactorResponse = new global::Gauge.Messages.RefactorResponse(); - } - input.ReadMessage(RefactorResponse); - break; - } - case 210: { - if (unsupportedMessageResponse_ == null) { - UnsupportedMessageResponse = new global::Gauge.Messages.UnsupportedMessageResponse(); - } - input.ReadMessage(UnsupportedMessageResponse); - break; - } - case 218: { - if (cacheFileRequest_ == null) { - CacheFileRequest = new global::Gauge.Messages.CacheFileRequest(); - } - input.ReadMessage(CacheFileRequest); - break; - } - case 226: { - if (stepPositionsRequest_ == null) { - StepPositionsRequest = new global::Gauge.Messages.StepPositionsRequest(); - } - input.ReadMessage(StepPositionsRequest); - break; - } - case 234: { - if (stepPositionsResponse_ == null) { - StepPositionsResponse = new global::Gauge.Messages.StepPositionsResponse(); - } - input.ReadMessage(StepPositionsResponse); - break; - } - case 242: { - if (implementationFileListRequest_ == null) { - ImplementationFileListRequest = new global::Gauge.Messages.ImplementationFileListRequest(); - } - input.ReadMessage(ImplementationFileListRequest); - break; - } - case 250: { - if (implementationFileListResponse_ == null) { - ImplementationFileListResponse = new global::Gauge.Messages.ImplementationFileListResponse(); - } - input.ReadMessage(ImplementationFileListResponse); - break; - } - case 258: { - if (stubImplementationCodeRequest_ == null) { - StubImplementationCodeRequest = new global::Gauge.Messages.StubImplementationCodeRequest(); - } - input.ReadMessage(StubImplementationCodeRequest); - break; - } - case 266: { - if (fileDiff_ == null) { - FileDiff = new global::Gauge.Messages.FileDiff(); - } - input.ReadMessage(FileDiff); - break; - } - case 274: { - if (implementationFileGlobPatternRequest_ == null) { - ImplementationFileGlobPatternRequest = new global::Gauge.Messages.ImplementationFileGlobPatternRequest(); - } - input.ReadMessage(ImplementationFileGlobPatternRequest); - break; - } - case 282: { - if (implementationFileGlobPatternResponse_ == null) { - ImplementationFileGlobPatternResponse = new global::Gauge.Messages.ImplementationFileGlobPatternResponse(); - } - input.ReadMessage(ImplementationFileGlobPatternResponse); - break; - } - case 290: { - if (suiteExecutionResultItem_ == null) { - SuiteExecutionResultItem = new global::Gauge.Messages.SuiteExecutionResultItem(); - } - input.ReadMessage(SuiteExecutionResultItem); - break; - } - case 298: { - if (keepAlive_ == null) { - KeepAlive = new global::Gauge.Messages.KeepAlive(); - } - input.ReadMessage(KeepAlive); - break; - } - case 306: { - if (conceptExecutionStartingRequest_ == null) { - ConceptExecutionStartingRequest = new global::Gauge.Messages.ConceptExecutionStartingRequest(); - } - input.ReadMessage(ConceptExecutionStartingRequest); - break; - } - case 314: { - if (conceptExecutionEndingRequest_ == null) { - ConceptExecutionEndingRequest = new global::Gauge.Messages.ConceptExecutionEndingRequest(); - } - input.ReadMessage(ConceptExecutionEndingRequest); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Message message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum MessageType { - [pbr::OriginalName("ExecutionStarting")] ExecutionStarting = 0, - [pbr::OriginalName("SpecExecutionStarting")] SpecExecutionStarting = 1, - [pbr::OriginalName("SpecExecutionEnding")] SpecExecutionEnding = 2, - [pbr::OriginalName("ScenarioExecutionStarting")] ScenarioExecutionStarting = 3, - [pbr::OriginalName("ScenarioExecutionEnding")] ScenarioExecutionEnding = 4, - [pbr::OriginalName("StepExecutionStarting")] StepExecutionStarting = 5, - [pbr::OriginalName("StepExecutionEnding")] StepExecutionEnding = 6, - [pbr::OriginalName("ExecuteStep")] ExecuteStep = 7, - [pbr::OriginalName("ExecutionEnding")] ExecutionEnding = 8, - [pbr::OriginalName("StepValidateRequest")] StepValidateRequest = 9, - [pbr::OriginalName("StepValidateResponse")] StepValidateResponse = 10, - [pbr::OriginalName("ExecutionStatusResponse")] ExecutionStatusResponse = 11, - [pbr::OriginalName("StepNamesRequest")] StepNamesRequest = 12, - [pbr::OriginalName("StepNamesResponse")] StepNamesResponse = 13, - [pbr::OriginalName("KillProcessRequest")] KillProcessRequest = 14, - [pbr::OriginalName("SuiteExecutionResult")] SuiteExecutionResult = 15, - [pbr::OriginalName("ScenarioDataStoreInit")] ScenarioDataStoreInit = 16, - [pbr::OriginalName("SpecDataStoreInit")] SpecDataStoreInit = 17, - [pbr::OriginalName("SuiteDataStoreInit")] SuiteDataStoreInit = 18, - [pbr::OriginalName("StepNameRequest")] StepNameRequest = 19, - [pbr::OriginalName("StepNameResponse")] StepNameResponse = 20, - [pbr::OriginalName("RefactorRequest")] RefactorRequest = 21, - [pbr::OriginalName("RefactorResponse")] RefactorResponse = 22, - [pbr::OriginalName("UnsupportedMessageResponse")] UnsupportedMessageResponse = 23, - [pbr::OriginalName("CacheFileRequest")] CacheFileRequest = 24, - [pbr::OriginalName("StepPositionsRequest")] StepPositionsRequest = 25, - [pbr::OriginalName("StepPositionsResponse")] StepPositionsResponse = 26, - [pbr::OriginalName("ImplementationFileListRequest")] ImplementationFileListRequest = 27, - [pbr::OriginalName("ImplementationFileListResponse")] ImplementationFileListResponse = 28, - [pbr::OriginalName("StubImplementationCodeRequest")] StubImplementationCodeRequest = 29, - [pbr::OriginalName("FileDiff")] FileDiff = 30, - [pbr::OriginalName("ImplementationFileGlobPatternRequest")] ImplementationFileGlobPatternRequest = 31, - [pbr::OriginalName("ImplementationFileGlobPatternResponse")] ImplementationFileGlobPatternResponse = 32, - [pbr::OriginalName("SuiteExecutionResultItem")] SuiteExecutionResultItem = 33, - [pbr::OriginalName("KeepAlive")] KeepAlive = 34, - [pbr::OriginalName("ConceptExecutionStarting")] ConceptExecutionStarting = 35, - [pbr::OriginalName("ConceptExecutionEnding")] ConceptExecutionEnding = 36, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/src/Gauge.CSharp.Core/Services.cs b/src/Gauge.CSharp.Core/Services.cs deleted file mode 100644 index aa13b8d..0000000 --- a/src/Gauge.CSharp.Core/Services.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: services.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 Gauge.Messages { - - /// Holder for reflection information generated from services.proto - public static partial class ServicesReflection { - - #region Descriptor - /// File descriptor for services.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ServicesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cg5zZXJ2aWNlcy5wcm90bxIOZ2F1Z2UubWVzc2FnZXMaDm1lc3NhZ2VzLnBy", - "b3RvMucSCgZSdW5uZXISWQoMVmFsaWRhdGVTdGVwEiMuZ2F1Z2UubWVzc2Fn", - "ZXMuU3RlcFZhbGlkYXRlUmVxdWVzdBokLmdhdWdlLm1lc3NhZ2VzLlN0ZXBW", - "YWxpZGF0ZVJlc3BvbnNlEm4KGEluaXRpYWxpemVTdWl0ZURhdGFTdG9yZRIp", - "LmdhdWdlLm1lc3NhZ2VzLlN1aXRlRGF0YVN0b3JlSW5pdFJlcXVlc3QaJy5n", - "YXVnZS5tZXNzYWdlcy5FeGVjdXRpb25TdGF0dXNSZXNwb25zZRJjCg5TdGFy", - "dEV4ZWN1dGlvbhIoLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlvblN0YXJ0aW5n", - "UmVxdWVzdBonLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlvblN0YXR1c1Jlc3Bv", - "bnNlEmwKF0luaXRpYWxpemVTcGVjRGF0YVN0b3JlEiguZ2F1Z2UubWVzc2Fn", - "ZXMuU3BlY0RhdGFTdG9yZUluaXRSZXF1ZXN0GicuZ2F1Z2UubWVzc2FnZXMu", - "RXhlY3V0aW9uU3RhdHVzUmVzcG9uc2USawoSU3RhcnRTcGVjRXhlY3V0aW9u", - "EiwuZ2F1Z2UubWVzc2FnZXMuU3BlY0V4ZWN1dGlvblN0YXJ0aW5nUmVxdWVz", - "dBonLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlvblN0YXR1c1Jlc3BvbnNlEnQK", - "G0luaXRpYWxpemVTY2VuYXJpb0RhdGFTdG9yZRIsLmdhdWdlLm1lc3NhZ2Vz", - "LlNjZW5hcmlvRGF0YVN0b3JlSW5pdFJlcXVlc3QaJy5nYXVnZS5tZXNzYWdl", - "cy5FeGVjdXRpb25TdGF0dXNSZXNwb25zZRJzChZTdGFydFNjZW5hcmlvRXhl", - "Y3V0aW9uEjAuZ2F1Z2UubWVzc2FnZXMuU2NlbmFyaW9FeGVjdXRpb25TdGFy", - "dGluZ1JlcXVlc3QaJy5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25TdGF0dXNS", - "ZXNwb25zZRJrChJTdGFydFN0ZXBFeGVjdXRpb24SLC5nYXVnZS5tZXNzYWdl", - "cy5TdGVwRXhlY3V0aW9uU3RhcnRpbmdSZXF1ZXN0GicuZ2F1Z2UubWVzc2Fn", - "ZXMuRXhlY3V0aW9uU3RhdHVzUmVzcG9uc2USWgoLRXhlY3V0ZVN0ZXASIi5n", - "YXVnZS5tZXNzYWdlcy5FeGVjdXRlU3RlcFJlcXVlc3QaJy5nYXVnZS5tZXNz", - "YWdlcy5FeGVjdXRpb25TdGF0dXNSZXNwb25zZRJqChNGaW5pc2hTdGVwRXhl", - "Y3V0aW9uEiouZ2F1Z2UubWVzc2FnZXMuU3RlcEV4ZWN1dGlvbkVuZGluZ1Jl", - "cXVlc3QaJy5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25TdGF0dXNSZXNwb25z", - "ZRJyChdGaW5pc2hTY2VuYXJpb0V4ZWN1dGlvbhIuLmdhdWdlLm1lc3NhZ2Vz", - "LlNjZW5hcmlvRXhlY3V0aW9uRW5kaW5nUmVxdWVzdBonLmdhdWdlLm1lc3Nh", - "Z2VzLkV4ZWN1dGlvblN0YXR1c1Jlc3BvbnNlEmoKE0ZpbmlzaFNwZWNFeGVj", - "dXRpb24SKi5nYXVnZS5tZXNzYWdlcy5TcGVjRXhlY3V0aW9uRW5kaW5nUmVx", - "dWVzdBonLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlvblN0YXR1c1Jlc3BvbnNl", - "EmIKD0ZpbmlzaEV4ZWN1dGlvbhImLmdhdWdlLm1lc3NhZ2VzLkV4ZWN1dGlv", - "bkVuZGluZ1JlcXVlc3QaJy5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25TdGF0", - "dXNSZXNwb25zZRJECglDYWNoZUZpbGUSIC5nYXVnZS5tZXNzYWdlcy5DYWNo", - "ZUZpbGVSZXF1ZXN0GhUuZ2F1Z2UubWVzc2FnZXMuRW1wdHkSUAoLR2V0U3Rl", - "cE5hbWUSHy5nYXVnZS5tZXNzYWdlcy5TdGVwTmFtZVJlcXVlc3QaIC5nYXVn", - "ZS5tZXNzYWdlcy5TdGVwTmFtZVJlc3BvbnNlEl8KD0dldEdsb2JQYXR0ZXJu", - "cxIVLmdhdWdlLm1lc3NhZ2VzLkVtcHR5GjUuZ2F1Z2UubWVzc2FnZXMuSW1w", - "bGVtZW50YXRpb25GaWxlR2xvYlBhdHRlcm5SZXNwb25zZRJTCgxHZXRTdGVw", - "TmFtZXMSIC5nYXVnZS5tZXNzYWdlcy5TdGVwTmFtZXNSZXF1ZXN0GiEuZ2F1", - "Z2UubWVzc2FnZXMuU3RlcE5hbWVzUmVzcG9uc2USXwoQR2V0U3RlcFBvc2l0", - "aW9ucxIkLmdhdWdlLm1lc3NhZ2VzLlN0ZXBQb3NpdGlvbnNSZXF1ZXN0GiUu", - "Z2F1Z2UubWVzc2FnZXMuU3RlcFBvc2l0aW9uc1Jlc3BvbnNlEl8KFkdldElt", - "cGxlbWVudGF0aW9uRmlsZXMSFS5nYXVnZS5tZXNzYWdlcy5FbXB0eRouLmdh", - "dWdlLm1lc3NhZ2VzLkltcGxlbWVudGF0aW9uRmlsZUxpc3RSZXNwb25zZRJY", - "Cg1JbXBsZW1lbnRTdHViEi0uZ2F1Z2UubWVzc2FnZXMuU3R1YkltcGxlbWVu", - "dGF0aW9uQ29kZVJlcXVlc3QaGC5nYXVnZS5tZXNzYWdlcy5GaWxlRGlmZhJN", - "CghSZWZhY3RvchIfLmdhdWdlLm1lc3NhZ2VzLlJlZmFjdG9yUmVxdWVzdBog", - "LmdhdWdlLm1lc3NhZ2VzLlJlZmFjdG9yUmVzcG9uc2USQQoES2lsbBIiLmdh", - "dWdlLm1lc3NhZ2VzLktpbGxQcm9jZXNzUmVxdWVzdBoVLmdhdWdlLm1lc3Nh", - "Z2VzLkVtcHR5EnoKHk5vdGlmeUNvbmNlcHRFeGVjdXRpb25TdGFydGluZxIv", - "LmdhdWdlLm1lc3NhZ2VzLkNvbmNlcHRFeGVjdXRpb25TdGFydGluZ1JlcXVl", - "c3QaJy5nYXVnZS5tZXNzYWdlcy5FeGVjdXRpb25TdGF0dXNSZXNwb25zZRJ2", - "ChxOb3RpZnlDb25jZXB0RXhlY3V0aW9uRW5kaW5nEi0uZ2F1Z2UubWVzc2Fn", - "ZXMuQ29uY2VwdEV4ZWN1dGlvbkVuZGluZ1JlcXVlc3QaJy5nYXVnZS5tZXNz", - "YWdlcy5FeGVjdXRpb25TdGF0dXNSZXNwb25zZTL/CAoIUmVwb3J0ZXISWgoX", - "Tm90aWZ5RXhlY3V0aW9uU3RhcnRpbmcSKC5nYXVnZS5tZXNzYWdlcy5FeGVj", - "dXRpb25TdGFydGluZ1JlcXVlc3QaFS5nYXVnZS5tZXNzYWdlcy5FbXB0eRJi", - "ChtOb3RpZnlTcGVjRXhlY3V0aW9uU3RhcnRpbmcSLC5nYXVnZS5tZXNzYWdl", - "cy5TcGVjRXhlY3V0aW9uU3RhcnRpbmdSZXF1ZXN0GhUuZ2F1Z2UubWVzc2Fn", - "ZXMuRW1wdHkSagofTm90aWZ5U2NlbmFyaW9FeGVjdXRpb25TdGFydGluZxIw", - "LmdhdWdlLm1lc3NhZ2VzLlNjZW5hcmlvRXhlY3V0aW9uU3RhcnRpbmdSZXF1", - "ZXN0GhUuZ2F1Z2UubWVzc2FnZXMuRW1wdHkSaAoeTm90aWZ5Q29uY2VwdEV4", - "ZWN1dGlvblN0YXJ0aW5nEi8uZ2F1Z2UubWVzc2FnZXMuQ29uY2VwdEV4ZWN1", - "dGlvblN0YXJ0aW5nUmVxdWVzdBoVLmdhdWdlLm1lc3NhZ2VzLkVtcHR5EmQK", - "HE5vdGlmeUNvbmNlcHRFeGVjdXRpb25FbmRpbmcSLS5nYXVnZS5tZXNzYWdl", - "cy5Db25jZXB0RXhlY3V0aW9uRW5kaW5nUmVxdWVzdBoVLmdhdWdlLm1lc3Nh", - "Z2VzLkVtcHR5EmIKG05vdGlmeVN0ZXBFeGVjdXRpb25TdGFydGluZxIsLmdh", - "dWdlLm1lc3NhZ2VzLlN0ZXBFeGVjdXRpb25TdGFydGluZ1JlcXVlc3QaFS5n", - "YXVnZS5tZXNzYWdlcy5FbXB0eRJeChlOb3RpZnlTdGVwRXhlY3V0aW9uRW5k", - "aW5nEiouZ2F1Z2UubWVzc2FnZXMuU3RlcEV4ZWN1dGlvbkVuZGluZ1JlcXVl", - "c3QaFS5nYXVnZS5tZXNzYWdlcy5FbXB0eRJmCh1Ob3RpZnlTY2VuYXJpb0V4", - "ZWN1dGlvbkVuZGluZxIuLmdhdWdlLm1lc3NhZ2VzLlNjZW5hcmlvRXhlY3V0", - "aW9uRW5kaW5nUmVxdWVzdBoVLmdhdWdlLm1lc3NhZ2VzLkVtcHR5El4KGU5v", - "dGlmeVNwZWNFeGVjdXRpb25FbmRpbmcSKi5nYXVnZS5tZXNzYWdlcy5TcGVj", - "RXhlY3V0aW9uRW5kaW5nUmVxdWVzdBoVLmdhdWdlLm1lc3NhZ2VzLkVtcHR5", - "ElYKFU5vdGlmeUV4ZWN1dGlvbkVuZGluZxImLmdhdWdlLm1lc3NhZ2VzLkV4", - "ZWN1dGlvbkVuZGluZ1JlcXVlc3QaFS5nYXVnZS5tZXNzYWdlcy5FbXB0eRJQ", - "ChFOb3RpZnlTdWl0ZVJlc3VsdBIkLmdhdWdlLm1lc3NhZ2VzLlN1aXRlRXhl", - "Y3V0aW9uUmVzdWx0GhUuZ2F1Z2UubWVzc2FnZXMuRW1wdHkSQQoES2lsbBIi", - "LmdhdWdlLm1lc3NhZ2VzLktpbGxQcm9jZXNzUmVxdWVzdBoVLmdhdWdlLm1l", - "c3NhZ2VzLkVtcHR5MpMBCgpEb2N1bWVudGVyEkIKDEdlbmVyYXRlRG9jcxIb", - "LmdhdWdlLm1lc3NhZ2VzLlNwZWNEZXRhaWxzGhUuZ2F1Z2UubWVzc2FnZXMu", - "RW1wdHkSQQoES2lsbBIiLmdhdWdlLm1lc3NhZ2VzLktpbGxQcm9jZXNzUmVx", - "dWVzdBoVLmdhdWdlLm1lc3NhZ2VzLkVtcHR5QlwKFmNvbS50aG91Z2h0d29y", - "a3MuZ2F1Z2VaMWdpdGh1Yi5jb20vZ2V0Z2F1Z2UvZ2F1Z2UtcHJvdG8vZ28v", - "Z2F1Z2VfbWVzc2FnZXOqAg5HYXVnZS5NZXNzYWdlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Gauge.Messages.MessagesReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, null)); - } - #endregion - - } -} - -#endregion Designer generated code diff --git a/src/Gauge.CSharp.Core/ServicesGrpc.cs b/src/Gauge.CSharp.Core/ServicesGrpc.cs deleted file mode 100644 index df68019..0000000 --- a/src/Gauge.CSharp.Core/ServicesGrpc.cs +++ /dev/null @@ -1,3470 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: services.proto -// -// Original file comments: -// ---------------------------------------------------------------- -// Copyright (c) ThoughtWorks, Inc. -// Licensed under the Apache License, Version 2.0 -// See LICENSE in the project root for license information. -// ---------------------------------------------------------------- -// -#pragma warning disable 0414, 1591, 8981, 0612 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Gauge.Messages { - public static partial class Runner - { - static readonly string __ServiceName = "gauge.messages.Runner"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepValidateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepValidateRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepValidateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepValidateResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SuiteDataStoreInitRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SuiteDataStoreInitRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecutionStatusResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecutionStatusResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecDataStoreInitRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecDataStoreInitRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ScenarioDataStoreInitRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ScenarioDataStoreInitRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ScenarioExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ScenarioExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecuteStepRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecuteStepRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ScenarioExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ScenarioExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_CacheFileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.CacheFileRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNameRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNameRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNameResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNameResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ImplementationFileGlobPatternResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ImplementationFileGlobPatternResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNamesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNamesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepNamesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepNamesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepPositionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepPositionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepPositionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepPositionsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ImplementationFileListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ImplementationFileListResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StubImplementationCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StubImplementationCodeRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_FileDiff = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.FileDiff.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_RefactorRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.RefactorRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_RefactorResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.RefactorResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_KillProcessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.KillProcessRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ConceptExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ConceptExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ConceptExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ConceptExecutionEndingRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ValidateStep = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ValidateStep", - __Marshaller_gauge_messages_StepValidateRequest, - __Marshaller_gauge_messages_StepValidateResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_InitializeSuiteDataStore = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "InitializeSuiteDataStore", - __Marshaller_gauge_messages_SuiteDataStoreInitRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StartExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "StartExecution", - __Marshaller_gauge_messages_ExecutionStartingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_InitializeSpecDataStore = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "InitializeSpecDataStore", - __Marshaller_gauge_messages_SpecDataStoreInitRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StartSpecExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "StartSpecExecution", - __Marshaller_gauge_messages_SpecExecutionStartingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_InitializeScenarioDataStore = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "InitializeScenarioDataStore", - __Marshaller_gauge_messages_ScenarioDataStoreInitRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StartScenarioExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "StartScenarioExecution", - __Marshaller_gauge_messages_ScenarioExecutionStartingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_StartStepExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "StartStepExecution", - __Marshaller_gauge_messages_StepExecutionStartingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ExecuteStep = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ExecuteStep", - __Marshaller_gauge_messages_ExecuteStepRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FinishStepExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FinishStepExecution", - __Marshaller_gauge_messages_StepExecutionEndingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FinishScenarioExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FinishScenarioExecution", - __Marshaller_gauge_messages_ScenarioExecutionEndingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FinishSpecExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FinishSpecExecution", - __Marshaller_gauge_messages_SpecExecutionEndingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FinishExecution = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FinishExecution", - __Marshaller_gauge_messages_ExecutionEndingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CacheFile = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CacheFile", - __Marshaller_gauge_messages_CacheFileRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepName = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepName", - __Marshaller_gauge_messages_StepNameRequest, - __Marshaller_gauge_messages_StepNameResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGlobPatterns = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGlobPatterns", - __Marshaller_gauge_messages_Empty, - __Marshaller_gauge_messages_ImplementationFileGlobPatternResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepNames = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepNames", - __Marshaller_gauge_messages_StepNamesRequest, - __Marshaller_gauge_messages_StepNamesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetStepPositions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetStepPositions", - __Marshaller_gauge_messages_StepPositionsRequest, - __Marshaller_gauge_messages_StepPositionsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetImplementationFiles = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetImplementationFiles", - __Marshaller_gauge_messages_Empty, - __Marshaller_gauge_messages_ImplementationFileListResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ImplementStub = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ImplementStub", - __Marshaller_gauge_messages_StubImplementationCodeRequest, - __Marshaller_gauge_messages_FileDiff); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Refactor = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Refactor", - __Marshaller_gauge_messages_RefactorRequest, - __Marshaller_gauge_messages_RefactorResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Kill = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Kill", - __Marshaller_gauge_messages_KillProcessRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyConceptExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyConceptExecutionStarting", - __Marshaller_gauge_messages_ConceptExecutionStartingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyConceptExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyConceptExecutionEnding", - __Marshaller_gauge_messages_ConceptExecutionEndingRequest, - __Marshaller_gauge_messages_ExecutionStatusResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Gauge.Messages.ServicesReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of Runner - [grpc::BindServiceMethod(typeof(Runner), "BindService")] - public abstract partial class RunnerBase - { - /// - /// ValidateStep is a RPC to validate a given step. - /// - /// Accepts a StepValidateRequest message and returns a StepValidateResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// SuiteDataStoreInit is a RPC to initialize the suite level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task InitializeSuiteDataStore(global::Gauge.Messages.SuiteDataStoreInitRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - /// - /// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StartExecution(global::Gauge.Messages.ExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// SpecDataStoreInit is a RPC to initialize the spec level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task InitializeSpecDataStore(global::Gauge.Messages.SpecDataStoreInitRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StartSpecExecution(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task InitializeScenarioDataStore(global::Gauge.Messages.ScenarioDataStoreInitRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StartScenarioExecution(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// StepExecutionStarting is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task StartStepExecution(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ExecuteStep is a RPC to tell runner to execute a step . - /// - /// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ExecuteStep(global::Gauge.Messages.ExecuteStepRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// StepExecutionEnding is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FinishStepExecution(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FinishScenarioExecution(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FinishSpecExecution(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ExecutionEnding is a RPC to tell runner to execute suite level hooks. - /// - /// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FinishExecution(global::Gauge.Messages.ExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - /// - /// Accepts a CacheFileRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetStepName is a RPC to get information about the given step. - /// - /// Accepts a StepNameRequest message and returns a StepNameResponse message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - /// - /// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetStepNames is a RPC to get all the available steps from the runner. - /// - /// Accepts a StepNamesRequest message and returns a StepNamesResponse - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetStepPositions is a RPC to get positions of all available steps in a given file. - /// - /// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// GetImplementationFiles is a RPC get all the existing implementation files. - /// - /// Accepts a Empty and returns a ImplementationFileListResponse message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// ImplementStub is a RPC to to ask runner to add a given implementation to given file. - /// - /// Accepts a StubImplementationCodeRequest and returns a FileDiff message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Refactor is a RPC to refactor a given step in implementation file. - /// - /// Accepts a RefactorRequest message and returns a RefactorResponse message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Refactor(global::Gauge.Messages.RefactorRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Kill(global::Gauge.Messages.KillProcessRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns an ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns an ExecutionStatusResponse message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for Runner - public partial class RunnerClient : grpc::ClientBase - { - /// Creates a new client for Runner - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public RunnerClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for Runner that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public RunnerClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected RunnerClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected RunnerClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// ValidateStep is a RPC to validate a given step. - /// - /// Accepts a StepValidateRequest message and returns a StepValidateResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepValidateResponse ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ValidateStep(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ValidateStep is a RPC to validate a given step. - /// - /// Accepts a StepValidateRequest message and returns a StepValidateResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepValidateResponse ValidateStep(global::Gauge.Messages.StepValidateRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ValidateStep, null, options, request); - } - /// - /// ValidateStep is a RPC to validate a given step. - /// - /// Accepts a StepValidateRequest message and returns a StepValidateResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ValidateStepAsync(global::Gauge.Messages.StepValidateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ValidateStepAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ValidateStep is a RPC to validate a given step. - /// - /// Accepts a StepValidateRequest message and returns a StepValidateResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ValidateStepAsync(global::Gauge.Messages.StepValidateRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ValidateStep, null, options, request); - } - /// - /// SuiteDataStoreInit is a RPC to initialize the suite level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeSuiteDataStore(global::Gauge.Messages.SuiteDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeSuiteDataStore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SuiteDataStoreInit is a RPC to initialize the suite level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeSuiteDataStore(global::Gauge.Messages.SuiteDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_InitializeSuiteDataStore, null, options, request); - } - /// - /// SuiteDataStoreInit is a RPC to initialize the suite level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeSuiteDataStoreAsync(global::Gauge.Messages.SuiteDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeSuiteDataStoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SuiteDataStoreInit is a RPC to initialize the suite level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeSuiteDataStoreAsync(global::Gauge.Messages.SuiteDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_InitializeSuiteDataStore, null, options, request); - } - /// - /// ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - /// - /// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartExecution(global::Gauge.Messages.ExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - /// - /// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartExecution(global::Gauge.Messages.ExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_StartExecution, null, options, request); - } - /// - /// ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - /// - /// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartExecutionAsync(global::Gauge.Messages.ExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecutionStarting is a RPC to tell runner to execute Suite level hooks. - /// - /// Accepts a ExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartExecutionAsync(global::Gauge.Messages.ExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_StartExecution, null, options, request); - } - /// - /// SpecDataStoreInit is a RPC to initialize the spec level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeSpecDataStore(global::Gauge.Messages.SpecDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeSpecDataStore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecDataStoreInit is a RPC to initialize the spec level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeSpecDataStore(global::Gauge.Messages.SpecDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_InitializeSpecDataStore, null, options, request); - } - /// - /// SpecDataStoreInit is a RPC to initialize the spec level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeSpecDataStoreAsync(global::Gauge.Messages.SpecDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeSpecDataStoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecDataStoreInit is a RPC to initialize the spec level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeSpecDataStoreAsync(global::Gauge.Messages.SpecDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_InitializeSpecDataStore, null, options, request); - } - /// - /// SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartSpecExecution(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartSpecExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartSpecExecution(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_StartSpecExecution, null, options, request); - } - /// - /// SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartSpecExecutionAsync(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartSpecExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecExecutionStarting is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartSpecExecutionAsync(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_StartSpecExecution, null, options, request); - } - /// - /// ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeScenarioDataStore(global::Gauge.Messages.ScenarioDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeScenarioDataStore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse InitializeScenarioDataStore(global::Gauge.Messages.ScenarioDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_InitializeScenarioDataStore, null, options, request); - } - /// - /// ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeScenarioDataStoreAsync(global::Gauge.Messages.ScenarioDataStoreInitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitializeScenarioDataStoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioDataStoreInit is a RPC to initialize the scenario level data store. - /// - /// Accepts a Empty message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitializeScenarioDataStoreAsync(global::Gauge.Messages.ScenarioDataStoreInitRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_InitializeScenarioDataStore, null, options, request); - } - /// - /// ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartScenarioExecution(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartScenarioExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartScenarioExecution(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_StartScenarioExecution, null, options, request); - } - /// - /// ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartScenarioExecutionAsync(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartScenarioExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioExecutionStarting is a RPC to tell runner to execute scenario level hooks. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartScenarioExecutionAsync(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_StartScenarioExecution, null, options, request); - } - /// - /// StepExecutionStarting is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartStepExecution(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartStepExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// StepExecutionStarting is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse StartStepExecution(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_StartStepExecution, null, options, request); - } - /// - /// StepExecutionStarting is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartStepExecutionAsync(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return StartStepExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// StepExecutionStarting is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionStartingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall StartStepExecutionAsync(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_StartStepExecution, null, options, request); - } - /// - /// ExecuteStep is a RPC to tell runner to execute a step . - /// - /// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse ExecuteStep(global::Gauge.Messages.ExecuteStepRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ExecuteStep(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecuteStep is a RPC to tell runner to execute a step . - /// - /// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse ExecuteStep(global::Gauge.Messages.ExecuteStepRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ExecuteStep, null, options, request); - } - /// - /// ExecuteStep is a RPC to tell runner to execute a step . - /// - /// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ExecuteStepAsync(global::Gauge.Messages.ExecuteStepRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ExecuteStepAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecuteStep is a RPC to tell runner to execute a step . - /// - /// Accepts a ExecuteStepRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ExecuteStepAsync(global::Gauge.Messages.ExecuteStepRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ExecuteStep, null, options, request); - } - /// - /// StepExecutionEnding is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishStepExecution(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishStepExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// StepExecutionEnding is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishStepExecution(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FinishStepExecution, null, options, request); - } - /// - /// StepExecutionEnding is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishStepExecutionAsync(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishStepExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// StepExecutionEnding is a RPC to tell runner to execute step level hooks. - /// - /// Accepts a StepExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishStepExecutionAsync(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FinishStepExecution, null, options, request); - } - /// - /// ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishScenarioExecution(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishScenarioExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishScenarioExecution(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FinishScenarioExecution, null, options, request); - } - /// - /// ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishScenarioExecutionAsync(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishScenarioExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ScenarioExecutionEnding is a RPC to tell runner to execute Scenario level hooks. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishScenarioExecutionAsync(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FinishScenarioExecution, null, options, request); - } - /// - /// SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishSpecExecution(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishSpecExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishSpecExecution(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FinishSpecExecution, null, options, request); - } - /// - /// SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishSpecExecutionAsync(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishSpecExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// SpecExecutionEnding is a RPC to tell runner to execute spec level hooks. - /// - /// Accepts a SpecExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishSpecExecutionAsync(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FinishSpecExecution, null, options, request); - } - /// - /// ExecutionEnding is a RPC to tell runner to execute suite level hooks. - /// - /// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishExecution(global::Gauge.Messages.ExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishExecution(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecutionEnding is a RPC to tell runner to execute suite level hooks. - /// - /// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse FinishExecution(global::Gauge.Messages.ExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FinishExecution, null, options, request); - } - /// - /// ExecutionEnding is a RPC to tell runner to execute suite level hooks. - /// - /// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishExecutionAsync(global::Gauge.Messages.ExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinishExecutionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ExecutionEnding is a RPC to tell runner to execute suite level hooks. - /// - /// Accepts a ExecutionEndingRequest message and returns a ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinishExecutionAsync(global::Gauge.Messages.ExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FinishExecution, null, options, request); - } - /// - /// CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - /// - /// Accepts a CacheFileRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CacheFile(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - /// - /// Accepts a CacheFileRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty CacheFile(global::Gauge.Messages.CacheFileRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CacheFile, null, options, request); - } - /// - /// CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - /// - /// Accepts a CacheFileRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CacheFileAsync(global::Gauge.Messages.CacheFileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CacheFileAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// CacheFile is a RPC to tell runner to load/reload/unload a implementation file. - /// - /// Accepts a CacheFileRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CacheFileAsync(global::Gauge.Messages.CacheFileRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CacheFile, null, options, request); - } - /// - /// GetStepName is a RPC to get information about the given step. - /// - /// Accepts a StepNameRequest message and returns a StepNameResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNameResponse GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepName(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepName is a RPC to get information about the given step. - /// - /// Accepts a StepNameRequest message and returns a StepNameResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNameResponse GetStepName(global::Gauge.Messages.StepNameRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepName, null, options, request); - } - /// - /// GetStepName is a RPC to get information about the given step. - /// - /// Accepts a StepNameRequest message and returns a StepNameResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNameAsync(global::Gauge.Messages.StepNameRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNameAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepName is a RPC to get information about the given step. - /// - /// Accepts a StepNameRequest message and returns a StepNameResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNameAsync(global::Gauge.Messages.StepNameRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepName, null, options, request); - } - /// - /// GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - /// - /// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileGlobPatternResponse GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGlobPatterns(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - /// - /// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileGlobPatternResponse GetGlobPatterns(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGlobPatterns, null, options, request); - } - /// - /// GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - /// - /// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGlobPatternsAsync(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGlobPatternsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetGlobPatterns is a RPC to get the file path pattern which needs to be cached. - /// - /// Accepts a Empty message and returns a ImplementationFileGlobPatternResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGlobPatternsAsync(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGlobPatterns, null, options, request); - } - /// - /// GetStepNames is a RPC to get all the available steps from the runner. - /// - /// Accepts a StepNamesRequest message and returns a StepNamesResponse - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNamesResponse GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNames(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepNames is a RPC to get all the available steps from the runner. - /// - /// Accepts a StepNamesRequest message and returns a StepNamesResponse - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepNamesResponse GetStepNames(global::Gauge.Messages.StepNamesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepNames, null, options, request); - } - /// - /// GetStepNames is a RPC to get all the available steps from the runner. - /// - /// Accepts a StepNamesRequest message and returns a StepNamesResponse - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNamesAsync(global::Gauge.Messages.StepNamesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepNamesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepNames is a RPC to get all the available steps from the runner. - /// - /// Accepts a StepNamesRequest message and returns a StepNamesResponse - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepNamesAsync(global::Gauge.Messages.StepNamesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepNames, null, options, request); - } - /// - /// GetStepPositions is a RPC to get positions of all available steps in a given file. - /// - /// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepPositionsResponse GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepPositions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepPositions is a RPC to get positions of all available steps in a given file. - /// - /// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.StepPositionsResponse GetStepPositions(global::Gauge.Messages.StepPositionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetStepPositions, null, options, request); - } - /// - /// GetStepPositions is a RPC to get positions of all available steps in a given file. - /// - /// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepPositionsAsync(global::Gauge.Messages.StepPositionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetStepPositionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetStepPositions is a RPC to get positions of all available steps in a given file. - /// - /// Accepts a StepPositionsRequest message and returns a StepPositionsResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetStepPositionsAsync(global::Gauge.Messages.StepPositionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetStepPositions, null, options, request); - } - /// - /// GetImplementationFiles is a RPC get all the existing implementation files. - /// - /// Accepts a Empty and returns a ImplementationFileListResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileListResponse GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetImplementationFiles(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetImplementationFiles is a RPC get all the existing implementation files. - /// - /// Accepts a Empty and returns a ImplementationFileListResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ImplementationFileListResponse GetImplementationFiles(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetImplementationFiles, null, options, request); - } - /// - /// GetImplementationFiles is a RPC get all the existing implementation files. - /// - /// Accepts a Empty and returns a ImplementationFileListResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetImplementationFilesAsync(global::Gauge.Messages.Empty request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetImplementationFilesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GetImplementationFiles is a RPC get all the existing implementation files. - /// - /// Accepts a Empty and returns a ImplementationFileListResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetImplementationFilesAsync(global::Gauge.Messages.Empty request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetImplementationFiles, null, options, request); - } - /// - /// ImplementStub is a RPC to to ask runner to add a given implementation to given file. - /// - /// Accepts a StubImplementationCodeRequest and returns a FileDiff message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.FileDiff ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ImplementStub(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ImplementStub is a RPC to to ask runner to add a given implementation to given file. - /// - /// Accepts a StubImplementationCodeRequest and returns a FileDiff message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.FileDiff ImplementStub(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ImplementStub, null, options, request); - } - /// - /// ImplementStub is a RPC to to ask runner to add a given implementation to given file. - /// - /// Accepts a StubImplementationCodeRequest and returns a FileDiff message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ImplementStubAsync(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ImplementStubAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// ImplementStub is a RPC to to ask runner to add a given implementation to given file. - /// - /// Accepts a StubImplementationCodeRequest and returns a FileDiff message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ImplementStubAsync(global::Gauge.Messages.StubImplementationCodeRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ImplementStub, null, options, request); - } - /// - /// Refactor is a RPC to refactor a given step in implementation file. - /// - /// Accepts a RefactorRequest message and returns a RefactorResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.RefactorResponse Refactor(global::Gauge.Messages.RefactorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Refactor(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Refactor is a RPC to refactor a given step in implementation file. - /// - /// Accepts a RefactorRequest message and returns a RefactorResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.RefactorResponse Refactor(global::Gauge.Messages.RefactorRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Refactor, null, options, request); - } - /// - /// Refactor is a RPC to refactor a given step in implementation file. - /// - /// Accepts a RefactorRequest message and returns a RefactorResponse message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RefactorAsync(global::Gauge.Messages.RefactorRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RefactorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Refactor is a RPC to refactor a given step in implementation file. - /// - /// Accepts a RefactorRequest message and returns a RefactorResponse message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RefactorAsync(global::Gauge.Messages.RefactorRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Refactor, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Kill(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Kill, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return KillAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Kill, null, options, request); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyConceptExecutionStarting, null, options, request); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionStartingAsync(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionStartingAsync(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyConceptExecutionStarting, null, options, request); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.ExecutionStatusResponse NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyConceptExecutionEnding, null, options, request); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionEndingAsync(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns an ExecutionStatusResponse message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionEndingAsync(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyConceptExecutionEnding, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override RunnerClient NewInstance(ClientBaseConfiguration configuration) - { - return new RunnerClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(RunnerBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_ValidateStep, serviceImpl.ValidateStep) - .AddMethod(__Method_InitializeSuiteDataStore, serviceImpl.InitializeSuiteDataStore) - .AddMethod(__Method_StartExecution, serviceImpl.StartExecution) - .AddMethod(__Method_InitializeSpecDataStore, serviceImpl.InitializeSpecDataStore) - .AddMethod(__Method_StartSpecExecution, serviceImpl.StartSpecExecution) - .AddMethod(__Method_InitializeScenarioDataStore, serviceImpl.InitializeScenarioDataStore) - .AddMethod(__Method_StartScenarioExecution, serviceImpl.StartScenarioExecution) - .AddMethod(__Method_StartStepExecution, serviceImpl.StartStepExecution) - .AddMethod(__Method_ExecuteStep, serviceImpl.ExecuteStep) - .AddMethod(__Method_FinishStepExecution, serviceImpl.FinishStepExecution) - .AddMethod(__Method_FinishScenarioExecution, serviceImpl.FinishScenarioExecution) - .AddMethod(__Method_FinishSpecExecution, serviceImpl.FinishSpecExecution) - .AddMethod(__Method_FinishExecution, serviceImpl.FinishExecution) - .AddMethod(__Method_CacheFile, serviceImpl.CacheFile) - .AddMethod(__Method_GetStepName, serviceImpl.GetStepName) - .AddMethod(__Method_GetGlobPatterns, serviceImpl.GetGlobPatterns) - .AddMethod(__Method_GetStepNames, serviceImpl.GetStepNames) - .AddMethod(__Method_GetStepPositions, serviceImpl.GetStepPositions) - .AddMethod(__Method_GetImplementationFiles, serviceImpl.GetImplementationFiles) - .AddMethod(__Method_ImplementStub, serviceImpl.ImplementStub) - .AddMethod(__Method_Refactor, serviceImpl.Refactor) - .AddMethod(__Method_Kill, serviceImpl.Kill) - .AddMethod(__Method_NotifyConceptExecutionStarting, serviceImpl.NotifyConceptExecutionStarting) - .AddMethod(__Method_NotifyConceptExecutionEnding, serviceImpl.NotifyConceptExecutionEnding).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, RunnerBase serviceImpl) - { - serviceBinder.AddMethod(__Method_ValidateStep, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ValidateStep)); - serviceBinder.AddMethod(__Method_InitializeSuiteDataStore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.InitializeSuiteDataStore)); - serviceBinder.AddMethod(__Method_StartExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.StartExecution)); - serviceBinder.AddMethod(__Method_InitializeSpecDataStore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.InitializeSpecDataStore)); - serviceBinder.AddMethod(__Method_StartSpecExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.StartSpecExecution)); - serviceBinder.AddMethod(__Method_InitializeScenarioDataStore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.InitializeScenarioDataStore)); - serviceBinder.AddMethod(__Method_StartScenarioExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.StartScenarioExecution)); - serviceBinder.AddMethod(__Method_StartStepExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.StartStepExecution)); - serviceBinder.AddMethod(__Method_ExecuteStep, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ExecuteStep)); - serviceBinder.AddMethod(__Method_FinishStepExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FinishStepExecution)); - serviceBinder.AddMethod(__Method_FinishScenarioExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FinishScenarioExecution)); - serviceBinder.AddMethod(__Method_FinishSpecExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FinishSpecExecution)); - serviceBinder.AddMethod(__Method_FinishExecution, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FinishExecution)); - serviceBinder.AddMethod(__Method_CacheFile, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CacheFile)); - serviceBinder.AddMethod(__Method_GetStepName, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepName)); - serviceBinder.AddMethod(__Method_GetGlobPatterns, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGlobPatterns)); - serviceBinder.AddMethod(__Method_GetStepNames, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepNames)); - serviceBinder.AddMethod(__Method_GetStepPositions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetStepPositions)); - serviceBinder.AddMethod(__Method_GetImplementationFiles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetImplementationFiles)); - serviceBinder.AddMethod(__Method_ImplementStub, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ImplementStub)); - serviceBinder.AddMethod(__Method_Refactor, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Refactor)); - serviceBinder.AddMethod(__Method_Kill, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Kill)); - serviceBinder.AddMethod(__Method_NotifyConceptExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyConceptExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifyConceptExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyConceptExecutionEnding)); - } - - } - /// - /// Reporter services is meant for reporting plugins, or others plugins which are interested the live events - /// - public static partial class Reporter - { - static readonly string __ServiceName = "gauge.messages.Reporter"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ScenarioExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ScenarioExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ConceptExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ConceptExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ConceptExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ConceptExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepExecutionStartingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepExecutionStartingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_StepExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.StepExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ScenarioExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ScenarioExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_ExecutionEndingRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.ExecutionEndingRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SuiteExecutionResult = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SuiteExecutionResult.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_KillProcessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.KillProcessRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyExecutionStarting", - __Marshaller_gauge_messages_ExecutionStartingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifySpecExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifySpecExecutionStarting", - __Marshaller_gauge_messages_SpecExecutionStartingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyScenarioExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyScenarioExecutionStarting", - __Marshaller_gauge_messages_ScenarioExecutionStartingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyConceptExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyConceptExecutionStarting", - __Marshaller_gauge_messages_ConceptExecutionStartingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyConceptExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyConceptExecutionEnding", - __Marshaller_gauge_messages_ConceptExecutionEndingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyStepExecutionStarting = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyStepExecutionStarting", - __Marshaller_gauge_messages_StepExecutionStartingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyStepExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyStepExecutionEnding", - __Marshaller_gauge_messages_StepExecutionEndingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyScenarioExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyScenarioExecutionEnding", - __Marshaller_gauge_messages_ScenarioExecutionEndingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifySpecExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifySpecExecutionEnding", - __Marshaller_gauge_messages_SpecExecutionEndingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifyExecutionEnding = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifyExecutionEnding", - __Marshaller_gauge_messages_ExecutionEndingRequest, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_NotifySuiteResult = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "NotifySuiteResult", - __Marshaller_gauge_messages_SuiteExecutionResult, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Kill = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Kill", - __Marshaller_gauge_messages_KillProcessRequest, - __Marshaller_gauge_messages_Empty); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Gauge.Messages.ServicesReflection.Descriptor.Services[1]; } - } - - /// Base class for server-side implementations of Reporter - [grpc::BindServiceMethod(typeof(Reporter), "BindService")] - public abstract partial class ReporterBase - { - /// - /// NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - /// - /// Accepts a ExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyExecutionStarting(global::Gauge.Messages.ExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifySpecExecutionStarting(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyScenarioExecutionStarting(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyStepExecutionStarting(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyStepExecutionEnding(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyScenarioExecutionEnding(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifySpecExecutionEnding(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - /// - /// Accepts a ExecutionEndingRequest message and returns a Empty message - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifyExecutionEnding(global::Gauge.Messages.ExecutionEndingRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// NotifySuiteResult is a RPC to tell about the end result of execution - /// - /// Accepts a SuiteExecutionResult message and returns a Empty message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task NotifySuiteResult(global::Gauge.Messages.SuiteExecutionResult request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Kill(global::Gauge.Messages.KillProcessRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for Reporter - public partial class ReporterClient : grpc::ClientBase - { - /// Creates a new client for Reporter - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ReporterClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for Reporter that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ReporterClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ReporterClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ReporterClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - /// - /// Accepts a ExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyExecutionStarting(global::Gauge.Messages.ExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - /// - /// Accepts a ExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyExecutionStarting(global::Gauge.Messages.ExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyExecutionStarting, null, options, request); - } - /// - /// NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - /// - /// Accepts a ExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyExecutionStartingAsync(global::Gauge.Messages.ExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyExecutionStarting is a RPC to tell plugins that the execution has started. - /// - /// Accepts a ExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyExecutionStartingAsync(global::Gauge.Messages.ExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyExecutionStarting, null, options, request); - } - /// - /// NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySpecExecutionStarting(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySpecExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySpecExecutionStarting(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifySpecExecutionStarting, null, options, request); - } - /// - /// NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySpecExecutionStartingAsync(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySpecExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySpecExecutionStarting is a RPC to tell plugins that the specification execution has started. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySpecExecutionStartingAsync(global::Gauge.Messages.SpecExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifySpecExecutionStarting, null, options, request); - } - /// - /// NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyScenarioExecutionStarting(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyScenarioExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyScenarioExecutionStarting(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyScenarioExecutionStarting, null, options, request); - } - /// - /// NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyScenarioExecutionStartingAsync(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyScenarioExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyScenarioExecutionStarting is a RPC to tell plugins that the scenario execution has started. - /// - /// Accepts a ScenarioExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyScenarioExecutionStartingAsync(global::Gauge.Messages.ScenarioExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyScenarioExecutionStarting, null, options, request); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyConceptExecutionStarting(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyConceptExecutionStarting, null, options, request); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionStartingAsync(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionStarting is a RPC to tell plugins that the concept execution has started. - /// - /// Accepts a ConceptExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionStartingAsync(global::Gauge.Messages.ConceptExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyConceptExecutionStarting, null, options, request); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyConceptExecutionEnding(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyConceptExecutionEnding, null, options, request); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionEndingAsync(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyConceptExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyConceptExecutionEnding is a RPC to tell plugins that the concept execution has finished. - /// - /// Accepts a ConceptExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyConceptExecutionEndingAsync(global::Gauge.Messages.ConceptExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyConceptExecutionEnding, null, options, request); - } - /// - /// NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyStepExecutionStarting(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyStepExecutionStarting(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyStepExecutionStarting(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyStepExecutionStarting, null, options, request); - } - /// - /// NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyStepExecutionStartingAsync(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyStepExecutionStartingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyStepExecutionStarting is a RPC to tell plugins that the step execution has started. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyStepExecutionStartingAsync(global::Gauge.Messages.StepExecutionStartingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyStepExecutionStarting, null, options, request); - } - /// - /// NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyStepExecutionEnding(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyStepExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyStepExecutionEnding(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyStepExecutionEnding, null, options, request); - } - /// - /// NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyStepExecutionEndingAsync(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyStepExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyStepExecutionEnding is a RPC to tell plugins that the step execution has finished. - /// - /// Accepts a StepExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyStepExecutionEndingAsync(global::Gauge.Messages.StepExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyStepExecutionEnding, null, options, request); - } - /// - /// NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyScenarioExecutionEnding(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyScenarioExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyScenarioExecutionEnding(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyScenarioExecutionEnding, null, options, request); - } - /// - /// NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyScenarioExecutionEndingAsync(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyScenarioExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyScenarioExecutionEnding is a RPC to tell plugins that the scenario execution has finished. - /// - /// Accepts a ScenarioExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyScenarioExecutionEndingAsync(global::Gauge.Messages.ScenarioExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyScenarioExecutionEnding, null, options, request); - } - /// - /// NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySpecExecutionEnding(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySpecExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySpecExecutionEnding(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifySpecExecutionEnding, null, options, request); - } - /// - /// NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySpecExecutionEndingAsync(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySpecExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySpecExecutionEnding is a RPC to tell plugins that the specification execution has finished. - /// - /// Accepts a SpecExecutionStartingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySpecExecutionEndingAsync(global::Gauge.Messages.SpecExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifySpecExecutionEnding, null, options, request); - } - /// - /// NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - /// - /// Accepts a ExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyExecutionEnding(global::Gauge.Messages.ExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyExecutionEnding(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - /// - /// Accepts a ExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifyExecutionEnding(global::Gauge.Messages.ExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifyExecutionEnding, null, options, request); - } - /// - /// NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - /// - /// Accepts a ExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyExecutionEndingAsync(global::Gauge.Messages.ExecutionEndingRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifyExecutionEndingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifyExecutionEnding is a RPC to tell plugins that the execution has finished. - /// - /// Accepts a ExecutionEndingRequest message and returns a Empty message - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifyExecutionEndingAsync(global::Gauge.Messages.ExecutionEndingRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifyExecutionEnding, null, options, request); - } - /// - /// NotifySuiteResult is a RPC to tell about the end result of execution - /// - /// Accepts a SuiteExecutionResult message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySuiteResult(global::Gauge.Messages.SuiteExecutionResult request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySuiteResult(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySuiteResult is a RPC to tell about the end result of execution - /// - /// Accepts a SuiteExecutionResult message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty NotifySuiteResult(global::Gauge.Messages.SuiteExecutionResult request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_NotifySuiteResult, null, options, request); - } - /// - /// NotifySuiteResult is a RPC to tell about the end result of execution - /// - /// Accepts a SuiteExecutionResult message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySuiteResultAsync(global::Gauge.Messages.SuiteExecutionResult request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return NotifySuiteResultAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// NotifySuiteResult is a RPC to tell about the end result of execution - /// - /// Accepts a SuiteExecutionResult message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall NotifySuiteResultAsync(global::Gauge.Messages.SuiteExecutionResult request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_NotifySuiteResult, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Kill(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Kill, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return KillAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Kill, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ReporterClient NewInstance(ClientBaseConfiguration configuration) - { - return new ReporterClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ReporterBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_NotifyExecutionStarting, serviceImpl.NotifyExecutionStarting) - .AddMethod(__Method_NotifySpecExecutionStarting, serviceImpl.NotifySpecExecutionStarting) - .AddMethod(__Method_NotifyScenarioExecutionStarting, serviceImpl.NotifyScenarioExecutionStarting) - .AddMethod(__Method_NotifyConceptExecutionStarting, serviceImpl.NotifyConceptExecutionStarting) - .AddMethod(__Method_NotifyConceptExecutionEnding, serviceImpl.NotifyConceptExecutionEnding) - .AddMethod(__Method_NotifyStepExecutionStarting, serviceImpl.NotifyStepExecutionStarting) - .AddMethod(__Method_NotifyStepExecutionEnding, serviceImpl.NotifyStepExecutionEnding) - .AddMethod(__Method_NotifyScenarioExecutionEnding, serviceImpl.NotifyScenarioExecutionEnding) - .AddMethod(__Method_NotifySpecExecutionEnding, serviceImpl.NotifySpecExecutionEnding) - .AddMethod(__Method_NotifyExecutionEnding, serviceImpl.NotifyExecutionEnding) - .AddMethod(__Method_NotifySuiteResult, serviceImpl.NotifySuiteResult) - .AddMethod(__Method_Kill, serviceImpl.Kill).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ReporterBase serviceImpl) - { - serviceBinder.AddMethod(__Method_NotifyExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifySpecExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifySpecExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifyScenarioExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyScenarioExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifyConceptExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyConceptExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifyConceptExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyConceptExecutionEnding)); - serviceBinder.AddMethod(__Method_NotifyStepExecutionStarting, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyStepExecutionStarting)); - serviceBinder.AddMethod(__Method_NotifyStepExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyStepExecutionEnding)); - serviceBinder.AddMethod(__Method_NotifyScenarioExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyScenarioExecutionEnding)); - serviceBinder.AddMethod(__Method_NotifySpecExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifySpecExecutionEnding)); - serviceBinder.AddMethod(__Method_NotifyExecutionEnding, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifyExecutionEnding)); - serviceBinder.AddMethod(__Method_NotifySuiteResult, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.NotifySuiteResult)); - serviceBinder.AddMethod(__Method_Kill, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Kill)); - } - - } - /// - /// Reporter services is meant for documentation plugins - /// - public static partial class Documenter - { - static readonly string __ServiceName = "gauge.messages.Documenter"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_SpecDetails = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.SpecDetails.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_gauge_messages_KillProcessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Gauge.Messages.KillProcessRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateDocs = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateDocs", - __Marshaller_gauge_messages_SpecDetails, - __Marshaller_gauge_messages_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Kill = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Kill", - __Marshaller_gauge_messages_KillProcessRequest, - __Marshaller_gauge_messages_Empty); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Gauge.Messages.ServicesReflection.Descriptor.Services[2]; } - } - - /// Base class for server-side implementations of Documenter - [grpc::BindServiceMethod(typeof(Documenter), "BindService")] - public abstract partial class DocumenterBase - { - /// - /// GenerateDocs is a RPC tell plugin to generate docs from the spec details. - /// - /// Accepts a SpecDetails message and returns a Empty message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateDocs(global::Gauge.Messages.SpecDetails request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Kill(global::Gauge.Messages.KillProcessRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for Documenter - public partial class DocumenterClient : grpc::ClientBase - { - /// Creates a new client for Documenter - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DocumenterClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for Documenter that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public DocumenterClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DocumenterClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected DocumenterClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// GenerateDocs is a RPC tell plugin to generate docs from the spec details. - /// - /// Accepts a SpecDetails message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty GenerateDocs(global::Gauge.Messages.SpecDetails request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateDocs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GenerateDocs is a RPC tell plugin to generate docs from the spec details. - /// - /// Accepts a SpecDetails message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty GenerateDocs(global::Gauge.Messages.SpecDetails request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateDocs, null, options, request); - } - /// - /// GenerateDocs is a RPC tell plugin to generate docs from the spec details. - /// - /// Accepts a SpecDetails message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateDocsAsync(global::Gauge.Messages.SpecDetails request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateDocsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// GenerateDocs is a RPC tell plugin to generate docs from the spec details. - /// - /// Accepts a SpecDetails message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateDocsAsync(global::Gauge.Messages.SpecDetails request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateDocs, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Kill(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Gauge.Messages.Empty Kill(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Kill, null, options, request); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return KillAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Kill is a RPC tell plugin to stop grpc server and kill the plugin process. - /// - /// Accepts a KillProcessRequest message and returns a Empty message. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall KillAsync(global::Gauge.Messages.KillProcessRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Kill, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override DocumenterClient NewInstance(ClientBaseConfiguration configuration) - { - return new DocumenterClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(DocumenterBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GenerateDocs, serviceImpl.GenerateDocs) - .AddMethod(__Method_Kill, serviceImpl.Kill).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, DocumenterBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GenerateDocs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateDocs)); - serviceBinder.AddMethod(__Method_Kill, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Kill)); - } - - } -} -#endregion diff --git a/src/Gauge.CSharp.Core/Spec.cs b/src/Gauge.CSharp.Core/Spec.cs deleted file mode 100644 index f0fbe7c..0000000 --- a/src/Gauge.CSharp.Core/Spec.cs +++ /dev/null @@ -1,9602 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: spec.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 Gauge.Messages { - - /// Holder for reflection information generated from spec.proto - public static partial class SpecReflection { - - #region Descriptor - /// File descriptor for spec.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static SpecReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CgpzcGVjLnByb3RvEg5nYXVnZS5tZXNzYWdlcyL5AwoJUHJvdG9TcGVjEhMK", - "C3NwZWNIZWFkaW5nGAEgASgJEigKBWl0ZW1zGAIgAygLMhkuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9JdGVtEhUKDWlzVGFibGVEcml2ZW4YAyABKAgSOQoPcHJl", - "SG9va0ZhaWx1cmVzGAQgAygLMiAuZ2F1Z2UubWVzc2FnZXMuUHJvdG9Ib29r", - "RmFpbHVyZRI6ChBwb3N0SG9va0ZhaWx1cmVzGAUgAygLMiAuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9Ib29rRmFpbHVyZRIQCghmaWxlTmFtZRgGIAEoCRIMCgR0", - "YWdzGAcgAygJEhcKD3ByZUhvb2tNZXNzYWdlcxgIIAMoCRIYChBwb3N0SG9v", - "a01lc3NhZ2VzGAkgAygJEhoKDnByZUhvb2tNZXNzYWdlGAogAygJQgIYARIb", - "Cg9wb3N0SG9va01lc3NhZ2UYCyADKAlCAhgBEh4KEnByZUhvb2tTY3JlZW5z", - "aG90cxgMIAMoDEICGAESHwoTcG9zdEhvb2tTY3JlZW5zaG90cxgNIAMoDEIC", - "GAESEQoJaXRlbUNvdW50GA4gASgDEh4KFnByZUhvb2tTY3JlZW5zaG90Rmls", - "ZXMYDyADKAkSHwoXcG9zdEhvb2tTY3JlZW5zaG90RmlsZXMYECADKAkikgQK", - "CVByb3RvSXRlbRI0CghpdGVtVHlwZRgBIAEoDjIiLmdhdWdlLm1lc3NhZ2Vz", - "LlByb3RvSXRlbS5JdGVtVHlwZRInCgRzdGVwGAIgASgLMhkuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9TdGVwEi0KB2NvbmNlcHQYAyABKAsyHC5nYXVnZS5tZXNz", - "YWdlcy5Qcm90b0NvbmNlcHQSLwoIc2NlbmFyaW8YBCABKAsyHS5nYXVnZS5t", - "ZXNzYWdlcy5Qcm90b1NjZW5hcmlvEkUKE3RhYmxlRHJpdmVuU2NlbmFyaW8Y", - "BSABKAsyKC5nYXVnZS5tZXNzYWdlcy5Qcm90b1RhYmxlRHJpdmVuU2NlbmFy", - "aW8SLQoHY29tbWVudBgGIAEoCzIcLmdhdWdlLm1lc3NhZ2VzLlByb3RvQ29t", - "bWVudBIpCgV0YWJsZRgHIAEoCzIaLmdhdWdlLm1lc3NhZ2VzLlByb3RvVGFi", - "bGUSJwoEdGFncxgIIAEoCzIZLmdhdWdlLm1lc3NhZ2VzLlByb3RvVGFncxIQ", - "CghmaWxlTmFtZRgJIAEoCSJqCghJdGVtVHlwZRIICgRTdGVwEAASCwoHQ29t", - "bWVudBABEgsKB0NvbmNlcHQQAhIMCghTY2VuYXJpbxADEhcKE1RhYmxlRHJp", - "dmVuU2NlbmFyaW8QBBIJCgVUYWJsZRAFEggKBFRhZ3MQBiL+BQoNUHJvdG9T", - "Y2VuYXJpbxIXCg9zY2VuYXJpb0hlYWRpbmcYASABKAkSEgoGZmFpbGVkGAIg", - "ASgIQgIYARIrCghjb250ZXh0cxgDIAMoCzIZLmdhdWdlLm1lc3NhZ2VzLlBy", - "b3RvSXRlbRIwCg1zY2VuYXJpb0l0ZW1zGAQgAygLMhkuZ2F1Z2UubWVzc2Fn", - "ZXMuUHJvdG9JdGVtEjgKDnByZUhvb2tGYWlsdXJlGAUgASgLMiAuZ2F1Z2Uu", - "bWVzc2FnZXMuUHJvdG9Ib29rRmFpbHVyZRI5Cg9wb3N0SG9va0ZhaWx1cmUY", - "BiABKAsyIC5nYXVnZS5tZXNzYWdlcy5Qcm90b0hvb2tGYWlsdXJlEgwKBHRh", - "Z3MYByADKAkSFQoNZXhlY3V0aW9uVGltZRgIIAEoAxITCgdza2lwcGVkGAkg", - "ASgIQgIYARISCgpza2lwRXJyb3JzGAogAygJEgoKAklEGAsgASgJEjAKDXRl", - "YXJEb3duU3RlcHMYDCADKAsyGS5nYXVnZS5tZXNzYWdlcy5Qcm90b0l0ZW0S", - "IgoEc3BhbhgNIAEoCzIULmdhdWdlLm1lc3NhZ2VzLlNwYW4SOAoPZXhlY3V0", - "aW9uU3RhdHVzGA4gASgOMh8uZ2F1Z2UubWVzc2FnZXMuRXhlY3V0aW9uU3Rh", - "dHVzEhcKD3ByZUhvb2tNZXNzYWdlcxgPIAMoCRIYChBwb3N0SG9va01lc3Nh", - "Z2VzGBAgAygJEhoKDnByZUhvb2tNZXNzYWdlGBEgAygJQgIYARIbCg9wb3N0", - "SG9va01lc3NhZ2UYEiADKAlCAhgBEh4KEnByZUhvb2tTY3JlZW5zaG90cxgT", - "IAMoDEICGAESHwoTcG9zdEhvb2tTY3JlZW5zaG90cxgUIAMoDEICGAESHgoW", - "cHJlSG9va1NjcmVlbnNob3RGaWxlcxgVIAMoCRIfChdwb3N0SG9va1NjcmVl", - "bnNob3RGaWxlcxgWIAMoCRIUCgxyZXRyaWVzQ291bnQYFyABKAMiRgoEU3Bh", - "bhINCgVzdGFydBgBIAEoAxILCgNlbmQYAiABKAMSEQoJc3RhcnRDaGFyGAMg", - "ASgDEg8KB2VuZENoYXIYBCABKAMiqAIKGFByb3RvVGFibGVEcml2ZW5TY2Vu", - "YXJpbxIvCghzY2VuYXJpbxgBIAEoCzIdLmdhdWdlLm1lc3NhZ2VzLlByb3Rv", - "U2NlbmFyaW8SFQoNdGFibGVSb3dJbmRleBgCIAEoBRIdChVzY2VuYXJpb1Rh", - "YmxlUm93SW5kZXgYAyABKAUSGQoRaXNTcGVjVGFibGVEcml2ZW4YBCABKAgS", - "HQoVaXNTY2VuYXJpb1RhYmxlRHJpdmVuGAUgASgIEjUKEXNjZW5hcmlvRGF0", - "YVRhYmxlGAYgASgLMhouZ2F1Z2UubWVzc2FnZXMuUHJvdG9UYWJsZRI0ChBz", - "Y2VuYXJpb1RhYmxlUm93GAcgASgLMhouZ2F1Z2UubWVzc2FnZXMuUHJvdG9U", - "YWJsZSLcAgoJUHJvdG9TdGVwEhIKCmFjdHVhbFRleHQYASABKAkSEgoKcGFy", - "c2VkVGV4dBgCIAEoCRIrCglmcmFnbWVudHMYAyADKAsyGC5nYXVnZS5tZXNz", - "YWdlcy5GcmFnbWVudBJFChNzdGVwRXhlY3V0aW9uUmVzdWx0GAQgASgLMigu", - "Z2F1Z2UubWVzc2FnZXMuUHJvdG9TdGVwRXhlY3V0aW9uUmVzdWx0EhcKD3By", - "ZUhvb2tNZXNzYWdlcxgFIAMoCRIYChBwb3N0SG9va01lc3NhZ2VzGAYgAygJ", - "Eh4KEnByZUhvb2tTY3JlZW5zaG90cxgHIAMoDEICGAESHwoTcG9zdEhvb2tT", - "Y3JlZW5zaG90cxgIIAMoDEICGAESHgoWcHJlSG9va1NjcmVlbnNob3RGaWxl", - "cxgJIAMoCRIfChdwb3N0SG9va1NjcmVlbnNob3RGaWxlcxgKIAMoCSKyAQoM", - "UHJvdG9Db25jZXB0Ei4KC2NvbmNlcHRTdGVwGAEgASgLMhkuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9TdGVwEigKBXN0ZXBzGAIgAygLMhkuZ2F1Z2UubWVzc2Fn", - "ZXMuUHJvdG9JdGVtEkgKFmNvbmNlcHRFeGVjdXRpb25SZXN1bHQYAyABKAsy", - "KC5nYXVnZS5tZXNzYWdlcy5Qcm90b1N0ZXBFeGVjdXRpb25SZXN1bHQiGQoJ", - "UHJvdG9UYWdzEgwKBHRhZ3MYASADKAkirAEKCEZyYWdtZW50EjsKDGZyYWdt", - "ZW50VHlwZRgBIAEoDjIlLmdhdWdlLm1lc3NhZ2VzLkZyYWdtZW50LkZyYWdt", - "ZW50VHlwZRIMCgR0ZXh0GAIgASgJEiwKCXBhcmFtZXRlchgDIAEoCzIZLmdh", - "dWdlLm1lc3NhZ2VzLlBhcmFtZXRlciInCgxGcmFnbWVudFR5cGUSCAoEVGV4", - "dBAAEg0KCVBhcmFtZXRlchABIu8BCglQYXJhbWV0ZXISPgoNcGFyYW1ldGVy", - "VHlwZRgBIAEoDjInLmdhdWdlLm1lc3NhZ2VzLlBhcmFtZXRlci5QYXJhbWV0", - "ZXJUeXBlEg0KBXZhbHVlGAIgASgJEgwKBG5hbWUYAyABKAkSKQoFdGFibGUY", - "BCABKAsyGi5nYXVnZS5tZXNzYWdlcy5Qcm90b1RhYmxlIloKDVBhcmFtZXRl", - "clR5cGUSCgoGU3RhdGljEAASCwoHRHluYW1pYxABEhIKDlNwZWNpYWxfU3Ry", - "aW5nEAISEQoNU3BlY2lhbF9UYWJsZRADEgkKBVRhYmxlEAQiHAoMUHJvdG9D", - "b21tZW50EgwKBHRleHQYASABKAkiaQoKUHJvdG9UYWJsZRIuCgdoZWFkZXJz", - "GAEgASgLMh0uZ2F1Z2UubWVzc2FnZXMuUHJvdG9UYWJsZVJvdxIrCgRyb3dz", - "GAIgAygLMh0uZ2F1Z2UubWVzc2FnZXMuUHJvdG9UYWJsZVJvdyIeCg1Qcm90", - "b1RhYmxlUm93Eg0KBWNlbGxzGAEgAygJIvYBChhQcm90b1N0ZXBFeGVjdXRp", - "b25SZXN1bHQSPQoPZXhlY3V0aW9uUmVzdWx0GAEgASgLMiQuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9FeGVjdXRpb25SZXN1bHQSOAoOcHJlSG9va0ZhaWx1cmUY", - "AiABKAsyIC5nYXVnZS5tZXNzYWdlcy5Qcm90b0hvb2tGYWlsdXJlEjkKD3Bv", - "c3RIb29rRmFpbHVyZRgDIAEoCzIgLmdhdWdlLm1lc3NhZ2VzLlByb3RvSG9v", - "a0ZhaWx1cmUSDwoHc2tpcHBlZBgEIAEoCBIVCg1za2lwcGVkUmVhc29uGAUg", - "ASgJIqEDChRQcm90b0V4ZWN1dGlvblJlc3VsdBIOCgZmYWlsZWQYASABKAgS", - "GAoQcmVjb3ZlcmFibGVFcnJvchgCIAEoCBIUCgxlcnJvck1lc3NhZ2UYAyAB", - "KAkSEgoKc3RhY2tUcmFjZRgEIAEoCRIWCgpzY3JlZW5TaG90GAUgASgMQgIY", - "ARIVCg1leGVjdXRpb25UaW1lGAYgASgDEg8KB21lc3NhZ2UYByADKAkSQQoJ", - "ZXJyb3JUeXBlGAggASgOMi4uZ2F1Z2UubWVzc2FnZXMuUHJvdG9FeGVjdXRp", - "b25SZXN1bHQuRXJyb3JUeXBlEh0KEWZhaWx1cmVTY3JlZW5zaG90GAkgASgM", - "QgIYARIXCgtzY3JlZW5zaG90cxgKIAMoDEICGAESHQoVZmFpbHVyZVNjcmVl", - "bnNob3RGaWxlGAsgASgJEhcKD3NjcmVlbnNob3RGaWxlcxgMIAMoCRIUCgxz", - "a2lwU2NlbmFyaW8YDSABKAgiLAoJRXJyb3JUeXBlEg0KCUFTU0VSVElPThAA", - "EhAKDFZFUklGSUNBVElPThABIqkBChBQcm90b0hvb2tGYWlsdXJlEhIKCnN0", - "YWNrVHJhY2UYASABKAkSFAoMZXJyb3JNZXNzYWdlGAIgASgJEhYKCnNjcmVl", - "blNob3QYAyABKAxCAhgBEhUKDXRhYmxlUm93SW5kZXgYBCABKAUSHQoRZmFp", - "bHVyZVNjcmVlbnNob3QYBSABKAxCAhgBEh0KFWZhaWx1cmVTY3JlZW5zaG90", - "RmlsZRgGIAEoCSKLBQoQUHJvdG9TdWl0ZVJlc3VsdBI0CgtzcGVjUmVzdWx0", - "cxgBIAMoCzIfLmdhdWdlLm1lc3NhZ2VzLlByb3RvU3BlY1Jlc3VsdBI4Cg5w", - "cmVIb29rRmFpbHVyZRgCIAEoCzIgLmdhdWdlLm1lc3NhZ2VzLlByb3RvSG9v", - "a0ZhaWx1cmUSOQoPcG9zdEhvb2tGYWlsdXJlGAMgASgLMiAuZ2F1Z2UubWVz", - "c2FnZXMuUHJvdG9Ib29rRmFpbHVyZRIOCgZmYWlsZWQYBCABKAgSGAoQc3Bl", - "Y3NGYWlsZWRDb3VudBgFIAEoBRIVCg1leGVjdXRpb25UaW1lGAYgASgDEhMK", - "C3N1Y2Nlc3NSYXRlGAcgASgCEhMKC2Vudmlyb25tZW50GAggASgJEgwKBHRh", - "Z3MYCSABKAkSEwoLcHJvamVjdE5hbWUYCiABKAkSEQoJdGltZXN0YW1wGAsg", - "ASgJEhkKEXNwZWNzU2tpcHBlZENvdW50GAwgASgFEhcKD3ByZUhvb2tNZXNz", - "YWdlcxgNIAMoCRIYChBwb3N0SG9va01lc3NhZ2VzGA4gAygJEhoKDnByZUhv", - "b2tNZXNzYWdlGA8gAygJQgIYARIbCg9wb3N0SG9va01lc3NhZ2UYECADKAlC", - "AhgBEh4KEnByZUhvb2tTY3JlZW5zaG90cxgRIAMoDEICGAESHwoTcG9zdEhv", - "b2tTY3JlZW5zaG90cxgSIAMoDEICGAESDwoHY2h1bmtlZBgTIAEoCBIRCglj", - "aHVua1NpemUYFCABKAMSHgoWcHJlSG9va1NjcmVlbnNob3RGaWxlcxgVIAMo", - "CRIfChdwb3N0SG9va1NjcmVlbnNob3RGaWxlcxgWIAMoCSK+AgoPUHJvdG9T", - "cGVjUmVzdWx0EiwKCXByb3RvU3BlYxgBIAEoCzIZLmdhdWdlLm1lc3NhZ2Vz", - "LlByb3RvU3BlYxIVCg1zY2VuYXJpb0NvdW50GAIgASgFEhsKE3NjZW5hcmlv", - "RmFpbGVkQ291bnQYAyABKAUSDgoGZmFpbGVkGAQgASgIEhsKE2ZhaWxlZERh", - "dGFUYWJsZVJvd3MYBSADKAUSFQoNZXhlY3V0aW9uVGltZRgGIAEoAxIPCgdz", - "a2lwcGVkGAcgASgIEhwKFHNjZW5hcmlvU2tpcHBlZENvdW50GAggASgFEhwK", - "FHNraXBwZWREYXRhVGFibGVSb3dzGAkgAygFEiUKBmVycm9ycxgKIAMoCzIV", - "LmdhdWdlLm1lc3NhZ2VzLkVycm9yEhEKCXRpbWVzdGFtcBgLIAEoCSJtChNQ", - "cm90b1NjZW5hcmlvUmVzdWx0EiwKCXByb3RvSXRlbRgBIAEoCzIZLmdhdWdl", - "Lm1lc3NhZ2VzLlByb3RvSXRlbRIVCg1leGVjdXRpb25UaW1lGAIgASgDEhEK", - "CXRpbWVzdGFtcBgDIAEoCSJpCg9Qcm90b1N0ZXBSZXN1bHQSLAoJcHJvdG9J", - "dGVtGAEgASgLMhkuZ2F1Z2UubWVzc2FnZXMuUHJvdG9JdGVtEhUKDWV4ZWN1", - "dGlvblRpbWUYAiABKAMSEQoJdGltZXN0YW1wGAMgASgJIqEBCgVFcnJvchIt", - "CgR0eXBlGAEgASgOMh8uZ2F1Z2UubWVzc2FnZXMuRXJyb3IuRXJyb3JUeXBl", - "EhAKCGZpbGVuYW1lGAIgASgJEhIKCmxpbmVOdW1iZXIYAyABKAUSDwoHbWVz", - "c2FnZRgEIAEoCSIyCglFcnJvclR5cGUSDwoLUEFSU0VfRVJST1IQABIUChBW", - "QUxJREFUSU9OX0VSUk9SEAEiVwoOUHJvdG9TdGVwVmFsdWUSEQoJc3RlcFZh", - "bHVlGAEgASgJEh4KFnBhcmFtZXRlcml6ZWRTdGVwVmFsdWUYAiABKAkSEgoK", - "cGFyYW1ldGVycxgDIAMoCSpHCg9FeGVjdXRpb25TdGF0dXMSDwoLTk9URVhF", - "Q1VURUQQABIKCgZQQVNTRUQQARIKCgZGQUlMRUQQAhILCgdTS0lQUEVEEANC", - "XAoWY29tLnRob3VnaHR3b3Jrcy5nYXVnZVoxZ2l0aHViLmNvbS9nZXRnYXVn", - "ZS9nYXVnZS1wcm90by9nby9nYXVnZV9tZXNzYWdlc6oCDkdhdWdlLk1lc3Nh", - "Z2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Gauge.Messages.ExecutionStatus), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoSpec), global::Gauge.Messages.ProtoSpec.Parser, new[]{ "SpecHeading", "Items", "IsTableDriven", "PreHookFailures", "PostHookFailures", "FileName", "Tags", "PreHookMessages", "PostHookMessages", "PreHookMessage", "PostHookMessage", "PreHookScreenshots", "PostHookScreenshots", "ItemCount", "PreHookScreenshotFiles", "PostHookScreenshotFiles" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoItem), global::Gauge.Messages.ProtoItem.Parser, new[]{ "ItemType", "Step", "Concept", "Scenario", "TableDrivenScenario", "Comment", "Table", "Tags", "FileName" }, null, new[]{ typeof(global::Gauge.Messages.ProtoItem.Types.ItemType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoScenario), global::Gauge.Messages.ProtoScenario.Parser, new[]{ "ScenarioHeading", "Failed", "Contexts", "ScenarioItems", "PreHookFailure", "PostHookFailure", "Tags", "ExecutionTime", "Skipped", "SkipErrors", "ID", "TearDownSteps", "Span", "ExecutionStatus", "PreHookMessages", "PostHookMessages", "PreHookMessage", "PostHookMessage", "PreHookScreenshots", "PostHookScreenshots", "PreHookScreenshotFiles", "PostHookScreenshotFiles", "RetriesCount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Span), global::Gauge.Messages.Span.Parser, new[]{ "Start", "End", "StartChar", "EndChar" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoTableDrivenScenario), global::Gauge.Messages.ProtoTableDrivenScenario.Parser, new[]{ "Scenario", "TableRowIndex", "ScenarioTableRowIndex", "IsSpecTableDriven", "IsScenarioTableDriven", "ScenarioDataTable", "ScenarioTableRow" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoStep), global::Gauge.Messages.ProtoStep.Parser, new[]{ "ActualText", "ParsedText", "Fragments", "StepExecutionResult", "PreHookMessages", "PostHookMessages", "PreHookScreenshots", "PostHookScreenshots", "PreHookScreenshotFiles", "PostHookScreenshotFiles" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoConcept), global::Gauge.Messages.ProtoConcept.Parser, new[]{ "ConceptStep", "Steps", "ConceptExecutionResult" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoTags), global::Gauge.Messages.ProtoTags.Parser, new[]{ "Tags" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Fragment), global::Gauge.Messages.Fragment.Parser, new[]{ "FragmentType", "Text", "Parameter" }, null, new[]{ typeof(global::Gauge.Messages.Fragment.Types.FragmentType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Parameter), global::Gauge.Messages.Parameter.Parser, new[]{ "ParameterType", "Value", "Name", "Table" }, null, new[]{ typeof(global::Gauge.Messages.Parameter.Types.ParameterType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoComment), global::Gauge.Messages.ProtoComment.Parser, new[]{ "Text" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoTable), global::Gauge.Messages.ProtoTable.Parser, new[]{ "Headers", "Rows" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoTableRow), global::Gauge.Messages.ProtoTableRow.Parser, new[]{ "Cells" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoStepExecutionResult), global::Gauge.Messages.ProtoStepExecutionResult.Parser, new[]{ "ExecutionResult", "PreHookFailure", "PostHookFailure", "Skipped", "SkippedReason" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoExecutionResult), global::Gauge.Messages.ProtoExecutionResult.Parser, new[]{ "Failed", "RecoverableError", "ErrorMessage", "StackTrace", "ScreenShot", "ExecutionTime", "Message", "ErrorType", "FailureScreenshot", "Screenshots", "FailureScreenshotFile", "ScreenshotFiles", "SkipScenario" }, null, new[]{ typeof(global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoHookFailure), global::Gauge.Messages.ProtoHookFailure.Parser, new[]{ "StackTrace", "ErrorMessage", "ScreenShot", "TableRowIndex", "FailureScreenshot", "FailureScreenshotFile" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoSuiteResult), global::Gauge.Messages.ProtoSuiteResult.Parser, new[]{ "SpecResults", "PreHookFailure", "PostHookFailure", "Failed", "SpecsFailedCount", "ExecutionTime", "SuccessRate", "Environment", "Tags", "ProjectName", "Timestamp", "SpecsSkippedCount", "PreHookMessages", "PostHookMessages", "PreHookMessage", "PostHookMessage", "PreHookScreenshots", "PostHookScreenshots", "Chunked", "ChunkSize", "PreHookScreenshotFiles", "PostHookScreenshotFiles" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoSpecResult), global::Gauge.Messages.ProtoSpecResult.Parser, new[]{ "ProtoSpec", "ScenarioCount", "ScenarioFailedCount", "Failed", "FailedDataTableRows", "ExecutionTime", "Skipped", "ScenarioSkippedCount", "SkippedDataTableRows", "Errors", "Timestamp" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoScenarioResult), global::Gauge.Messages.ProtoScenarioResult.Parser, new[]{ "ProtoItem", "ExecutionTime", "Timestamp" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoStepResult), global::Gauge.Messages.ProtoStepResult.Parser, new[]{ "ProtoItem", "ExecutionTime", "Timestamp" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.Error), global::Gauge.Messages.Error.Parser, new[]{ "Type", "Filename", "LineNumber", "Message" }, null, new[]{ typeof(global::Gauge.Messages.Error.Types.ErrorType) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Gauge.Messages.ProtoStepValue), global::Gauge.Messages.ProtoStepValue.Parser, new[]{ "StepValue", "ParameterizedStepValue", "Parameters" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - /// - //// Execution Status - /// - public enum ExecutionStatus { - [pbr::OriginalName("NOTEXECUTED")] Notexecuted = 0, - [pbr::OriginalName("PASSED")] Passed = 1, - [pbr::OriginalName("FAILED")] Failed = 2, - [pbr::OriginalName("SKIPPED")] Skipped = 3, - } - - #endregion - - #region Messages - /// - //// A proto object representing a Specification - //// A specification can contain Scenarios or Steps, besides Comments - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoSpec : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoSpec()); - 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::Gauge.Messages.SpecReflection.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 ProtoSpec() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSpec(ProtoSpec other) : this() { - specHeading_ = other.specHeading_; - items_ = other.items_.Clone(); - isTableDriven_ = other.isTableDriven_; - preHookFailures_ = other.preHookFailures_.Clone(); - postHookFailures_ = other.postHookFailures_.Clone(); - fileName_ = other.fileName_; - tags_ = other.tags_.Clone(); - preHookMessages_ = other.preHookMessages_.Clone(); - postHookMessages_ = other.postHookMessages_.Clone(); - preHookMessage_ = other.preHookMessage_.Clone(); - postHookMessage_ = other.postHookMessage_.Clone(); - preHookScreenshots_ = other.preHookScreenshots_.Clone(); - postHookScreenshots_ = other.postHookScreenshots_.Clone(); - itemCount_ = other.itemCount_; - preHookScreenshotFiles_ = other.preHookScreenshotFiles_.Clone(); - postHookScreenshotFiles_ = other.postHookScreenshotFiles_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSpec Clone() { - return new ProtoSpec(this); - } - - /// Field number for the "specHeading" field. - public const int SpecHeadingFieldNumber = 1; - private string specHeading_ = ""; - /// - //// Heading describing the Specification - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SpecHeading { - get { return specHeading_; } - set { - specHeading_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.ProtoItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - //// A collection of items that come under this step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - /// Field number for the "isTableDriven" field. - public const int IsTableDrivenFieldNumber = 3; - private bool isTableDriven_; - /// - //// Flag indicating if this is a Table Driven Specification. The table is defined in the context, this is different from using a table parameter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsTableDriven { - get { return isTableDriven_; } - set { - isTableDriven_ = value; - } - } - - /// Field number for the "preHookFailures" field. - public const int PreHookFailuresFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_preHookFailures_codec - = pb::FieldCodec.ForMessage(34, global::Gauge.Messages.ProtoHookFailure.Parser); - private readonly pbc::RepeatedField preHookFailures_ = new pbc::RepeatedField(); - /// - //// Contains a 'before' hook failure message. This happens when the `before_spec` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookFailures { - get { return preHookFailures_; } - } - - /// Field number for the "postHookFailures" field. - public const int PostHookFailuresFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_postHookFailures_codec - = pb::FieldCodec.ForMessage(42, global::Gauge.Messages.ProtoHookFailure.Parser); - private readonly pbc::RepeatedField postHookFailures_ = new pbc::RepeatedField(); - /// - //// Contains a 'before' hook failure message. This happens when the `after_hook` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookFailures { - get { return postHookFailures_; } - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 6; - private string fileName_ = ""; - /// - //// Contains the filename for that holds this specification. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - //// Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - /// Field number for the "preHookMessages" field. - public const int PreHookMessagesFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_preHookMessages_codec - = pb::FieldCodec.ForString(66); - private readonly pbc::RepeatedField preHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessages { - get { return preHookMessages_; } - } - - /// Field number for the "postHookMessages" field. - public const int PostHookMessagesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_postHookMessages_codec - = pb::FieldCodec.ForString(74); - private readonly pbc::RepeatedField postHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessages { - get { return postHookMessages_; } - } - - /// Field number for the "preHookMessage" field. - public const int PreHookMessageFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_preHookMessage_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField preHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessage { - get { return preHookMessage_; } - } - - /// Field number for the "postHookMessage" field. - public const int PostHookMessageFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_postHookMessage_codec - = pb::FieldCodec.ForString(90); - private readonly pbc::RepeatedField postHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessage { - get { return postHookMessage_; } - } - - /// Field number for the "preHookScreenshots" field. - public const int PreHookScreenshotsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_preHookScreenshots_codec - = pb::FieldCodec.ForBytes(98); - private readonly pbc::RepeatedField preHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshots { - get { return preHookScreenshots_; } - } - - /// Field number for the "postHookScreenshots" field. - public const int PostHookScreenshotsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_postHookScreenshots_codec - = pb::FieldCodec.ForBytes(106); - private readonly pbc::RepeatedField postHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshots { - get { return postHookScreenshots_; } - } - - /// Field number for the "itemCount" field. - public const int ItemCountFieldNumber = 14; - private long itemCount_; - /// - //// meta field to indicate the number of items in the list - //// used when items are sent as individual chunk - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ItemCount { - get { return itemCount_; } - set { - itemCount_ = value; - } - } - - /// Field number for the "preHookScreenshotFiles" field. - public const int PreHookScreenshotFilesFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_preHookScreenshotFiles_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField preHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshotFiles { - get { return preHookScreenshotFiles_; } - } - - /// Field number for the "postHookScreenshotFiles" field. - public const int PostHookScreenshotFilesFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_postHookScreenshotFiles_codec - = pb::FieldCodec.ForString(130); - private readonly pbc::RepeatedField postHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshotFiles { - get { return postHookScreenshotFiles_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoSpec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoSpec other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SpecHeading != other.SpecHeading) return false; - if(!items_.Equals(other.items_)) return false; - if (IsTableDriven != other.IsTableDriven) return false; - if(!preHookFailures_.Equals(other.preHookFailures_)) return false; - if(!postHookFailures_.Equals(other.postHookFailures_)) return false; - if (FileName != other.FileName) return false; - if(!tags_.Equals(other.tags_)) return false; - if(!preHookMessages_.Equals(other.preHookMessages_)) return false; - if(!postHookMessages_.Equals(other.postHookMessages_)) return false; - if(!preHookMessage_.Equals(other.preHookMessage_)) return false; - if(!postHookMessage_.Equals(other.postHookMessage_)) return false; - if(!preHookScreenshots_.Equals(other.preHookScreenshots_)) return false; - if(!postHookScreenshots_.Equals(other.postHookScreenshots_)) return false; - if (ItemCount != other.ItemCount) return false; - if(!preHookScreenshotFiles_.Equals(other.preHookScreenshotFiles_)) return false; - if(!postHookScreenshotFiles_.Equals(other.postHookScreenshotFiles_)) 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 (SpecHeading.Length != 0) hash ^= SpecHeading.GetHashCode(); - hash ^= items_.GetHashCode(); - if (IsTableDriven != false) hash ^= IsTableDriven.GetHashCode(); - hash ^= preHookFailures_.GetHashCode(); - hash ^= postHookFailures_.GetHashCode(); - if (FileName.Length != 0) hash ^= FileName.GetHashCode(); - hash ^= tags_.GetHashCode(); - hash ^= preHookMessages_.GetHashCode(); - hash ^= postHookMessages_.GetHashCode(); - hash ^= preHookMessage_.GetHashCode(); - hash ^= postHookMessage_.GetHashCode(); - hash ^= preHookScreenshots_.GetHashCode(); - hash ^= postHookScreenshots_.GetHashCode(); - if (ItemCount != 0L) hash ^= ItemCount.GetHashCode(); - hash ^= preHookScreenshotFiles_.GetHashCode(); - hash ^= postHookScreenshotFiles_.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 (SpecHeading.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SpecHeading); - } - items_.WriteTo(output, _repeated_items_codec); - if (IsTableDriven != false) { - output.WriteRawTag(24); - output.WriteBool(IsTableDriven); - } - preHookFailures_.WriteTo(output, _repeated_preHookFailures_codec); - postHookFailures_.WriteTo(output, _repeated_postHookFailures_codec); - if (FileName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FileName); - } - tags_.WriteTo(output, _repeated_tags_codec); - preHookMessages_.WriteTo(output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(output, _repeated_postHookScreenshots_codec); - if (ItemCount != 0L) { - output.WriteRawTag(112); - output.WriteInt64(ItemCount); - } - preHookScreenshotFiles_.WriteTo(output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(output, _repeated_postHookScreenshotFiles_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 (SpecHeading.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SpecHeading); - } - items_.WriteTo(ref output, _repeated_items_codec); - if (IsTableDriven != false) { - output.WriteRawTag(24); - output.WriteBool(IsTableDriven); - } - preHookFailures_.WriteTo(ref output, _repeated_preHookFailures_codec); - postHookFailures_.WriteTo(ref output, _repeated_postHookFailures_codec); - if (FileName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FileName); - } - tags_.WriteTo(ref output, _repeated_tags_codec); - preHookMessages_.WriteTo(ref output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(ref output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(ref output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(ref output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(ref output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(ref output, _repeated_postHookScreenshots_codec); - if (ItemCount != 0L) { - output.WriteRawTag(112); - output.WriteInt64(ItemCount); - } - preHookScreenshotFiles_.WriteTo(ref output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(ref output, _repeated_postHookScreenshotFiles_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 (SpecHeading.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SpecHeading); - } - size += items_.CalculateSize(_repeated_items_codec); - if (IsTableDriven != false) { - size += 1 + 1; - } - size += preHookFailures_.CalculateSize(_repeated_preHookFailures_codec); - size += postHookFailures_.CalculateSize(_repeated_postHookFailures_codec); - if (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - size += tags_.CalculateSize(_repeated_tags_codec); - size += preHookMessages_.CalculateSize(_repeated_preHookMessages_codec); - size += postHookMessages_.CalculateSize(_repeated_postHookMessages_codec); - size += preHookMessage_.CalculateSize(_repeated_preHookMessage_codec); - size += postHookMessage_.CalculateSize(_repeated_postHookMessage_codec); - size += preHookScreenshots_.CalculateSize(_repeated_preHookScreenshots_codec); - size += postHookScreenshots_.CalculateSize(_repeated_postHookScreenshots_codec); - if (ItemCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ItemCount); - } - size += preHookScreenshotFiles_.CalculateSize(_repeated_preHookScreenshotFiles_codec); - size += postHookScreenshotFiles_.CalculateSize(_repeated_postHookScreenshotFiles_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoSpec other) { - if (other == null) { - return; - } - if (other.SpecHeading.Length != 0) { - SpecHeading = other.SpecHeading; - } - items_.Add(other.items_); - if (other.IsTableDriven != false) { - IsTableDriven = other.IsTableDriven; - } - preHookFailures_.Add(other.preHookFailures_); - postHookFailures_.Add(other.postHookFailures_); - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - tags_.Add(other.tags_); - preHookMessages_.Add(other.preHookMessages_); - postHookMessages_.Add(other.postHookMessages_); - preHookMessage_.Add(other.preHookMessage_); - postHookMessage_.Add(other.postHookMessage_); - preHookScreenshots_.Add(other.preHookScreenshots_); - postHookScreenshots_.Add(other.postHookScreenshots_); - if (other.ItemCount != 0L) { - ItemCount = other.ItemCount; - } - preHookScreenshotFiles_.Add(other.preHookScreenshotFiles_); - postHookScreenshotFiles_.Add(other.postHookScreenshotFiles_); - _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: { - SpecHeading = input.ReadString(); - break; - } - case 18: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 24: { - IsTableDriven = input.ReadBool(); - break; - } - case 34: { - preHookFailures_.AddEntriesFrom(input, _repeated_preHookFailures_codec); - break; - } - case 42: { - postHookFailures_.AddEntriesFrom(input, _repeated_postHookFailures_codec); - break; - } - case 50: { - FileName = input.ReadString(); - break; - } - case 58: { - tags_.AddEntriesFrom(input, _repeated_tags_codec); - break; - } - case 66: { - preHookMessages_.AddEntriesFrom(input, _repeated_preHookMessages_codec); - break; - } - case 74: { - postHookMessages_.AddEntriesFrom(input, _repeated_postHookMessages_codec); - break; - } - case 82: { - preHookMessage_.AddEntriesFrom(input, _repeated_preHookMessage_codec); - break; - } - case 90: { - postHookMessage_.AddEntriesFrom(input, _repeated_postHookMessage_codec); - break; - } - case 98: { - preHookScreenshots_.AddEntriesFrom(input, _repeated_preHookScreenshots_codec); - break; - } - case 106: { - postHookScreenshots_.AddEntriesFrom(input, _repeated_postHookScreenshots_codec); - break; - } - case 112: { - ItemCount = input.ReadInt64(); - break; - } - case 122: { - preHookScreenshotFiles_.AddEntriesFrom(input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 130: { - postHookScreenshotFiles_.AddEntriesFrom(input, _repeated_postHookScreenshotFiles_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: { - SpecHeading = input.ReadString(); - break; - } - case 18: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 24: { - IsTableDriven = input.ReadBool(); - break; - } - case 34: { - preHookFailures_.AddEntriesFrom(ref input, _repeated_preHookFailures_codec); - break; - } - case 42: { - postHookFailures_.AddEntriesFrom(ref input, _repeated_postHookFailures_codec); - break; - } - case 50: { - FileName = input.ReadString(); - break; - } - case 58: { - tags_.AddEntriesFrom(ref input, _repeated_tags_codec); - break; - } - case 66: { - preHookMessages_.AddEntriesFrom(ref input, _repeated_preHookMessages_codec); - break; - } - case 74: { - postHookMessages_.AddEntriesFrom(ref input, _repeated_postHookMessages_codec); - break; - } - case 82: { - preHookMessage_.AddEntriesFrom(ref input, _repeated_preHookMessage_codec); - break; - } - case 90: { - postHookMessage_.AddEntriesFrom(ref input, _repeated_postHookMessage_codec); - break; - } - case 98: { - preHookScreenshots_.AddEntriesFrom(ref input, _repeated_preHookScreenshots_codec); - break; - } - case 106: { - postHookScreenshots_.AddEntriesFrom(ref input, _repeated_postHookScreenshots_codec); - break; - } - case 112: { - ItemCount = input.ReadInt64(); - break; - } - case 122: { - preHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 130: { - postHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_postHookScreenshotFiles_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Container for all valid Items under a Specification. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoItem()); - 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::Gauge.Messages.SpecReflection.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 ProtoItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoItem(ProtoItem other) : this() { - itemType_ = other.itemType_; - step_ = other.step_ != null ? other.step_.Clone() : null; - concept_ = other.concept_ != null ? other.concept_.Clone() : null; - scenario_ = other.scenario_ != null ? other.scenario_.Clone() : null; - tableDrivenScenario_ = other.tableDrivenScenario_ != null ? other.tableDrivenScenario_.Clone() : null; - comment_ = other.comment_ != null ? other.comment_.Clone() : null; - table_ = other.table_ != null ? other.table_.Clone() : null; - tags_ = other.tags_ != null ? other.tags_.Clone() : null; - fileName_ = other.fileName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoItem Clone() { - return new ProtoItem(this); - } - - /// Field number for the "itemType" field. - public const int ItemTypeFieldNumber = 1; - private global::Gauge.Messages.ProtoItem.Types.ItemType itemType_ = global::Gauge.Messages.ProtoItem.Types.ItemType.Step; - /// - //// Itemtype of the current ProtoItem - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoItem.Types.ItemType ItemType { - get { return itemType_; } - set { - itemType_ = value; - } - } - - /// Field number for the "step" field. - public const int StepFieldNumber = 2; - private global::Gauge.Messages.ProtoStep step_; - /// - //// Holds the Step definition. Valid only if ItemType = Step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStep Step { - get { return step_; } - set { - step_ = value; - } - } - - /// Field number for the "concept" field. - public const int ConceptFieldNumber = 3; - private global::Gauge.Messages.ProtoConcept concept_; - /// - //// Holds the Concept definition. Valid only if ItemType = Concept - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoConcept Concept { - get { return concept_; } - set { - concept_ = value; - } - } - - /// Field number for the "scenario" field. - public const int ScenarioFieldNumber = 4; - private global::Gauge.Messages.ProtoScenario scenario_; - /// - //// Holds the Scenario definition. Valid only if ItemType = Scenario - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoScenario Scenario { - get { return scenario_; } - set { - scenario_ = value; - } - } - - /// Field number for the "tableDrivenScenario" field. - public const int TableDrivenScenarioFieldNumber = 5; - private global::Gauge.Messages.ProtoTableDrivenScenario tableDrivenScenario_; - /// - //// Holds the TableDrivenScenario definition. Valid only if ItemType = TableDrivenScenario - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTableDrivenScenario TableDrivenScenario { - get { return tableDrivenScenario_; } - set { - tableDrivenScenario_ = value; - } - } - - /// Field number for the "comment" field. - public const int CommentFieldNumber = 6; - private global::Gauge.Messages.ProtoComment comment_; - /// - //// Holds the Comment definition. Valid only if ItemType = Comment - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoComment Comment { - get { return comment_; } - set { - comment_ = value; - } - } - - /// Field number for the "table" field. - public const int TableFieldNumber = 7; - private global::Gauge.Messages.ProtoTable table_; - /// - //// Holds the Table definition. Valid only if ItemType = Table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTable Table { - get { return table_; } - set { - table_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 8; - private global::Gauge.Messages.ProtoTags tags_; - /// - //// Holds the Tags definition. Valid only if ItemType = Tags - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTags Tags { - get { return tags_; } - set { - tags_ = value; - } - } - - /// Field number for the "fileName" field. - public const int FileNameFieldNumber = 9; - private string fileName_ = ""; - /// - //// Holds the Filename that the item belongs to - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ItemType != other.ItemType) return false; - if (!object.Equals(Step, other.Step)) return false; - if (!object.Equals(Concept, other.Concept)) return false; - if (!object.Equals(Scenario, other.Scenario)) return false; - if (!object.Equals(TableDrivenScenario, other.TableDrivenScenario)) return false; - if (!object.Equals(Comment, other.Comment)) return false; - if (!object.Equals(Table, other.Table)) return false; - if (!object.Equals(Tags, other.Tags)) return false; - if (FileName != other.FileName) 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 (ItemType != global::Gauge.Messages.ProtoItem.Types.ItemType.Step) hash ^= ItemType.GetHashCode(); - if (step_ != null) hash ^= Step.GetHashCode(); - if (concept_ != null) hash ^= Concept.GetHashCode(); - if (scenario_ != null) hash ^= Scenario.GetHashCode(); - if (tableDrivenScenario_ != null) hash ^= TableDrivenScenario.GetHashCode(); - if (comment_ != null) hash ^= Comment.GetHashCode(); - if (table_ != null) hash ^= Table.GetHashCode(); - if (tags_ != null) hash ^= Tags.GetHashCode(); - if (FileName.Length != 0) hash ^= FileName.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 (ItemType != global::Gauge.Messages.ProtoItem.Types.ItemType.Step) { - output.WriteRawTag(8); - output.WriteEnum((int) ItemType); - } - if (step_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Step); - } - if (concept_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Concept); - } - if (scenario_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Scenario); - } - if (tableDrivenScenario_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TableDrivenScenario); - } - if (comment_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Comment); - } - if (table_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Table); - } - if (tags_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Tags); - } - if (FileName.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FileName); - } - 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 (ItemType != global::Gauge.Messages.ProtoItem.Types.ItemType.Step) { - output.WriteRawTag(8); - output.WriteEnum((int) ItemType); - } - if (step_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Step); - } - if (concept_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Concept); - } - if (scenario_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Scenario); - } - if (tableDrivenScenario_ != null) { - output.WriteRawTag(42); - output.WriteMessage(TableDrivenScenario); - } - if (comment_ != null) { - output.WriteRawTag(50); - output.WriteMessage(Comment); - } - if (table_ != null) { - output.WriteRawTag(58); - output.WriteMessage(Table); - } - if (tags_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Tags); - } - if (FileName.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FileName); - } - 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 (ItemType != global::Gauge.Messages.ProtoItem.Types.ItemType.Step) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ItemType); - } - if (step_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Step); - } - if (concept_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Concept); - } - if (scenario_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scenario); - } - if (tableDrivenScenario_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TableDrivenScenario); - } - if (comment_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Comment); - } - if (table_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); - } - if (tags_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tags); - } - if (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoItem other) { - if (other == null) { - return; - } - if (other.ItemType != global::Gauge.Messages.ProtoItem.Types.ItemType.Step) { - ItemType = other.ItemType; - } - if (other.step_ != null) { - if (step_ == null) { - Step = new global::Gauge.Messages.ProtoStep(); - } - Step.MergeFrom(other.Step); - } - if (other.concept_ != null) { - if (concept_ == null) { - Concept = new global::Gauge.Messages.ProtoConcept(); - } - Concept.MergeFrom(other.Concept); - } - if (other.scenario_ != null) { - if (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - Scenario.MergeFrom(other.Scenario); - } - if (other.tableDrivenScenario_ != null) { - if (tableDrivenScenario_ == null) { - TableDrivenScenario = new global::Gauge.Messages.ProtoTableDrivenScenario(); - } - TableDrivenScenario.MergeFrom(other.TableDrivenScenario); - } - if (other.comment_ != null) { - if (comment_ == null) { - Comment = new global::Gauge.Messages.ProtoComment(); - } - Comment.MergeFrom(other.Comment); - } - if (other.table_ != null) { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - Table.MergeFrom(other.Table); - } - if (other.tags_ != null) { - if (tags_ == null) { - Tags = new global::Gauge.Messages.ProtoTags(); - } - Tags.MergeFrom(other.Tags); - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - _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: { - ItemType = (global::Gauge.Messages.ProtoItem.Types.ItemType) input.ReadEnum(); - break; - } - case 18: { - if (step_ == null) { - Step = new global::Gauge.Messages.ProtoStep(); - } - input.ReadMessage(Step); - break; - } - case 26: { - if (concept_ == null) { - Concept = new global::Gauge.Messages.ProtoConcept(); - } - input.ReadMessage(Concept); - break; - } - case 34: { - if (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - input.ReadMessage(Scenario); - break; - } - case 42: { - if (tableDrivenScenario_ == null) { - TableDrivenScenario = new global::Gauge.Messages.ProtoTableDrivenScenario(); - } - input.ReadMessage(TableDrivenScenario); - break; - } - case 50: { - if (comment_ == null) { - Comment = new global::Gauge.Messages.ProtoComment(); - } - input.ReadMessage(Comment); - break; - } - case 58: { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(Table); - break; - } - case 66: { - if (tags_ == null) { - Tags = new global::Gauge.Messages.ProtoTags(); - } - input.ReadMessage(Tags); - break; - } - case 74: { - FileName = 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: { - ItemType = (global::Gauge.Messages.ProtoItem.Types.ItemType) input.ReadEnum(); - break; - } - case 18: { - if (step_ == null) { - Step = new global::Gauge.Messages.ProtoStep(); - } - input.ReadMessage(Step); - break; - } - case 26: { - if (concept_ == null) { - Concept = new global::Gauge.Messages.ProtoConcept(); - } - input.ReadMessage(Concept); - break; - } - case 34: { - if (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - input.ReadMessage(Scenario); - break; - } - case 42: { - if (tableDrivenScenario_ == null) { - TableDrivenScenario = new global::Gauge.Messages.ProtoTableDrivenScenario(); - } - input.ReadMessage(TableDrivenScenario); - break; - } - case 50: { - if (comment_ == null) { - Comment = new global::Gauge.Messages.ProtoComment(); - } - input.ReadMessage(Comment); - break; - } - case 58: { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(Table); - break; - } - case 66: { - if (tags_ == null) { - Tags = new global::Gauge.Messages.ProtoTags(); - } - input.ReadMessage(Tags); - break; - } - case 74: { - FileName = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ProtoItem message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - //// Enumerates various item types that the proto item can contain. Valid types are: Step, Comment, Concept, Scenario, TableDrivenScenario, Table, Tags - /// - public enum ItemType { - /// - /// Item is a Step - /// - [pbr::OriginalName("Step")] Step = 0, - /// - /// Item is a Comment - /// - [pbr::OriginalName("Comment")] Comment = 1, - /// - /// Item is a Concept - /// - [pbr::OriginalName("Concept")] Concept = 2, - /// - /// Item is a Scenario - /// - [pbr::OriginalName("Scenario")] Scenario = 3, - /// - /// Item is a TableDrivenScenario, a special case of Scenario, where there is a Context Step defining a table. - /// - [pbr::OriginalName("TableDrivenScenario")] TableDrivenScenario = 4, - /// - /// Item is a Table - /// - [pbr::OriginalName("Table")] Table = 5, - /// - /// Item is a Tag - /// - [pbr::OriginalName("Tags")] Tags = 6, - } - - } - #endregion - - } - - /// - //// A proto object representing a Scenario - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoScenario : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoScenario()); - 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::Gauge.Messages.SpecReflection.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 ProtoScenario() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoScenario(ProtoScenario other) : this() { - scenarioHeading_ = other.scenarioHeading_; - failed_ = other.failed_; - contexts_ = other.contexts_.Clone(); - scenarioItems_ = other.scenarioItems_.Clone(); - preHookFailure_ = other.preHookFailure_ != null ? other.preHookFailure_.Clone() : null; - postHookFailure_ = other.postHookFailure_ != null ? other.postHookFailure_.Clone() : null; - tags_ = other.tags_.Clone(); - executionTime_ = other.executionTime_; - skipped_ = other.skipped_; - skipErrors_ = other.skipErrors_.Clone(); - iD_ = other.iD_; - tearDownSteps_ = other.tearDownSteps_.Clone(); - span_ = other.span_ != null ? other.span_.Clone() : null; - executionStatus_ = other.executionStatus_; - preHookMessages_ = other.preHookMessages_.Clone(); - postHookMessages_ = other.postHookMessages_.Clone(); - preHookMessage_ = other.preHookMessage_.Clone(); - postHookMessage_ = other.postHookMessage_.Clone(); - preHookScreenshots_ = other.preHookScreenshots_.Clone(); - postHookScreenshots_ = other.postHookScreenshots_.Clone(); - preHookScreenshotFiles_ = other.preHookScreenshotFiles_.Clone(); - postHookScreenshotFiles_ = other.postHookScreenshotFiles_.Clone(); - retriesCount_ = other.retriesCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoScenario Clone() { - return new ProtoScenario(this); - } - - /// Field number for the "scenarioHeading" field. - public const int ScenarioHeadingFieldNumber = 1; - private string scenarioHeading_ = ""; - /// - //// Heading of the given Scenario - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ScenarioHeading { - get { return scenarioHeading_; } - set { - scenarioHeading_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "failed" field. - public const int FailedFieldNumber = 2; - private bool failed_; - /// - //// Flag to indicate if the Scenario execution failed - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Failed { - get { return failed_; } - set { - failed_ = value; - } - } - - /// Field number for the "contexts" field. - public const int ContextsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_contexts_codec - = pb::FieldCodec.ForMessage(26, global::Gauge.Messages.ProtoItem.Parser); - private readonly pbc::RepeatedField contexts_ = new pbc::RepeatedField(); - /// - //// Collection of Context steps. The Context steps are executed before every run. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Contexts { - get { return contexts_; } - } - - /// Field number for the "scenarioItems" field. - public const int ScenarioItemsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_scenarioItems_codec - = pb::FieldCodec.ForMessage(34, global::Gauge.Messages.ProtoItem.Parser); - private readonly pbc::RepeatedField scenarioItems_ = new pbc::RepeatedField(); - /// - //// Collection of Items under a scenario. These could be Steps, Comments, Tags, TableDrivenScenarios or Tables - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ScenarioItems { - get { return scenarioItems_; } - } - - /// Field number for the "preHookFailure" field. - public const int PreHookFailureFieldNumber = 5; - private global::Gauge.Messages.ProtoHookFailure preHookFailure_; - /// - //// Contains a 'before' hook failure message. This happens when the `before_scenario` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PreHookFailure { - get { return preHookFailure_; } - set { - preHookFailure_ = value; - } - } - - /// Field number for the "postHookFailure" field. - public const int PostHookFailureFieldNumber = 6; - private global::Gauge.Messages.ProtoHookFailure postHookFailure_; - /// - //// Contains a 'after' hook failure message. This happens when the `after_scenario` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PostHookFailure { - get { return postHookFailure_; } - set { - postHookFailure_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - //// Contains a list of tags that are defined at the specification level. Scenario tags are not present here. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 8; - private long executionTime_; - /// - //// Holds the time taken for executing this scenario. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "skipped" field. - public const int SkippedFieldNumber = 9; - private bool skipped_; - /// - //// Flag to indicate if the Scenario execution is skipped - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Skipped { - get { return skipped_; } - set { - skipped_ = value; - } - } - - /// Field number for the "skipErrors" field. - public const int SkipErrorsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_skipErrors_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField skipErrors_ = new pbc::RepeatedField(); - /// - //// Holds the error messages for skipping scenario from execution - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SkipErrors { - get { return skipErrors_; } - } - - /// Field number for the "ID" field. - public const int IDFieldNumber = 11; - private string iD_ = ""; - /// - //// Holds the unique Identifier of a scenario. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ID { - get { return iD_; } - set { - iD_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tearDownSteps" field. - public const int TearDownStepsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_tearDownSteps_codec - = pb::FieldCodec.ForMessage(98, global::Gauge.Messages.ProtoItem.Parser); - private readonly pbc::RepeatedField tearDownSteps_ = new pbc::RepeatedField(); - /// - //// Collection of Teardown steps. The Teardown steps are executed after every run. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TearDownSteps { - get { return tearDownSteps_; } - } - - /// Field number for the "span" field. - public const int SpanFieldNumber = 13; - private global::Gauge.Messages.Span span_; - /// - //// Span(start, end) of scenario - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Span Span { - get { return span_; } - set { - span_ = value; - } - } - - /// Field number for the "executionStatus" field. - public const int ExecutionStatusFieldNumber = 14; - private global::Gauge.Messages.ExecutionStatus executionStatus_ = global::Gauge.Messages.ExecutionStatus.Notexecuted; - /// - //// Execution status for the scenario - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ExecutionStatus ExecutionStatus { - get { return executionStatus_; } - set { - executionStatus_ = value; - } - } - - /// Field number for the "preHookMessages" field. - public const int PreHookMessagesFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_preHookMessages_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField preHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessages { - get { return preHookMessages_; } - } - - /// Field number for the "postHookMessages" field. - public const int PostHookMessagesFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_postHookMessages_codec - = pb::FieldCodec.ForString(130); - private readonly pbc::RepeatedField postHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessages { - get { return postHookMessages_; } - } - - /// Field number for the "preHookMessage" field. - public const int PreHookMessageFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_preHookMessage_codec - = pb::FieldCodec.ForString(138); - private readonly pbc::RepeatedField preHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessage { - get { return preHookMessage_; } - } - - /// Field number for the "postHookMessage" field. - public const int PostHookMessageFieldNumber = 18; - private static readonly pb::FieldCodec _repeated_postHookMessage_codec - = pb::FieldCodec.ForString(146); - private readonly pbc::RepeatedField postHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessage { - get { return postHookMessage_; } - } - - /// Field number for the "preHookScreenshots" field. - public const int PreHookScreenshotsFieldNumber = 19; - private static readonly pb::FieldCodec _repeated_preHookScreenshots_codec - = pb::FieldCodec.ForBytes(154); - private readonly pbc::RepeatedField preHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshots { - get { return preHookScreenshots_; } - } - - /// Field number for the "postHookScreenshots" field. - public const int PostHookScreenshotsFieldNumber = 20; - private static readonly pb::FieldCodec _repeated_postHookScreenshots_codec - = pb::FieldCodec.ForBytes(162); - private readonly pbc::RepeatedField postHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshots { - get { return postHookScreenshots_; } - } - - /// Field number for the "preHookScreenshotFiles" field. - public const int PreHookScreenshotFilesFieldNumber = 21; - private static readonly pb::FieldCodec _repeated_preHookScreenshotFiles_codec - = pb::FieldCodec.ForString(170); - private readonly pbc::RepeatedField preHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshotFiles { - get { return preHookScreenshotFiles_; } - } - - /// Field number for the "postHookScreenshotFiles" field. - public const int PostHookScreenshotFilesFieldNumber = 22; - private static readonly pb::FieldCodec _repeated_postHookScreenshotFiles_codec - = pb::FieldCodec.ForString(178); - private readonly pbc::RepeatedField postHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshotFiles { - get { return postHookScreenshotFiles_; } - } - - /// Field number for the "retriesCount" field. - public const int RetriesCountFieldNumber = 23; - private long retriesCount_; - /// - //// Number of retires - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RetriesCount { - get { return retriesCount_; } - set { - retriesCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoScenario); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoScenario other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ScenarioHeading != other.ScenarioHeading) return false; - if (Failed != other.Failed) return false; - if(!contexts_.Equals(other.contexts_)) return false; - if(!scenarioItems_.Equals(other.scenarioItems_)) return false; - if (!object.Equals(PreHookFailure, other.PreHookFailure)) return false; - if (!object.Equals(PostHookFailure, other.PostHookFailure)) return false; - if(!tags_.Equals(other.tags_)) return false; - if (ExecutionTime != other.ExecutionTime) return false; - if (Skipped != other.Skipped) return false; - if(!skipErrors_.Equals(other.skipErrors_)) return false; - if (ID != other.ID) return false; - if(!tearDownSteps_.Equals(other.tearDownSteps_)) return false; - if (!object.Equals(Span, other.Span)) return false; - if (ExecutionStatus != other.ExecutionStatus) return false; - if(!preHookMessages_.Equals(other.preHookMessages_)) return false; - if(!postHookMessages_.Equals(other.postHookMessages_)) return false; - if(!preHookMessage_.Equals(other.preHookMessage_)) return false; - if(!postHookMessage_.Equals(other.postHookMessage_)) return false; - if(!preHookScreenshots_.Equals(other.preHookScreenshots_)) return false; - if(!postHookScreenshots_.Equals(other.postHookScreenshots_)) return false; - if(!preHookScreenshotFiles_.Equals(other.preHookScreenshotFiles_)) return false; - if(!postHookScreenshotFiles_.Equals(other.postHookScreenshotFiles_)) return false; - if (RetriesCount != other.RetriesCount) 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 (ScenarioHeading.Length != 0) hash ^= ScenarioHeading.GetHashCode(); - if (Failed != false) hash ^= Failed.GetHashCode(); - hash ^= contexts_.GetHashCode(); - hash ^= scenarioItems_.GetHashCode(); - if (preHookFailure_ != null) hash ^= PreHookFailure.GetHashCode(); - if (postHookFailure_ != null) hash ^= PostHookFailure.GetHashCode(); - hash ^= tags_.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - if (Skipped != false) hash ^= Skipped.GetHashCode(); - hash ^= skipErrors_.GetHashCode(); - if (ID.Length != 0) hash ^= ID.GetHashCode(); - hash ^= tearDownSteps_.GetHashCode(); - if (span_ != null) hash ^= Span.GetHashCode(); - if (ExecutionStatus != global::Gauge.Messages.ExecutionStatus.Notexecuted) hash ^= ExecutionStatus.GetHashCode(); - hash ^= preHookMessages_.GetHashCode(); - hash ^= postHookMessages_.GetHashCode(); - hash ^= preHookMessage_.GetHashCode(); - hash ^= postHookMessage_.GetHashCode(); - hash ^= preHookScreenshots_.GetHashCode(); - hash ^= postHookScreenshots_.GetHashCode(); - hash ^= preHookScreenshotFiles_.GetHashCode(); - hash ^= postHookScreenshotFiles_.GetHashCode(); - if (RetriesCount != 0L) hash ^= RetriesCount.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 (ScenarioHeading.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ScenarioHeading); - } - if (Failed != false) { - output.WriteRawTag(16); - output.WriteBool(Failed); - } - contexts_.WriteTo(output, _repeated_contexts_codec); - scenarioItems_.WriteTo(output, _repeated_scenarioItems_codec); - if (preHookFailure_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PostHookFailure); - } - tags_.WriteTo(output, _repeated_tags_codec); - if (ExecutionTime != 0L) { - output.WriteRawTag(64); - output.WriteInt64(ExecutionTime); - } - if (Skipped != false) { - output.WriteRawTag(72); - output.WriteBool(Skipped); - } - skipErrors_.WriteTo(output, _repeated_skipErrors_codec); - if (ID.Length != 0) { - output.WriteRawTag(90); - output.WriteString(ID); - } - tearDownSteps_.WriteTo(output, _repeated_tearDownSteps_codec); - if (span_ != null) { - output.WriteRawTag(106); - output.WriteMessage(Span); - } - if (ExecutionStatus != global::Gauge.Messages.ExecutionStatus.Notexecuted) { - output.WriteRawTag(112); - output.WriteEnum((int) ExecutionStatus); - } - preHookMessages_.WriteTo(output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(output, _repeated_postHookScreenshots_codec); - preHookScreenshotFiles_.WriteTo(output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(output, _repeated_postHookScreenshotFiles_codec); - if (RetriesCount != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(RetriesCount); - } - 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 (ScenarioHeading.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ScenarioHeading); - } - if (Failed != false) { - output.WriteRawTag(16); - output.WriteBool(Failed); - } - contexts_.WriteTo(ref output, _repeated_contexts_codec); - scenarioItems_.WriteTo(ref output, _repeated_scenarioItems_codec); - if (preHookFailure_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PostHookFailure); - } - tags_.WriteTo(ref output, _repeated_tags_codec); - if (ExecutionTime != 0L) { - output.WriteRawTag(64); - output.WriteInt64(ExecutionTime); - } - if (Skipped != false) { - output.WriteRawTag(72); - output.WriteBool(Skipped); - } - skipErrors_.WriteTo(ref output, _repeated_skipErrors_codec); - if (ID.Length != 0) { - output.WriteRawTag(90); - output.WriteString(ID); - } - tearDownSteps_.WriteTo(ref output, _repeated_tearDownSteps_codec); - if (span_ != null) { - output.WriteRawTag(106); - output.WriteMessage(Span); - } - if (ExecutionStatus != global::Gauge.Messages.ExecutionStatus.Notexecuted) { - output.WriteRawTag(112); - output.WriteEnum((int) ExecutionStatus); - } - preHookMessages_.WriteTo(ref output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(ref output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(ref output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(ref output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(ref output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(ref output, _repeated_postHookScreenshots_codec); - preHookScreenshotFiles_.WriteTo(ref output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(ref output, _repeated_postHookScreenshotFiles_codec); - if (RetriesCount != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(RetriesCount); - } - 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 (ScenarioHeading.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ScenarioHeading); - } - if (Failed != false) { - size += 1 + 1; - } - size += contexts_.CalculateSize(_repeated_contexts_codec); - size += scenarioItems_.CalculateSize(_repeated_scenarioItems_codec); - if (preHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreHookFailure); - } - if (postHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostHookFailure); - } - size += tags_.CalculateSize(_repeated_tags_codec); - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - if (Skipped != false) { - size += 1 + 1; - } - size += skipErrors_.CalculateSize(_repeated_skipErrors_codec); - if (ID.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ID); - } - size += tearDownSteps_.CalculateSize(_repeated_tearDownSteps_codec); - if (span_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Span); - } - if (ExecutionStatus != global::Gauge.Messages.ExecutionStatus.Notexecuted) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExecutionStatus); - } - size += preHookMessages_.CalculateSize(_repeated_preHookMessages_codec); - size += postHookMessages_.CalculateSize(_repeated_postHookMessages_codec); - size += preHookMessage_.CalculateSize(_repeated_preHookMessage_codec); - size += postHookMessage_.CalculateSize(_repeated_postHookMessage_codec); - size += preHookScreenshots_.CalculateSize(_repeated_preHookScreenshots_codec); - size += postHookScreenshots_.CalculateSize(_repeated_postHookScreenshots_codec); - size += preHookScreenshotFiles_.CalculateSize(_repeated_preHookScreenshotFiles_codec); - size += postHookScreenshotFiles_.CalculateSize(_repeated_postHookScreenshotFiles_codec); - if (RetriesCount != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RetriesCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoScenario other) { - if (other == null) { - return; - } - if (other.ScenarioHeading.Length != 0) { - ScenarioHeading = other.ScenarioHeading; - } - if (other.Failed != false) { - Failed = other.Failed; - } - contexts_.Add(other.contexts_); - scenarioItems_.Add(other.scenarioItems_); - if (other.preHookFailure_ != null) { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PreHookFailure.MergeFrom(other.PreHookFailure); - } - if (other.postHookFailure_ != null) { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PostHookFailure.MergeFrom(other.PostHookFailure); - } - tags_.Add(other.tags_); - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - if (other.Skipped != false) { - Skipped = other.Skipped; - } - skipErrors_.Add(other.skipErrors_); - if (other.ID.Length != 0) { - ID = other.ID; - } - tearDownSteps_.Add(other.tearDownSteps_); - if (other.span_ != null) { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - Span.MergeFrom(other.Span); - } - if (other.ExecutionStatus != global::Gauge.Messages.ExecutionStatus.Notexecuted) { - ExecutionStatus = other.ExecutionStatus; - } - preHookMessages_.Add(other.preHookMessages_); - postHookMessages_.Add(other.postHookMessages_); - preHookMessage_.Add(other.preHookMessage_); - postHookMessage_.Add(other.postHookMessage_); - preHookScreenshots_.Add(other.preHookScreenshots_); - postHookScreenshots_.Add(other.postHookScreenshots_); - preHookScreenshotFiles_.Add(other.preHookScreenshotFiles_); - postHookScreenshotFiles_.Add(other.postHookScreenshotFiles_); - if (other.RetriesCount != 0L) { - RetriesCount = other.RetriesCount; - } - _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: { - ScenarioHeading = input.ReadString(); - break; - } - case 16: { - Failed = input.ReadBool(); - break; - } - case 26: { - contexts_.AddEntriesFrom(input, _repeated_contexts_codec); - break; - } - case 34: { - scenarioItems_.AddEntriesFrom(input, _repeated_scenarioItems_codec); - break; - } - case 42: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 50: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 58: { - tags_.AddEntriesFrom(input, _repeated_tags_codec); - break; - } - case 64: { - ExecutionTime = input.ReadInt64(); - break; - } - case 72: { - Skipped = input.ReadBool(); - break; - } - case 82: { - skipErrors_.AddEntriesFrom(input, _repeated_skipErrors_codec); - break; - } - case 90: { - ID = input.ReadString(); - break; - } - case 98: { - tearDownSteps_.AddEntriesFrom(input, _repeated_tearDownSteps_codec); - break; - } - case 106: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 112: { - ExecutionStatus = (global::Gauge.Messages.ExecutionStatus) input.ReadEnum(); - break; - } - case 122: { - preHookMessages_.AddEntriesFrom(input, _repeated_preHookMessages_codec); - break; - } - case 130: { - postHookMessages_.AddEntriesFrom(input, _repeated_postHookMessages_codec); - break; - } - case 138: { - preHookMessage_.AddEntriesFrom(input, _repeated_preHookMessage_codec); - break; - } - case 146: { - postHookMessage_.AddEntriesFrom(input, _repeated_postHookMessage_codec); - break; - } - case 154: { - preHookScreenshots_.AddEntriesFrom(input, _repeated_preHookScreenshots_codec); - break; - } - case 162: { - postHookScreenshots_.AddEntriesFrom(input, _repeated_postHookScreenshots_codec); - break; - } - case 170: { - preHookScreenshotFiles_.AddEntriesFrom(input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 178: { - postHookScreenshotFiles_.AddEntriesFrom(input, _repeated_postHookScreenshotFiles_codec); - break; - } - case 184: { - RetriesCount = 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 10: { - ScenarioHeading = input.ReadString(); - break; - } - case 16: { - Failed = input.ReadBool(); - break; - } - case 26: { - contexts_.AddEntriesFrom(ref input, _repeated_contexts_codec); - break; - } - case 34: { - scenarioItems_.AddEntriesFrom(ref input, _repeated_scenarioItems_codec); - break; - } - case 42: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 50: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 58: { - tags_.AddEntriesFrom(ref input, _repeated_tags_codec); - break; - } - case 64: { - ExecutionTime = input.ReadInt64(); - break; - } - case 72: { - Skipped = input.ReadBool(); - break; - } - case 82: { - skipErrors_.AddEntriesFrom(ref input, _repeated_skipErrors_codec); - break; - } - case 90: { - ID = input.ReadString(); - break; - } - case 98: { - tearDownSteps_.AddEntriesFrom(ref input, _repeated_tearDownSteps_codec); - break; - } - case 106: { - if (span_ == null) { - Span = new global::Gauge.Messages.Span(); - } - input.ReadMessage(Span); - break; - } - case 112: { - ExecutionStatus = (global::Gauge.Messages.ExecutionStatus) input.ReadEnum(); - break; - } - case 122: { - preHookMessages_.AddEntriesFrom(ref input, _repeated_preHookMessages_codec); - break; - } - case 130: { - postHookMessages_.AddEntriesFrom(ref input, _repeated_postHookMessages_codec); - break; - } - case 138: { - preHookMessage_.AddEntriesFrom(ref input, _repeated_preHookMessage_codec); - break; - } - case 146: { - postHookMessage_.AddEntriesFrom(ref input, _repeated_postHookMessage_codec); - break; - } - case 154: { - preHookScreenshots_.AddEntriesFrom(ref input, _repeated_preHookScreenshots_codec); - break; - } - case 162: { - postHookScreenshots_.AddEntriesFrom(ref input, _repeated_postHookScreenshots_codec); - break; - } - case 170: { - preHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 178: { - postHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_postHookScreenshotFiles_codec); - break; - } - case 184: { - RetriesCount = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing a Span of content - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Span : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Span()); - 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::Gauge.Messages.SpecReflection.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 Span() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Span(Span other) : this() { - start_ = other.start_; - end_ = other.end_; - startChar_ = other.startChar_; - endChar_ = other.endChar_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Span Clone() { - return new Span(this); - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 1; - private long start_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Start { - get { return start_; } - set { - start_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 2; - private long end_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long End { - get { return end_; } - set { - end_ = value; - } - } - - /// Field number for the "startChar" field. - public const int StartCharFieldNumber = 3; - private long startChar_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long StartChar { - get { return startChar_; } - set { - startChar_ = value; - } - } - - /// Field number for the "endChar" field. - public const int EndCharFieldNumber = 4; - private long endChar_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EndChar { - get { return endChar_; } - set { - endChar_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Span); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Span other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Start != other.Start) return false; - if (End != other.End) return false; - if (StartChar != other.StartChar) return false; - if (EndChar != other.EndChar) 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 (Start != 0L) hash ^= Start.GetHashCode(); - if (End != 0L) hash ^= End.GetHashCode(); - if (StartChar != 0L) hash ^= StartChar.GetHashCode(); - if (EndChar != 0L) hash ^= EndChar.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 (Start != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Start); - } - if (End != 0L) { - output.WriteRawTag(16); - output.WriteInt64(End); - } - if (StartChar != 0L) { - output.WriteRawTag(24); - output.WriteInt64(StartChar); - } - if (EndChar != 0L) { - output.WriteRawTag(32); - output.WriteInt64(EndChar); - } - 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 (Start != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Start); - } - if (End != 0L) { - output.WriteRawTag(16); - output.WriteInt64(End); - } - if (StartChar != 0L) { - output.WriteRawTag(24); - output.WriteInt64(StartChar); - } - if (EndChar != 0L) { - output.WriteRawTag(32); - output.WriteInt64(EndChar); - } - 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 (Start != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Start); - } - if (End != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(End); - } - if (StartChar != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartChar); - } - if (EndChar != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndChar); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Span other) { - if (other == null) { - return; - } - if (other.Start != 0L) { - Start = other.Start; - } - if (other.End != 0L) { - End = other.End; - } - if (other.StartChar != 0L) { - StartChar = other.StartChar; - } - if (other.EndChar != 0L) { - EndChar = other.EndChar; - } - _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: { - Start = input.ReadInt64(); - break; - } - case 16: { - End = input.ReadInt64(); - break; - } - case 24: { - StartChar = input.ReadInt64(); - break; - } - case 32: { - EndChar = 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: { - Start = input.ReadInt64(); - break; - } - case 16: { - End = input.ReadInt64(); - break; - } - case 24: { - StartChar = input.ReadInt64(); - break; - } - case 32: { - EndChar = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing a TableDrivenScenario - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoTableDrivenScenario : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoTableDrivenScenario()); - 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::Gauge.Messages.SpecReflection.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 ProtoTableDrivenScenario() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTableDrivenScenario(ProtoTableDrivenScenario other) : this() { - scenario_ = other.scenario_ != null ? other.scenario_.Clone() : null; - tableRowIndex_ = other.tableRowIndex_; - scenarioTableRowIndex_ = other.scenarioTableRowIndex_; - isSpecTableDriven_ = other.isSpecTableDriven_; - isScenarioTableDriven_ = other.isScenarioTableDriven_; - scenarioDataTable_ = other.scenarioDataTable_ != null ? other.scenarioDataTable_.Clone() : null; - scenarioTableRow_ = other.scenarioTableRow_ != null ? other.scenarioTableRow_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTableDrivenScenario Clone() { - return new ProtoTableDrivenScenario(this); - } - - /// Field number for the "scenario" field. - public const int ScenarioFieldNumber = 1; - private global::Gauge.Messages.ProtoScenario scenario_; - /// - //// Scenario under Table driven execution - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoScenario Scenario { - get { return scenario_; } - set { - scenario_ = value; - } - } - - /// Field number for the "tableRowIndex" field. - public const int TableRowIndexFieldNumber = 2; - private int tableRowIndex_; - /// - //// Row Index of data table against which the current scenario is executed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int TableRowIndex { - get { return tableRowIndex_; } - set { - tableRowIndex_ = value; - } - } - - /// Field number for the "scenarioTableRowIndex" field. - public const int ScenarioTableRowIndexFieldNumber = 3; - private int scenarioTableRowIndex_; - /// - //// Row Index of scenario data table against which the current scenario is executed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ScenarioTableRowIndex { - get { return scenarioTableRowIndex_; } - set { - scenarioTableRowIndex_ = value; - } - } - - /// Field number for the "isSpecTableDriven" field. - public const int IsSpecTableDrivenFieldNumber = 4; - private bool isSpecTableDriven_; - /// - //// Executed against a spec data table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsSpecTableDriven { - get { return isSpecTableDriven_; } - set { - isSpecTableDriven_ = value; - } - } - - /// Field number for the "isScenarioTableDriven" field. - public const int IsScenarioTableDrivenFieldNumber = 5; - private bool isScenarioTableDriven_; - /// - //// Executed against a scenario data table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsScenarioTableDriven { - get { return isScenarioTableDriven_; } - set { - isScenarioTableDriven_ = value; - } - } - - /// Field number for the "scenarioDataTable" field. - public const int ScenarioDataTableFieldNumber = 6; - private global::Gauge.Messages.ProtoTable scenarioDataTable_; - /// - //// Holds the scenario data table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTable ScenarioDataTable { - get { return scenarioDataTable_; } - set { - scenarioDataTable_ = value; - } - } - - /// Field number for the "scenarioTableRow" field. - public const int ScenarioTableRowFieldNumber = 7; - private global::Gauge.Messages.ProtoTable scenarioTableRow_; - /// - //// Hold the row of scenario data table. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTable ScenarioTableRow { - get { return scenarioTableRow_; } - set { - scenarioTableRow_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoTableDrivenScenario); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoTableDrivenScenario other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Scenario, other.Scenario)) return false; - if (TableRowIndex != other.TableRowIndex) return false; - if (ScenarioTableRowIndex != other.ScenarioTableRowIndex) return false; - if (IsSpecTableDriven != other.IsSpecTableDriven) return false; - if (IsScenarioTableDriven != other.IsScenarioTableDriven) return false; - if (!object.Equals(ScenarioDataTable, other.ScenarioDataTable)) return false; - if (!object.Equals(ScenarioTableRow, other.ScenarioTableRow)) 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 (scenario_ != null) hash ^= Scenario.GetHashCode(); - if (TableRowIndex != 0) hash ^= TableRowIndex.GetHashCode(); - if (ScenarioTableRowIndex != 0) hash ^= ScenarioTableRowIndex.GetHashCode(); - if (IsSpecTableDriven != false) hash ^= IsSpecTableDriven.GetHashCode(); - if (IsScenarioTableDriven != false) hash ^= IsScenarioTableDriven.GetHashCode(); - if (scenarioDataTable_ != null) hash ^= ScenarioDataTable.GetHashCode(); - if (scenarioTableRow_ != null) hash ^= ScenarioTableRow.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 (scenario_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Scenario); - } - if (TableRowIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(TableRowIndex); - } - if (ScenarioTableRowIndex != 0) { - output.WriteRawTag(24); - output.WriteInt32(ScenarioTableRowIndex); - } - if (IsSpecTableDriven != false) { - output.WriteRawTag(32); - output.WriteBool(IsSpecTableDriven); - } - if (IsScenarioTableDriven != false) { - output.WriteRawTag(40); - output.WriteBool(IsScenarioTableDriven); - } - if (scenarioDataTable_ != null) { - output.WriteRawTag(50); - output.WriteMessage(ScenarioDataTable); - } - if (scenarioTableRow_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScenarioTableRow); - } - 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 (scenario_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Scenario); - } - if (TableRowIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(TableRowIndex); - } - if (ScenarioTableRowIndex != 0) { - output.WriteRawTag(24); - output.WriteInt32(ScenarioTableRowIndex); - } - if (IsSpecTableDriven != false) { - output.WriteRawTag(32); - output.WriteBool(IsSpecTableDriven); - } - if (IsScenarioTableDriven != false) { - output.WriteRawTag(40); - output.WriteBool(IsScenarioTableDriven); - } - if (scenarioDataTable_ != null) { - output.WriteRawTag(50); - output.WriteMessage(ScenarioDataTable); - } - if (scenarioTableRow_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ScenarioTableRow); - } - 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 (scenario_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scenario); - } - if (TableRowIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(TableRowIndex); - } - if (ScenarioTableRowIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScenarioTableRowIndex); - } - if (IsSpecTableDriven != false) { - size += 1 + 1; - } - if (IsScenarioTableDriven != false) { - size += 1 + 1; - } - if (scenarioDataTable_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioDataTable); - } - if (scenarioTableRow_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScenarioTableRow); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoTableDrivenScenario other) { - if (other == null) { - return; - } - if (other.scenario_ != null) { - if (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - Scenario.MergeFrom(other.Scenario); - } - if (other.TableRowIndex != 0) { - TableRowIndex = other.TableRowIndex; - } - if (other.ScenarioTableRowIndex != 0) { - ScenarioTableRowIndex = other.ScenarioTableRowIndex; - } - if (other.IsSpecTableDriven != false) { - IsSpecTableDriven = other.IsSpecTableDriven; - } - if (other.IsScenarioTableDriven != false) { - IsScenarioTableDriven = other.IsScenarioTableDriven; - } - if (other.scenarioDataTable_ != null) { - if (scenarioDataTable_ == null) { - ScenarioDataTable = new global::Gauge.Messages.ProtoTable(); - } - ScenarioDataTable.MergeFrom(other.ScenarioDataTable); - } - if (other.scenarioTableRow_ != null) { - if (scenarioTableRow_ == null) { - ScenarioTableRow = new global::Gauge.Messages.ProtoTable(); - } - ScenarioTableRow.MergeFrom(other.ScenarioTableRow); - } - _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 (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - input.ReadMessage(Scenario); - break; - } - case 16: { - TableRowIndex = input.ReadInt32(); - break; - } - case 24: { - ScenarioTableRowIndex = input.ReadInt32(); - break; - } - case 32: { - IsSpecTableDriven = input.ReadBool(); - break; - } - case 40: { - IsScenarioTableDriven = input.ReadBool(); - break; - } - case 50: { - if (scenarioDataTable_ == null) { - ScenarioDataTable = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(ScenarioDataTable); - break; - } - case 58: { - if (scenarioTableRow_ == null) { - ScenarioTableRow = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(ScenarioTableRow); - 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 (scenario_ == null) { - Scenario = new global::Gauge.Messages.ProtoScenario(); - } - input.ReadMessage(Scenario); - break; - } - case 16: { - TableRowIndex = input.ReadInt32(); - break; - } - case 24: { - ScenarioTableRowIndex = input.ReadInt32(); - break; - } - case 32: { - IsSpecTableDriven = input.ReadBool(); - break; - } - case 40: { - IsScenarioTableDriven = input.ReadBool(); - break; - } - case 50: { - if (scenarioDataTable_ == null) { - ScenarioDataTable = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(ScenarioDataTable); - break; - } - case 58: { - if (scenarioTableRow_ == null) { - ScenarioTableRow = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(ScenarioTableRow); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing a Step - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoStep : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoStep()); - 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::Gauge.Messages.SpecReflection.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 ProtoStep() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStep(ProtoStep other) : this() { - actualText_ = other.actualText_; - parsedText_ = other.parsedText_; - fragments_ = other.fragments_.Clone(); - stepExecutionResult_ = other.stepExecutionResult_ != null ? other.stepExecutionResult_.Clone() : null; - preHookMessages_ = other.preHookMessages_.Clone(); - postHookMessages_ = other.postHookMessages_.Clone(); - preHookScreenshots_ = other.preHookScreenshots_.Clone(); - postHookScreenshots_ = other.postHookScreenshots_.Clone(); - preHookScreenshotFiles_ = other.preHookScreenshotFiles_.Clone(); - postHookScreenshotFiles_ = other.postHookScreenshotFiles_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStep Clone() { - return new ProtoStep(this); - } - - /// Field number for the "actualText" field. - public const int ActualTextFieldNumber = 1; - private string actualText_ = ""; - /// - //// Holds the raw text of the Step as defined in the spec file. This contains the actual parameter values. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActualText { - get { return actualText_; } - set { - actualText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parsedText" field. - public const int ParsedTextFieldNumber = 2; - private string parsedText_ = ""; - /// - //// Contains the parsed text of the Step. This will have placeholders for the parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParsedText { - get { return parsedText_; } - set { - parsedText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "fragments" field. - public const int FragmentsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_fragments_codec - = pb::FieldCodec.ForMessage(26, global::Gauge.Messages.Fragment.Parser); - private readonly pbc::RepeatedField fragments_ = new pbc::RepeatedField(); - /// - //// Collection of a list of fragments for a Step. A fragment could be either text or parameter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Fragments { - get { return fragments_; } - } - - /// Field number for the "stepExecutionResult" field. - public const int StepExecutionResultFieldNumber = 4; - private global::Gauge.Messages.ProtoStepExecutionResult stepExecutionResult_; - /// - //// Holds the result from the execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepExecutionResult StepExecutionResult { - get { return stepExecutionResult_; } - set { - stepExecutionResult_ = value; - } - } - - /// Field number for the "preHookMessages" field. - public const int PreHookMessagesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_preHookMessages_codec - = pb::FieldCodec.ForString(42); - private readonly pbc::RepeatedField preHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessages { - get { return preHookMessages_; } - } - - /// Field number for the "postHookMessages" field. - public const int PostHookMessagesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_postHookMessages_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField postHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessages { - get { return postHookMessages_; } - } - - /// Field number for the "preHookScreenshots" field. - public const int PreHookScreenshotsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_preHookScreenshots_codec - = pb::FieldCodec.ForBytes(58); - private readonly pbc::RepeatedField preHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshots { - get { return preHookScreenshots_; } - } - - /// Field number for the "postHookScreenshots" field. - public const int PostHookScreenshotsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_postHookScreenshots_codec - = pb::FieldCodec.ForBytes(66); - private readonly pbc::RepeatedField postHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshots { - get { return postHookScreenshots_; } - } - - /// Field number for the "preHookScreenshotFiles" field. - public const int PreHookScreenshotFilesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_preHookScreenshotFiles_codec - = pb::FieldCodec.ForString(74); - private readonly pbc::RepeatedField preHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshotFiles { - get { return preHookScreenshotFiles_; } - } - - /// Field number for the "postHookScreenshotFiles" field. - public const int PostHookScreenshotFilesFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_postHookScreenshotFiles_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField postHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshotFiles { - get { return postHookScreenshotFiles_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoStep); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoStep other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ActualText != other.ActualText) return false; - if (ParsedText != other.ParsedText) return false; - if(!fragments_.Equals(other.fragments_)) return false; - if (!object.Equals(StepExecutionResult, other.StepExecutionResult)) return false; - if(!preHookMessages_.Equals(other.preHookMessages_)) return false; - if(!postHookMessages_.Equals(other.postHookMessages_)) return false; - if(!preHookScreenshots_.Equals(other.preHookScreenshots_)) return false; - if(!postHookScreenshots_.Equals(other.postHookScreenshots_)) return false; - if(!preHookScreenshotFiles_.Equals(other.preHookScreenshotFiles_)) return false; - if(!postHookScreenshotFiles_.Equals(other.postHookScreenshotFiles_)) 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 (ActualText.Length != 0) hash ^= ActualText.GetHashCode(); - if (ParsedText.Length != 0) hash ^= ParsedText.GetHashCode(); - hash ^= fragments_.GetHashCode(); - if (stepExecutionResult_ != null) hash ^= StepExecutionResult.GetHashCode(); - hash ^= preHookMessages_.GetHashCode(); - hash ^= postHookMessages_.GetHashCode(); - hash ^= preHookScreenshots_.GetHashCode(); - hash ^= postHookScreenshots_.GetHashCode(); - hash ^= preHookScreenshotFiles_.GetHashCode(); - hash ^= postHookScreenshotFiles_.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 (ActualText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ActualText); - } - if (ParsedText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParsedText); - } - fragments_.WriteTo(output, _repeated_fragments_codec); - if (stepExecutionResult_ != null) { - output.WriteRawTag(34); - output.WriteMessage(StepExecutionResult); - } - preHookMessages_.WriteTo(output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(output, _repeated_postHookMessages_codec); - preHookScreenshots_.WriteTo(output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(output, _repeated_postHookScreenshots_codec); - preHookScreenshotFiles_.WriteTo(output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(output, _repeated_postHookScreenshotFiles_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 (ActualText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ActualText); - } - if (ParsedText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParsedText); - } - fragments_.WriteTo(ref output, _repeated_fragments_codec); - if (stepExecutionResult_ != null) { - output.WriteRawTag(34); - output.WriteMessage(StepExecutionResult); - } - preHookMessages_.WriteTo(ref output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(ref output, _repeated_postHookMessages_codec); - preHookScreenshots_.WriteTo(ref output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(ref output, _repeated_postHookScreenshots_codec); - preHookScreenshotFiles_.WriteTo(ref output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(ref output, _repeated_postHookScreenshotFiles_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 (ActualText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActualText); - } - if (ParsedText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParsedText); - } - size += fragments_.CalculateSize(_repeated_fragments_codec); - if (stepExecutionResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StepExecutionResult); - } - size += preHookMessages_.CalculateSize(_repeated_preHookMessages_codec); - size += postHookMessages_.CalculateSize(_repeated_postHookMessages_codec); - size += preHookScreenshots_.CalculateSize(_repeated_preHookScreenshots_codec); - size += postHookScreenshots_.CalculateSize(_repeated_postHookScreenshots_codec); - size += preHookScreenshotFiles_.CalculateSize(_repeated_preHookScreenshotFiles_codec); - size += postHookScreenshotFiles_.CalculateSize(_repeated_postHookScreenshotFiles_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoStep other) { - if (other == null) { - return; - } - if (other.ActualText.Length != 0) { - ActualText = other.ActualText; - } - if (other.ParsedText.Length != 0) { - ParsedText = other.ParsedText; - } - fragments_.Add(other.fragments_); - if (other.stepExecutionResult_ != null) { - if (stepExecutionResult_ == null) { - StepExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - StepExecutionResult.MergeFrom(other.StepExecutionResult); - } - preHookMessages_.Add(other.preHookMessages_); - postHookMessages_.Add(other.postHookMessages_); - preHookScreenshots_.Add(other.preHookScreenshots_); - postHookScreenshots_.Add(other.postHookScreenshots_); - preHookScreenshotFiles_.Add(other.preHookScreenshotFiles_); - postHookScreenshotFiles_.Add(other.postHookScreenshotFiles_); - _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: { - ActualText = input.ReadString(); - break; - } - case 18: { - ParsedText = input.ReadString(); - break; - } - case 26: { - fragments_.AddEntriesFrom(input, _repeated_fragments_codec); - break; - } - case 34: { - if (stepExecutionResult_ == null) { - StepExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - input.ReadMessage(StepExecutionResult); - break; - } - case 42: { - preHookMessages_.AddEntriesFrom(input, _repeated_preHookMessages_codec); - break; - } - case 50: { - postHookMessages_.AddEntriesFrom(input, _repeated_postHookMessages_codec); - break; - } - case 58: { - preHookScreenshots_.AddEntriesFrom(input, _repeated_preHookScreenshots_codec); - break; - } - case 66: { - postHookScreenshots_.AddEntriesFrom(input, _repeated_postHookScreenshots_codec); - break; - } - case 74: { - preHookScreenshotFiles_.AddEntriesFrom(input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 82: { - postHookScreenshotFiles_.AddEntriesFrom(input, _repeated_postHookScreenshotFiles_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: { - ActualText = input.ReadString(); - break; - } - case 18: { - ParsedText = input.ReadString(); - break; - } - case 26: { - fragments_.AddEntriesFrom(ref input, _repeated_fragments_codec); - break; - } - case 34: { - if (stepExecutionResult_ == null) { - StepExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - input.ReadMessage(StepExecutionResult); - break; - } - case 42: { - preHookMessages_.AddEntriesFrom(ref input, _repeated_preHookMessages_codec); - break; - } - case 50: { - postHookMessages_.AddEntriesFrom(ref input, _repeated_postHookMessages_codec); - break; - } - case 58: { - preHookScreenshots_.AddEntriesFrom(ref input, _repeated_preHookScreenshots_codec); - break; - } - case 66: { - postHookScreenshots_.AddEntriesFrom(ref input, _repeated_postHookScreenshots_codec); - break; - } - case 74: { - preHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 82: { - postHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_postHookScreenshotFiles_codec); - break; - } - } - } - } - #endif - - } - - /// - //// Concept is a type of step, that can have multiple Steps. - //// But from a caller's perspective, it is still used as any other Step - //// A proto object representing a Concept - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoConcept : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoConcept()); - 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::Gauge.Messages.SpecReflection.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 ProtoConcept() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoConcept(ProtoConcept other) : this() { - conceptStep_ = other.conceptStep_ != null ? other.conceptStep_.Clone() : null; - steps_ = other.steps_.Clone(); - conceptExecutionResult_ = other.conceptExecutionResult_ != null ? other.conceptExecutionResult_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoConcept Clone() { - return new ProtoConcept(this); - } - - /// Field number for the "conceptStep" field. - public const int ConceptStepFieldNumber = 1; - private global::Gauge.Messages.ProtoStep conceptStep_; - /// - //// Represents the Step value of a Concept. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStep ConceptStep { - get { return conceptStep_; } - set { - conceptStep_ = value; - } - } - - /// Field number for the "steps" field. - public const int StepsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_steps_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.ProtoItem.Parser); - private readonly pbc::RepeatedField steps_ = new pbc::RepeatedField(); - /// - //// Collection of Steps in the given concepts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Steps { - get { return steps_; } - } - - /// Field number for the "conceptExecutionResult" field. - public const int ConceptExecutionResultFieldNumber = 3; - private global::Gauge.Messages.ProtoStepExecutionResult conceptExecutionResult_; - /// - //// Holds the execution result. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoStepExecutionResult ConceptExecutionResult { - get { return conceptExecutionResult_; } - set { - conceptExecutionResult_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoConcept); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoConcept other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ConceptStep, other.ConceptStep)) return false; - if(!steps_.Equals(other.steps_)) return false; - if (!object.Equals(ConceptExecutionResult, other.ConceptExecutionResult)) 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 (conceptStep_ != null) hash ^= ConceptStep.GetHashCode(); - hash ^= steps_.GetHashCode(); - if (conceptExecutionResult_ != null) hash ^= ConceptExecutionResult.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 (conceptStep_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ConceptStep); - } - steps_.WriteTo(output, _repeated_steps_codec); - if (conceptExecutionResult_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ConceptExecutionResult); - } - 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 (conceptStep_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ConceptStep); - } - steps_.WriteTo(ref output, _repeated_steps_codec); - if (conceptExecutionResult_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ConceptExecutionResult); - } - 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 (conceptStep_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConceptStep); - } - size += steps_.CalculateSize(_repeated_steps_codec); - if (conceptExecutionResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConceptExecutionResult); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoConcept other) { - if (other == null) { - return; - } - if (other.conceptStep_ != null) { - if (conceptStep_ == null) { - ConceptStep = new global::Gauge.Messages.ProtoStep(); - } - ConceptStep.MergeFrom(other.ConceptStep); - } - steps_.Add(other.steps_); - if (other.conceptExecutionResult_ != null) { - if (conceptExecutionResult_ == null) { - ConceptExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - ConceptExecutionResult.MergeFrom(other.ConceptExecutionResult); - } - _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 (conceptStep_ == null) { - ConceptStep = new global::Gauge.Messages.ProtoStep(); - } - input.ReadMessage(ConceptStep); - break; - } - case 18: { - steps_.AddEntriesFrom(input, _repeated_steps_codec); - break; - } - case 26: { - if (conceptExecutionResult_ == null) { - ConceptExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - input.ReadMessage(ConceptExecutionResult); - 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 (conceptStep_ == null) { - ConceptStep = new global::Gauge.Messages.ProtoStep(); - } - input.ReadMessage(ConceptStep); - break; - } - case 18: { - steps_.AddEntriesFrom(ref input, _repeated_steps_codec); - break; - } - case 26: { - if (conceptExecutionResult_ == null) { - ConceptExecutionResult = new global::Gauge.Messages.ProtoStepExecutionResult(); - } - input.ReadMessage(ConceptExecutionResult); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing Tags - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoTags : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoTags()); - 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::Gauge.Messages.SpecReflection.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 ProtoTags() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTags(ProtoTags other) : this() { - tags_ = other.tags_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTags Clone() { - return new ProtoTags(this); - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - //// A collection of Tags - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoTags); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoTags other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!tags_.Equals(other.tags_)) 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 ^= tags_.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 - tags_.WriteTo(output, _repeated_tags_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) { - tags_.WriteTo(ref output, _repeated_tags_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 += tags_.CalculateSize(_repeated_tags_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoTags other) { - if (other == null) { - return; - } - tags_.Add(other.tags_); - _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: { - tags_.AddEntriesFrom(input, _repeated_tags_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: { - tags_.AddEntriesFrom(ref input, _repeated_tags_codec); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing Fragment. - //// Fragments, put together make up A Step - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Fragment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Fragment()); - 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::Gauge.Messages.SpecReflection.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 Fragment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Fragment(Fragment other) : this() { - fragmentType_ = other.fragmentType_; - text_ = other.text_; - parameter_ = other.parameter_ != null ? other.parameter_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Fragment Clone() { - return new Fragment(this); - } - - /// Field number for the "fragmentType" field. - public const int FragmentTypeFieldNumber = 1; - private global::Gauge.Messages.Fragment.Types.FragmentType fragmentType_ = global::Gauge.Messages.Fragment.Types.FragmentType.Text; - /// - //// Type of Fragment, valid values are Text, Parameter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Fragment.Types.FragmentType FragmentType { - get { return fragmentType_; } - set { - fragmentType_ = value; - } - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 2; - private string text_ = ""; - /// - //// Text part of the Fragment, valid only if FragmentType=Text - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parameter" field. - public const int ParameterFieldNumber = 3; - private global::Gauge.Messages.Parameter parameter_; - /// - //// Parameter part of the Fragment, valid only if FragmentType=Parameter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Parameter Parameter { - get { return parameter_; } - set { - parameter_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Fragment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Fragment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FragmentType != other.FragmentType) return false; - if (Text != other.Text) return false; - if (!object.Equals(Parameter, other.Parameter)) 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 (FragmentType != global::Gauge.Messages.Fragment.Types.FragmentType.Text) hash ^= FragmentType.GetHashCode(); - if (Text.Length != 0) hash ^= Text.GetHashCode(); - if (parameter_ != null) hash ^= Parameter.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 (FragmentType != global::Gauge.Messages.Fragment.Types.FragmentType.Text) { - output.WriteRawTag(8); - output.WriteEnum((int) FragmentType); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (parameter_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Parameter); - } - 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 (FragmentType != global::Gauge.Messages.Fragment.Types.FragmentType.Text) { - output.WriteRawTag(8); - output.WriteEnum((int) FragmentType); - } - if (Text.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (parameter_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Parameter); - } - 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 (FragmentType != global::Gauge.Messages.Fragment.Types.FragmentType.Text) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FragmentType); - } - if (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (parameter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Parameter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Fragment other) { - if (other == null) { - return; - } - if (other.FragmentType != global::Gauge.Messages.Fragment.Types.FragmentType.Text) { - FragmentType = other.FragmentType; - } - if (other.Text.Length != 0) { - Text = other.Text; - } - if (other.parameter_ != null) { - if (parameter_ == null) { - Parameter = new global::Gauge.Messages.Parameter(); - } - Parameter.MergeFrom(other.Parameter); - } - _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: { - FragmentType = (global::Gauge.Messages.Fragment.Types.FragmentType) input.ReadEnum(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 26: { - if (parameter_ == null) { - Parameter = new global::Gauge.Messages.Parameter(); - } - input.ReadMessage(Parameter); - 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: { - FragmentType = (global::Gauge.Messages.Fragment.Types.FragmentType) input.ReadEnum(); - break; - } - case 18: { - Text = input.ReadString(); - break; - } - case 26: { - if (parameter_ == null) { - Parameter = new global::Gauge.Messages.Parameter(); - } - input.ReadMessage(Parameter); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Fragment message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - //// Enum representing the types of Fragment - /// - public enum FragmentType { - /// - //// Fragment is a Text part - /// - [pbr::OriginalName("Text")] Text = 0, - /// - //// Fragment is a Parameter part - /// - [pbr::OriginalName("Parameter")] Parameter = 1, - } - - } - #endregion - - } - - /// - //// A proto object representing Fragment. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Parameter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Parameter()); - 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::Gauge.Messages.SpecReflection.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 Parameter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Parameter(Parameter other) : this() { - parameterType_ = other.parameterType_; - value_ = other.value_; - name_ = other.name_; - table_ = other.table_ != null ? other.table_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Parameter Clone() { - return new Parameter(this); - } - - /// Field number for the "parameterType" field. - public const int ParameterTypeFieldNumber = 1; - private global::Gauge.Messages.Parameter.Types.ParameterType parameterType_ = global::Gauge.Messages.Parameter.Types.ParameterType.Static; - /// - //// Type of the Parameter. Valid values: Static, Dynamic, Special_String, Special_Table, Table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Parameter.Types.ParameterType ParameterType { - get { return parameterType_; } - set { - parameterType_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - /// - //// Holds the value of the parameter - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - //// Holds the name of the parameter, used as Key to lookup the value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "table" field. - public const int TableFieldNumber = 4; - private global::Gauge.Messages.ProtoTable table_; - /// - //// Holds the table value, if parameterType=Table or Special_Table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTable Table { - get { return table_; } - set { - table_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Parameter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Parameter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ParameterType != other.ParameterType) return false; - if (Value != other.Value) return false; - if (Name != other.Name) return false; - if (!object.Equals(Table, other.Table)) 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 (ParameterType != global::Gauge.Messages.Parameter.Types.ParameterType.Static) hash ^= ParameterType.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (table_ != null) hash ^= Table.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 (ParameterType != global::Gauge.Messages.Parameter.Types.ParameterType.Static) { - output.WriteRawTag(8); - output.WriteEnum((int) ParameterType); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (table_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Table); - } - 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 (ParameterType != global::Gauge.Messages.Parameter.Types.ParameterType.Static) { - output.WriteRawTag(8); - output.WriteEnum((int) ParameterType); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (table_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Table); - } - 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 (ParameterType != global::Gauge.Messages.Parameter.Types.ParameterType.Static) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ParameterType); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (table_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Table); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Parameter other) { - if (other == null) { - return; - } - if (other.ParameterType != global::Gauge.Messages.Parameter.Types.ParameterType.Static) { - ParameterType = other.ParameterType; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.table_ != null) { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - Table.MergeFrom(other.Table); - } - _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: { - ParameterType = (global::Gauge.Messages.Parameter.Types.ParameterType) input.ReadEnum(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(Table); - 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: { - ParameterType = (global::Gauge.Messages.Parameter.Types.ParameterType) input.ReadEnum(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - if (table_ == null) { - Table = new global::Gauge.Messages.ProtoTable(); - } - input.ReadMessage(Table); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Parameter message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - //// Enum representing types of Parameter. - /// - public enum ParameterType { - /// - /// Static parameter. The value of the parameter is defined at the Step. - /// - [pbr::OriginalName("Static")] Static = 0, - /// - /// Dynamic parameter. This is a parameter placeholder, and the actual value is injected at runtime, depending on the context of the call. - /// - [pbr::OriginalName("Dynamic")] Dynamic = 1, - /// - /// Special paramter, taking a string value. Special paramters are read from a file. - /// - [pbr::OriginalName("Special_String")] SpecialString = 2, - /// - /// Special paramter, taking a Table value. This parameter is read from a csv file. - /// - [pbr::OriginalName("Special_Table")] SpecialTable = 3, - /// - /// A table parameter, used for data driven execution. - /// - [pbr::OriginalName("Table")] Table = 4, - } - - } - #endregion - - } - - /// - //// A proto object representing Comment. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoComment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoComment()); - 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::Gauge.Messages.SpecReflection.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 ProtoComment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoComment(ProtoComment other) : this() { - text_ = other.text_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoComment Clone() { - return new ProtoComment(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 1; - private string text_ = ""; - /// - //// Text representing the Comment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoComment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoComment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) 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 (Text.Length != 0) hash ^= Text.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 (Text.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Text); - } - 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 (Text.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Text); - } - 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 (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoComment other) { - if (other == null) { - return; - } - if (other.Text.Length != 0) { - Text = other.Text; - } - _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: { - Text = 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: { - Text = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing Table. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoTable : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoTable()); - 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::Gauge.Messages.SpecReflection.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 ProtoTable() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTable(ProtoTable other) : this() { - headers_ = other.headers_ != null ? other.headers_.Clone() : null; - rows_ = other.rows_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTable Clone() { - return new ProtoTable(this); - } - - /// Field number for the "headers" field. - public const int HeadersFieldNumber = 1; - private global::Gauge.Messages.ProtoTableRow headers_; - /// - //// Contains the Headers for the table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoTableRow Headers { - get { return headers_; } - set { - headers_ = value; - } - } - - /// Field number for the "rows" field. - public const int RowsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_rows_codec - = pb::FieldCodec.ForMessage(18, global::Gauge.Messages.ProtoTableRow.Parser); - private readonly pbc::RepeatedField rows_ = new pbc::RepeatedField(); - /// - //// Contains the Rows for the table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Rows { - get { return rows_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoTable other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Headers, other.Headers)) return false; - if(!rows_.Equals(other.rows_)) 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 (headers_ != null) hash ^= Headers.GetHashCode(); - hash ^= rows_.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 (headers_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Headers); - } - rows_.WriteTo(output, _repeated_rows_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 (headers_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Headers); - } - rows_.WriteTo(ref output, _repeated_rows_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 (headers_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Headers); - } - size += rows_.CalculateSize(_repeated_rows_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoTable other) { - if (other == null) { - return; - } - if (other.headers_ != null) { - if (headers_ == null) { - Headers = new global::Gauge.Messages.ProtoTableRow(); - } - Headers.MergeFrom(other.Headers); - } - rows_.Add(other.rows_); - _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 (headers_ == null) { - Headers = new global::Gauge.Messages.ProtoTableRow(); - } - input.ReadMessage(Headers); - break; - } - case 18: { - rows_.AddEntriesFrom(input, _repeated_rows_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: { - if (headers_ == null) { - Headers = new global::Gauge.Messages.ProtoTableRow(); - } - input.ReadMessage(Headers); - break; - } - case 18: { - rows_.AddEntriesFrom(ref input, _repeated_rows_codec); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing Table. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoTableRow : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoTableRow()); - 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::Gauge.Messages.SpecReflection.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 ProtoTableRow() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTableRow(ProtoTableRow other) : this() { - cells_ = other.cells_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoTableRow Clone() { - return new ProtoTableRow(this); - } - - /// Field number for the "cells" field. - public const int CellsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_cells_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField cells_ = new pbc::RepeatedField(); - /// - //// Represents the cells of a given table - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Cells { - get { return cells_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoTableRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoTableRow other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!cells_.Equals(other.cells_)) 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 ^= cells_.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 - cells_.WriteTo(output, _repeated_cells_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) { - cells_.WriteTo(ref output, _repeated_cells_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 += cells_.CalculateSize(_repeated_cells_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoTableRow other) { - if (other == null) { - return; - } - cells_.Add(other.cells_); - _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: { - cells_.AddEntriesFrom(input, _repeated_cells_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: { - cells_.AddEntriesFrom(ref input, _repeated_cells_codec); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing Step Execution result - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoStepExecutionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoStepExecutionResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoStepExecutionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepExecutionResult(ProtoStepExecutionResult other) : this() { - executionResult_ = other.executionResult_ != null ? other.executionResult_.Clone() : null; - preHookFailure_ = other.preHookFailure_ != null ? other.preHookFailure_.Clone() : null; - postHookFailure_ = other.postHookFailure_ != null ? other.postHookFailure_.Clone() : null; - skipped_ = other.skipped_; - skippedReason_ = other.skippedReason_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepExecutionResult Clone() { - return new ProtoStepExecutionResult(this); - } - - /// Field number for the "executionResult" field. - public const int ExecutionResultFieldNumber = 1; - private global::Gauge.Messages.ProtoExecutionResult executionResult_; - /// - //// The actual result of the execution - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoExecutionResult ExecutionResult { - get { return executionResult_; } - set { - executionResult_ = value; - } - } - - /// Field number for the "preHookFailure" field. - public const int PreHookFailureFieldNumber = 2; - private global::Gauge.Messages.ProtoHookFailure preHookFailure_; - /// - //// Contains a 'before' hook failure message. This happens when the `before_step` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PreHookFailure { - get { return preHookFailure_; } - set { - preHookFailure_ = value; - } - } - - /// Field number for the "postHookFailure" field. - public const int PostHookFailureFieldNumber = 3; - private global::Gauge.Messages.ProtoHookFailure postHookFailure_; - /// - //// Contains a 'after' hook failure message. This happens when the `after_step` hook has an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PostHookFailure { - get { return postHookFailure_; } - set { - postHookFailure_ = value; - } - } - - /// Field number for the "skipped" field. - public const int SkippedFieldNumber = 4; - private bool skipped_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Skipped { - get { return skipped_; } - set { - skipped_ = value; - } - } - - /// Field number for the "skippedReason" field. - public const int SkippedReasonFieldNumber = 5; - private string skippedReason_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SkippedReason { - get { return skippedReason_; } - set { - skippedReason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoStepExecutionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoStepExecutionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ExecutionResult, other.ExecutionResult)) return false; - if (!object.Equals(PreHookFailure, other.PreHookFailure)) return false; - if (!object.Equals(PostHookFailure, other.PostHookFailure)) return false; - if (Skipped != other.Skipped) return false; - if (SkippedReason != other.SkippedReason) 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 (executionResult_ != null) hash ^= ExecutionResult.GetHashCode(); - if (preHookFailure_ != null) hash ^= PreHookFailure.GetHashCode(); - if (postHookFailure_ != null) hash ^= PostHookFailure.GetHashCode(); - if (Skipped != false) hash ^= Skipped.GetHashCode(); - if (SkippedReason.Length != 0) hash ^= SkippedReason.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 (executionResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ExecutionResult); - } - if (preHookFailure_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PostHookFailure); - } - if (Skipped != false) { - output.WriteRawTag(32); - output.WriteBool(Skipped); - } - if (SkippedReason.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SkippedReason); - } - 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 (executionResult_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ExecutionResult); - } - if (preHookFailure_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PostHookFailure); - } - if (Skipped != false) { - output.WriteRawTag(32); - output.WriteBool(Skipped); - } - if (SkippedReason.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SkippedReason); - } - 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 (executionResult_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExecutionResult); - } - if (preHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreHookFailure); - } - if (postHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostHookFailure); - } - if (Skipped != false) { - size += 1 + 1; - } - if (SkippedReason.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SkippedReason); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoStepExecutionResult other) { - if (other == null) { - return; - } - if (other.executionResult_ != null) { - if (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - ExecutionResult.MergeFrom(other.ExecutionResult); - } - if (other.preHookFailure_ != null) { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PreHookFailure.MergeFrom(other.PreHookFailure); - } - if (other.postHookFailure_ != null) { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PostHookFailure.MergeFrom(other.PostHookFailure); - } - if (other.Skipped != false) { - Skipped = other.Skipped; - } - if (other.SkippedReason.Length != 0) { - SkippedReason = other.SkippedReason; - } - _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 (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - input.ReadMessage(ExecutionResult); - break; - } - case 18: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 26: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 32: { - Skipped = input.ReadBool(); - break; - } - case 42: { - SkippedReason = 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: { - if (executionResult_ == null) { - ExecutionResult = new global::Gauge.Messages.ProtoExecutionResult(); - } - input.ReadMessage(ExecutionResult); - break; - } - case 18: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 26: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 32: { - Skipped = input.ReadBool(); - break; - } - case 42: { - SkippedReason = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing the result of an execution - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoExecutionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoExecutionResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoExecutionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoExecutionResult(ProtoExecutionResult other) : this() { - failed_ = other.failed_; - recoverableError_ = other.recoverableError_; - errorMessage_ = other.errorMessage_; - stackTrace_ = other.stackTrace_; - screenShot_ = other.screenShot_; - executionTime_ = other.executionTime_; - message_ = other.message_.Clone(); - errorType_ = other.errorType_; - failureScreenshot_ = other.failureScreenshot_; - screenshots_ = other.screenshots_.Clone(); - failureScreenshotFile_ = other.failureScreenshotFile_; - screenshotFiles_ = other.screenshotFiles_.Clone(); - skipScenario_ = other.skipScenario_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoExecutionResult Clone() { - return new ProtoExecutionResult(this); - } - - /// Field number for the "failed" field. - public const int FailedFieldNumber = 1; - private bool failed_; - /// - //// Flag to indicate failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Failed { - get { return failed_; } - set { - failed_ = value; - } - } - - /// Field number for the "recoverableError" field. - public const int RecoverableErrorFieldNumber = 2; - private bool recoverableError_; - /// - //// Flag to indicate if the error is recoverable from. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool RecoverableError { - get { return recoverableError_; } - set { - recoverableError_ = value; - } - } - - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 3; - private string errorMessage_ = ""; - /// - //// The actual error message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } - set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "stackTrace" field. - public const int StackTraceFieldNumber = 4; - private string stackTrace_ = ""; - /// - //// Stacktrace of the error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StackTrace { - get { return stackTrace_; } - set { - stackTrace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "screenShot" field. - public const int ScreenShotFieldNumber = 5; - private pb::ByteString screenShot_ = pb::ByteString.Empty; - /// - //// [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString ScreenShot { - get { return screenShot_; } - set { - screenShot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 6; - private long executionTime_; - /// - //// Holds the time taken for executing this scenario. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_message_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField message_ = new pbc::RepeatedField(); - /// - //// Additional information at exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Message { - get { return message_; } - } - - /// Field number for the "errorType" field. - public const int ErrorTypeFieldNumber = 8; - private global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType errorType_ = global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion; - /// - //// Type of the Error. Valid values: ASSERTION, VERIFICATION. Default: ASSERTION - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType ErrorType { - get { return errorType_; } - set { - errorType_ = value; - } - } - - /// Field number for the "failureScreenshot" field. - public const int FailureScreenshotFieldNumber = 9; - private pb::ByteString failureScreenshot_ = pb::ByteString.Empty; - /// - //// [DEPRECATED, use failureScreenshotFile] Bytes containing screenshot taken at the time of failure. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString FailureScreenshot { - get { return failureScreenshot_; } - set { - failureScreenshot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "screenshots" field. - public const int ScreenshotsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_screenshots_codec - = pb::FieldCodec.ForBytes(82); - private readonly pbc::RepeatedField screenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use screenshotFiles] Bytes array containing screenshots at the time of it invoked - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Screenshots { - get { return screenshots_; } - } - - /// Field number for the "failureScreenshotFile" field. - public const int FailureScreenshotFileFieldNumber = 11; - private string failureScreenshotFile_ = ""; - /// - //// Path to the screenshot file captured at the time of failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FailureScreenshotFile { - get { return failureScreenshotFile_; } - set { - failureScreenshotFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "screenshotFiles" field. - public const int ScreenshotFilesFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_screenshotFiles_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField screenshotFiles_ = new pbc::RepeatedField(); - /// - //// Path to the screenshot files captured using Gauge screenshsot API. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ScreenshotFiles { - get { return screenshotFiles_; } - } - - /// Field number for the "skipScenario" field. - public const int SkipScenarioFieldNumber = 13; - private bool skipScenario_; - /// - //// Flag to indicate skipping of the scenario execution - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool SkipScenario { - get { return skipScenario_; } - set { - skipScenario_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoExecutionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoExecutionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Failed != other.Failed) return false; - if (RecoverableError != other.RecoverableError) return false; - if (ErrorMessage != other.ErrorMessage) return false; - if (StackTrace != other.StackTrace) return false; - if (ScreenShot != other.ScreenShot) return false; - if (ExecutionTime != other.ExecutionTime) return false; - if(!message_.Equals(other.message_)) return false; - if (ErrorType != other.ErrorType) return false; - if (FailureScreenshot != other.FailureScreenshot) return false; - if(!screenshots_.Equals(other.screenshots_)) return false; - if (FailureScreenshotFile != other.FailureScreenshotFile) return false; - if(!screenshotFiles_.Equals(other.screenshotFiles_)) return false; - if (SkipScenario != other.SkipScenario) 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 (Failed != false) hash ^= Failed.GetHashCode(); - if (RecoverableError != false) hash ^= RecoverableError.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); - if (StackTrace.Length != 0) hash ^= StackTrace.GetHashCode(); - if (ScreenShot.Length != 0) hash ^= ScreenShot.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - hash ^= message_.GetHashCode(); - if (ErrorType != global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion) hash ^= ErrorType.GetHashCode(); - if (FailureScreenshot.Length != 0) hash ^= FailureScreenshot.GetHashCode(); - hash ^= screenshots_.GetHashCode(); - if (FailureScreenshotFile.Length != 0) hash ^= FailureScreenshotFile.GetHashCode(); - hash ^= screenshotFiles_.GetHashCode(); - if (SkipScenario != false) hash ^= SkipScenario.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 (Failed != false) { - output.WriteRawTag(8); - output.WriteBool(Failed); - } - if (RecoverableError != false) { - output.WriteRawTag(16); - output.WriteBool(RecoverableError); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ErrorMessage); - } - if (StackTrace.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StackTrace); - } - if (ScreenShot.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(ScreenShot); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - message_.WriteTo(output, _repeated_message_codec); - if (ErrorType != global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion) { - output.WriteRawTag(64); - output.WriteEnum((int) ErrorType); - } - if (FailureScreenshot.Length != 0) { - output.WriteRawTag(74); - output.WriteBytes(FailureScreenshot); - } - screenshots_.WriteTo(output, _repeated_screenshots_codec); - if (FailureScreenshotFile.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FailureScreenshotFile); - } - screenshotFiles_.WriteTo(output, _repeated_screenshotFiles_codec); - if (SkipScenario != false) { - output.WriteRawTag(104); - output.WriteBool(SkipScenario); - } - 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 (Failed != false) { - output.WriteRawTag(8); - output.WriteBool(Failed); - } - if (RecoverableError != false) { - output.WriteRawTag(16); - output.WriteBool(RecoverableError); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ErrorMessage); - } - if (StackTrace.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StackTrace); - } - if (ScreenShot.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(ScreenShot); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - message_.WriteTo(ref output, _repeated_message_codec); - if (ErrorType != global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion) { - output.WriteRawTag(64); - output.WriteEnum((int) ErrorType); - } - if (FailureScreenshot.Length != 0) { - output.WriteRawTag(74); - output.WriteBytes(FailureScreenshot); - } - screenshots_.WriteTo(ref output, _repeated_screenshots_codec); - if (FailureScreenshotFile.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FailureScreenshotFile); - } - screenshotFiles_.WriteTo(ref output, _repeated_screenshotFiles_codec); - if (SkipScenario != false) { - output.WriteRawTag(104); - output.WriteBool(SkipScenario); - } - 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 (Failed != false) { - size += 1 + 1; - } - if (RecoverableError != false) { - size += 1 + 1; - } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); - } - if (StackTrace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StackTrace); - } - if (ScreenShot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(ScreenShot); - } - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - size += message_.CalculateSize(_repeated_message_codec); - if (ErrorType != global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ErrorType); - } - if (FailureScreenshot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(FailureScreenshot); - } - size += screenshots_.CalculateSize(_repeated_screenshots_codec); - if (FailureScreenshotFile.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FailureScreenshotFile); - } - size += screenshotFiles_.CalculateSize(_repeated_screenshotFiles_codec); - if (SkipScenario != false) { - 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(ProtoExecutionResult other) { - if (other == null) { - return; - } - if (other.Failed != false) { - Failed = other.Failed; - } - if (other.RecoverableError != false) { - RecoverableError = other.RecoverableError; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; - } - if (other.StackTrace.Length != 0) { - StackTrace = other.StackTrace; - } - if (other.ScreenShot.Length != 0) { - ScreenShot = other.ScreenShot; - } - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - message_.Add(other.message_); - if (other.ErrorType != global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType.Assertion) { - ErrorType = other.ErrorType; - } - if (other.FailureScreenshot.Length != 0) { - FailureScreenshot = other.FailureScreenshot; - } - screenshots_.Add(other.screenshots_); - if (other.FailureScreenshotFile.Length != 0) { - FailureScreenshotFile = other.FailureScreenshotFile; - } - screenshotFiles_.Add(other.screenshotFiles_); - if (other.SkipScenario != false) { - SkipScenario = other.SkipScenario; - } - _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: { - Failed = input.ReadBool(); - break; - } - case 16: { - RecoverableError = input.ReadBool(); - break; - } - case 26: { - ErrorMessage = input.ReadString(); - break; - } - case 34: { - StackTrace = input.ReadString(); - break; - } - case 42: { - ScreenShot = input.ReadBytes(); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 58: { - message_.AddEntriesFrom(input, _repeated_message_codec); - break; - } - case 64: { - ErrorType = (global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType) input.ReadEnum(); - break; - } - case 74: { - FailureScreenshot = input.ReadBytes(); - break; - } - case 82: { - screenshots_.AddEntriesFrom(input, _repeated_screenshots_codec); - break; - } - case 90: { - FailureScreenshotFile = input.ReadString(); - break; - } - case 98: { - screenshotFiles_.AddEntriesFrom(input, _repeated_screenshotFiles_codec); - break; - } - case 104: { - SkipScenario = 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: { - Failed = input.ReadBool(); - break; - } - case 16: { - RecoverableError = input.ReadBool(); - break; - } - case 26: { - ErrorMessage = input.ReadString(); - break; - } - case 34: { - StackTrace = input.ReadString(); - break; - } - case 42: { - ScreenShot = input.ReadBytes(); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 58: { - message_.AddEntriesFrom(ref input, _repeated_message_codec); - break; - } - case 64: { - ErrorType = (global::Gauge.Messages.ProtoExecutionResult.Types.ErrorType) input.ReadEnum(); - break; - } - case 74: { - FailureScreenshot = input.ReadBytes(); - break; - } - case 82: { - screenshots_.AddEntriesFrom(ref input, _repeated_screenshots_codec); - break; - } - case 90: { - FailureScreenshotFile = input.ReadString(); - break; - } - case 98: { - screenshotFiles_.AddEntriesFrom(ref input, _repeated_screenshotFiles_codec); - break; - } - case 104: { - SkipScenario = input.ReadBool(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ProtoExecutionResult message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum ErrorType { - [pbr::OriginalName("ASSERTION")] Assertion = 0, - [pbr::OriginalName("VERIFICATION")] Verification = 1, - } - - } - #endregion - - } - - /// - //// A proto object representing a pre-hook failure. - //// Used to hold failure information for before_suite, before_spec, before_scenario and before_spec hooks. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoHookFailure : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoHookFailure()); - 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::Gauge.Messages.SpecReflection.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 ProtoHookFailure() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoHookFailure(ProtoHookFailure other) : this() { - stackTrace_ = other.stackTrace_; - errorMessage_ = other.errorMessage_; - screenShot_ = other.screenShot_; - tableRowIndex_ = other.tableRowIndex_; - failureScreenshot_ = other.failureScreenshot_; - failureScreenshotFile_ = other.failureScreenshotFile_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoHookFailure Clone() { - return new ProtoHookFailure(this); - } - - /// Field number for the "stackTrace" field. - public const int StackTraceFieldNumber = 1; - private string stackTrace_ = ""; - /// - //// Stacktrace from the failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StackTrace { - get { return stackTrace_; } - set { - stackTrace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 2; - private string errorMessage_ = ""; - /// - //// Error message from the failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } - set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "screenShot" field. - public const int ScreenShotFieldNumber = 3; - private pb::ByteString screenShot_ = pb::ByteString.Empty; - /// - //// [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString ScreenShot { - get { return screenShot_; } - set { - screenShot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tableRowIndex" field. - public const int TableRowIndexFieldNumber = 4; - private int tableRowIndex_; - /// - /// / Contains table row index corresponding to datatable rows - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int TableRowIndex { - get { return tableRowIndex_; } - set { - tableRowIndex_ = value; - } - } - - /// Field number for the "failureScreenshot" field. - public const int FailureScreenshotFieldNumber = 5; - private pb::ByteString failureScreenshot_ = pb::ByteString.Empty; - /// - //// [DEPRECATED, use failureScreenshotFile] Bytes holding the screenshot taken at the time of failure. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString FailureScreenshot { - get { return failureScreenshot_; } - set { - failureScreenshot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "failureScreenshotFile" field. - public const int FailureScreenshotFileFieldNumber = 6; - private string failureScreenshotFile_ = ""; - /// - //// Path to the screenshot file captured at the time of failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FailureScreenshotFile { - get { return failureScreenshotFile_; } - set { - failureScreenshotFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoHookFailure); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoHookFailure other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StackTrace != other.StackTrace) return false; - if (ErrorMessage != other.ErrorMessage) return false; - if (ScreenShot != other.ScreenShot) return false; - if (TableRowIndex != other.TableRowIndex) return false; - if (FailureScreenshot != other.FailureScreenshot) return false; - if (FailureScreenshotFile != other.FailureScreenshotFile) 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 (StackTrace.Length != 0) hash ^= StackTrace.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); - if (ScreenShot.Length != 0) hash ^= ScreenShot.GetHashCode(); - if (TableRowIndex != 0) hash ^= TableRowIndex.GetHashCode(); - if (FailureScreenshot.Length != 0) hash ^= FailureScreenshot.GetHashCode(); - if (FailureScreenshotFile.Length != 0) hash ^= FailureScreenshotFile.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 (StackTrace.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StackTrace); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ErrorMessage); - } - if (ScreenShot.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(ScreenShot); - } - if (TableRowIndex != 0) { - output.WriteRawTag(32); - output.WriteInt32(TableRowIndex); - } - if (FailureScreenshot.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(FailureScreenshot); - } - if (FailureScreenshotFile.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FailureScreenshotFile); - } - 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 (StackTrace.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StackTrace); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ErrorMessage); - } - if (ScreenShot.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(ScreenShot); - } - if (TableRowIndex != 0) { - output.WriteRawTag(32); - output.WriteInt32(TableRowIndex); - } - if (FailureScreenshot.Length != 0) { - output.WriteRawTag(42); - output.WriteBytes(FailureScreenshot); - } - if (FailureScreenshotFile.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FailureScreenshotFile); - } - 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 (StackTrace.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StackTrace); - } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); - } - if (ScreenShot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(ScreenShot); - } - if (TableRowIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(TableRowIndex); - } - if (FailureScreenshot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(FailureScreenshot); - } - if (FailureScreenshotFile.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FailureScreenshotFile); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoHookFailure other) { - if (other == null) { - return; - } - if (other.StackTrace.Length != 0) { - StackTrace = other.StackTrace; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; - } - if (other.ScreenShot.Length != 0) { - ScreenShot = other.ScreenShot; - } - if (other.TableRowIndex != 0) { - TableRowIndex = other.TableRowIndex; - } - if (other.FailureScreenshot.Length != 0) { - FailureScreenshot = other.FailureScreenshot; - } - if (other.FailureScreenshotFile.Length != 0) { - FailureScreenshotFile = other.FailureScreenshotFile; - } - _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: { - StackTrace = input.ReadString(); - break; - } - case 18: { - ErrorMessage = input.ReadString(); - break; - } - case 26: { - ScreenShot = input.ReadBytes(); - break; - } - case 32: { - TableRowIndex = input.ReadInt32(); - break; - } - case 42: { - FailureScreenshot = input.ReadBytes(); - break; - } - case 50: { - FailureScreenshotFile = 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: { - StackTrace = input.ReadString(); - break; - } - case 18: { - ErrorMessage = input.ReadString(); - break; - } - case 26: { - ScreenShot = input.ReadBytes(); - break; - } - case 32: { - TableRowIndex = input.ReadInt32(); - break; - } - case 42: { - FailureScreenshot = input.ReadBytes(); - break; - } - case 50: { - FailureScreenshotFile = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing the result of entire Suite execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoSuiteResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoSuiteResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoSuiteResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSuiteResult(ProtoSuiteResult other) : this() { - specResults_ = other.specResults_.Clone(); - preHookFailure_ = other.preHookFailure_ != null ? other.preHookFailure_.Clone() : null; - postHookFailure_ = other.postHookFailure_ != null ? other.postHookFailure_.Clone() : null; - failed_ = other.failed_; - specsFailedCount_ = other.specsFailedCount_; - executionTime_ = other.executionTime_; - successRate_ = other.successRate_; - environment_ = other.environment_; - tags_ = other.tags_; - projectName_ = other.projectName_; - timestamp_ = other.timestamp_; - specsSkippedCount_ = other.specsSkippedCount_; - preHookMessages_ = other.preHookMessages_.Clone(); - postHookMessages_ = other.postHookMessages_.Clone(); - preHookMessage_ = other.preHookMessage_.Clone(); - postHookMessage_ = other.postHookMessage_.Clone(); - preHookScreenshots_ = other.preHookScreenshots_.Clone(); - postHookScreenshots_ = other.postHookScreenshots_.Clone(); - chunked_ = other.chunked_; - chunkSize_ = other.chunkSize_; - preHookScreenshotFiles_ = other.preHookScreenshotFiles_.Clone(); - postHookScreenshotFiles_ = other.postHookScreenshotFiles_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSuiteResult Clone() { - return new ProtoSuiteResult(this); - } - - /// Field number for the "specResults" field. - public const int SpecResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_specResults_codec - = pb::FieldCodec.ForMessage(10, global::Gauge.Messages.ProtoSpecResult.Parser); - private readonly pbc::RepeatedField specResults_ = new pbc::RepeatedField(); - /// - //// Contains the result from the execution - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SpecResults { - get { return specResults_; } - } - - /// Field number for the "preHookFailure" field. - public const int PreHookFailureFieldNumber = 2; - private global::Gauge.Messages.ProtoHookFailure preHookFailure_; - /// - //// Contains a 'before' hook failure message. This happens when the `before_suite` hook has an error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PreHookFailure { - get { return preHookFailure_; } - set { - preHookFailure_ = value; - } - } - - /// Field number for the "postHookFailure" field. - public const int PostHookFailureFieldNumber = 3; - private global::Gauge.Messages.ProtoHookFailure postHookFailure_; - /// - //// Contains a 'after' hook failure message. This happens when the `after_suite` hook has an error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoHookFailure PostHookFailure { - get { return postHookFailure_; } - set { - postHookFailure_ = value; - } - } - - /// Field number for the "failed" field. - public const int FailedFieldNumber = 4; - private bool failed_; - /// - //// Flag to indicate failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Failed { - get { return failed_; } - set { - failed_ = value; - } - } - - /// Field number for the "specsFailedCount" field. - public const int SpecsFailedCountFieldNumber = 5; - private int specsFailedCount_; - /// - //// Holds the count of number of Specifications that failed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int SpecsFailedCount { - get { return specsFailedCount_; } - set { - specsFailedCount_ = value; - } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 6; - private long executionTime_; - /// - //// Holds the time taken for executing the whole suite. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "successRate" field. - public const int SuccessRateFieldNumber = 7; - private float successRate_; - /// - //// Holds a metric indicating the success rate of the execution. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float SuccessRate { - get { return successRate_; } - set { - successRate_ = value; - } - } - - /// Field number for the "environment" field. - public const int EnvironmentFieldNumber = 8; - private string environment_ = ""; - /// - //// The environment against which execution was done - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Environment { - get { return environment_; } - set { - environment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 9; - private string tags_ = ""; - /// - //// Tag expression used for filtering specification - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Tags { - get { return tags_; } - set { - tags_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "projectName" field. - public const int ProjectNameFieldNumber = 10; - private string projectName_ = ""; - /// - //// Project name - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectName { - get { return projectName_; } - set { - projectName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 11; - private string timestamp_ = ""; - /// - //// Timestamp of when execution started - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Timestamp { - get { return timestamp_; } - set { - timestamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "specsSkippedCount" field. - public const int SpecsSkippedCountFieldNumber = 12; - private int specsSkippedCount_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int SpecsSkippedCount { - get { return specsSkippedCount_; } - set { - specsSkippedCount_ = value; - } - } - - /// Field number for the "preHookMessages" field. - public const int PreHookMessagesFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_preHookMessages_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField preHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessages { - get { return preHookMessages_; } - } - - /// Field number for the "postHookMessages" field. - public const int PostHookMessagesFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_postHookMessages_codec - = pb::FieldCodec.ForString(114); - private readonly pbc::RepeatedField postHookMessages_ = new pbc::RepeatedField(); - /// - //// Additional information at post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessages { - get { return postHookMessages_; } - } - - /// Field number for the "preHookMessage" field. - public const int PreHookMessageFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_preHookMessage_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField preHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookMessages] Additional information at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookMessage { - get { return preHookMessage_; } - } - - /// Field number for the "postHookMessage" field. - public const int PostHookMessageFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_postHookMessage_codec - = pb::FieldCodec.ForString(130); - private readonly pbc::RepeatedField postHookMessage_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookMessages] Additional information at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookMessage { - get { return postHookMessage_; } - } - - /// Field number for the "preHookScreenshots" field. - public const int PreHookScreenshotsFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_preHookScreenshots_codec - = pb::FieldCodec.ForBytes(138); - private readonly pbc::RepeatedField preHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use preHookScreenshotFiles] Capture Screenshot at pre hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshots { - get { return preHookScreenshots_; } - } - - /// Field number for the "postHookScreenshots" field. - public const int PostHookScreenshotsFieldNumber = 18; - private static readonly pb::FieldCodec _repeated_postHookScreenshots_codec - = pb::FieldCodec.ForBytes(146); - private readonly pbc::RepeatedField postHookScreenshots_ = new pbc::RepeatedField(); - /// - //// [DEPRECATED, use postHookScreenshotFiles] Capture Screenshot at post hook exec time to be available on reports - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshots { - get { return postHookScreenshots_; } - } - - /// Field number for the "chunked" field. - public const int ChunkedFieldNumber = 19; - private bool chunked_; - /// - /// Indicates if the result is sent in chunks - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Chunked { - get { return chunked_; } - set { - chunked_ = value; - } - } - - /// Field number for the "chunkSize" field. - public const int ChunkSizeFieldNumber = 20; - private long chunkSize_; - /// - /// Indicates the number of chunks to expect after this - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChunkSize { - get { return chunkSize_; } - set { - chunkSize_ = value; - } - } - - /// Field number for the "preHookScreenshotFiles" field. - public const int PreHookScreenshotFilesFieldNumber = 21; - private static readonly pb::FieldCodec _repeated_preHookScreenshotFiles_codec - = pb::FieldCodec.ForString(170); - private readonly pbc::RepeatedField preHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on pre hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PreHookScreenshotFiles { - get { return preHookScreenshotFiles_; } - } - - /// Field number for the "postHookScreenshotFiles" field. - public const int PostHookScreenshotFilesFieldNumber = 22; - private static readonly pb::FieldCodec _repeated_postHookScreenshotFiles_codec - = pb::FieldCodec.ForString(178); - private readonly pbc::RepeatedField postHookScreenshotFiles_ = new pbc::RepeatedField(); - /// - //// Screenshots captured on post hook exec time to be available on reports - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PostHookScreenshotFiles { - get { return postHookScreenshotFiles_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoSuiteResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoSuiteResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!specResults_.Equals(other.specResults_)) return false; - if (!object.Equals(PreHookFailure, other.PreHookFailure)) return false; - if (!object.Equals(PostHookFailure, other.PostHookFailure)) return false; - if (Failed != other.Failed) return false; - if (SpecsFailedCount != other.SpecsFailedCount) return false; - if (ExecutionTime != other.ExecutionTime) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SuccessRate, other.SuccessRate)) return false; - if (Environment != other.Environment) return false; - if (Tags != other.Tags) return false; - if (ProjectName != other.ProjectName) return false; - if (Timestamp != other.Timestamp) return false; - if (SpecsSkippedCount != other.SpecsSkippedCount) return false; - if(!preHookMessages_.Equals(other.preHookMessages_)) return false; - if(!postHookMessages_.Equals(other.postHookMessages_)) return false; - if(!preHookMessage_.Equals(other.preHookMessage_)) return false; - if(!postHookMessage_.Equals(other.postHookMessage_)) return false; - if(!preHookScreenshots_.Equals(other.preHookScreenshots_)) return false; - if(!postHookScreenshots_.Equals(other.postHookScreenshots_)) return false; - if (Chunked != other.Chunked) return false; - if (ChunkSize != other.ChunkSize) return false; - if(!preHookScreenshotFiles_.Equals(other.preHookScreenshotFiles_)) return false; - if(!postHookScreenshotFiles_.Equals(other.postHookScreenshotFiles_)) 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 ^= specResults_.GetHashCode(); - if (preHookFailure_ != null) hash ^= PreHookFailure.GetHashCode(); - if (postHookFailure_ != null) hash ^= PostHookFailure.GetHashCode(); - if (Failed != false) hash ^= Failed.GetHashCode(); - if (SpecsFailedCount != 0) hash ^= SpecsFailedCount.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - if (SuccessRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SuccessRate); - if (Environment.Length != 0) hash ^= Environment.GetHashCode(); - if (Tags.Length != 0) hash ^= Tags.GetHashCode(); - if (ProjectName.Length != 0) hash ^= ProjectName.GetHashCode(); - if (Timestamp.Length != 0) hash ^= Timestamp.GetHashCode(); - if (SpecsSkippedCount != 0) hash ^= SpecsSkippedCount.GetHashCode(); - hash ^= preHookMessages_.GetHashCode(); - hash ^= postHookMessages_.GetHashCode(); - hash ^= preHookMessage_.GetHashCode(); - hash ^= postHookMessage_.GetHashCode(); - hash ^= preHookScreenshots_.GetHashCode(); - hash ^= postHookScreenshots_.GetHashCode(); - if (Chunked != false) hash ^= Chunked.GetHashCode(); - if (ChunkSize != 0L) hash ^= ChunkSize.GetHashCode(); - hash ^= preHookScreenshotFiles_.GetHashCode(); - hash ^= postHookScreenshotFiles_.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 - specResults_.WriteTo(output, _repeated_specResults_codec); - if (preHookFailure_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PostHookFailure); - } - if (Failed != false) { - output.WriteRawTag(32); - output.WriteBool(Failed); - } - if (SpecsFailedCount != 0) { - output.WriteRawTag(40); - output.WriteInt32(SpecsFailedCount); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - if (SuccessRate != 0F) { - output.WriteRawTag(61); - output.WriteFloat(SuccessRate); - } - if (Environment.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Environment); - } - if (Tags.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Tags); - } - if (ProjectName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(ProjectName); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Timestamp); - } - if (SpecsSkippedCount != 0) { - output.WriteRawTag(96); - output.WriteInt32(SpecsSkippedCount); - } - preHookMessages_.WriteTo(output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(output, _repeated_postHookScreenshots_codec); - if (Chunked != false) { - output.WriteRawTag(152, 1); - output.WriteBool(Chunked); - } - if (ChunkSize != 0L) { - output.WriteRawTag(160, 1); - output.WriteInt64(ChunkSize); - } - preHookScreenshotFiles_.WriteTo(output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(output, _repeated_postHookScreenshotFiles_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) { - specResults_.WriteTo(ref output, _repeated_specResults_codec); - if (preHookFailure_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PreHookFailure); - } - if (postHookFailure_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PostHookFailure); - } - if (Failed != false) { - output.WriteRawTag(32); - output.WriteBool(Failed); - } - if (SpecsFailedCount != 0) { - output.WriteRawTag(40); - output.WriteInt32(SpecsFailedCount); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - if (SuccessRate != 0F) { - output.WriteRawTag(61); - output.WriteFloat(SuccessRate); - } - if (Environment.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Environment); - } - if (Tags.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Tags); - } - if (ProjectName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(ProjectName); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Timestamp); - } - if (SpecsSkippedCount != 0) { - output.WriteRawTag(96); - output.WriteInt32(SpecsSkippedCount); - } - preHookMessages_.WriteTo(ref output, _repeated_preHookMessages_codec); - postHookMessages_.WriteTo(ref output, _repeated_postHookMessages_codec); - preHookMessage_.WriteTo(ref output, _repeated_preHookMessage_codec); - postHookMessage_.WriteTo(ref output, _repeated_postHookMessage_codec); - preHookScreenshots_.WriteTo(ref output, _repeated_preHookScreenshots_codec); - postHookScreenshots_.WriteTo(ref output, _repeated_postHookScreenshots_codec); - if (Chunked != false) { - output.WriteRawTag(152, 1); - output.WriteBool(Chunked); - } - if (ChunkSize != 0L) { - output.WriteRawTag(160, 1); - output.WriteInt64(ChunkSize); - } - preHookScreenshotFiles_.WriteTo(ref output, _repeated_preHookScreenshotFiles_codec); - postHookScreenshotFiles_.WriteTo(ref output, _repeated_postHookScreenshotFiles_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 += specResults_.CalculateSize(_repeated_specResults_codec); - if (preHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreHookFailure); - } - if (postHookFailure_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostHookFailure); - } - if (Failed != false) { - size += 1 + 1; - } - if (SpecsFailedCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpecsFailedCount); - } - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - if (SuccessRate != 0F) { - size += 1 + 4; - } - if (Environment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Environment); - } - if (Tags.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Tags); - } - if (ProjectName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectName); - } - if (Timestamp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Timestamp); - } - if (SpecsSkippedCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpecsSkippedCount); - } - size += preHookMessages_.CalculateSize(_repeated_preHookMessages_codec); - size += postHookMessages_.CalculateSize(_repeated_postHookMessages_codec); - size += preHookMessage_.CalculateSize(_repeated_preHookMessage_codec); - size += postHookMessage_.CalculateSize(_repeated_postHookMessage_codec); - size += preHookScreenshots_.CalculateSize(_repeated_preHookScreenshots_codec); - size += postHookScreenshots_.CalculateSize(_repeated_postHookScreenshots_codec); - if (Chunked != false) { - size += 2 + 1; - } - if (ChunkSize != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ChunkSize); - } - size += preHookScreenshotFiles_.CalculateSize(_repeated_preHookScreenshotFiles_codec); - size += postHookScreenshotFiles_.CalculateSize(_repeated_postHookScreenshotFiles_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoSuiteResult other) { - if (other == null) { - return; - } - specResults_.Add(other.specResults_); - if (other.preHookFailure_ != null) { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PreHookFailure.MergeFrom(other.PreHookFailure); - } - if (other.postHookFailure_ != null) { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - PostHookFailure.MergeFrom(other.PostHookFailure); - } - if (other.Failed != false) { - Failed = other.Failed; - } - if (other.SpecsFailedCount != 0) { - SpecsFailedCount = other.SpecsFailedCount; - } - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - if (other.SuccessRate != 0F) { - SuccessRate = other.SuccessRate; - } - if (other.Environment.Length != 0) { - Environment = other.Environment; - } - if (other.Tags.Length != 0) { - Tags = other.Tags; - } - if (other.ProjectName.Length != 0) { - ProjectName = other.ProjectName; - } - if (other.Timestamp.Length != 0) { - Timestamp = other.Timestamp; - } - if (other.SpecsSkippedCount != 0) { - SpecsSkippedCount = other.SpecsSkippedCount; - } - preHookMessages_.Add(other.preHookMessages_); - postHookMessages_.Add(other.postHookMessages_); - preHookMessage_.Add(other.preHookMessage_); - postHookMessage_.Add(other.postHookMessage_); - preHookScreenshots_.Add(other.preHookScreenshots_); - postHookScreenshots_.Add(other.postHookScreenshots_); - if (other.Chunked != false) { - Chunked = other.Chunked; - } - if (other.ChunkSize != 0L) { - ChunkSize = other.ChunkSize; - } - preHookScreenshotFiles_.Add(other.preHookScreenshotFiles_); - postHookScreenshotFiles_.Add(other.postHookScreenshotFiles_); - _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: { - specResults_.AddEntriesFrom(input, _repeated_specResults_codec); - break; - } - case 18: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 26: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 32: { - Failed = input.ReadBool(); - break; - } - case 40: { - SpecsFailedCount = input.ReadInt32(); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 61: { - SuccessRate = input.ReadFloat(); - break; - } - case 66: { - Environment = input.ReadString(); - break; - } - case 74: { - Tags = input.ReadString(); - break; - } - case 82: { - ProjectName = input.ReadString(); - break; - } - case 90: { - Timestamp = input.ReadString(); - break; - } - case 96: { - SpecsSkippedCount = input.ReadInt32(); - break; - } - case 106: { - preHookMessages_.AddEntriesFrom(input, _repeated_preHookMessages_codec); - break; - } - case 114: { - postHookMessages_.AddEntriesFrom(input, _repeated_postHookMessages_codec); - break; - } - case 122: { - preHookMessage_.AddEntriesFrom(input, _repeated_preHookMessage_codec); - break; - } - case 130: { - postHookMessage_.AddEntriesFrom(input, _repeated_postHookMessage_codec); - break; - } - case 138: { - preHookScreenshots_.AddEntriesFrom(input, _repeated_preHookScreenshots_codec); - break; - } - case 146: { - postHookScreenshots_.AddEntriesFrom(input, _repeated_postHookScreenshots_codec); - break; - } - case 152: { - Chunked = input.ReadBool(); - break; - } - case 160: { - ChunkSize = input.ReadInt64(); - break; - } - case 170: { - preHookScreenshotFiles_.AddEntriesFrom(input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 178: { - postHookScreenshotFiles_.AddEntriesFrom(input, _repeated_postHookScreenshotFiles_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: { - specResults_.AddEntriesFrom(ref input, _repeated_specResults_codec); - break; - } - case 18: { - if (preHookFailure_ == null) { - PreHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PreHookFailure); - break; - } - case 26: { - if (postHookFailure_ == null) { - PostHookFailure = new global::Gauge.Messages.ProtoHookFailure(); - } - input.ReadMessage(PostHookFailure); - break; - } - case 32: { - Failed = input.ReadBool(); - break; - } - case 40: { - SpecsFailedCount = input.ReadInt32(); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 61: { - SuccessRate = input.ReadFloat(); - break; - } - case 66: { - Environment = input.ReadString(); - break; - } - case 74: { - Tags = input.ReadString(); - break; - } - case 82: { - ProjectName = input.ReadString(); - break; - } - case 90: { - Timestamp = input.ReadString(); - break; - } - case 96: { - SpecsSkippedCount = input.ReadInt32(); - break; - } - case 106: { - preHookMessages_.AddEntriesFrom(ref input, _repeated_preHookMessages_codec); - break; - } - case 114: { - postHookMessages_.AddEntriesFrom(ref input, _repeated_postHookMessages_codec); - break; - } - case 122: { - preHookMessage_.AddEntriesFrom(ref input, _repeated_preHookMessage_codec); - break; - } - case 130: { - postHookMessage_.AddEntriesFrom(ref input, _repeated_postHookMessage_codec); - break; - } - case 138: { - preHookScreenshots_.AddEntriesFrom(ref input, _repeated_preHookScreenshots_codec); - break; - } - case 146: { - postHookScreenshots_.AddEntriesFrom(ref input, _repeated_postHookScreenshots_codec); - break; - } - case 152: { - Chunked = input.ReadBool(); - break; - } - case 160: { - ChunkSize = input.ReadInt64(); - break; - } - case 170: { - preHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_preHookScreenshotFiles_codec); - break; - } - case 178: { - postHookScreenshotFiles_.AddEntriesFrom(ref input, _repeated_postHookScreenshotFiles_codec); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing the result of Spec execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoSpecResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoSpecResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoSpecResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSpecResult(ProtoSpecResult other) : this() { - protoSpec_ = other.protoSpec_ != null ? other.protoSpec_.Clone() : null; - scenarioCount_ = other.scenarioCount_; - scenarioFailedCount_ = other.scenarioFailedCount_; - failed_ = other.failed_; - failedDataTableRows_ = other.failedDataTableRows_.Clone(); - executionTime_ = other.executionTime_; - skipped_ = other.skipped_; - scenarioSkippedCount_ = other.scenarioSkippedCount_; - skippedDataTableRows_ = other.skippedDataTableRows_.Clone(); - errors_ = other.errors_.Clone(); - timestamp_ = other.timestamp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoSpecResult Clone() { - return new ProtoSpecResult(this); - } - - /// Field number for the "protoSpec" field. - public const int ProtoSpecFieldNumber = 1; - private global::Gauge.Messages.ProtoSpec protoSpec_; - /// - //// Represents the corresponding Specification - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoSpec ProtoSpec { - get { return protoSpec_; } - set { - protoSpec_ = value; - } - } - - /// Field number for the "scenarioCount" field. - public const int ScenarioCountFieldNumber = 2; - private int scenarioCount_; - /// - //// Holds the number of Scenarios executed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ScenarioCount { - get { return scenarioCount_; } - set { - scenarioCount_ = value; - } - } - - /// Field number for the "scenarioFailedCount" field. - public const int ScenarioFailedCountFieldNumber = 3; - private int scenarioFailedCount_; - /// - //// Holds the number of Scenarios failed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ScenarioFailedCount { - get { return scenarioFailedCount_; } - set { - scenarioFailedCount_ = value; - } - } - - /// Field number for the "failed" field. - public const int FailedFieldNumber = 4; - private bool failed_; - /// - //// Flag to indicate failure - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Failed { - get { return failed_; } - set { - failed_ = value; - } - } - - /// Field number for the "failedDataTableRows" field. - public const int FailedDataTableRowsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_failedDataTableRows_codec - = pb::FieldCodec.ForInt32(42); - private readonly pbc::RepeatedField failedDataTableRows_ = new pbc::RepeatedField(); - /// - //// Holds the row numbers, which caused the execution to fail. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FailedDataTableRows { - get { return failedDataTableRows_; } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 6; - private long executionTime_; - /// - //// Holds the time taken for executing the spec. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "skipped" field. - public const int SkippedFieldNumber = 7; - private bool skipped_; - /// - //// Flag to indicate if spec is skipped - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Skipped { - get { return skipped_; } - set { - skipped_ = value; - } - } - - /// Field number for the "scenarioSkippedCount" field. - public const int ScenarioSkippedCountFieldNumber = 8; - private int scenarioSkippedCount_; - /// - //// Holds the number of Scenarios skipped - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ScenarioSkippedCount { - get { return scenarioSkippedCount_; } - set { - scenarioSkippedCount_ = value; - } - } - - /// Field number for the "skippedDataTableRows" field. - public const int SkippedDataTableRowsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_skippedDataTableRows_codec - = pb::FieldCodec.ForInt32(74); - private readonly pbc::RepeatedField skippedDataTableRows_ = new pbc::RepeatedField(); - /// - //// Holds the row numbers, for which the execution skipped. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SkippedDataTableRows { - get { return skippedDataTableRows_; } - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForMessage(82, global::Gauge.Messages.Error.Parser); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - //// Holds parse, validation and skipped errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 11; - private string timestamp_ = ""; - /// - //// Holds the timestamp of event starting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Timestamp { - get { return timestamp_; } - set { - timestamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoSpecResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoSpecResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ProtoSpec, other.ProtoSpec)) return false; - if (ScenarioCount != other.ScenarioCount) return false; - if (ScenarioFailedCount != other.ScenarioFailedCount) return false; - if (Failed != other.Failed) return false; - if(!failedDataTableRows_.Equals(other.failedDataTableRows_)) return false; - if (ExecutionTime != other.ExecutionTime) return false; - if (Skipped != other.Skipped) return false; - if (ScenarioSkippedCount != other.ScenarioSkippedCount) return false; - if(!skippedDataTableRows_.Equals(other.skippedDataTableRows_)) return false; - if(!errors_.Equals(other.errors_)) 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 (protoSpec_ != null) hash ^= ProtoSpec.GetHashCode(); - if (ScenarioCount != 0) hash ^= ScenarioCount.GetHashCode(); - if (ScenarioFailedCount != 0) hash ^= ScenarioFailedCount.GetHashCode(); - if (Failed != false) hash ^= Failed.GetHashCode(); - hash ^= failedDataTableRows_.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - if (Skipped != false) hash ^= Skipped.GetHashCode(); - if (ScenarioSkippedCount != 0) hash ^= ScenarioSkippedCount.GetHashCode(); - hash ^= skippedDataTableRows_.GetHashCode(); - hash ^= errors_.GetHashCode(); - if (Timestamp.Length != 0) 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 (protoSpec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoSpec); - } - if (ScenarioCount != 0) { - output.WriteRawTag(16); - output.WriteInt32(ScenarioCount); - } - if (ScenarioFailedCount != 0) { - output.WriteRawTag(24); - output.WriteInt32(ScenarioFailedCount); - } - if (Failed != false) { - output.WriteRawTag(32); - output.WriteBool(Failed); - } - failedDataTableRows_.WriteTo(output, _repeated_failedDataTableRows_codec); - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - if (Skipped != false) { - output.WriteRawTag(56); - output.WriteBool(Skipped); - } - if (ScenarioSkippedCount != 0) { - output.WriteRawTag(64); - output.WriteInt32(ScenarioSkippedCount); - } - skippedDataTableRows_.WriteTo(output, _repeated_skippedDataTableRows_codec); - errors_.WriteTo(output, _repeated_errors_codec); - if (Timestamp.Length != 0) { - output.WriteRawTag(90); - output.WriteString(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 (protoSpec_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoSpec); - } - if (ScenarioCount != 0) { - output.WriteRawTag(16); - output.WriteInt32(ScenarioCount); - } - if (ScenarioFailedCount != 0) { - output.WriteRawTag(24); - output.WriteInt32(ScenarioFailedCount); - } - if (Failed != false) { - output.WriteRawTag(32); - output.WriteBool(Failed); - } - failedDataTableRows_.WriteTo(ref output, _repeated_failedDataTableRows_codec); - if (ExecutionTime != 0L) { - output.WriteRawTag(48); - output.WriteInt64(ExecutionTime); - } - if (Skipped != false) { - output.WriteRawTag(56); - output.WriteBool(Skipped); - } - if (ScenarioSkippedCount != 0) { - output.WriteRawTag(64); - output.WriteInt32(ScenarioSkippedCount); - } - skippedDataTableRows_.WriteTo(ref output, _repeated_skippedDataTableRows_codec); - errors_.WriteTo(ref output, _repeated_errors_codec); - if (Timestamp.Length != 0) { - output.WriteRawTag(90); - output.WriteString(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 (protoSpec_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtoSpec); - } - if (ScenarioCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScenarioCount); - } - if (ScenarioFailedCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScenarioFailedCount); - } - if (Failed != false) { - size += 1 + 1; - } - size += failedDataTableRows_.CalculateSize(_repeated_failedDataTableRows_codec); - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - if (Skipped != false) { - size += 1 + 1; - } - if (ScenarioSkippedCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ScenarioSkippedCount); - } - size += skippedDataTableRows_.CalculateSize(_repeated_skippedDataTableRows_codec); - size += errors_.CalculateSize(_repeated_errors_codec); - if (Timestamp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Timestamp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoSpecResult other) { - if (other == null) { - return; - } - if (other.protoSpec_ != null) { - if (protoSpec_ == null) { - ProtoSpec = new global::Gauge.Messages.ProtoSpec(); - } - ProtoSpec.MergeFrom(other.ProtoSpec); - } - if (other.ScenarioCount != 0) { - ScenarioCount = other.ScenarioCount; - } - if (other.ScenarioFailedCount != 0) { - ScenarioFailedCount = other.ScenarioFailedCount; - } - if (other.Failed != false) { - Failed = other.Failed; - } - failedDataTableRows_.Add(other.failedDataTableRows_); - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - if (other.Skipped != false) { - Skipped = other.Skipped; - } - if (other.ScenarioSkippedCount != 0) { - ScenarioSkippedCount = other.ScenarioSkippedCount; - } - skippedDataTableRows_.Add(other.skippedDataTableRows_); - errors_.Add(other.errors_); - if (other.Timestamp.Length != 0) { - 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 10: { - if (protoSpec_ == null) { - ProtoSpec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(ProtoSpec); - break; - } - case 16: { - ScenarioCount = input.ReadInt32(); - break; - } - case 24: { - ScenarioFailedCount = input.ReadInt32(); - break; - } - case 32: { - Failed = input.ReadBool(); - break; - } - case 42: - case 40: { - failedDataTableRows_.AddEntriesFrom(input, _repeated_failedDataTableRows_codec); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 56: { - Skipped = input.ReadBool(); - break; - } - case 64: { - ScenarioSkippedCount = input.ReadInt32(); - break; - } - case 74: - case 72: { - skippedDataTableRows_.AddEntriesFrom(input, _repeated_skippedDataTableRows_codec); - break; - } - case 82: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 90: { - Timestamp = 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: { - if (protoSpec_ == null) { - ProtoSpec = new global::Gauge.Messages.ProtoSpec(); - } - input.ReadMessage(ProtoSpec); - break; - } - case 16: { - ScenarioCount = input.ReadInt32(); - break; - } - case 24: { - ScenarioFailedCount = input.ReadInt32(); - break; - } - case 32: { - Failed = input.ReadBool(); - break; - } - case 42: - case 40: { - failedDataTableRows_.AddEntriesFrom(ref input, _repeated_failedDataTableRows_codec); - break; - } - case 48: { - ExecutionTime = input.ReadInt64(); - break; - } - case 56: { - Skipped = input.ReadBool(); - break; - } - case 64: { - ScenarioSkippedCount = input.ReadInt32(); - break; - } - case 74: - case 72: { - skippedDataTableRows_.AddEntriesFrom(ref input, _repeated_skippedDataTableRows_codec); - break; - } - case 82: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 90: { - Timestamp = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing the result of Scenario execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoScenarioResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoScenarioResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoScenarioResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoScenarioResult(ProtoScenarioResult other) : this() { - protoItem_ = other.protoItem_ != null ? other.protoItem_.Clone() : null; - executionTime_ = other.executionTime_; - timestamp_ = other.timestamp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoScenarioResult Clone() { - return new ProtoScenarioResult(this); - } - - /// Field number for the "protoItem" field. - public const int ProtoItemFieldNumber = 1; - private global::Gauge.Messages.ProtoItem protoItem_; - /// - //// Collection of scenarios in scenario execution result. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoItem ProtoItem { - get { return protoItem_; } - set { - protoItem_ = value; - } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 2; - private long executionTime_; - /// - //// Holds the time taken for executing the whole suite. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 3; - private string timestamp_ = ""; - /// - //// Holds the timestamp of event starting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Timestamp { - get { return timestamp_; } - set { - timestamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoScenarioResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoScenarioResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ProtoItem, other.ProtoItem)) return false; - if (ExecutionTime != other.ExecutionTime) 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 (protoItem_ != null) hash ^= ProtoItem.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - if (Timestamp.Length != 0) 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 (protoItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoItem); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(16); - output.WriteInt64(ExecutionTime); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(26); - output.WriteString(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 (protoItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoItem); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(16); - output.WriteInt64(ExecutionTime); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(26); - output.WriteString(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 (protoItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtoItem); - } - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - if (Timestamp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Timestamp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoScenarioResult other) { - if (other == null) { - return; - } - if (other.protoItem_ != null) { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - ProtoItem.MergeFrom(other.ProtoItem); - } - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - if (other.Timestamp.Length != 0) { - 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 10: { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ProtoItem); - break; - } - case 16: { - ExecutionTime = input.ReadInt64(); - break; - } - case 26: { - Timestamp = 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: { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ProtoItem); - break; - } - case 16: { - ExecutionTime = input.ReadInt64(); - break; - } - case 26: { - Timestamp = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing the result of Step execution. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoStepResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoStepResult()); - 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::Gauge.Messages.SpecReflection.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 ProtoStepResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepResult(ProtoStepResult other) : this() { - protoItem_ = other.protoItem_ != null ? other.protoItem_.Clone() : null; - executionTime_ = other.executionTime_; - timestamp_ = other.timestamp_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepResult Clone() { - return new ProtoStepResult(this); - } - - /// Field number for the "protoItem" field. - public const int ProtoItemFieldNumber = 1; - private global::Gauge.Messages.ProtoItem protoItem_; - /// - //// Collection of steps in step execution result. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.ProtoItem ProtoItem { - get { return protoItem_; } - set { - protoItem_ = value; - } - } - - /// Field number for the "executionTime" field. - public const int ExecutionTimeFieldNumber = 2; - private long executionTime_; - /// - //// Holds the time taken for executing the whole suite. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutionTime { - get { return executionTime_; } - set { - executionTime_ = value; - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 3; - private string timestamp_ = ""; - /// - //// Holds the timestamp of event starting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Timestamp { - get { return timestamp_; } - set { - timestamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoStepResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoStepResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ProtoItem, other.ProtoItem)) return false; - if (ExecutionTime != other.ExecutionTime) 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 (protoItem_ != null) hash ^= ProtoItem.GetHashCode(); - if (ExecutionTime != 0L) hash ^= ExecutionTime.GetHashCode(); - if (Timestamp.Length != 0) 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 (protoItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoItem); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(16); - output.WriteInt64(ExecutionTime); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(26); - output.WriteString(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 (protoItem_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ProtoItem); - } - if (ExecutionTime != 0L) { - output.WriteRawTag(16); - output.WriteInt64(ExecutionTime); - } - if (Timestamp.Length != 0) { - output.WriteRawTag(26); - output.WriteString(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 (protoItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtoItem); - } - if (ExecutionTime != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutionTime); - } - if (Timestamp.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Timestamp); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoStepResult other) { - if (other == null) { - return; - } - if (other.protoItem_ != null) { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - ProtoItem.MergeFrom(other.ProtoItem); - } - if (other.ExecutionTime != 0L) { - ExecutionTime = other.ExecutionTime; - } - if (other.Timestamp.Length != 0) { - 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 10: { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ProtoItem); - break; - } - case 16: { - ExecutionTime = input.ReadInt64(); - break; - } - case 26: { - Timestamp = 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: { - if (protoItem_ == null) { - ProtoItem = new global::Gauge.Messages.ProtoItem(); - } - input.ReadMessage(ProtoItem); - break; - } - case 16: { - ExecutionTime = input.ReadInt64(); - break; - } - case 26: { - Timestamp = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - //// A proto object representing an error in spec/Scenario. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Error : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); - 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::Gauge.Messages.SpecReflection.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 Error() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error(Error other) : this() { - type_ = other.type_; - filename_ = other.filename_; - lineNumber_ = other.lineNumber_; - message_ = other.message_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Error Clone() { - return new Error(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Gauge.Messages.Error.Types.ErrorType type_ = global::Gauge.Messages.Error.Types.ErrorType.ParseError; - /// - //// Holds the type of error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Gauge.Messages.Error.Types.ErrorType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "filename" field. - public const int FilenameFieldNumber = 2; - private string filename_ = ""; - /// - //// Holds the filename. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Filename { - get { return filename_; } - set { - filename_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "lineNumber" field. - public const int LineNumberFieldNumber = 3; - private int lineNumber_; - /// - //// Holds the line number of the error in file. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LineNumber { - get { return lineNumber_; } - set { - lineNumber_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 4; - private string message_ = ""; - /// - //// Holds the error message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Error); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Error other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (Filename != other.Filename) return false; - if (LineNumber != other.LineNumber) return false; - 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 (Type != global::Gauge.Messages.Error.Types.ErrorType.ParseError) hash ^= Type.GetHashCode(); - if (Filename.Length != 0) hash ^= Filename.GetHashCode(); - if (LineNumber != 0) hash ^= LineNumber.GetHashCode(); - if (Message.Length != 0) 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 (Type != global::Gauge.Messages.Error.Types.ErrorType.ParseError) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (Filename.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Filename); - } - if (LineNumber != 0) { - output.WriteRawTag(24); - output.WriteInt32(LineNumber); - } - if (Message.Length != 0) { - output.WriteRawTag(34); - 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 (Type != global::Gauge.Messages.Error.Types.ErrorType.ParseError) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (Filename.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Filename); - } - if (LineNumber != 0) { - output.WriteRawTag(24); - output.WriteInt32(LineNumber); - } - if (Message.Length != 0) { - output.WriteRawTag(34); - 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 (Type != global::Gauge.Messages.Error.Types.ErrorType.ParseError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Filename.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Filename); - } - if (LineNumber != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LineNumber); - } - if (Message.Length != 0) { - 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(Error other) { - if (other == null) { - return; - } - if (other.Type != global::Gauge.Messages.Error.Types.ErrorType.ParseError) { - Type = other.Type; - } - if (other.Filename.Length != 0) { - Filename = other.Filename; - } - if (other.LineNumber != 0) { - LineNumber = other.LineNumber; - } - if (other.Message.Length != 0) { - 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 8: { - Type = (global::Gauge.Messages.Error.Types.ErrorType) input.ReadEnum(); - break; - } - case 18: { - Filename = input.ReadString(); - break; - } - case 24: { - LineNumber = input.ReadInt32(); - break; - } - case 34: { - 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 8: { - Type = (global::Gauge.Messages.Error.Types.ErrorType) input.ReadEnum(); - break; - } - case 18: { - Filename = input.ReadString(); - break; - } - case 24: { - LineNumber = input.ReadInt32(); - break; - } - case 34: { - Message = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Error message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - public enum ErrorType { - [pbr::OriginalName("PARSE_ERROR")] ParseError = 0, - [pbr::OriginalName("VALIDATION_ERROR")] ValidationError = 1, - } - - } - #endregion - - } - - /// - //// A proto object representing a Step value. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class ProtoStepValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProtoStepValue()); - 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::Gauge.Messages.SpecReflection.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 ProtoStepValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepValue(ProtoStepValue other) : this() { - stepValue_ = other.stepValue_; - parameterizedStepValue_ = other.parameterizedStepValue_; - parameters_ = other.parameters_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProtoStepValue Clone() { - return new ProtoStepValue(this); - } - - /// Field number for the "stepValue" field. - public const int StepValueFieldNumber = 1; - private string stepValue_ = ""; - /// - //// The actual string value describing he Step - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StepValue { - get { return stepValue_; } - set { - stepValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parameterizedStepValue" field. - public const int ParameterizedStepValueFieldNumber = 2; - private string parameterizedStepValue_ = ""; - /// - //// The parameterized string value describing he Step. The parameters are replaced with placeholders. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParameterizedStepValue { - get { return parameterizedStepValue_; } - set { - parameterizedStepValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parameters" field. - public const int ParametersFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_parameters_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField parameters_ = new pbc::RepeatedField(); - /// - //// A collection of strings representing the parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Parameters { - get { return parameters_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProtoStepValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProtoStepValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StepValue != other.StepValue) return false; - if (ParameterizedStepValue != other.ParameterizedStepValue) return false; - if(!parameters_.Equals(other.parameters_)) 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 (StepValue.Length != 0) hash ^= StepValue.GetHashCode(); - if (ParameterizedStepValue.Length != 0) hash ^= ParameterizedStepValue.GetHashCode(); - hash ^= parameters_.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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - if (ParameterizedStepValue.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParameterizedStepValue); - } - parameters_.WriteTo(output, _repeated_parameters_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 (StepValue.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StepValue); - } - if (ParameterizedStepValue.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ParameterizedStepValue); - } - parameters_.WriteTo(ref output, _repeated_parameters_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 (StepValue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StepValue); - } - if (ParameterizedStepValue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParameterizedStepValue); - } - size += parameters_.CalculateSize(_repeated_parameters_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProtoStepValue other) { - if (other == null) { - return; - } - if (other.StepValue.Length != 0) { - StepValue = other.StepValue; - } - if (other.ParameterizedStepValue.Length != 0) { - ParameterizedStepValue = other.ParameterizedStepValue; - } - parameters_.Add(other.parameters_); - _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: { - StepValue = input.ReadString(); - break; - } - case 18: { - ParameterizedStepValue = input.ReadString(); - break; - } - case 26: { - parameters_.AddEntriesFrom(input, _repeated_parameters_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: { - StepValue = input.ReadString(); - break; - } - case 18: { - ParameterizedStepValue = input.ReadString(); - break; - } - case 26: { - parameters_.AddEntriesFrom(ref input, _repeated_parameters_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/src/Gauge.CSharp.Core/TcpClientWrapper.cs b/src/Gauge.CSharp.Core/TcpClientWrapper.cs deleted file mode 100644 index 9f4c988..0000000 --- a/src/Gauge.CSharp.Core/TcpClientWrapper.cs +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System; -using System.IO; -using System.Net; -using System.Net.Sockets; - -namespace Gauge.CSharp.Core -{ - public class TcpClientWrapper : ITcpClientWrapper - { - private readonly TcpClient _tcpClient = new TcpClient(); - - public TcpClientWrapper(int port) - { - try - { - _tcpClient.Connect(new IPEndPoint(IPAddress.Loopback, port)); - } - catch (Exception e) - { - throw new Exception("Could not connect", e); - } - } - - public bool Connected => _tcpClient.Connected; - - public Stream GetStream() - { - return _tcpClient.GetStream(); - } - - public void Close() - { - _tcpClient.Close(); - } - } -} \ No newline at end of file diff --git a/src/Gauge.CSharp.Core/Utils.cs b/src/Gauge.CSharp.Core/Utils.cs deleted file mode 100644 index 2179427..0000000 --- a/src/Gauge.CSharp.Core/Utils.cs +++ /dev/null @@ -1,70 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ -using System; -using System.IO; - -namespace Gauge.CSharp.Core -{ - public class Utils - { - private const string GaugePortEnv = "GAUGE_INTERNAL_PORT"; - private const string GaugeApiPortEnv = "GAUGE_API_PORT"; - private const string GaugeProjectRootEnv = "GAUGE_PROJECT_ROOT"; - private const string GaugeCustomBuildPath = "GAUGE_CUSTOM_BUILD_PATH"; - - - public static int GaugePort => Convert.ToInt32(ReadEnvValue(GaugePortEnv)); - - public static string GaugeProjectRoot => ReadEnvValue(GaugeProjectRootEnv); - - public static int GaugeApiPort => Convert.ToInt32(ReadEnvValue(GaugeApiPortEnv)); - - public static string ReadEnvValue(string env) - { - var envValue = TryReadEnvValue(env); - if (envValue == null) - throw new Exception(env + " is not set"); - return envValue; - } - - public static string TryReadEnvValue(string env) - { - if (env == null) - throw new ArgumentNullException("env"); - - var envValue = Environment.GetEnvironmentVariable(env.ToUpper()); - if (string.IsNullOrEmpty(envValue)) - { - envValue = Environment.GetEnvironmentVariable(env.ToLower()); - if (string.IsNullOrEmpty(envValue)) return null; - } - return envValue; - } - - public static string GetGaugeBinDir() - { - var customBuildPath = TryReadEnvValue(GaugeCustomBuildPath); - if (string.IsNullOrEmpty(customBuildPath)) - return Path.Combine(GaugeProjectRoot, "gauge_bin"); - try - { - return IsAbsoluteUrl(customBuildPath) - ? customBuildPath - : Path.Combine(GaugeProjectRoot, customBuildPath); - } - catch (Exception) - { - return Path.Combine(GaugeProjectRoot, "gauge_bin"); - } - } - - public static bool IsAbsoluteUrl(string url) - { - Uri result; - return Uri.TryCreate(url, UriKind.Absolute, out result); - } - } -} \ No newline at end of file diff --git a/src/Gauge.Dotnet.csproj b/src/Gauge.Dotnet.csproj index 8cbc2a5..fc013a3 100644 --- a/src/Gauge.Dotnet.csproj +++ b/src/Gauge.Dotnet.csproj @@ -1,45 +1,44 @@ - + - - Exe - net6.0;net7.0;net8.0 - Runner.NetCore30 - The Gauge Team - 0.6.0 - ThoughtWorks Inc. - Gauge - C# runner for Gauge. https://gauge.org - "Copyright © ThoughtWorks Inc 2017" - https://github.com/getgauge/gauge-dotnet/blob/master/License.txt - https://github.com/getgauge/gauge-dotnet - https://raw.githubusercontent.com/getgauge/gauge-csharp/master/logo-64x64.png - https://github.com/getgauge/gauge-dotnet - + + Exe + net6.0;net7.0;net8.0 + enable + Runner.NetCore30 + The Gauge Team + 0.7.0 + ThoughtWorks Inc. + Gauge + C# runner for Gauge. https://gauge.org + "Copyright © ThoughtWorks Inc 2017" + https://github.com/getgauge/gauge-dotnet/blob/master/License.txt + https://github.com/getgauge/gauge-dotnet + https://raw.githubusercontent.com/getgauge/gauge-csharp/master/logo-64x64.png + https://github.com/getgauge/gauge-dotnet + + + + + + + + + - - - - - + + + + + - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + + + + - - - + + + diff --git a/src/GaugeCommandFactory.cs b/src/GaugeCommandFactory.cs deleted file mode 100644 index ea74bf0..0000000 --- a/src/GaugeCommandFactory.cs +++ /dev/null @@ -1,22 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -namespace Gauge.Dotnet -{ - public class GaugeCommandFactory - { - public static IGaugeCommand GetExecutor(string phase) - { - switch (phase) - { - case "--init": - return new SetupCommand(); - default: - return new StartCommand(new GaugeProjectBuilder(), typeof(GaugeListener)); - } - } - } -} \ No newline at end of file diff --git a/src/GaugeListener.cs b/src/GaugeListener.cs deleted file mode 100644 index b08082d..0000000 --- a/src/GaugeListener.cs +++ /dev/null @@ -1,124 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using Gauge.CSharp.Core; -using Gauge.Dotnet.Executor; -using Gauge.Dotnet.Wrappers; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.AspNetCore.Hosting.Server.Features; -using System.Linq; -using Gauge.Dotnet.Models; -using Microsoft.Extensions.Logging; - -namespace Gauge.Dotnet -{ - public class GaugeListener - { - private readonly string STREAMS_COUNT_ENV = "GAUGE_PARALLEL_STREAMS_COUNT"; - private readonly string ENABLE_MULTITHREADING_ENV = "enable_multithreading"; - public GaugeListener(IConfiguration configuration) - { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - public virtual void ConfigureServices(IServiceCollection services) - { - var assemblyPath = new AssemblyLocater(new DirectoryWrapper()).GetTestAssembly(); - Logger.Debug($"Loading assembly from : {assemblyPath}"); - services.AddGrpc(); - services.AddLogging(logConfig => - { - logConfig.SetMinimumLevel(LogLevel.Error); - var logLevel = Utils.TryReadEnvValue("GAUGE_LOG_LEVEL"); - if (logLevel != null && logLevel.ToUpper() == "DEBUG") - { - logConfig.SetMinimumLevel(LogLevel.Debug); - } - }); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(new ExecutorPool(GetNoOfStreams(), IsMultithreading())); - services.AddSingleton((sp) => - { - var isDaemon = string.Compare(Environment.GetEnvironmentVariable("IS_DAEMON"), "true", true) == 0; - return isDaemon ? new LockFreeGaugeLoadContext(assemblyPath) : new GaugeLoadContext(assemblyPath); - }); - services.AddSingleton(s => assemblyPath); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(s => s.GetRequiredService().GetStepRegistry()); - - if (Configuration.GetValue("ReflectionScanAssemblies") == "True") - { - Logger.Debug("Using ExecutableRunnerServiceHandler"); - services.AddSingleton(); - } - else - { - Logger.Debug("Using AuthoringRunnerServiceHandler"); - services.AddSingleton(); - } - } - - public virtual void Configure(IApplicationBuilder app, IHostApplicationLifetime lifetime) - { - app.UseRouting(); - lifetime.ApplicationStarted.Register(() => - { - var ports = app.ServerFeatures - .Get().Addresses - .Select(x => new Uri(x).Port).Distinct(); - foreach (var port in ports) - { - Console.WriteLine($"Listening on port:{port}"); - } - }); - - app.UseEndpoints(endpoints => - { - endpoints.MapGrpcService(); - }); - } - - private int GetNoOfStreams() - { - int numberOfStreams = 1; - if (IsMultithreading()) - { - String streamsCount = Utils.TryReadEnvValue(STREAMS_COUNT_ENV); - try - { - numberOfStreams = int.Parse(streamsCount); - Logger.Debug("multithreading enabled, number of threads=" + numberOfStreams); - } - catch (Exception e) - { - Logger.Debug("multithreading enabled, but could not read " + STREAMS_COUNT_ENV + " as int. Got " + STREAMS_COUNT_ENV + "=" + streamsCount); - Logger.Debug("using numberOfStreams=1, err: " + e.Message); - } - } - return numberOfStreams; - } - - private bool IsMultithreading() - { - var multithreaded = Environment.GetEnvironmentVariable(ENABLE_MULTITHREADING_ENV); - if (String.IsNullOrEmpty(multithreaded)) - return false; - return Boolean.Parse(multithreaded); - } - - } -} \ No newline at end of file diff --git a/src/GaugeLoadContext.cs b/src/GaugeLoadContext.cs index 4dac321..48e5765 100644 --- a/src/GaugeLoadContext.cs +++ b/src/GaugeLoadContext.cs @@ -4,37 +4,36 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Runtime.Loader; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public class GaugeLoadContext : AssemblyLoadContext, IGaugeLoadContext { - public class GaugeLoadContext: AssemblyLoadContext, IGaugeLoadContext - { - private const string GaugeLibAssemblyName = "Gauge.CSharp.Lib"; - protected AssemblyDependencyResolver _resolver; + private const string GaugeLibAssemblyName = "Gauge.CSharp.Lib"; + protected readonly ILogger _logger; + protected AssemblyDependencyResolver _resolver; - public GaugeLoadContext(string pluginPath) - { - _resolver = new AssemblyDependencyResolver(pluginPath); - } + public GaugeLoadContext(IAssemblyLocater locater, ILogger logger) + { + _resolver = new AssemblyDependencyResolver(locater.GetTestAssembly()); + _logger = logger; + } - public IEnumerable GetAssembliesReferencingGaugeLib() - { - return this.Assemblies.Where(a => a.GetReferencedAssemblies().Any(a => a.Name == GaugeLibAssemblyName)); - } + public IEnumerable GetAssembliesReferencingGaugeLib() + { + return Assemblies.Where(a => a.GetReferencedAssemblies().Any(a => a.Name == GaugeLibAssemblyName)); + } - protected override Assembly Load(AssemblyName assemblyName) + protected override Assembly Load(AssemblyName assemblyName) + { + var assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName); + _logger.LogDebug("Try load {AssemblyName} in GaugeLoadContext", assemblyName.Name); + if (assemblyPath != null) { - var assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName); - Logger.Debug($"Try load {assemblyName.Name} in GaugeLoadContext"); - if (assemblyPath != null) - { - return LoadFromAssemblyPath(assemblyPath); - } - return null; + return LoadFromAssemblyPath(assemblyPath); } + return null; } } \ No newline at end of file diff --git a/src/GaugeLoggingFormatter.cs b/src/GaugeLoggingFormatter.cs new file mode 100644 index 0000000..0ac8ea4 --- /dev/null +++ b/src/GaugeLoggingFormatter.cs @@ -0,0 +1,54 @@ +using System.Text.Json; +using Microsoft.Extensions.Logging.Abstractions; +using Microsoft.Extensions.Logging.Console; +using Microsoft.Extensions.Options; + +namespace Gauge.Dotnet; + +public sealed class GaugeLoggingFormatter : ConsoleFormatter, IDisposable +{ + private readonly IDisposable _optionsReloadToken; + private ConsoleFormatterOptions _formatterOptions; + + public GaugeLoggingFormatter(IOptionsMonitor options) + : base(nameof(GaugeLoggingFormatter)) + { + _optionsReloadToken = options.OnChange(ReloadLoggerOptions); + _formatterOptions = options.CurrentValue; + } + + private void ReloadLoggerOptions(ConsoleFormatterOptions options) => _formatterOptions = options; + + public override void Write(in LogEntry logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter) + { + string message = logEntry.Formatter?.Invoke(logEntry.State, logEntry.Exception); + + if (message is null) + { + return; + } + + var entry = new GaugeLogEntry(GetGaugeLogLevel(logEntry.LogLevel), message); + var entryString = JsonSerializer.Serialize(entry); + + textWriter.WriteLine(entryString); + } + + private string GetGaugeLogLevel(LogLevel level) + { + return level switch + { + LogLevel.Debug => "debug", + LogLevel.Trace => "debug", + LogLevel.Information => "info", + LogLevel.Warning => "warning", + LogLevel.Error => "error", + LogLevel.Critical => "fatal", + _ => "info" + }; + } + + public void Dispose() => _optionsReloadToken?.Dispose(); + + private record GaugeLogEntry(string logLevel, string message); +} diff --git a/src/GaugeProjectBuilder.cs b/src/GaugeProjectBuilder.cs index 8ea672f..a4f9d0d 100644 --- a/src/GaugeProjectBuilder.cs +++ b/src/GaugeProjectBuilder.cs @@ -5,28 +5,43 @@ *----------------------------------------------------------------*/ -using System; using System.Diagnostics; using System.Runtime.InteropServices; -using Gauge.CSharp.Core; +using Gauge.Dotnet.Exceptions; +using Gauge.Dotnet.Extensions; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public class GaugeProjectBuilder : IGaugeProjectBuilder { - public class GaugeProjectBuilder : IGaugeProjectBuilder + private readonly IConfiguration _config; + private readonly ILogger _logger; + + public GaugeProjectBuilder(IConfiguration config, ILogger logger) { - public bool BuildTargetGaugeProject() + _config = config; + _logger = logger; + } + + public bool BuildTargetGaugeProject() + { + var customBuildPath = _config.GetGaugeCustomBuildPath(); + if (!string.IsNullOrEmpty(customBuildPath)) + return true; + + try { - var gaugeBinDir = Utils.GetGaugeBinDir(); - var csprojEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_FILE"); - var additionalBuildArgs = Utils.TryReadEnvValue("GAUGE_DOTNET_BUILD_ARGS"); - var runtime = Utils.TryReadEnvValue("GAUGE_DOTNET_RUNTIME"); + var gaugeBinDir = _config.GetGaugeBinDir(); + var csprojEnvVariable = _config.GetGaugeCSharpProjectFile(); + var additionalBuildArgs = _config.GetGaugeCSharpBuildArgs(); + var runtime = _config.GetGaugeCSharpRuntime(); if (string.IsNullOrEmpty(runtime)) { runtime = $"{GetOS()}-{GetArch()}"; } - var configurationEnvVariable = ReadBuildConfiguration(); + var configurationEnvVariable = _config.GetGaugeCSharpConfig(); var commandArgs = $"publish --runtime={runtime} --no-self-contained --configuration={configurationEnvVariable} --output=\"{gaugeBinDir}\" {additionalBuildArgs}"; if (!string.IsNullOrEmpty(csprojEnvVariable)) @@ -34,66 +49,72 @@ public bool BuildTargetGaugeProject() commandArgs = $"{commandArgs} \"{csprojEnvVariable}\""; } - var logLevel = Utils.TryReadEnvValue("GAUGE_LOG_LEVEL"); + var logLevel = _config.GetGaugeLogLevel(); if (string.Compare(logLevel, "DEBUG", true) != 0) { commandArgs = $"{commandArgs} --verbosity=quiet"; } - if(RunDotnetCommand(commandArgs) !=0) + if (RunDotnetCommand(commandArgs) != 0) { throw new Exception($"dotnet Project build failed.\nRan 'dotnet {commandArgs}'"); } return true; } - - private static int RunDotnetCommand(string args) + catch (NotAValidGaugeProjectException) + { + _logger.LogCritical("Cannot locate a Project File in {ProjectRoot}", _config.GetGaugeProjectRoot()); + throw; + } + catch (Exception ex) { - var startInfo = new ProcessStartInfo + if (!_config.IgnoreBuildFailures()) { - WorkingDirectory = Utils.GaugeProjectRoot, - FileName = "dotnet", - Arguments = args - }; - var buildProcess = new Process {EnableRaisingEvents = true, StartInfo = startInfo}; - buildProcess.OutputDataReceived += (sender, e) => { Logger.Debug(e.Data); }; - buildProcess.ErrorDataReceived += (sender, e) => { Logger.Error(e.Data); }; - buildProcess.Start(); - buildProcess.WaitForExit(); - return buildProcess.ExitCode; + _logger.LogCritical("Unable to build Project in {ProjectRoot}\n{Message}\n{StackTrace}", _config.GetGaugeProjectRoot(), ex.Message, ex.StackTrace); + throw; + } + return false; } + } - private static string ReadBuildConfiguration() + private int RunDotnetCommand(string args) + { + var startInfo = new ProcessStartInfo { - var configurationEnvVariable = Utils.TryReadEnvValue("GAUGE_CSHARP_PROJECT_CONFIG"); - if (string.IsNullOrEmpty(configurationEnvVariable)) configurationEnvVariable = "release"; + WorkingDirectory = _config.GetGaugeProjectRoot(), + FileName = "dotnet", + Arguments = args + }; + var buildProcess = new Process { EnableRaisingEvents = true, StartInfo = startInfo }; + buildProcess.OutputDataReceived += (sender, e) => { _logger.LogDebug(e.Data); }; + buildProcess.ErrorDataReceived += (sender, e) => { _logger.LogError(e.Data); }; + buildProcess.Start(); + buildProcess.WaitForExit(); + return buildProcess.ExitCode; + } - return configurationEnvVariable; + private static string GetOS() + { + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return "win"; } - - private static string GetOS() + if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - return "win"; - } - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) - { - return "linux"; - } - if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) - { - return "osx"; - } - return null; + return "linux"; } - - private static string GetArch() + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { - return RuntimeInformation.ProcessArchitecture.ToString().ToLower(); + return "osx"; } + return null; + } + private static string GetArch() + { + return RuntimeInformation.ProcessArchitecture.ToString().ToLower(); } + } \ No newline at end of file diff --git a/src/Helpers/FileHelper.cs b/src/Helpers/FileHelper.cs index 1e494f9..82480ce 100644 --- a/src/Helpers/FileHelper.cs +++ b/src/Helpers/FileHelper.cs @@ -4,69 +4,26 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ - - -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using Gauge.CSharp.Core; using Gauge.Dotnet.Extensions; -namespace Gauge.Dotnet.Helpers +namespace Gauge.Dotnet.Helpers; + +public static class FileHelper { - public class FileHelper + public static IEnumerable GetRemovedDirFiles(IConfiguration config) { - public static IEnumerable GetImplementationFiles() - { - var classFiles = Directory.EnumerateFiles(Utils.GaugeProjectRoot, "*.cs", SearchOption.AllDirectories) - .ToList(); - - var attributes = new AttributesLoader().GetRemovedAttributes(); - foreach (var attribute in attributes) - classFiles.Remove(Path.Combine(Utils.GaugeProjectRoot, attribute.Value)); - - var removedFiles = GetRemovedDirFiles(); - return classFiles.Except(removedFiles); - } - - public static IEnumerable GetRemovedDirFiles() - { - var removedFiles = new List(); - var excludedDirs = Environment.GetEnvironmentVariable("gauge_exclude_dirs"); - if (excludedDirs == null) return removedFiles; - - var excludedDir = excludedDirs.Split(",").Select(dir => dir.Trim()).ToList(); - foreach (var dir in excludedDir) - { - var dirpath = Path.Combine(Utils.GaugeProjectRoot, dir); - if (!Directory.Exists(dirpath)) continue; - removedFiles.AddRange(Directory.EnumerateFiles(dirpath, "*.cs", - SearchOption.AllDirectories)); - } - return removedFiles; - } - - public static string GetImplementationGlobPatterns() - { - return $"{Utils.GaugeProjectRoot}/**/*.cs"; - } - - public static string GetNameSpace() - { - var gaugeProjectRoot = Utils.GaugeProjectRoot; - return new DirectoryInfo(gaugeProjectRoot).Name.ToValidCSharpIdentifier(); - } - - public static string GetFileName(string suffix, int counter) - { - var fileName = Path.Combine(Utils.GaugeProjectRoot, $"StepImplementation{suffix}.cs"); - return !File.Exists(fileName) ? fileName : GetFileName((++counter).ToString(), counter); - } + var removedFiles = new List(); + var excludedDirs = config.GetGaugeExcludeDirs(); + if (excludedDirs == null) return removedFiles; - public static string GetClassName(string filepath) + var excludedDir = excludedDirs.Split(",").Select(dir => dir.Trim()).ToList(); + foreach (var dir in excludedDir) { - return Path.GetFileNameWithoutExtension(filepath); + var dirpath = Path.Combine(config.GetGaugeProjectRoot(), dir); + if (!Directory.Exists(dirpath)) continue; + removedFiles.AddRange(Directory.EnumerateFiles(dirpath, "*.cs", + SearchOption.AllDirectories)); } + return removedFiles; } } \ No newline at end of file diff --git a/src/HookExecutor.cs b/src/HookExecutor.cs deleted file mode 100644 index c71b831..0000000 --- a/src/HookExecutor.cs +++ /dev/null @@ -1,133 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using Gauge.Dotnet.Models; -using Gauge.Dotnet.Strategy; -using Gauge.Dotnet.Wrappers; -using Gauge.Messages; -using Gauge.CSharp.Lib.Attribute; - -namespace Gauge.Dotnet -{ - public class HookExecutor : MethodExecutor, IHookExecutor - { - private readonly IAssemblyLoader _assemblyLoader; - private IHookRegistry _registry; - private IExecutionInfoMapper _executionInfoMapper; - - public HookExecutor(IAssemblyLoader assemblyLoader, IReflectionWrapper reflectionWrapper, - object classInstanceManager, IExecutionInfoMapper mapper) : - base(assemblyLoader.ClassInstanceManagerType, reflectionWrapper, classInstanceManager) - { - _assemblyLoader = assemblyLoader; - _registry = new HookRegistry(assemblyLoader); - _executionInfoMapper = mapper; - } - - public ExecutionResult Execute(string hookType, IHooksStrategy strategy, IList applicableTags, - ExecutionInfo info) - { - var methods = GetHookMethods(hookType, strategy, applicableTags); - var executionResult = new ExecutionResult - { - Success = true, - SkipScenario = false - }; - foreach (var method in methods) - { - var methodInfo = _registry.MethodFor(method); - try - { - var context = _executionInfoMapper.ExecutionContextFrom(info); - ExecuteHook(methodInfo, context); - } - catch (Exception ex) - { - var baseException = ex.GetBaseException(); - if (baseException != null && - baseException.GetType().Name.Contains("SkipScenario", StringComparison.OrdinalIgnoreCase)) { - Logger.Debug($"Skipping scenario when executing hook: {methodInfo.DeclaringType.FullName}.{methodInfo.Name} : {baseException.Message}"); - executionResult.StackTrace = baseException.StackTrace; - executionResult.ExceptionMessage = baseException.Message; - executionResult.Source = baseException.Source; - executionResult.Success = true; - executionResult.SkipScenario = true; - } - else { - Logger.Debug($"{hookType} Hook execution failed : {methodInfo.DeclaringType.FullName}.{methodInfo.Name}"); - var innerException = ex.InnerException ?? ex; - executionResult.ExceptionMessage = innerException.Message; - executionResult.StackTrace = innerException.StackTrace; - executionResult.Source = innerException.Source; - executionResult.Success = false; - } - } - } - - return executionResult; - } - - private void ExecuteHook(MethodInfo method, params object[] objects) - { - if (HasArguments(method, objects)) - Execute(method, objects); - else - Execute(method); - } - - - private static bool HasArguments(MethodInfo method, object[] args) - { - if (method.GetParameters().Length != args.Length) - return false; - return !args.Where((t, i) => t.GetType() != method.GetParameters()[i].ParameterType).Any(); - } - - - private IEnumerable GetHookMethods(string hookType, IHooksStrategy strategy, - IEnumerable applicableTags) - { - var hooksFromRegistry = GetHooksFromRegistry(hookType); - return strategy.GetApplicableHooks(applicableTags, hooksFromRegistry); - } - - - private IEnumerable GetHooksFromRegistry(string hookType) - { - _registry = _registry ?? new HookRegistry(_assemblyLoader); - switch (hookType) - { - case "BeforeSuite": - return _registry.BeforeSuiteHooks; - case "BeforeSpec": - return _registry.BeforeSpecHooks; - case "BeforeScenario": - return _registry.BeforeScenarioHooks; - case "BeforeStep": - return _registry.BeforeStepHooks; - case "AfterStep": - return _registry.AfterStepHooks; - case "BeforeConcept": - return _registry.BeforeConceptHooks; - case "AfterConcept": - return _registry.AfterConceptHooks; - case "AfterScenario": - return _registry.AfterScenarioHooks; - case "AfterSpec": - return _registry.AfterSpecHooks; - case "AfterSuite": - return _registry.AfterSuiteHooks; - default: - return null; - } - } - } -} \ No newline at end of file diff --git a/src/IAssemblyLoader.cs b/src/IAssemblyLoader.cs index cb5491a..536992e 100644 --- a/src/IAssemblyLoader.cs +++ b/src/IAssemblyLoader.cs @@ -5,21 +5,18 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; using System.Reflection; using Gauge.Dotnet.Models; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public interface IAssemblyLoader { - public interface IAssemblyLoader - { - List AssembliesReferencingGaugeLib { get; } - Type ScreenshotWriter { get; } - Type ClassInstanceManagerType { get; } - IEnumerable GetMethods(LibType type); - Type GetLibType(LibType type); - IStepRegistry GetStepRegistry(); - object GetClassInstanceManager(); - } + List AssembliesReferencingGaugeLib { get; } + Type ScreenshotWriter { get; } + Type ClassInstanceManagerType { get; } + IEnumerable GetMethods(LibType type); + Type GetLibType(LibType type); + IStepRegistry GetStepRegistry(); + object GetClassInstanceManager(); } \ No newline at end of file diff --git a/src/IAssemblyLocater.cs b/src/IAssemblyLocater.cs index 0180281..122ae36 100644 --- a/src/IAssemblyLocater.cs +++ b/src/IAssemblyLocater.cs @@ -4,10 +4,9 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public interface IAssemblyLocater { - public interface IAssemblyLocater - { - AssemblyPath GetTestAssembly(); - } + string GetTestAssembly(); } \ No newline at end of file diff --git a/src/IExecutionOrchestrator.cs b/src/IExecutionOrchestrator.cs deleted file mode 100644 index e67f516..0000000 --- a/src/IExecutionOrchestrator.cs +++ /dev/null @@ -1,29 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System.Collections.Generic; -using Gauge.Dotnet.Models; -using Gauge.Dotnet.Strategy; -using Gauge.Messages; - -namespace Gauge.Dotnet -{ - public interface IExecutionOrchestrator - { - ProtoExecutionResult ExecuteStep(GaugeMethod method, params string[] args); - - ProtoExecutionResult ExecuteHooks(string hookType, HooksStrategy strategy, IList applicableTags, - ExecutionInfo context); - void ClearCache(); - - void StartExecutionScope(string tag); - void CloseExecutionScope(); - IEnumerable GetAllPendingMessages(); - IEnumerable GetAllPendingScreenshotFiles(); - - } -} \ No newline at end of file diff --git a/src/IGaugeCommand.cs b/src/IGaugeCommand.cs deleted file mode 100644 index adfc7d4..0000000 --- a/src/IGaugeCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System.Threading.Tasks; - -namespace Gauge.Dotnet -{ - public interface IGaugeCommand - { - Task Execute(); - } -} \ No newline at end of file diff --git a/src/LibType.cs b/src/LibType.cs index e67d5fb..6375bcd 100644 --- a/src/LibType.cs +++ b/src/LibType.cs @@ -4,9 +4,6 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ - -using System.Collections.Generic; - namespace Gauge.Dotnet { public enum LibType diff --git a/src/LockFreeGaugeLoadContext.cs b/src/LockFreeGaugeLoadContext.cs index 867b8b9..921b0fc 100644 --- a/src/LockFreeGaugeLoadContext.cs +++ b/src/LockFreeGaugeLoadContext.cs @@ -6,33 +6,33 @@ using System.Reflection; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +/* NOTE: LockFreeGaugeLoadContext is required because GaugeLoadContext uses +// AssemblyLoadContext.LoadFromAssemblyPath which holds a filesystem lock +// on the assembly file. This causes Run/Debug to fail because these +// actions run as separate process and cannot write to build output dir. +// GaugeLoadContext is also required because certain assemblies are shipped +// with runtime specific artifacts, and loading raw bytes is risky, can +// cause BadImageFormatException at runtime. */ +public class LockFreeGaugeLoadContext : GaugeLoadContext { - /* NOTE: LockFreeGaugeLoadContext is required because GaugeLoadContext uses - // AssemblyLoadContext.LoadFromAssemblyPath which holds a filesystem lock - // on the assembly file. This causes Run/Debug to fail because these - // actions run as separate process and cannot write to build output dir. - // GaugeLoadContext is also required because certain assemblies are shipped - // with runtime specific artifacts, and loading raw bytes is risky, can - // cause BadImageFormatException at runtime. */ - public class LockFreeGaugeLoadContext : GaugeLoadContext + public LockFreeGaugeLoadContext(IAssemblyLocater locater, ILogger logger) + : base(locater, logger) { - public LockFreeGaugeLoadContext(string pluginPath) : base(pluginPath) - { - } + } - protected override Assembly Load(AssemblyName assemblyName) + protected override Assembly Load(AssemblyName assemblyName) + { + var assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName); + _logger.LogDebug("Try load {AssemblyName} in LockFreeGaugeLoadContext", assemblyName.Name); + if (assemblyPath != null) { - var assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName); - Logger.Debug($"Try load {assemblyName.Name} in LockFreeGaugeLoadContext"); - if (assemblyPath != null) + using (var fileStream = System.IO.File.OpenRead(assemblyPath)) { - using (var fileStream = System.IO.File.OpenRead(assemblyPath)) - { - return LoadFromStream(fileStream); - } + return LoadFromStream(fileStream); } - return null; } + return null; } } \ No newline at end of file diff --git a/src/Logger.cs b/src/Logger.cs deleted file mode 100644 index beea544..0000000 --- a/src/Logger.cs +++ /dev/null @@ -1,75 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -using System; -using System.IO; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Json; -using System.Text; - -namespace Gauge.Dotnet -{ - internal class Logger - { - public static string SerializeLogInfo(LogInfo logInfo) - { - var serializer = new DataContractJsonSerializer(typeof(LogInfo)); - using (var memoryStream = new MemoryStream()) - { - serializer.WriteObject(memoryStream, logInfo); - return Encoding.UTF8.GetString(memoryStream.ToArray()); - } - } - private static void print(String level, String messsage, Boolean isError = false) - { - var l = new LogInfo(); - l.logLevel = level; - l.message = messsage; - var data = SerializeLogInfo(l); - if (isError) - { - Console.Error.WriteLine(data); - } - else - { - Console.Out.WriteLine(data); - } - } - - internal static void Info(String message) - { - print("info", message); - } - internal static void Debug(String message) - { - print("debug", message); - } - internal static void Warning(String message) - { - print("warning", message); - } - internal static void Error(String message) - { - print("error", message, true); - } - internal static void Fatal(String message) - { - print("fatal", message, true); - Environment.Exit(1); - } - } - - [DataContract] - internal class LogInfo - { - [DataMember] - public String logLevel { get; set; } - - [DataMember] - public String message { get; set; } - - } -} \ No newline at end of file diff --git a/src/MethodExecutor.cs b/src/MethodExecutor.cs deleted file mode 100644 index c74dc71..0000000 --- a/src/MethodExecutor.cs +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.Reflection; -using Gauge.Dotnet.Wrappers; - -namespace Gauge.Dotnet -{ - public class MethodExecutor - { - private readonly object _classInstanceManager; - private readonly Type _classInstanceManagerType; - private readonly IReflectionWrapper _reflectionWrapper; - - - protected MethodExecutor(Type type, - IReflectionWrapper reflectionWrapper, object classInstanceManager) - { - _classInstanceManagerType = type; - _reflectionWrapper = reflectionWrapper; - _classInstanceManager = classInstanceManager; - } - - protected void Execute(MethodInfo method, params object[] parameters) - { - var typeToLoad = method.DeclaringType; - var instance = - _reflectionWrapper.InvokeMethod(_classInstanceManagerType, _classInstanceManager, "Get", typeToLoad); - if (instance == null) - { - var error = "Could not load instance type: " + typeToLoad; - Logger.Error(error); - throw new TypeLoadException(error); - } - - _reflectionWrapper.Invoke(method, instance, parameters); - } - } -} \ No newline at end of file diff --git a/src/Models/IStepRegistry.cs b/src/Models/IStepRegistry.cs index 804ae2b..97777ca 100644 --- a/src/Models/IStepRegistry.cs +++ b/src/Models/IStepRegistry.cs @@ -4,22 +4,21 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System.Collections.Generic; using static Gauge.Messages.StepPositionsResponse.Types; -namespace Gauge.Dotnet.Models +namespace Gauge.Dotnet.Models; + +public interface IStepRegistry { - public interface IStepRegistry - { - bool ContainsStep(string parsedStepText); - GaugeMethod MethodFor(string parsedStepText); - bool HasAlias(string stepText); - string GetStepText(string parameterizedStepText); - IEnumerable GetStepTexts(); - bool HasMultipleImplementations(string parsedStepText); - void AddStep(string stepValue, GaugeMethod stepMethod); - void RemoveSteps(string filepath); - IEnumerable GetStepPositions(string filePath); - bool IsFileCached(string file); - } + bool ContainsStep(string parsedStepText); + GaugeMethod MethodFor(string parsedStepText); + bool HasAlias(string stepText); + string GetStepText(string parameterizedStepText); + IEnumerable GetStepTexts(); + bool HasMultipleImplementations(string parsedStepText); + void AddStep(string stepValue, GaugeMethod stepMethod); + void RemoveSteps(string filepath); + IEnumerable GetStepPositions(string filePath); + bool IsFileCached(string file); + int Count { get; } } \ No newline at end of file diff --git a/src/Models/StepRegistry.cs b/src/Models/StepRegistry.cs index eca789b..bcca427 100644 --- a/src/Models/StepRegistry.cs +++ b/src/Models/StepRegistry.cs @@ -4,120 +4,118 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; using Gauge.Messages; using static Gauge.Messages.StepPositionsResponse.Types; -namespace Gauge.Dotnet.Models +namespace Gauge.Dotnet.Models; + +[Serializable] +public class StepRegistry : IStepRegistry { - [Serializable] - public class StepRegistry : IStepRegistry + private Dictionary> _registry; + + public StepRegistry() { - private Dictionary> _registry; + _registry = new Dictionary>(); + } - public StepRegistry() - { - _registry = new Dictionary>(); - } + public int Count => _registry.Count; - public IEnumerable GetStepTexts() - { - return _registry.Values.SelectMany(methods => methods.Select(method => method.StepText)); - } + public IEnumerable GetStepTexts() + { + return _registry.Values.SelectMany(methods => methods.Select(method => method.StepText)); + } - public void AddStep(string stepValue, GaugeMethod method) - { - if (!_registry.ContainsKey(stepValue)) _registry.Add(stepValue, new List()); - _registry.GetValueOrDefault(stepValue).Add(method); - } + public void AddStep(string stepValue, GaugeMethod method) + { + if (!_registry.ContainsKey(stepValue)) _registry.Add(stepValue, new List()); + _registry.GetValueOrDefault(stepValue).Add(method); + } - public void RemoveSteps(string filepath) + public void RemoveSteps(string filepath) + { + var newRegistry = new Dictionary>(); + foreach (var (key, gaugeMethods) in _registry) { - var newRegistry = new Dictionary>(); - foreach (var (key, gaugeMethods) in _registry) - { - var methods = gaugeMethods.Where(method => !filepath.Equals(method.FileName)).ToList(); - if (methods.Count > 0) newRegistry[key] = methods; - } - - _registry = newRegistry; + var methods = gaugeMethods.Where(method => !filepath.Equals(method.FileName)).ToList(); + if (methods.Count > 0) newRegistry[key] = methods; } - public IEnumerable GetStepPositions(string filePath) + _registry = newRegistry; + } + + public IEnumerable GetStepPositions(string filePath) + { + var positions = new List(); + foreach (var (stepValue, gaugeMethods) in _registry) { - var positions = new List(); - foreach (var (stepValue, gaugeMethods) in _registry) + foreach (var m in gaugeMethods) { - foreach (var m in gaugeMethods) + if (!m.IsExternal && m.FileName.Equals(filePath)) { - if (!m.IsExternal && m.FileName.Equals(filePath)) + var p = new StepPosition { - var p = new StepPosition + StepValue = stepValue, + Span = new Span { - StepValue = stepValue, - Span = new Span - { - Start = m.Span.StartLinePosition.Line + 1, - StartChar = m.Span.StartLinePosition.Character, - End = m.Span.EndLinePosition.Line + 1, - EndChar = m.Span.EndLinePosition.Character - } - }; - positions.Add(p); - } + Start = m.Span.StartLinePosition.Line + 1, + StartChar = m.Span.StartLinePosition.Character, + End = m.Span.EndLinePosition.Line + 1, + EndChar = m.Span.EndLinePosition.Character + } + }; + positions.Add(p); } } - - return positions; } + return positions; + } - public bool ContainsStep(string parsedStepText) - { - return _registry.ContainsKey(parsedStepText); - } - public bool HasMultipleImplementations(string parsedStepText) - { - return _registry[parsedStepText].Count > 1; - } + public bool ContainsStep(string parsedStepText) + { + return _registry.ContainsKey(parsedStepText); + } - public GaugeMethod MethodFor(string parsedStepText) - { - return _registry[parsedStepText][0]; - } + public bool HasMultipleImplementations(string parsedStepText) + { + return _registry[parsedStepText].Count > 1; + } - public bool HasAlias(string stepValue) - { - return _registry.ContainsKey(stepValue) && _registry.GetValueOrDefault(stepValue).FirstOrDefault().HasAlias; - } + public GaugeMethod MethodFor(string parsedStepText) + { + return _registry[parsedStepText][0]; + } - public string GetStepText(string stepValue) - { - return _registry.ContainsKey(stepValue) ? _registry[stepValue][0].StepText : string.Empty; - } + public bool HasAlias(string stepValue) + { + return _registry.ContainsKey(stepValue) && _registry.GetValueOrDefault(stepValue).FirstOrDefault().HasAlias; + } - public void Clear() - { - _registry = new Dictionary>(); - } + public string GetStepText(string stepValue) + { + return _registry.ContainsKey(stepValue) ? _registry[stepValue][0].StepText : string.Empty; + } + public void Clear() + { + _registry = new Dictionary>(); + } - public IEnumerable AllSteps() - { - return _registry.Keys; - } - public bool IsFileCached(string file) + public IEnumerable AllSteps() + { + return _registry.Keys; + } + + public bool IsFileCached(string file) + { + foreach (var gaugeMethods in _registry.Values) { - foreach (var gaugeMethods in _registry.Values) - { - if (gaugeMethods.Any(method => file.Equals(method.FileName))) - return true; - } - return false; + if (gaugeMethods.Any(method => file.Equals(method.FileName))) + return true; } + return false; } } \ No newline at end of file diff --git a/src/Processors/CacheFileProcessor.cs b/src/Processors/CacheFileProcessor.cs index 8f9eea2..11cdeec 100644 --- a/src/Processors/CacheFileProcessor.cs +++ b/src/Processors/CacheFileProcessor.cs @@ -4,56 +4,53 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System; -using System.IO; using System.Text; using Gauge.Messages; using static Gauge.Messages.CacheFileRequest.Types; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class CacheFileProcessor : IGaugeProcessor { - public class CacheFileProcessor + private readonly IStaticLoader _loader; + + public CacheFileProcessor(IStaticLoader loader) { - private readonly IStaticLoader _loader; + _loader = loader; + } - public CacheFileProcessor(IStaticLoader loader) + public async Task Process(int stream, CacheFileRequest request) + { + var content = request.Content; + var file = request.FilePath; + var status = request.Status; + switch (status) { - _loader = loader; + case FileStatus.Changed: + case FileStatus.Opened: + _loader.ReloadSteps(content, file); + break; + case FileStatus.Created: + if (!_loader.GetStepRegistry().IsFileCached(file)) + await LoadFromDisk(file); + break; + case FileStatus.Closed: + await LoadFromDisk(file); + break; + case FileStatus.Deleted: + _loader.RemoveSteps(file); + break; + default: + throw new ArgumentOutOfRangeException(); } - public Empty Process(CacheFileRequest request) - { - var content = request.Content; - var file = request.FilePath; - var status = request.Status; - switch (status) - { - case FileStatus.Changed: - case FileStatus.Opened: - _loader.ReloadSteps(content, file); - break; - case FileStatus.Created: - if (!_loader.GetStepRegistry().IsFileCached(file)) - LoadFromDisk(file); - break; - case FileStatus.Closed: - LoadFromDisk(file); - break; - case FileStatus.Deleted: - _loader.RemoveSteps(file); - break; - default: - throw new ArgumentOutOfRangeException(); - } - - return new Empty(); - } + return new Empty(); + } - private void LoadFromDisk(string file) - { - if (!File.Exists(file)) return; - var content = File.ReadAllText(file, Encoding.UTF8); - _loader.ReloadSteps(content, file); - } + private async Task LoadFromDisk(string file) + { + if (!File.Exists(file)) return; + var content = await File.ReadAllTextAsync(file, Encoding.UTF8); + _loader.ReloadSteps(content, file); } } \ No newline at end of file diff --git a/src/Processors/ConceptExecutionEndingProcessor.cs b/src/Processors/ConceptExecutionEndingProcessor.cs index 7af3c97..65198cb 100644 --- a/src/Processors/ConceptExecutionEndingProcessor.cs +++ b/src/Processors/ConceptExecutionEndingProcessor.cs @@ -5,29 +5,27 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ConceptExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class ConceptExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor + public ConceptExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public ConceptExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => "AfterConcept"; + protected override string HookType => "AfterConcept"; - public ExecutionStatusResponse Process(ConceptExecutionEndingRequest request) - { - return base.ExecuteHooks(request.CurrentExecutionInfo); - } + public async Task Process(int streamId, ConceptExecutionEndingRequest request) + { + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); + } - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } } \ No newline at end of file diff --git a/src/Processors/ConceptExecutionStartingProcessor.cs b/src/Processors/ConceptExecutionStartingProcessor.cs index 3f4e98c..5d788cc 100644 --- a/src/Processors/ConceptExecutionStartingProcessor.cs +++ b/src/Processors/ConceptExecutionStartingProcessor.cs @@ -5,29 +5,27 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ConceptExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class ConceptExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor + public ConceptExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public ConceptExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => "BeforeConcept"; + protected override string HookType => "BeforeConcept"; - public ExecutionStatusResponse Process(ConceptExecutionStartingRequest request) - { - return ExecuteHooks(request.CurrentExecutionInfo); - } + public async Task Process(int streamId, ConceptExecutionStartingRequest request) + { + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); + } - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } } \ No newline at end of file diff --git a/src/Processors/DataStoreInitProcessorBase.cs b/src/Processors/DataStoreInitProcessorBase.cs index 4ccdce9..9d2f06b 100644 --- a/src/Processors/DataStoreInitProcessorBase.cs +++ b/src/Processors/DataStoreInitProcessorBase.cs @@ -5,53 +5,53 @@ *----------------------------------------------------------------*/ -using System; +using System.Reflection; +using Gauge.CSharp.Lib; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public abstract class DataStoreInitProcessorBase { - public abstract class DataStoreInitProcessorBase - { - private readonly IAssemblyLoader _assemblyLoader; - private readonly DataStoreType _dataStoreType; + private readonly IAssemblyLoader _assemblyLoader; + private readonly DataStoreType _dataStoreType; - protected DataStoreInitProcessorBase(IAssemblyLoader assemblyLoader, DataStoreType type) - { - _assemblyLoader = assemblyLoader; - _dataStoreType = type; - } + protected DataStoreInitProcessorBase(DataStoreType type, IAssemblyLoader assemblyLoader) + { + _dataStoreType = type; + _assemblyLoader = assemblyLoader; + } - public ExecutionStatusResponse Process() + protected ExecutionStatusResponse Process(int stream) + { + try { - try + var factoryType = _assemblyLoader.GetLibType(LibType.DataStoreFactory); + var methodInfo = factoryType.GetMethod("AddDataStore", BindingFlags.NonPublic | BindingFlags.Static); + methodInfo.Invoke(null, new object[] { stream, _dataStoreType }); + return new ExecutionStatusResponse { - var initMethod = _assemblyLoader.GetLibType(LibType.DataStoreFactory) - .GetMethod($"Initialize{_dataStoreType}DataStore"); - initMethod.Invoke(null, null); - return new ExecutionStatusResponse + ExecutionResult = new ProtoExecutionResult { - ExecutionResult = new ProtoExecutionResult - { - Failed = false, - ExecutionTime = 0 - } - }; - } - catch (Exception ex) + Failed = false, + ExecutionTime = 0 + } + }; + } + catch (Exception ex) + { + var executionResult = new ProtoExecutionResult { - var executionResult = new ProtoExecutionResult - { - Failed = true, - ExecutionTime = 0 - }; - var innerException = ex.InnerException ?? ex; - executionResult.ErrorMessage = innerException.Message; - executionResult.StackTrace = innerException is AggregateException - ? innerException.ToString() - : innerException.StackTrace; + Failed = true, + ExecutionTime = 0 + }; + var innerException = ex.InnerException ?? ex; + executionResult.ErrorMessage = innerException.Message; + executionResult.StackTrace = innerException is AggregateException + ? innerException.ToString() + : innerException.StackTrace; - return new ExecutionStatusResponse { ExecutionResult = executionResult }; - } + return new ExecutionStatusResponse { ExecutionResult = executionResult }; } } } \ No newline at end of file diff --git a/src/Processors/DataStoreType.cs b/src/Processors/DataStoreType.cs deleted file mode 100644 index 1193caa..0000000 --- a/src/Processors/DataStoreType.cs +++ /dev/null @@ -1,17 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - - -namespace Gauge.Dotnet.Processors -{ - public enum DataStoreType - { - Suite, - Spec, - Scenario - } -} \ No newline at end of file diff --git a/src/Processors/DefaultProcessor.cs b/src/Processors/DefaultProcessor.cs deleted file mode 100644 index 74cf618..0000000 --- a/src/Processors/DefaultProcessor.cs +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using Gauge.Messages; - -namespace Gauge.Dotnet.Processors -{ - public class DefaultProcessor : IMessageProcessor - { - public Message Process(Message request) - { - return GetResponseMessage(request); - } - - private static Message GetResponseMessage(Message request) - { - var response = new ExecutionStatusResponse - { - ExecutionResult = new ProtoExecutionResult - { - Failed = false, - ExecutionTime = 0 - } - }; - return new Message - { - MessageId = request.MessageId, - MessageType = Message.Types.MessageType.ExecutionStatusResponse, - ExecutionStatusResponse = response - }; - } - } -} \ No newline at end of file diff --git a/src/Processors/ExecuteStepProcessor.cs b/src/Processors/ExecuteStepProcessor.cs index e6b37eb..4b94d16 100644 --- a/src/Processors/ExecuteStepProcessor.cs +++ b/src/Processors/ExecuteStepProcessor.cs @@ -6,67 +6,66 @@ using System.Diagnostics; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ExecuteStepProcessor : IGaugeProcessor { - public class ExecuteStepProcessor - { - private readonly IExecutionOrchestrator _executionOrchestrator; - private readonly IStepRegistry _stepRegistry; - private readonly ITableFormatter _tableFormatter; + private readonly IExecutionOrchestrator _executionOrchestrator; + private readonly IStepRegistry _stepRegistry; + private readonly ITableFormatter _tableFormatter; - public ExecuteStepProcessor(IStepRegistry registry, IExecutionOrchestrator executionOrchestrator, - ITableFormatter tableFormatter) - { - _stepRegistry = registry; - _tableFormatter = tableFormatter; - _executionOrchestrator = executionOrchestrator; - } + public ExecuteStepProcessor(IStepRegistry registry, IExecutionOrchestrator executionOrchestrator, + ITableFormatter tableFormatter) + { + _stepRegistry = registry; + _tableFormatter = tableFormatter; + _executionOrchestrator = executionOrchestrator; + } - [DebuggerHidden] - public ExecutionStatusResponse Process(ExecuteStepRequest request) - { - if (!_stepRegistry.ContainsStep(request.ParsedStepText)) - return ExecutionError("Step Implementation not found"); + [DebuggerHidden] + public async Task Process(int streamId, ExecuteStepRequest request) + { + if (!_stepRegistry.ContainsStep(request.ParsedStepText)) + return ExecutionError("Step Implementation not found"); - var method = _stepRegistry.MethodFor(request.ParsedStepText); + var method = _stepRegistry.MethodFor(request.ParsedStepText); - var parameters = method.ParameterCount; - var args = new string[parameters]; - var stepParameter = request.Parameters; - if (parameters != stepParameter.Count) - { - var argumentMismatchError = string.Format( - "Argument length mismatch for {0}. Actual Count: {1}, Expected Count: {2}", - request.ActualStepText, - stepParameter.Count, parameters); - return ExecutionError(argumentMismatchError); - } + var parameters = method.ParameterCount; + var args = new string[parameters]; + var stepParameter = request.Parameters; + if (parameters != stepParameter.Count) + { + var argumentMismatchError = string.Format( + "Argument length mismatch for {0}. Actual Count: {1}, Expected Count: {2}", + request.ActualStepText, + stepParameter.Count, parameters); + return ExecutionError(argumentMismatchError); + } - var validTableParamTypes = new[] - {Parameter.Types.ParameterType.Table, Parameter.Types.ParameterType.SpecialTable}; + var validTableParamTypes = new[] + {Parameter.Types.ParameterType.Table, Parameter.Types.ParameterType.SpecialTable}; - for (var i = 0; i < parameters; i++) - args[i] = validTableParamTypes.Contains(stepParameter[i].ParameterType) - ? _tableFormatter.GetJSON(stepParameter[i].Table) - : stepParameter[i].Value; - var protoExecutionResult = _executionOrchestrator.ExecuteStep(method, args); - return new ExecutionStatusResponse { ExecutionResult = protoExecutionResult }; - } + for (var i = 0; i < parameters; i++) + args[i] = validTableParamTypes.Contains(stepParameter[i].ParameterType) + ? _tableFormatter.GetJSON(stepParameter[i].Table) + : stepParameter[i].Value; + var protoExecutionResult = await _executionOrchestrator.ExecuteStep(method, streamId, args); + return new ExecutionStatusResponse { ExecutionResult = protoExecutionResult }; + } - private static ExecutionStatusResponse ExecutionError(string errorMessage) + private static ExecutionStatusResponse ExecutionError(string errorMessage) + { + var result = new ProtoExecutionResult { - var result = new ProtoExecutionResult - { - Failed = true, - RecoverableError = false, - ExecutionTime = 0, - ErrorMessage = errorMessage - }; - return new ExecutionStatusResponse { ExecutionResult = result }; - } + Failed = true, + RecoverableError = false, + ExecutionTime = 0, + ErrorMessage = errorMessage + }; + return new ExecutionStatusResponse { ExecutionResult = result }; } } \ No newline at end of file diff --git a/src/Processors/ExecutionEndingProcessor.cs b/src/Processors/ExecutionEndingProcessor.cs index c8a055d..996502b 100644 --- a/src/Processors/ExecutionEndingProcessor.cs +++ b/src/Processors/ExecutionEndingProcessor.cs @@ -5,35 +5,33 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ExecutionEndingProcessor : HookExecutionProcessor, IGaugeProcessor { - public class ExecutionEndingProcessor : HookExecutionProcessor + public ExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) + { + } + + [DebuggerHidden] + public async Task Process(int streamId, ExecutionEndingRequest request) + { + var result = await ExecuteHooks(streamId, request.CurrentExecutionInfo); + ClearCacheForConfiguredLevel(); + return result; + } + + protected override string HookType => "AfterSuite"; + + protected override string CacheClearLevel => SuiteLevel; + + protected override List GetApplicableTags(ExecutionInfo info) { - public ExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } - - [DebuggerHidden] - public virtual ExecutionStatusResponse Process(ExecutionEndingRequest request) - { - var result = ExecuteHooks(request.CurrentExecutionInfo); - ClearCacheForConfiguredLevel(); - return result; - } - - protected override string HookType => "AfterSuite"; - - protected override string CacheClearLevel => SuiteLevel; - - protected override List GetApplicableTags(ExecutionInfo info) - { - return info?.CurrentSpec?.Tags?.ToList() ?? new List(); - } + return info?.CurrentSpec?.Tags?.ToList() ?? new List(); } } \ No newline at end of file diff --git a/src/Processors/ExecutionProcessor.cs b/src/Processors/ExecutionProcessor.cs deleted file mode 100644 index e166760..0000000 --- a/src/Processors/ExecutionProcessor.cs +++ /dev/null @@ -1,28 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using Gauge.Messages; - -namespace Gauge.Dotnet.Processors -{ - public class ExecutionProcessor - { - protected static Message WrapInMessage(ProtoExecutionResult executionResult, Message request) - { - var executionStatusResponse = new ExecutionStatusResponse - { - ExecutionResult = executionResult - }; - return new Message - { - MessageId = request.MessageId, - MessageType = Message.Types.MessageType.ExecutionStatusResponse, - ExecutionStatusResponse = executionStatusResponse - }; - } - } -} \ No newline at end of file diff --git a/src/Processors/ExecutionStartingProcessor.cs b/src/Processors/ExecutionStartingProcessor.cs index 82650e8..7ab9e59 100644 --- a/src/Processors/ExecutionStartingProcessor.cs +++ b/src/Processors/ExecutionStartingProcessor.cs @@ -5,47 +5,42 @@ *----------------------------------------------------------------*/ -using System; using System.Diagnostics; -using System.Threading; -using Gauge.CSharp.Core; +using Gauge.Dotnet.Executors; +using Gauge.Dotnet.Extensions; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ExecutionStartingProcessor : HookExecutionProcessor, IGaugeProcessor { - public class ExecutionStartingProcessor : HookExecutionProcessor + public ExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public ExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => "BeforeSuite"; + protected override string HookType => "BeforeSuite"; - [DebuggerHidden] - public virtual ExecutionStatusResponse Process(ExecutionStartingRequest request) + [DebuggerHidden] + public virtual async Task Process(int streamId, ExecutionStartingRequest request) + { + if (Configuration.IsDebugging()) { - var debuggingEnv = Utils.TryReadEnvValue("DEBUGGING"); - if (debuggingEnv != null && debuggingEnv.ToLower().Equals("true")) + // if the runner is launched in DEBUG mode, let the debugger attach. + Console.WriteLine("Runner Ready for Debugging at Process ID " + Environment.ProcessId); + var j = 0; + while (!Debugger.IsAttached) { - // if the runner is launched in DEBUG mode, let the debugger attach. - Console.WriteLine("Runner Ready for Debugging at Process ID " + - System.Diagnostics.Process.GetCurrentProcess().Id); - var j = 0; - while (!Debugger.IsAttached) - { - j++; - //Trying to debug, wait for a debugger to attach - Thread.Sleep(100); - //Timeout, no debugger connected, break out into a normal execution. - if (j == 300) - break; - } + j++; + //Trying to debug, wait for a debugger to attach + Thread.Sleep(100); + //Timeout, no debugger connected, break out into a normal execution. + if (j == 300) + break; } - return ExecuteHooks(request.CurrentExecutionInfo); - } - + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); } + } \ No newline at end of file diff --git a/src/Processors/HookExecutionProcessor.cs b/src/Processors/HookExecutionProcessor.cs index 9c8e3d4..f290db7 100644 --- a/src/Processors/HookExecutionProcessor.cs +++ b/src/Processors/HookExecutionProcessor.cs @@ -5,56 +5,55 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; -using Gauge.CSharp.Core; +using Gauge.Dotnet.Executors; +using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Strategy; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public abstract class HookExecutionProcessor { - public abstract class HookExecutionProcessor : ExecutionProcessor + protected const string SuiteLevel = "suite"; + protected const string SpecLevel = "spec"; + protected const string ScenarioLevel = "scenario"; + + protected IConfiguration Configuration { get; private set; } + protected IExecutionOrchestrator ExecutionOrchestrator { get; private init; } + + protected HookExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + { + Configuration = config; + ExecutionOrchestrator = executionOrchestrator; + Strategy = new HooksStrategy(); + } + + protected HooksStrategy Strategy { get; set; } + + protected abstract string HookType { get; } + + protected virtual string CacheClearLevel => null; + + protected virtual async Task ExecuteHooks(int streamId, ExecutionInfo info) + { + var applicableTags = GetApplicableTags(info); + var protoExecutionResult = await ExecutionOrchestrator.ExecuteHooks(HookType, Strategy, applicableTags, streamId, info); + var allPendingMessages = ExecutionOrchestrator.GetAllPendingMessages().Where(m => m != null); + var allPendingScreenShotFiles = ExecutionOrchestrator.GetAllPendingScreenshotFiles(); + protoExecutionResult.Message.AddRange(allPendingMessages); + protoExecutionResult.ScreenshotFiles.AddRange(allPendingScreenShotFiles); + return new ExecutionStatusResponse { ExecutionResult = protoExecutionResult }; + } + + protected void ClearCacheForConfiguredLevel() + { + var flag = Configuration.GetGaugeClearStateFlag(); + if (!string.IsNullOrEmpty(flag) && flag.Trim().Equals(CacheClearLevel)) + ExecutionOrchestrator.ClearCache(); + } + + protected virtual List GetApplicableTags(ExecutionInfo info) { - private const string ClearStateFlag = "gauge_clear_state_level"; - protected const string SuiteLevel = "suite"; - protected const string SpecLevel = "spec"; - protected const string ScenarioLevel = "scenario"; - protected readonly IExecutionOrchestrator ExecutionOrchestrator; - - protected HookExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - { - ExecutionOrchestrator = executionOrchestrator; - Strategy = new HooksStrategy(); - } - - protected HooksStrategy Strategy { get; set; } - - protected abstract string HookType { get; } - - protected virtual string CacheClearLevel => null; - - protected virtual ExecutionStatusResponse ExecuteHooks(ExecutionInfo info) - { - var applicableTags = GetApplicableTags(info); - var protoExecutionResult = - ExecutionOrchestrator.ExecuteHooks(HookType, Strategy, applicableTags, info); - var allPendingMessages = ExecutionOrchestrator.GetAllPendingMessages().Where(m => m != null); - var allPendingScreenShotFiles = ExecutionOrchestrator.GetAllPendingScreenshotFiles(); - protoExecutionResult.Message.AddRange(allPendingMessages); - protoExecutionResult.ScreenshotFiles.AddRange(allPendingScreenShotFiles); - return new ExecutionStatusResponse { ExecutionResult = protoExecutionResult }; - } - - protected void ClearCacheForConfiguredLevel() - { - var flag = Utils.TryReadEnvValue(ClearStateFlag); - if (!string.IsNullOrEmpty(flag) && flag.Trim().Equals(CacheClearLevel)) - ExecutionOrchestrator.ClearCache(); - } - - protected virtual List GetApplicableTags(ExecutionInfo info) - { - return Enumerable.Empty().ToList(); - } + return Enumerable.Empty().ToList(); } } \ No newline at end of file diff --git a/src/Processors/IGaugeProcessor.cs b/src/Processors/IGaugeProcessor.cs new file mode 100644 index 0000000..708f46f --- /dev/null +++ b/src/Processors/IGaugeProcessor.cs @@ -0,0 +1,6 @@ +namespace Gauge.Dotnet.Processors; + +public interface IGaugeProcessor +{ + Task Process(int stream, TRequest request); +} diff --git a/src/Processors/IMessageProcessor.cs b/src/Processors/IMessageProcessor.cs deleted file mode 100644 index e3b0617..0000000 --- a/src/Processors/IMessageProcessor.cs +++ /dev/null @@ -1,16 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using Gauge.Messages; - -namespace Gauge.Dotnet.Processors -{ - public interface IMessageProcessor - { - Message Process(Message request); - } -} \ No newline at end of file diff --git a/src/Processors/ImplementationFileGlobPatterProcessor.cs b/src/Processors/ImplementationFileGlobPatterProcessor.cs new file mode 100644 index 0000000..6c7c1d3 --- /dev/null +++ b/src/Processors/ImplementationFileGlobPatterProcessor.cs @@ -0,0 +1,21 @@ +using Gauge.Dotnet.Extensions; +using Gauge.Messages; + +namespace Gauge.Dotnet.Processors; + +public class ImplementationFileGlobPatterProcessor : IGaugeProcessor +{ + private readonly IConfiguration _config; + + public ImplementationFileGlobPatterProcessor(IConfiguration config) + { + _config = config; + } + + public Task Process(int stream, Empty request) + { + var response = new ImplementationFileGlobPatternResponse(); + response.GlobPatterns.Add($"{_config.GetGaugeProjectRoot()}/**/*.cs"); + return Task.FromResult(response); + } +} diff --git a/src/Processors/ImplementationFileListProcessor.cs b/src/Processors/ImplementationFileListProcessor.cs new file mode 100644 index 0000000..1976390 --- /dev/null +++ b/src/Processors/ImplementationFileListProcessor.cs @@ -0,0 +1,34 @@ +using Gauge.Dotnet.Extensions; +using Gauge.Dotnet.Helpers; +using Gauge.Messages; + +namespace Gauge.Dotnet.Processors; + +public class ImplementationFileListProcessor : IGaugeProcessor +{ + private readonly IConfiguration _config; + private readonly IAttributesLoader _attributesLoader; + + public ImplementationFileListProcessor(IConfiguration config, IAttributesLoader attributesLoader) + { + _config = config; + _attributesLoader = attributesLoader; + } + + public Task Process(int stream, Empty request) + { + var response = new ImplementationFileListResponse(); + var classFiles = Directory.EnumerateFiles(_config.GetGaugeProjectRoot(), "*.cs", SearchOption.AllDirectories).ToList(); + + var attributes = _attributesLoader.GetRemovedAttributes(); + foreach (var attribute in attributes) + { + classFiles.Remove(Path.Combine(_config.GetGaugeProjectRoot(), attribute.Value)); + } + + var removedFiles = FileHelper.GetRemovedDirFiles(_config); + + response.ImplementationFilePaths.AddRange(classFiles.Except(removedFiles)); + return Task.FromResult(response); + } +} diff --git a/src/Processors/KillProcessProcessor.cs b/src/Processors/KillProcessProcessor.cs deleted file mode 100644 index d682333..0000000 --- a/src/Processors/KillProcessProcessor.cs +++ /dev/null @@ -1,19 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using Gauge.Messages; - -namespace Gauge.Dotnet.Processors -{ - public class KillProcessProcessor : IMessageProcessor - { - public Message Process(Message request) - { - return request; - } - } -} \ No newline at end of file diff --git a/src/Processors/RefactorProcessor.cs b/src/Processors/RefactorProcessor.cs index 2db46ce..14f6056 100644 --- a/src/Processors/RefactorProcessor.cs +++ b/src/Processors/RefactorProcessor.cs @@ -5,92 +5,87 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class RefactorProcessor : IGaugeProcessor { - public class RefactorProcessor - { - private readonly IStepRegistry _stepRegistry; + private readonly IStepRegistry _stepRegistry; - public RefactorProcessor(IStepRegistry stepRegistry) - { - _stepRegistry = stepRegistry; - } + public RefactorProcessor(IStepRegistry stepRegistry) + { + _stepRegistry = stepRegistry; + } - public RefactorResponse Process(RefactorRequest request) - { - var newStep = request.NewStepValue; + public async Task Process(int stream, RefactorRequest request) + { + var newStep = request.NewStepValue; - var newStepValue = newStep.ParameterizedStepValue; - var parameterPositions = request.ParamPositions - .Select(position => new Tuple(position.OldPosition, position.NewPosition)).ToList(); + var newStepValue = newStep.ParameterizedStepValue; + var parameterPositions = request.ParamPositions + .Select(position => new Tuple(position.OldPosition, position.NewPosition)).ToList(); - var response = new RefactorResponse(); - try - { - var gaugeMethod = GetGaugeMethod(request.OldStepValue); - if (gaugeMethod.HasAlias) throw new Exception("Steps with aliases can not be refactored."); + var response = new RefactorResponse(); + try + { + var gaugeMethod = GetGaugeMethod(request.OldStepValue); + if (gaugeMethod.HasAlias) throw new Exception("Steps with aliases can not be refactored."); - var fileChanges = RefactorHelper.Refactor(gaugeMethod, parameterPositions, newStep.Parameters.ToList(), - newStepValue); + var fileChanges = RefactorHelper.Refactor(gaugeMethod, parameterPositions, newStep.Parameters.ToList(), + newStepValue); - if (request.SaveChanges) - File.WriteAllText(fileChanges.FileName, fileChanges.FileContent); + if (request.SaveChanges) + await File.WriteAllTextAsync(fileChanges.FileName, fileChanges.FileContent); - response.Success = true; - response.FilesChanged.Add(gaugeMethod.FileName); - response.FileChanges.Add(ConvertToProtoFileChanges(fileChanges)); - } - catch (AggregateException ex) - { - response.Success = false; - response.Error = ex.InnerExceptions.Select(exception => exception.Message).Distinct() - .Aggregate((s, s1) => string.Concat(s, "; ", s1)); - } - catch (Exception ex) - { - response.Success = false; - response.Error = ex.Message; - } + response.Success = true; + response.FilesChanged.Add(gaugeMethod.FileName); + response.FileChanges.Add(ConvertToProtoFileChanges(fileChanges)); + } + catch (AggregateException ex) + { + response.Success = false; + response.Error = ex.InnerExceptions.Select(exception => exception.Message).Distinct() + .Aggregate((s, s1) => string.Concat(s, "; ", s1)); + } + catch (Exception ex) + { + response.Success = false; + response.Error = ex.Message; + } - return response; - } + return response; + } - private static FileChanges ConvertToProtoFileChanges(RefactoringChange fileChanges) + private static FileChanges ConvertToProtoFileChanges(RefactoringChange fileChanges) + { + var chages = new FileChanges { - var chages = new FileChanges + FileName = fileChanges.FileName + }; + foreach (var fileChangesDiff in fileChanges.Diffs) + chages.Diffs.Add(new TextDiff { - FileName = fileChanges.FileName, - FileContent = fileChanges.FileContent - }; - foreach (var fileChangesDiff in fileChanges.Diffs) - chages.Diffs.Add(new TextDiff + Content = fileChangesDiff.Content, + Span = new Span { - Content = fileChangesDiff.Content, - Span = new Span - { - Start = fileChangesDiff.Range.Start.Line, - StartChar = fileChangesDiff.Range.Start.Character, - End = fileChangesDiff.Range.End.Line, - EndChar = fileChangesDiff.Range.End.Character - } - }); - - return chages; - } + Start = fileChangesDiff.Range.Start.Line, + StartChar = fileChangesDiff.Range.Start.Character, + End = fileChangesDiff.Range.End.Line, + EndChar = fileChangesDiff.Range.End.Character + } + }); - private GaugeMethod GetGaugeMethod(ProtoStepValue stepValue) - { - if (_stepRegistry.HasMultipleImplementations(stepValue.StepValue)) - throw new Exception(string.Format("Multiple step implementations found for : {0}", - stepValue.ParameterizedStepValue)); - return _stepRegistry.MethodFor(stepValue.StepValue); - } + return chages; + } + + private GaugeMethod GetGaugeMethod(ProtoStepValue stepValue) + { + if (_stepRegistry.HasMultipleImplementations(stepValue.StepValue)) + throw new Exception(string.Format("Multiple step implementations found for : {0}", + stepValue.ParameterizedStepValue)); + return _stepRegistry.MethodFor(stepValue.StepValue); } } \ No newline at end of file diff --git a/src/Processors/ScenarioDataStoreInitProcessor.cs b/src/Processors/ScenarioDataStoreInitProcessor.cs index e1f0abe..e6899eb 100644 --- a/src/Processors/ScenarioDataStoreInitProcessor.cs +++ b/src/Processors/ScenarioDataStoreInitProcessor.cs @@ -5,13 +5,20 @@ *----------------------------------------------------------------*/ -namespace Gauge.Dotnet.Processors +using Gauge.CSharp.Lib; +using Gauge.Messages; + +namespace Gauge.Dotnet.Processors; + +public class ScenarioDataStoreInitProcessor : DataStoreInitProcessorBase, IGaugeProcessor { - public class ScenarioDataStoreInitProcessor : DataStoreInitProcessorBase + public ScenarioDataStoreInitProcessor(IAssemblyLoader loader) + : base(DataStoreType.Scenario, loader) + { + } + + public Task Process(int stream, ScenarioDataStoreInitRequest request) { - public ScenarioDataStoreInitProcessor(IAssemblyLoader assemblyLoader) : base(assemblyLoader, - DataStoreType.Scenario) - { - } + return Task.FromResult(Process(request.Stream)); } } \ No newline at end of file diff --git a/src/Processors/ScenarioExecutionEndingProcessor.cs b/src/Processors/ScenarioExecutionEndingProcessor.cs index 93eaaf0..829cb51 100644 --- a/src/Processors/ScenarioExecutionEndingProcessor.cs +++ b/src/Processors/ScenarioExecutionEndingProcessor.cs @@ -5,39 +5,37 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors -{ - public class ScenarioExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor - { - private readonly IExecutionOrchestrator _executionOrchestrator; +namespace Gauge.Dotnet.Processors; - public ScenarioExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - _executionOrchestrator = executionOrchestrator; - } +public class ScenarioExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor, IGaugeProcessor +{ + private readonly IExecutionOrchestrator _executionOrchestrator; - protected override string HookType => "AfterScenario"; + public ScenarioExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) + { + _executionOrchestrator = executionOrchestrator; + } - protected override string CacheClearLevel => ScenarioLevel; + protected override string HookType => "AfterScenario"; + protected override string CacheClearLevel => ScenarioLevel; - public ExecutionStatusResponse Process(ScenarioExecutionEndingRequest request) - { - _executionOrchestrator.CloseExecutionScope(); - var result = ExecuteHooks(request.CurrentExecutionInfo); - ClearCacheForConfiguredLevel(); - return result; - } - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + public async Task Process(int streamId, ScenarioExecutionEndingRequest request) + { + _executionOrchestrator.CloseExecutionScope(); + var result = await ExecuteHooks(streamId, request.CurrentExecutionInfo); + ClearCacheForConfiguredLevel(); + return result; + } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } + } \ No newline at end of file diff --git a/src/Processors/ScenarioExecutionStartingProcessor.cs b/src/Processors/ScenarioExecutionStartingProcessor.cs index 406b53b..13d3633 100644 --- a/src/Processors/ScenarioExecutionStartingProcessor.cs +++ b/src/Processors/ScenarioExecutionStartingProcessor.cs @@ -5,33 +5,31 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class ScenarioExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class ScenarioExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor + private readonly IExecutionOrchestrator _executionOrchestrator; + + public ScenarioExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) + { + _executionOrchestrator = executionOrchestrator; + } + + protected override string HookType => "BeforeScenario"; + + public async Task Process(int streamId, ScenarioExecutionStartingRequest request) + { + _executionOrchestrator.StartExecutionScope("scenario"); + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); + } + + protected override List GetApplicableTags(ExecutionInfo info) { - private readonly IExecutionOrchestrator _executionOrchestrator; - - public ScenarioExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - _executionOrchestrator = executionOrchestrator; - } - - protected override string HookType => "BeforeScenario"; - - public ExecutionStatusResponse Process(ScenarioExecutionStartingRequest request) - { - _executionOrchestrator.StartExecutionScope("scenario"); - return ExecuteHooks(request.CurrentExecutionInfo); - } - - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } } \ No newline at end of file diff --git a/src/Processors/SpecDataStoreInitProcessor.cs b/src/Processors/SpecDataStoreInitProcessor.cs index 737c0af..bcd597e 100644 --- a/src/Processors/SpecDataStoreInitProcessor.cs +++ b/src/Processors/SpecDataStoreInitProcessor.cs @@ -5,12 +5,20 @@ *----------------------------------------------------------------*/ -namespace Gauge.Dotnet.Processors +using Gauge.CSharp.Lib; +using Gauge.Messages; + +namespace Gauge.Dotnet.Processors; + +public class SpecDataStoreInitProcessor : DataStoreInitProcessorBase, IGaugeProcessor { - public class SpecDataStoreInitProcessor : DataStoreInitProcessorBase + public SpecDataStoreInitProcessor(IAssemblyLoader loader) + : base(DataStoreType.Spec, loader) + { + } + + public Task Process(int stream, SpecDataStoreInitRequest request) { - public SpecDataStoreInitProcessor(IAssemblyLoader assemblyLoader) : base(assemblyLoader, DataStoreType.Spec) - { - } + return Task.FromResult(Process(request.Stream)); } } \ No newline at end of file diff --git a/src/Processors/SpecExecutionEndingProcessor.cs b/src/Processors/SpecExecutionEndingProcessor.cs index b376d86..488c511 100644 --- a/src/Processors/SpecExecutionEndingProcessor.cs +++ b/src/Processors/SpecExecutionEndingProcessor.cs @@ -5,36 +5,34 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class SpecExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class SpecExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor + private readonly IExecutionOrchestrator _executionOrchestrator; + + public SpecExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) + { + _executionOrchestrator = executionOrchestrator; + } + + protected override string HookType => "AfterSpec"; + + protected override string CacheClearLevel => SpecLevel; + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentSpec.Tags.ToList(); + } + + public async Task Process(int streamId, SpecExecutionEndingRequest request) { - private readonly IExecutionOrchestrator _executionOrchestrator; - - public SpecExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - _executionOrchestrator = executionOrchestrator; - } - - protected override string HookType => "AfterSpec"; - - protected override string CacheClearLevel => SpecLevel; - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentSpec.Tags.ToList(); - } - - public ExecutionStatusResponse Process(SpecExecutionEndingRequest request) - { - _executionOrchestrator.CloseExecutionScope(); - var result = ExecuteHooks(request.CurrentExecutionInfo); - ClearCacheForConfiguredLevel(); - return result; - } + _executionOrchestrator.CloseExecutionScope(); + var result = await ExecuteHooks(streamId, request.CurrentExecutionInfo); + ClearCacheForConfiguredLevel(); + return result; } } \ No newline at end of file diff --git a/src/Processors/SpecExecutionStartingProcessor.cs b/src/Processors/SpecExecutionStartingProcessor.cs index e3889f7..3085e0c 100644 --- a/src/Processors/SpecExecutionStartingProcessor.cs +++ b/src/Processors/SpecExecutionStartingProcessor.cs @@ -4,33 +4,31 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class SpecExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class SpecExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor - { - private readonly IExecutionOrchestrator _executionOrchestrator; + private readonly IExecutionOrchestrator _executionOrchestrator; - public SpecExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - _executionOrchestrator = executionOrchestrator; - } + public SpecExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) + { + _executionOrchestrator = executionOrchestrator; + } - protected override string HookType => "BeforeSpec"; + protected override string HookType => "BeforeSpec"; - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentSpec.Tags.ToList(); - } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentSpec.Tags.ToList(); + } - public ExecutionStatusResponse Process(SpecExecutionStartingRequest request) - { - _executionOrchestrator.StartExecutionScope("spec"); - return ExecuteHooks(request.CurrentExecutionInfo); - } + public async Task Process(int streamId, SpecExecutionStartingRequest request) + { + _executionOrchestrator.StartExecutionScope("spec"); + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); } } \ No newline at end of file diff --git a/src/Processors/StepExecutionEndingProcessor.cs b/src/Processors/StepExecutionEndingProcessor.cs index fe19c36..d727dc5 100644 --- a/src/Processors/StepExecutionEndingProcessor.cs +++ b/src/Processors/StepExecutionEndingProcessor.cs @@ -5,29 +5,27 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class StepExecutionEndingProcessor : TaggedHooksFirstExecutionProcessor + public StepExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public StepExecutionEndingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => "AfterStep"; + protected override string HookType => "AfterStep"; - public ExecutionStatusResponse Process(StepExecutionEndingRequest request) - { - return base.ExecuteHooks(request.CurrentExecutionInfo); - } + public Task Process(int streamId, StepExecutionEndingRequest request) + { + return ExecuteHooks(streamId, request.CurrentExecutionInfo); + } - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } } \ No newline at end of file diff --git a/src/Processors/StepExecutionStartingProcessor.cs b/src/Processors/StepExecutionStartingProcessor.cs index 89d6906..44e045e 100644 --- a/src/Processors/StepExecutionStartingProcessor.cs +++ b/src/Processors/StepExecutionStartingProcessor.cs @@ -5,29 +5,27 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor, IGaugeProcessor { - public class StepExecutionStartingProcessor : UntaggedHooksFirstExecutionProcessor + public StepExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public StepExecutionStartingProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => "BeforeStep"; + protected override string HookType => "BeforeStep"; - public ExecutionStatusResponse Process(StepExecutionStartingRequest request) - { - return ExecuteHooks(request.CurrentExecutionInfo); - } + public async Task Process(int streamId, StepExecutionStartingRequest request) + { + return await ExecuteHooks(streamId, request.CurrentExecutionInfo); + } - protected override List GetApplicableTags(ExecutionInfo info) - { - return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); - } + protected override List GetApplicableTags(ExecutionInfo info) + { + return info.CurrentScenario.Tags.Union(info.CurrentSpec.Tags).ToList(); } } \ No newline at end of file diff --git a/src/Processors/StepNameProcessor.cs b/src/Processors/StepNameProcessor.cs index 20785f0..3c6e56e 100644 --- a/src/Processors/StepNameProcessor.cs +++ b/src/Processors/StepNameProcessor.cs @@ -9,52 +9,51 @@ using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepNameProcessor : IGaugeProcessor { - public class StepNameProcessor + private readonly IStepRegistry _stepRegistry; + + public StepNameProcessor(IStepRegistry stepRegistry) { - private readonly IStepRegistry _stepRegistry; + _stepRegistry = stepRegistry; + } - public StepNameProcessor(IStepRegistry stepRegistry) - { - _stepRegistry = stepRegistry; - } + public Task Process(int stream, StepNameRequest request) + { - public StepNameResponse Process(StepNameRequest request) + var parsedStepText = request.StepValue; + var isStepPresent = _stepRegistry.ContainsStep(parsedStepText); + var response = new StepNameResponse { + IsStepPresent = isStepPresent + }; - var parsedStepText = request.StepValue; - var isStepPresent = _stepRegistry.ContainsStep(parsedStepText); - var response = new StepNameResponse + if (!isStepPresent) return Task.FromResult(response); + + var stepText = _stepRegistry.GetStepText(parsedStepText); + var hasAlias = _stepRegistry.HasAlias(stepText); + var info = _stepRegistry.MethodFor(parsedStepText); + response.IsExternal = info.IsExternal; + response.HasAlias = hasAlias; + if (!response.IsExternal) + { + response.FileName = info.FileName; + response.Span = new Span { - IsStepPresent = isStepPresent + Start = info.Span.Span.Start.Line + 1, + StartChar = info.Span.StartLinePosition.Character, + End = info.Span.EndLinePosition.Line + 1, + EndChar = info.Span.EndLinePosition.Character }; + } - if (!isStepPresent) return response; + if (hasAlias) + response.StepName.AddRange(info.Aliases); + else + response.StepName.Add(stepText); - var stepText = _stepRegistry.GetStepText(parsedStepText); - var hasAlias = _stepRegistry.HasAlias(stepText); - var info = _stepRegistry.MethodFor(parsedStepText); - response.IsExternal = info.IsExternal; - response.HasAlias = hasAlias; - if (!response.IsExternal) - { - response.FileName = info.FileName; - response.Span = new Span - { - Start = info.Span.Span.Start.Line + 1, - StartChar = info.Span.StartLinePosition.Character, - End = info.Span.EndLinePosition.Line + 1, - EndChar = info.Span.EndLinePosition.Character - }; - } - - if (hasAlias) - response.StepName.AddRange(info.Aliases); - else - response.StepName.Add(stepText); - - return response; - } + return Task.FromResult(response); } } \ No newline at end of file diff --git a/src/Processors/StepNamesProcessor.cs b/src/Processors/StepNamesProcessor.cs index cffa34b..b4e1d9d 100644 --- a/src/Processors/StepNamesProcessor.cs +++ b/src/Processors/StepNamesProcessor.cs @@ -5,27 +5,25 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepNamesProcessor : IGaugeProcessor { - public class StepNamesProcessor - { - private readonly IStepRegistry _stepRegistry; + private readonly IStepRegistry _stepRegistry; - public StepNamesProcessor(IStepRegistry stepRegistry) - { - _stepRegistry = stepRegistry; - } + public StepNamesProcessor(IStepRegistry stepRegistry) + { + _stepRegistry = stepRegistry; + } - public StepNamesResponse Process(StepNamesRequest request) - { - var allSteps = _stepRegistry.GetStepTexts(); - var stepNamesResponse = new StepNamesResponse(); - stepNamesResponse.Steps.AddRange(allSteps); - return stepNamesResponse; - } + public Task Process(int stream, StepNamesRequest request) + { + var allSteps = _stepRegistry.GetStepTexts(); + var stepNamesResponse = new StepNamesResponse(); + stepNamesResponse.Steps.AddRange(allSteps); + return Task.FromResult(stepNamesResponse); } } \ No newline at end of file diff --git a/src/Processors/StepPositionsProcessor.cs b/src/Processors/StepPositionsProcessor.cs index cfd7451..bd26336 100644 --- a/src/Processors/StepPositionsProcessor.cs +++ b/src/Processors/StepPositionsProcessor.cs @@ -8,21 +8,21 @@ using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepPositionsProcessor : IGaugeProcessor { - public class StepPositionsProcessor + private readonly IStepRegistry _stepRegistry; + + public StepPositionsProcessor(IStepRegistry stepRegistry) { - private readonly IStepRegistry _stepRegistry; + _stepRegistry = stepRegistry; + } - public StepPositionsProcessor(IStepRegistry stepRegistry) - { - _stepRegistry = stepRegistry; - } - public StepPositionsResponse Process(StepPositionsRequest request) - { - var response = new StepPositionsResponse(); - response.StepPositions.AddRange(_stepRegistry.GetStepPositions(request.FilePath)); - return response; - } + public Task Process(int stream, StepPositionsRequest request) + { + var response = new StepPositionsResponse(); + response.StepPositions.AddRange(_stepRegistry.GetStepPositions(request.FilePath)); + return Task.FromResult(response); } } \ No newline at end of file diff --git a/src/Processors/StepValidationProcessor.cs b/src/Processors/StepValidationProcessor.cs index d934378..2842115 100644 --- a/src/Processors/StepValidationProcessor.cs +++ b/src/Processors/StepValidationProcessor.cs @@ -5,69 +5,66 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Models; using Gauge.Messages; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StepValidationProcessor : IGaugeProcessor { - public class StepValidationProcessor + private readonly IStepRegistry _stepRegistry; + + public StepValidationProcessor(IStepRegistry stepRegistry) { - private readonly IStepRegistry _stepRegistry; + _stepRegistry = stepRegistry; + } - public StepValidationProcessor(IStepRegistry stepRegistry) + public Task Process(int stream, StepValidateRequest request) + { + var stepToValidate = request.StepText; + var isValid = true; + var errorMessage = ""; + var suggestion = ""; + var errorType = StepValidateResponse.Types.ErrorType.StepImplementationNotFound; + if (!_stepRegistry.ContainsStep(stepToValidate)) { - _stepRegistry = stepRegistry; + isValid = false; + errorMessage = string.Format("No implementation found for : {0}. Full Step Text :", stepToValidate); + suggestion = GetSuggestion(request.StepValue); } - - public StepValidateResponse Process(StepValidateRequest request) + else if (_stepRegistry.HasMultipleImplementations(stepToValidate)) { - var stepToValidate = request.StepText; - var isValid = true; - var errorMessage = ""; - var suggestion = ""; - var errorType = StepValidateResponse.Types.ErrorType.StepImplementationNotFound; - if (!_stepRegistry.ContainsStep(stepToValidate)) - { - isValid = false; - errorMessage = string.Format("No implementation found for : {0}. Full Step Text :", stepToValidate); - suggestion = GetSuggestion(request.StepValue); - } - else if (_stepRegistry.HasMultipleImplementations(stepToValidate)) - { - isValid = false; - errorType = StepValidateResponse.Types.ErrorType.DuplicateStepImplementation; - errorMessage = string.Format("Multiple step implementations found for : {0}", stepToValidate); - } - return GetStepValidateResponseMessage(isValid, errorType, errorMessage, suggestion); + isValid = false; + errorType = StepValidateResponse.Types.ErrorType.DuplicateStepImplementation; + errorMessage = string.Format("Multiple step implementations found for : {0}", stepToValidate); } + return Task.FromResult(GetStepValidateResponseMessage(isValid, errorType, errorMessage, suggestion)); + } - private string GetSuggestion(ProtoStepValue stepValue) - { - var name = stepValue.StepValue.ToValidCSharpIdentifier(); - return "\t\t[Step(\"" + stepValue.ParameterizedStepValue + "\")]\n" + - "\t\tpublic void " + name + "(" + GetParamsList(stepValue.Parameters) + ")\n" + - "\t\t{\n\t\t\tthrow new NotImplementedException();\n\t\t}\n"; - } + private string GetSuggestion(ProtoStepValue stepValue) + { + var name = stepValue.StepValue.ToValidCSharpIdentifier(); + return "\t\t[Step(\"" + stepValue.ParameterizedStepValue + "\")]\n" + + "\t\tpublic void " + name + "(" + GetParamsList(stepValue.Parameters) + ")\n" + + "\t\t{\n\t\t\tthrow new NotImplementedException();\n\t\t}\n"; + } - private static string GetParamsList(IEnumerable stepValueParameters) - { - var paramsString = stepValueParameters.Select((p, i) => $"arg{i}"); - return string.Join(" ,", paramsString); - } + private static string GetParamsList(IEnumerable stepValueParameters) + { + var paramsString = stepValueParameters.Select((p, i) => $"arg{i}"); + return string.Join(" ,", paramsString); + } - private static StepValidateResponse GetStepValidateResponseMessage(bool isValid, - StepValidateResponse.Types.ErrorType errorType, string errorMessage, string suggestion) + private static StepValidateResponse GetStepValidateResponseMessage(bool isValid, + StepValidateResponse.Types.ErrorType errorType, string errorMessage, string suggestion) + { + return new StepValidateResponse { - return new StepValidateResponse - { - ErrorMessage = errorMessage, - IsValid = isValid, - ErrorType = errorType, - Suggestion = suggestion - }; - } + ErrorMessage = errorMessage, + IsValid = isValid, + ErrorType = errorType, + Suggestion = suggestion + }; } } \ No newline at end of file diff --git a/src/Processors/StubImplementationCodeProcessor.cs b/src/Processors/StubImplementationCodeProcessor.cs index 0ec3d01..664cc24 100644 --- a/src/Processors/StubImplementationCodeProcessor.cs +++ b/src/Processors/StubImplementationCodeProcessor.cs @@ -5,127 +5,143 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using Gauge.Dotnet.Helpers; +using Gauge.Dotnet.Extensions; using Gauge.Messages; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public class StubImplementationCodeProcessor : IGaugeProcessor { - public class StubImplementationCodeProcessor + private readonly IConfiguration _config; + + public StubImplementationCodeProcessor(IConfiguration config) { - public FileDiff Process(StubImplementationCodeRequest request) - { - var stubs = request.Codes; - var file = request.ImplementationFilePath; - var response = new FileDiff(); - if (!File.Exists(file)) - { - var filepath = FileHelper.GetFileName("", 0); - ImplementInNewClass(response, filepath, stubs); - } - else - { - ImlementInExistingFile(stubs, file, response); - } + _config = config; + } - return response; + public async Task Process(int stream, StubImplementationCodeRequest request) + { + var stubs = request.Codes; + var file = request.ImplementationFilePath; + var response = new FileDiff(); + if (!File.Exists(file)) + { + var filepath = GetFileName("", 0); + ImplementInNewClass(response, filepath, stubs); } - - private void ImlementInExistingFile(IEnumerable stubs, string file, FileDiff response) + else { - var content = File.ReadAllText(file); - if (content == "") - ImplementInNewClass(response, file, stubs); - else - ImplementInExistingClass(response, file, stubs); + await ImlementInExistingFile(stubs, file, response); } - private void ImplementInExistingClass(FileDiff response, string file, IEnumerable stubs) + return response; + } + + private async Task ImlementInExistingFile(IEnumerable stubs, string file, FileDiff response) + { + var content = await File.ReadAllTextAsync(file); + if (content == "") + ImplementInNewClass(response, file, stubs); + else + await ImplementInExistingClass(response, file, stubs); + } + + private async Task ImplementInExistingClass(FileDiff response, string file, IEnumerable stubs) + { + var text = await File.ReadAllTextAsync(file); + var root = CSharpSyntaxTree.ParseText(text).GetRoot(); + var stepClass = root.DescendantNodes().OfType(); + var diff = new TextDiff(); + if (stepClass.Count() > 0) { - var root = CSharpSyntaxTree.ParseText(File.ReadAllText(file)).GetRoot(); - var stepClass = root.DescendantNodes().OfType(); - var diff = new TextDiff(); - if (hasStepClass(stepClass)) - { - diff = getTextDiff(diff, stepClass, stubs); - } - else - { - diff = getTextDiff(diff, root, stubs, file); - } - response.FilePath = file; - response.TextDiffs.Add(diff); + diff = GetTextDiff(diff, stepClass, stubs); } - - private TextDiff getTextDiff(TextDiff diff, SyntaxNode root, IEnumerable stubs, string file) + else { - var stepClassPosition = root.GetLocation().GetLineSpan().EndLinePosition; - var className = FileHelper.GetClassName(file); - - diff.Span = new Span - { - Start = stepClassPosition.Line + 1, - StartChar = stepClassPosition.Character, - End = stepClassPosition.Line + 1, - EndChar = stepClassPosition.Character - }; - diff.Content = GetNewClassContent(className, stubs); - return diff; + diff = GetTextDiff(diff, root, stubs, file); } + response.FilePath = file; + response.TextDiffs.Add(diff); + } + + private TextDiff GetTextDiff(TextDiff diff, SyntaxNode root, IEnumerable stubs, string file) + { + var stepClassPosition = root.GetLocation().GetLineSpan().EndLinePosition; + var className = GetClassName(file); - private bool hasStepClass(IEnumerable stepClass) + diff.Span = new Span { - return stepClass.ToList().Count() > 0; - } + Start = stepClassPosition.Line + 1, + StartChar = stepClassPosition.Character, + End = stepClassPosition.Line + 1, + EndChar = stepClassPosition.Character + }; + diff.Content = GetNewClassContent(className, stubs); + return diff; + } - private TextDiff getTextDiff(TextDiff diff, IEnumerable stepClass, IEnumerable stubs) + private TextDiff GetTextDiff(TextDiff diff, IEnumerable stepClass, IEnumerable stubs) + { + var stepClassPosition = stepClass.First().GetLocation().GetLineSpan().EndLinePosition; + diff.Span = new Span { - var stepClassPosition = stepClass.First().GetLocation().GetLineSpan().EndLinePosition; - diff.Span = new Span - { - Start = stepClassPosition.Line, - StartChar = stepClassPosition.Character - 1, - End = stepClassPosition.Line, - EndChar = stepClassPosition.Character - 1 - }; - diff.Content = $"{Environment.NewLine}{string.Join(Environment.NewLine, stubs)}\t"; - return diff; - } + Start = stepClassPosition.Line, + StartChar = stepClassPosition.Character - 1, + End = stepClassPosition.Line, + EndChar = stepClassPosition.Character - 1 + }; + diff.Content = $"{Environment.NewLine}{string.Join(Environment.NewLine, stubs)}\t"; + return diff; + } - private void ImplementInNewClass(FileDiff fileDiff, string filepath, IEnumerable stubs) + private void ImplementInNewClass(FileDiff fileDiff, string filepath, IEnumerable stubs) + { + var className = GetClassName(filepath); + var content = GetNewClassContent(className, stubs); + var diff = new TextDiff { - var className = FileHelper.GetClassName(filepath); - var content = GetNewClassContent(className, stubs); - var diff = new TextDiff + Span = new Span { - Span = new Span - { - Start = 0, - StartChar = 0, - End = 0, - EndChar = 0 - }, - Content = content - }; - fileDiff.TextDiffs.Add(diff); - fileDiff.FilePath = filepath; - } + Start = 0, + StartChar = 0, + End = 0, + EndChar = 0 + }, + Content = content + }; + fileDiff.TextDiffs.Add(diff); + fileDiff.FilePath = filepath; + } - private string GetNewClassContent(string className, IEnumerable stubs) - { - var n = Environment.NewLine; - return $"using System;{n}" + - $"using Gauge.CSharp.Lib.Attribute;{n}{n}" + - $"namespace {FileHelper.GetNameSpace()}{n}" + - $"{{\n\tpublic class {className}{n}" + - $"\t{{{n}{string.Join(Environment.NewLine, stubs)}{n}" + - $"\t}}{n}}}\n"; - } + private string GetNewClassContent(string className, IEnumerable stubs) + { + var n = Environment.NewLine; + return $"using System;{n}" + + $"using Gauge.CSharp.Lib.Attribute;{n}{n}" + + $"namespace {GetNameSpace()}{n}" + + $"{{\n\tpublic class {className}{n}" + + $"\t{{{n}{string.Join(Environment.NewLine, stubs)}{n}" + + $"\t}}{n}}}\n"; + } + + private string GetFileName(string suffix, int counter) + { + var fileName = Path.Combine(_config.GetGaugeProjectRoot(), $"StepImplementation{suffix}.cs"); + return !File.Exists(fileName) ? fileName : GetFileName((++counter).ToString(), counter); } + + public string GetNameSpace() + { + var gaugeProjectRoot = _config.GetGaugeProjectRoot(); + return new DirectoryInfo(gaugeProjectRoot).Name.ToValidCSharpIdentifier(); + } + + private static string GetClassName(string filepath) + { + return Path.GetFileNameWithoutExtension(filepath); + } + } \ No newline at end of file diff --git a/src/Processors/SuiteDataStoreInitProcessor.cs b/src/Processors/SuiteDataStoreInitProcessor.cs index f58796f..0f567ac 100644 --- a/src/Processors/SuiteDataStoreInitProcessor.cs +++ b/src/Processors/SuiteDataStoreInitProcessor.cs @@ -5,12 +5,20 @@ *----------------------------------------------------------------*/ -namespace Gauge.Dotnet.Processors +using Gauge.CSharp.Lib; +using Gauge.Messages; + +namespace Gauge.Dotnet.Processors; + +public class SuiteDataStoreInitProcessor : DataStoreInitProcessorBase, IGaugeProcessor { - public class SuiteDataStoreInitProcessor : DataStoreInitProcessorBase + public SuiteDataStoreInitProcessor(IAssemblyLoader loader) + : base(DataStoreType.Suite, loader) + { + } + + public Task Process(int stream, SuiteDataStoreInitRequest request) { - public SuiteDataStoreInitProcessor(IAssemblyLoader assemblyLoader) : base(assemblyLoader, DataStoreType.Suite) - { - } + return Task.FromResult(Process(request.Stream)); } } \ No newline at end of file diff --git a/src/Processors/TaggedHooksFirstExecutionProcessor.cs b/src/Processors/TaggedHooksFirstExecutionProcessor.cs index fdff3b4..981e1e9 100644 --- a/src/Processors/TaggedHooksFirstExecutionProcessor.cs +++ b/src/Processors/TaggedHooksFirstExecutionProcessor.cs @@ -5,16 +5,16 @@ *----------------------------------------------------------------*/ +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Strategy; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public abstract class TaggedHooksFirstExecutionProcessor : HookExecutionProcessor { - public abstract class TaggedHooksFirstExecutionProcessor : HookExecutionProcessor + protected TaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - protected TaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - Strategy = new TaggedHooksFirstStrategy(); - } + Strategy = new TaggedHooksFirstStrategy(); } } \ No newline at end of file diff --git a/src/Processors/UnTaggedHooksFirstExecutionProcessor.cs b/src/Processors/UnTaggedHooksFirstExecutionProcessor.cs index 8c94f94..d042d70 100644 --- a/src/Processors/UnTaggedHooksFirstExecutionProcessor.cs +++ b/src/Processors/UnTaggedHooksFirstExecutionProcessor.cs @@ -5,16 +5,16 @@ *----------------------------------------------------------------*/ +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Strategy; -namespace Gauge.Dotnet.Processors +namespace Gauge.Dotnet.Processors; + +public abstract class UntaggedHooksFirstExecutionProcessor : HookExecutionProcessor { - public abstract class UntaggedHooksFirstExecutionProcessor : HookExecutionProcessor + protected UntaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - protected UntaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - Strategy = new UntaggedHooksFirstStrategy(); - } + Strategy = new UntaggedHooksFirstStrategy(); } } \ No newline at end of file diff --git a/src/Program.cs b/src/Program.cs index 099ce52..5a83904 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -5,27 +5,155 @@ *----------------------------------------------------------------*/ -using System; using System.Diagnostics; -using System.Threading.Tasks; +using System.Net; +using System.Reflection; +using Gauge.Dotnet.Exceptions; +using Gauge.Dotnet.Executors; +using Gauge.Dotnet.Extensions; +using Gauge.Dotnet.Models; +using Gauge.Dotnet.Processors; +using Gauge.Dotnet.Wrappers; +using Gauge.Messages; +using Microsoft.AspNetCore.Server.Kestrel.Core; +using Microsoft.Extensions.Logging.Console; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +internal static class Program { - internal static class Program + private static ILogger _logger = null; + + [STAThread] + [DebuggerHidden] + private static async Task Main(string[] args) { - [STAThread] - [DebuggerHidden] - private static async Task Main(string[] args) + if (args.Length == 0 || args[0] != "--start") { - if (args.Length == 0) + Console.WriteLine("usage: {0} --start", AppDomain.CurrentDomain.FriendlyName); + Environment.Exit(1); + } + + try + { + var builder = WebApplication.CreateBuilder(args); + builder.Configuration.SetupConfiguration(); + builder.Logging.SetupLogging(); + builder.WebHost.ConfigureKestrel(opts => + { + opts.Listen(IPAddress.Parse("127.0.0.1"), 0, (opt) => { opt.Protocols = HttpProtocols.Http2; }); + }); + builder.Services.ConfigureServices(builder.Configuration); + var app = builder.Build(); + _logger = app.Services.GetRequiredService().CreateLogger("Gauge"); + + Environment.CurrentDirectory = app.Configuration.GetGaugeProjectRoot(); + var buildSucceeded = app.Services.GetRequiredService().BuildTargetGaugeProject(); + if (!buildSucceeded && !app.Configuration.IgnoreBuildFailures()) + { + return; + } + + app.Lifetime.ApplicationStarted.Register(() => + { + var ports = app.Urls.Select(x => new Uri(x).Port).Distinct(); + foreach (var port in ports) + { + Console.WriteLine($"Listening on port:{port}"); + } + }); + + if (buildSucceeded) + { + app.MapGrpcService(); + } + else { - Console.WriteLine("usage: {0} --", AppDomain.CurrentDomain.FriendlyName); - Environment.Exit(1); + app.MapGrpcService(); } + app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909"); - var phase = args[0]; - var command = GaugeCommandFactory.GetExecutor(phase); - await command.Execute(); + await app.RunAsync(); + } + catch (TargetInvocationException e) + { + if (e.InnerException is not GaugeLibVersionMismatchException) + throw; + _logger?.LogCritical(e.InnerException.Message); + Environment.Exit(1); } } + + private static IConfigurationBuilder SetupConfiguration(this IConfigurationBuilder builder) => + builder.AddEnvironmentVariables(); + + public static ILoggingBuilder SetupLogging(this ILoggingBuilder builder) => + builder.ClearProviders() + .SetMinimumLevel(LogLevel.Debug) + .AddFilter("Microsoft", LogLevel.Error) + .AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Error) + .AddFilter("Grpc.AspNetCore", LogLevel.Error) + .AddConsole((opt) => + { + opt.FormatterName = "GaugeLoggingFormatter"; + }) + .AddConsoleFormatter((opt) => + { + opt.IncludeScopes = true; + opt.TimestampFormat = "HH:mm:ss "; + }); + + + private static IServiceCollection ConfigureServices(this IServiceCollection services, IConfiguration config) + { + services.AddGrpc(); + services.AddTransient(); + services.AddTransient(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton((sp) => + { + return config.IsDaemon() ? + new LockFreeGaugeLoadContext(sp.GetRequiredService(), sp.GetRequiredService>()) : + new GaugeLoadContext(sp.GetRequiredService(), sp.GetRequiredService>()); + }); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(s => s.GetRequiredService().GetStepRegistry()); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + services.AddTransient, StepValidationProcessor>(); + services.AddTransient, CacheFileProcessor>(); + services.AddTransient, ImplementationFileGlobPatterProcessor>(); + services.AddTransient, ImplementationFileListProcessor>(); + services.AddTransient, StepNameProcessor>(); + services.AddTransient, StepNamesProcessor>(); + services.AddTransient, StepPositionsProcessor>(); + services.AddTransient, StubImplementationCodeProcessor>(); + services.AddTransient, RefactorProcessor>(); + services.AddTransient, SuiteDataStoreInitProcessor>(); + services.AddTransient, SuiteDataStoreInitProcessor>(); + services.AddTransient, ExecuteStepProcessor>(); + services.AddTransient, ExecutionEndingProcessor>(); + services.AddTransient, ScenarioExecutionEndingProcessor>(); + services.AddTransient, SpecExecutionEndingProcessor>(); + services.AddTransient, StepExecutionEndingProcessor>(); + services.AddTransient, ScenarioDataStoreInitProcessor>(); + services.AddTransient, SpecDataStoreInitProcessor>(); + services.AddTransient, ExecutionStartingProcessor>(); + services.AddTransient, ScenarioExecutionStartingProcessor>(); + services.AddTransient, SpecExecutionStartingProcessor>(); + services.AddTransient, StepExecutionStartingProcessor>(); + services.AddTransient, ConceptExecutionStartingProcessor>(); + services.AddTransient, ConceptExecutionEndingProcessor>(); + + return services; + } } \ No newline at end of file diff --git a/src/Properties/launchSettings.json b/src/Properties/launchSettings.json new file mode 100644 index 0000000..6702f01 --- /dev/null +++ b/src/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "Gauge.Dotnet": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "http://localhost:62826" + } + } +} \ No newline at end of file diff --git a/src/SetupCommand.cs b/src/SetupCommand.cs deleted file mode 100644 index 65cf5b2..0000000 --- a/src/SetupCommand.cs +++ /dev/null @@ -1,116 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.IO; -using System.Threading.Tasks; -using Gauge.CSharp.Core; -using Gauge.Dotnet.Extensions; - -namespace Gauge.Dotnet -{ - public class SetupCommand : IGaugeCommand - { - Task IGaugeCommand.Execute() - { - var gaugeProjectRoot = Utils.GaugeProjectRoot; - var projName = new DirectoryInfo(gaugeProjectRoot).Name.ToValidCSharpIdentifier(); - - var project = $@" - - - net8.0 - - - - - - - - -"; - var properties = GenerateDefaultProperties(projName); - - var implementation = $@"using System; -using System.Collections.Generic; -using System.Linq; -using FluentAssertions; -using Gauge.CSharp.Lib; -using Gauge.CSharp.Lib.Attribute; - -namespace {projName} -{{ - public class StepImplementation - {{ - private HashSet _vowels; - - [Step(""Vowels in English language are ."")] - public void SetLanguageVowels(string vowelString) - {{ - _vowels = new HashSet(); - foreach (var c in vowelString) - {{ - _vowels.Add(c); - }} - }} - - [Step(""The word has vowels."")] - public void VerifyVowelsCountInWord(string word, int expectedCount) - {{ - var actualCount = CountVowels(word); - actualCount.Should().Be(expectedCount); - }} - - [Step(""Almost all words have vowels "")] - public void VerifyVowelsCountInMultipleWords(Table wordsTable) - {{ - var rows = wordsTable.GetTableRows(); - foreach (var row in rows) - {{ - var word = row.GetCell(""Word""); - var expectedCount = Convert.ToInt32(row.GetCell(""Vowel Count"")); - var actualCount = CountVowels(word); - - actualCount.Should().Be(expectedCount); - }} - }} - - private int CountVowels(string word) - {{ - return word.Count(c => _vowels.Contains(c)); - }} - }} -}}"; - Logger.Info("create StepImplementation.cs"); - File.WriteAllText(Path.Combine(gaugeProjectRoot, "StepImplementation.cs"), implementation); - - Logger.Info($"create {projName}.csproj"); - File.WriteAllText(Path.Combine(gaugeProjectRoot, $"{projName}.csproj"), project); - - var envPath = Path.Combine(gaugeProjectRoot, "env", "default"); - Directory.CreateDirectory(envPath); - - Logger.Info($"create {Path.Combine("env", "default", "dotnet.properties")}"); - File.WriteAllText(Path.Combine(envPath, "dotnet.properties"), properties); - return Task.FromResult(true); - } - - private static string GenerateDefaultProperties(string projName) - { - var properties = new[] - { - $"GAUGE_CSHARP_PROJECT_FILE={projName}.csproj", - "GAUGE_CSHARP_PROJECT_CONFIG=release", - Environment.NewLine, - "# Possible values for this property are 'suite', 'spec' or 'scenario’.", - "# 'scenario' clears the objects after the execution of each scenario, new objects are created for next execution.", - "gauge_clear_state_level=scenario" - }; - return string.Join(Environment.NewLine, properties); - } - } -} \ No newline at end of file diff --git a/src/StartCommand.cs b/src/StartCommand.cs deleted file mode 100644 index da174cb..0000000 --- a/src/StartCommand.cs +++ /dev/null @@ -1,94 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.Diagnostics; -using System.Net; -using System.Reflection; -using System.Threading.Tasks; -using Gauge.CSharp.Core; -using Gauge.Dotnet.Exceptions; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Server.Kestrel.Core; -using Microsoft.Extensions.Hosting; - -namespace Gauge.Dotnet -{ - public class StartCommand : IGaugeCommand - { - private readonly IGaugeProjectBuilder _projectBuilder; - private readonly Type _startupType; - - public StartCommand(IGaugeProjectBuilder projectBuilder, Type startupType) - { - Environment.CurrentDirectory = Utils.GaugeProjectRoot; - _projectBuilder = projectBuilder; - this._startupType = startupType; - } - - [DebuggerHidden] - public async Task Execute() - { - var buildSucceeded = TryBuild(); - if (!buildSucceeded && !this.ShouldContinueBuildFailure()) - { - return false; - } - try - { - var builder = Host.CreateDefaultBuilder() - .ConfigureWebHostDefaults(wb => { - wb.UseShutdownTimeout(TimeSpan.FromMilliseconds(0)); - wb.UseStartup(this._startupType); - wb.UseSetting("ReflectionScanAssemblies", buildSucceeded.ToString()); - wb.ConfigureKestrel(options => - options.Listen(IPAddress.Parse("127.0.0.1"), 0, lo => lo.Protocols = HttpProtocols.Http2)); - }); - - using(var host = builder.Build()){ - await host.RunAsync(); - }; - } - catch (TargetInvocationException e) - { - if (!(e.InnerException is GaugeLibVersionMismatchException)) - throw; - Logger.Fatal(e.InnerException.Message); - } - return true; - } - - private bool ShouldContinueBuildFailure() - { - var continueOnFailure = Utils.TryReadEnvValue("GAUGE_IGNORE_RUNNER_BUILD_FAILURES"); - return !string.IsNullOrEmpty(continueOnFailure) && continueOnFailure == "true"; - } - - private bool TryBuild() - { - var customBuildPath = Utils.TryReadEnvValue("GAUGE_CUSTOM_BUILD_PATH"); - if (!string.IsNullOrEmpty(customBuildPath)) - return true; - - try - { - return _projectBuilder.BuildTargetGaugeProject(); - } - catch (NotAValidGaugeProjectException) - { - Logger.Fatal($"Cannot locate a Project File in {Utils.GaugeProjectRoot}"); - return false; - } - catch (Exception ex) - { - if (!this.ShouldContinueBuildFailure()) - Logger.Fatal($"Unable to build Project in {Utils.GaugeProjectRoot}\n{ex.Message}\n{ex.StackTrace}"); - return false; - } - } - } -} \ No newline at end of file diff --git a/src/StaticLoader.cs b/src/StaticLoader.cs index ab85b06..0e217bc 100644 --- a/src/StaticLoader.cs +++ b/src/StaticLoader.cs @@ -5,12 +5,7 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Text.RegularExpressions; -using Gauge.CSharp.Core; using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Helpers; using Gauge.Dotnet.Models; @@ -18,123 +13,127 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -namespace Gauge.Dotnet +namespace Gauge.Dotnet; + +public sealed class StaticLoader : IStaticLoader { - public sealed class StaticLoader : IStaticLoader + private readonly IAttributesLoader _attributesLoader; + private readonly IDirectoryWrapper _directoryWrapper; + private readonly IStepRegistry _stepRegistry; + private readonly IConfiguration _config; + private readonly ILogger _logger; + + + public StaticLoader(IAttributesLoader attributesLoader, IDirectoryWrapper directoryWrapper, IConfiguration config, ILogger logger) { - private readonly IAttributesLoader _attributesLoader; - private readonly IDirectoryWrapper _directoryWrapper; - private readonly IStepRegistry _stepRegistry; + _stepRegistry = new StepRegistry(); + _attributesLoader = attributesLoader; + _directoryWrapper = directoryWrapper; + _config = config; + _logger = logger; + LoadImplementations(); + _stepRegistry = GetStepRegistry(); + } + public IStepRegistry GetStepRegistry() + { + return _stepRegistry; + } - public StaticLoader(IAttributesLoader attributesLoader, IDirectoryWrapper directoryWrapper) - { - _stepRegistry = new StepRegistry(); - _attributesLoader = attributesLoader; - _directoryWrapper = directoryWrapper; - LoadImplementations(); - } - public IStepRegistry GetStepRegistry() - { - return _stepRegistry; - } + public void LoadStepsFromText(string content, string filepath) + { + var steps = GetStepsFrom(content); + AddStepsToRegistry(filepath, steps); + } + public void ReloadSteps(string content, string filepath) + { + if (IsFileRemoved(filepath)) return; + _stepRegistry.RemoveSteps(filepath); + LoadStepsFromText(content, filepath); + } - public void LoadStepsFromText(string content, string filepath) - { - var steps = GetStepsFrom(content); - AddStepsToRegistry(filepath, steps); - } + public void RemoveSteps(string file) + { + _stepRegistry.RemoveSteps(file); + } - public void ReloadSteps(string content, string filepath) - { - if (IsFileRemoved(filepath)) return; - _stepRegistry.RemoveSteps(filepath); - LoadStepsFromText(content, filepath); - } + private bool IsFileRemoved(string file) + { + var attributes = _attributesLoader.GetRemovedAttributes(); + var removedFiles = FileHelper.GetRemovedDirFiles(_config); + + var isFileRemoved = + attributes.Any(attribute => Path.Combine(_config.GetGaugeProjectRoot(), attribute.Value) == file) || + removedFiles.Contains(file); + return isFileRemoved; + } - public void RemoveSteps(string file) + public void LoadImplementations() + { + if (!string.IsNullOrEmpty(_config.GetGaugeCustomBuildPath())) { - _stepRegistry.RemoveSteps(file); + _logger.LogDebug("GAUGE_CUSTOM_BUILD_PATH is set, skipping static loading"); + return; } - private bool IsFileRemoved(string file) + var classFiles = _directoryWrapper.EnumerateFiles(_config.GetGaugeProjectRoot(), "*.cs", + SearchOption.AllDirectories).ToList(); + var attributes = _attributesLoader.GetRemovedAttributes(); + foreach (var attribute in attributes) { - var attributes = _attributesLoader.GetRemovedAttributes(); - var removedFiles = FileHelper.GetRemovedDirFiles(); - - var isFileRemoved = - attributes.Any(attribute => Path.Combine(Utils.GaugeProjectRoot, attribute.Value) == file) || - removedFiles.Contains(file); - return isFileRemoved; + classFiles.Remove(Path.Combine(_config.GetGaugeProjectRoot(), attribute.Value)); } - - public void LoadImplementations() + var removedFiles = FileHelper.GetRemovedDirFiles(_config); + var wantedFiles = classFiles.Except(removedFiles); + foreach (var f in wantedFiles) { - if (!string.IsNullOrEmpty(Utils.TryReadEnvValue("GAUGE_CUSTOM_BUILD_PATH"))) - { - Logger.Debug("GAUGE_CUSTOM_BUILD_PATH is set, skipping static loading"); - return; - } - - var classFiles = _directoryWrapper.EnumerateFiles(Utils.GaugeProjectRoot, "*.cs", - SearchOption.AllDirectories).ToList(); - var attributes = _attributesLoader.GetRemovedAttributes(); - foreach (var attribute in attributes) - { - classFiles.Remove(Path.Combine(Utils.GaugeProjectRoot, attribute.Value)); - } - var removedFiles = FileHelper.GetRemovedDirFiles(); - var wantedFiles = classFiles.Except(removedFiles); - foreach (var f in wantedFiles) - { - LoadStepsFromText(File.ReadAllText(f), f); - } + LoadStepsFromText(File.ReadAllText(f), f); } + } - private void AddStepsToRegistry(string fileName, IEnumerable stepMethods) + private void AddStepsToRegistry(string fileName, IEnumerable stepMethods) + { + foreach (var stepMethod in stepMethods) { - foreach (var stepMethod in stepMethods) + var attributeListSyntax = stepMethod.AttributeLists.WithStepAttribute(); + var attributeSyntax = attributeListSyntax.Attributes.GetStepAttribute(); + var stepTextsSyntax = attributeSyntax.ArgumentList.Arguments.ToList(); + var stepTexts = stepTextsSyntax.Select(s => s.ToString().Trim('"')); + var hasAlias = stepTexts.Count() > 1; + foreach (var stepText in stepTexts) { - var attributeListSyntax = stepMethod.AttributeLists.WithStepAttribute(); - var attributeSyntax = attributeListSyntax.Attributes.GetStepAttribute(); - var stepTextsSyntax = attributeSyntax.ArgumentList.Arguments.ToList(); - var stepTexts = stepTextsSyntax.Select(s => s.ToString().Trim('"')); - var hasAlias = stepTexts.Count() > 1; - foreach (var stepText in stepTexts) + var stepValue = Regex.Replace(stepText, @"(<.*?>)", @"{}"); + var classDef = stepMethod.Parent as ClassDeclarationSyntax; + var entry = new GaugeMethod { - var stepValue = Regex.Replace(stepText, @"(<.*?>)", @"{}"); - var classDef = stepMethod.Parent as ClassDeclarationSyntax; - var entry = new GaugeMethod - { - Name = stepMethod.Identifier.ValueText, - ParameterCount = stepMethod.ParameterList.Parameters.Count, - StepText = stepText, - HasAlias = hasAlias, - Aliases = stepTexts, - StepValue = stepValue, - Span = stepMethod.GetLocation().GetLineSpan(), - ClassName = classDef.Identifier.ValueText, - FileName = fileName, - IsExternal = false - }; - _stepRegistry.AddStep(stepValue, entry); - } + Name = stepMethod.Identifier.ValueText, + ParameterCount = stepMethod.ParameterList.Parameters.Count, + StepText = stepText, + HasAlias = hasAlias, + Aliases = stepTexts, + StepValue = stepValue, + Span = stepMethod.GetLocation().GetLineSpan(), + ClassName = classDef.Identifier.ValueText, + FileName = fileName, + IsExternal = false + }; + _stepRegistry.AddStep(stepValue, entry); } } + } - private static IEnumerable GetStepsFrom(string content) - { - var tree = CSharpSyntaxTree.ParseText(content); - var root = tree.GetRoot(); - - var stepMethods = from node in root.DescendantNodes().OfType() - let attributeSyntaxes = node.AttributeLists.SelectMany(syntax => syntax.Attributes) - where attributeSyntaxes.Any(syntax => - string.CompareOrdinal(syntax.ToFullString(), LibType.Step.FullName()) > 0) - select node; - return stepMethods; - } + private static IEnumerable GetStepsFrom(string content) + { + var tree = CSharpSyntaxTree.ParseText(content); + var root = tree.GetRoot(); + + var stepMethods = from node in root.DescendantNodes().OfType() + let attributeSyntaxes = node.AttributeLists.SelectMany(syntax => syntax.Attributes) + where attributeSyntaxes.Any(syntax => + string.CompareOrdinal(syntax.ToFullString(), LibType.Step.FullName()) > 0) + select node; + return stepMethods; } } \ No newline at end of file diff --git a/src/StepExecutor.cs b/src/StepExecutor.cs deleted file mode 100644 index 84f781a..0000000 --- a/src/StepExecutor.cs +++ /dev/null @@ -1,96 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.IO; -using System.Linq; -using System.Runtime.Serialization.Json; -using System.Text; -using Gauge.Dotnet.Converters; -using Gauge.Dotnet.Models; -using Gauge.Dotnet.Wrappers; -using Gauge.CSharp.Lib.Attribute; - -namespace Gauge.Dotnet -{ - public class StepExecutor : MethodExecutor, IStepExecutor - { - private readonly IAssemblyLoader _assemblyLoader; - - public StepExecutor(IAssemblyLoader assemblyLoader, IReflectionWrapper reflectionWrapper, - object classInstanceMananger) : base( - assemblyLoader.ClassInstanceManagerType, - reflectionWrapper, classInstanceMananger) - { - _assemblyLoader = assemblyLoader; - } - - public ExecutionResult Execute(GaugeMethod gaugeMethod, params string[] args) - { - { - var method = gaugeMethod.MethodInfo; - var executionResult = new ExecutionResult - { - Success = true, - SkipScenario = false - }; - try - { - var parameters = args.Select(o => - { - try - { - return GetTable(o); - } - catch - { - return o; - } - }).ToArray(); - Logger.Debug($"Executing method: {gaugeMethod.Name}"); - Execute(method, StringParamConverter.TryConvertParams(method, parameters)); - executionResult.Success = true; - } - catch (Exception ex) - { - var baseException = ex.GetBaseException(); - if (baseException != null && - baseException.GetType().Name.Contains("SkipScenario", StringComparison.OrdinalIgnoreCase)) { - Logger.Debug($"Skipping scenario when executing method: {method.Name} : {baseException.Message}") ; - executionResult.ExceptionMessage = baseException.Message; - executionResult.StackTrace = baseException.StackTrace; - executionResult.Source = baseException.Source; - executionResult.Success = true; - executionResult.SkipScenario = true; - } - else { - Logger.Debug($"Error executing {method.Name} : {ex.Message}") ; - var innerException = ex.InnerException ?? ex; - executionResult.ExceptionMessage = innerException.Message; - executionResult.StackTrace = innerException is AggregateException - ? innerException.ToString() - : innerException.StackTrace; - executionResult.Source = innerException.Source; - executionResult.Recoverable = gaugeMethod.ContinueOnFailure; - executionResult.Success = false; - } - } - - return executionResult; - } - } - - private object GetTable(string jsonString) - { - var serializer = new DataContractJsonSerializer(_assemblyLoader.GetLibType(LibType.Table)); - using (var ms = new MemoryStream(Encoding.UTF8.GetBytes(jsonString))) - { - return serializer.ReadObject(ms); - } - } - } -} \ No newline at end of file diff --git a/src/Strategy/HooksStrategy.cs b/src/Strategy/HooksStrategy.cs index ebb80e2..eda3caa 100644 --- a/src/Strategy/HooksStrategy.cs +++ b/src/Strategy/HooksStrategy.cs @@ -5,40 +5,35 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; using Gauge.Dotnet.Models; -namespace Gauge.Dotnet.Strategy +namespace Gauge.Dotnet.Strategy; + +[Serializable] +public class HooksStrategy : IHooksStrategy { - [Serializable] - public class HooksStrategy : IHooksStrategy + public IEnumerable GetTaggedHooks(IEnumerable applicableTags, IList hooks) { - public IEnumerable GetTaggedHooks(IEnumerable applicableTags, IList hooks) - { - var tagsList = applicableTags.ToList(); - return from hookMethod in hooks.ToList() - where hookMethod.FilterTags != null && hookMethod.FilterTags.Any() - where - // TagAggregation.And=0, Or=1 - hookMethod.TagAggregation == 1 && hookMethod.FilterTags.Intersect(tagsList).Any() || - hookMethod.TagAggregation == 0 && hookMethod.FilterTags.All(tagsList.Contains) - orderby hookMethod.Method - select hookMethod.Method; - } + var tagsList = applicableTags.ToList(); + return from hookMethod in hooks.ToList() + where hookMethod.FilterTags != null && hookMethod.FilterTags.Any() + where + // TagAggregation.And=0, Or=1 + hookMethod.TagAggregation == 1 && hookMethod.FilterTags.Intersect(tagsList).Any() || + hookMethod.TagAggregation == 0 && hookMethod.FilterTags.All(tagsList.Contains) + orderby hookMethod.Method + select hookMethod.Method; + } - public virtual IEnumerable GetApplicableHooks(IEnumerable applicableTags, - IEnumerable hooks) - { - return GetUntaggedHooks(hooks); - } + public virtual IEnumerable GetApplicableHooks(IEnumerable applicableTags, IEnumerable hooks) + { + return GetUntaggedHooks(hooks); + } - protected IOrderedEnumerable GetUntaggedHooks(IEnumerable hookMethods) - { - return hookMethods.Where(method => method.FilterTags == null || !method.FilterTags.Any()) - .Select(method => method.Method) - .OrderBy(info => info); - } + protected IOrderedEnumerable GetUntaggedHooks(IEnumerable hookMethods) + { + return hookMethods.Where(method => method.FilterTags == null || !method.FilterTags.Any()) + .Select(method => method.Method) + .OrderBy(info => info); } } \ No newline at end of file diff --git a/src/Strategy/IHooksStrategy.cs b/src/Strategy/IHooksStrategy.cs index b8041db..b04fa63 100644 --- a/src/Strategy/IHooksStrategy.cs +++ b/src/Strategy/IHooksStrategy.cs @@ -5,14 +5,12 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; using Gauge.Dotnet.Models; -namespace Gauge.Dotnet.Strategy +namespace Gauge.Dotnet.Strategy; + +public interface IHooksStrategy { - public interface IHooksStrategy - { - IEnumerable GetTaggedHooks(IEnumerable applicableTags, IList hooks); - IEnumerable GetApplicableHooks(IEnumerable applicableTags, IEnumerable hooks); - } + IEnumerable GetTaggedHooks(IEnumerable applicableTags, IList hooks); + IEnumerable GetApplicableHooks(IEnumerable applicableTags, IEnumerable hooks); } \ No newline at end of file diff --git a/src/Strategy/TaggedHooksFirstStrategy.cs b/src/Strategy/TaggedHooksFirstStrategy.cs index 28d498a..bfaf320 100644 --- a/src/Strategy/TaggedHooksFirstStrategy.cs +++ b/src/Strategy/TaggedHooksFirstStrategy.cs @@ -5,24 +5,19 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; using Gauge.Dotnet.Models; -namespace Gauge.Dotnet.Strategy +namespace Gauge.Dotnet.Strategy; + +[Serializable] +public class TaggedHooksFirstStrategy : HooksStrategy { - [Serializable] - public class TaggedHooksFirstStrategy : HooksStrategy + public override IEnumerable GetApplicableHooks(IEnumerable applicableTags, IEnumerable hooks) { - public override IEnumerable GetApplicableHooks(IEnumerable applicableTags, - IEnumerable hooks) - { - var hookMethods = hooks as IList ?? hooks.ToList(); - var tags = applicableTags as IList ?? applicableTags.ToList(); - return tags.Any() - ? GetTaggedHooks(tags, hookMethods).Concat(GetUntaggedHooks(hookMethods)) - : GetUntaggedHooks(hookMethods); - } + var hookMethods = hooks as IList ?? hooks.ToList(); + var tags = applicableTags as IList ?? applicableTags.ToList(); + return tags.Any() + ? GetTaggedHooks(tags, hookMethods).Concat(GetUntaggedHooks(hookMethods)) + : GetUntaggedHooks(hookMethods); } } \ No newline at end of file diff --git a/src/Wrappers/ReflectionWrapper.cs b/src/Wrappers/ReflectionWrapper.cs index 48d85c3..eaf9dc7 100644 --- a/src/Wrappers/ReflectionWrapper.cs +++ b/src/Wrappers/ReflectionWrapper.cs @@ -5,39 +5,38 @@ *----------------------------------------------------------------*/ -using System; using System.Reflection; -namespace Gauge.Dotnet.Wrappers +namespace Gauge.Dotnet.Wrappers; + +public class ReflectionWrapper : IReflectionWrapper { - public class ReflectionWrapper : IReflectionWrapper + public MethodInfo GetMethod(Type type, string methodName) + { + return type.GetMethod(methodName); + } + + public MethodInfo[] GetMethods(Type type) + { + return type.GetMethods(); + } + + public object Invoke(MethodInfo method, object obj, params object[] args) + { + var result = method.Invoke(obj, args); + return result; + } + + public object InvokeMethod(Type type, object instance, string methodName, params object[] args) + { + var method = GetMethod(type, methodName); + return Invoke(method, instance, args); + } + + public object InvokeMethod(Type type, object instance, string methodName, BindingFlags bindingAttrs, + params object[] args) { - public MethodInfo GetMethod(Type type, string methodName) - { - return type.GetMethod(methodName); - } - - public MethodInfo[] GetMethods(Type type) - { - return type.GetMethods(); - } - - public object Invoke(MethodInfo method, object obj, params object[] args) - { - return method.Invoke(obj, args); - } - - public object InvokeMethod(Type type, object instance, string methodName, params object[] args) - { - var method = GetMethod(type, methodName); - return Invoke(method, instance, args); - } - - public object InvokeMethod(Type type, object instance, string methodName, BindingFlags bindingAttrs, - params object[] args) - { - var method = type.GetMethod(methodName, bindingAttrs); - return Invoke(method, instance, args); - } + var method = type.GetMethod(methodName, bindingAttrs); + return Invoke(method, instance, args); } } \ No newline at end of file diff --git a/src/dotnet.json b/src/dotnet.json index da2ab82..bb9fdff 100644 --- a/src/dotnet.json +++ b/src/dotnet.json @@ -1,6 +1,6 @@ { "id": "dotnet", - "version": "0.6.0", + "version": "0.7.0", "description": "C# support for gauge + .NET 6.0/7.0/8.0", "run": { "windows": [ @@ -31,7 +31,7 @@ ] }, "gaugeVersionSupport": { - "minimum": "1.0.6", + "minimum": "1.6.7", "maximum": "" }, "lspLangId": "csharp", diff --git a/test/AssemblyLoaderTests.cs b/test/AssemblyLoaderTests.cs index 0ec8651..55d6fb4 100644 --- a/test/AssemblyLoaderTests.cs +++ b/test/AssemblyLoaderTests.cs @@ -5,145 +5,139 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; using System.Reflection; using Gauge.Dotnet.Models; using Gauge.Dotnet.Wrappers; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +public class AssemblyLoaderTests { - [TestFixture] - public class AssemblyLoaderTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", TmpLocation); - _assemblyLocation = "/foo/location"; - _mockAssembly = new Mock(); - var mockActivationWrapper = new Mock(); - var mockStepAttributeType = new Mock(); - _mockStepMethod = new Mock(); - var mockStepAttribute = new Mock(); - _mockStepMethod.Setup(x => x.GetCustomAttributes(false)) - .Returns(new[] { mockStepAttribute.Object }); - mockStepAttributeType.Setup(x => x.IsInstanceOfType(mockStepAttribute.Object)) - .Returns(true); - mockStepAttributeType.Setup(x => x.FullName).Returns(LibType.Step.FullName()); - var mockIClassInstanceManagerType = new Mock(); - mockIClassInstanceManagerType.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.IClassInstanceManager"); - _mockInstanceManagerType = new Mock(); - _mockInstanceManagerType.Setup(type => type.GetInterfaces()) - .Returns(new[] { mockIClassInstanceManagerType.Object }); - _mockInstanceManagerType.Setup(x => x.Name) - .Returns("TestInstanceManager"); - - var mockIScreenshotWriter = new Mock(); - mockIScreenshotWriter.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.ICustomScreenshotWriter"); - _mockScreenshotWriterType = new Mock(); - _mockScreenshotWriterType.Setup(x => x.Name) - .Returns("TestScreenGrabber"); - _mockScreenshotWriterType.Setup(x => x.GetInterfaces()) - .Returns(new[] { mockIScreenshotWriter.Object }); - _assemblyName = new AssemblyName("Mock.Test.Assembly"); - _mockAssembly.Setup(assembly => assembly.ExportedTypes) - .Returns(new[] - { - mockStepAttributeType.Object, - _mockScreenshotWriterType.Object, - _mockInstanceManagerType.Object - }); - _mockAssembly.Setup(x => x.GetName()) - .Returns(_assemblyName); - var libAssemblyName = new AssemblyName("Gauge.CSharp.Lib"); - var mockGaugeScreenshotsType = new Mock(); - mockGaugeScreenshotsType.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.GaugeScreenshots"); - _mockAssembly.Setup(assembly => assembly.GetReferencedAssemblies()) - .Returns(new[] { libAssemblyName }); - _mockLibAssembly = new Mock(); - _mockLibAssembly.Setup(x => x.GetName()).Returns(libAssemblyName); - _mockLibAssembly.Setup(x => x.ExportedTypes) - .Returns(new[] { mockStepAttributeType.Object, mockGaugeScreenshotsType.Object }); - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper.Setup(r => r.GetMethods(mockStepAttributeType.Object)) - .Returns(new[] { _mockStepMethod.Object }); - var mockScreenshotWriter = new Mock(); - mockActivationWrapper.Setup(x => x.CreateInstance(_mockScreenshotWriterType.Object)).Returns(mockScreenshotWriter); - mockReflectionWrapper.Setup(x => x.InvokeMethod(mockGaugeScreenshotsType.Object, null, "RegisterCustomScreenshotWriter", - BindingFlags.Static | BindingFlags.Public, new[] { mockScreenshotWriter })); - _mockGaugeLoadContext = new Mock(); - _mockGaugeLoadContext.Setup(x => x.LoadFromAssemblyName(It.Is(x => x.FullName == _assemblyName.FullName))) - .Returns(_mockAssembly.Object); - _mockGaugeLoadContext.Setup(x => x.LoadFromAssemblyName(It.Is(x => x.FullName == libAssemblyName.FullName))) - .Returns(_mockLibAssembly.Object); - _mockGaugeLoadContext.Setup(x => x.GetAssembliesReferencingGaugeLib()) - .Returns(new[] { _mockAssembly.Object }); - _assemblyLoader = new AssemblyLoader(Path.Combine(_assemblyLocation, "Mock.Test.Assembly.dll"), _mockGaugeLoadContext.Object, - mockReflectionWrapper.Object, mockActivationWrapper.Object, new StepRegistry()); - } + _assemblyLocation = "/foo/location"; + _mockAssembly = new Mock(); + var mockActivationWrapper = new Mock(); + var mockStepAttributeType = new Mock(); + _mockStepMethod = new Mock(); + var mockStepAttribute = new Mock(); + _mockStepMethod.Setup(x => x.GetCustomAttributes(It.IsAny())) + .Returns((new List { mockStepAttribute.Object }).ToArray()); + _mockStepMethod.Setup(x => x.GetCustomAttributes(It.IsAny(), It.IsAny())) + .Returns((new List { mockStepAttribute.Object }).ToArray()); + mockStepAttributeType.Setup(x => x.IsInstanceOfType(mockStepAttribute.Object)) + .Returns(true); + mockStepAttributeType.Setup(x => x.FullName).Returns(LibType.Step.FullName()); + var mockIClassInstanceManagerType = new Mock(); + mockIClassInstanceManagerType.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.IClassInstanceManager"); + _mockInstanceManagerType = new Mock(); + _mockInstanceManagerType.Setup(type => type.GetInterfaces()) + .Returns(new[] { mockIClassInstanceManagerType.Object }); + _mockInstanceManagerType.Setup(x => x.Name) + .Returns("TestInstanceManager"); - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } + var mockIScreenshotWriter = new Mock(); + mockIScreenshotWriter.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.ICustomScreenshotWriter"); + _mockScreenshotWriterType = new Mock(); + _mockScreenshotWriterType.Setup(x => x.Name) + .Returns("TestScreenGrabber"); + _mockScreenshotWriterType.Setup(x => x.GetInterfaces()) + .Returns(new[] { mockIScreenshotWriter.Object }); + _assemblyName = new AssemblyName("Mock.Test.Assembly"); + _mockAssembly.Setup(assembly => assembly.ExportedTypes) + .Returns(new[] + { + mockStepAttributeType.Object, + _mockScreenshotWriterType.Object, + _mockInstanceManagerType.Object + }); + _mockAssembly.Setup(x => x.GetName()) + .Returns(_assemblyName); + var libAssemblyName = new AssemblyName("Gauge.CSharp.Lib"); + var mockGaugeScreenshotsType = new Mock(); + mockGaugeScreenshotsType.Setup(x => x.FullName).Returns("Gauge.CSharp.Lib.GaugeScreenshots"); + _mockAssembly.Setup(assembly => assembly.GetReferencedAssemblies()) + .Returns([libAssemblyName]); + _mockLibAssembly = new Mock(); + _mockLibAssembly.Setup(x => x.GetName()).Returns(libAssemblyName); + _mockLibAssembly.Setup(x => x.ExportedTypes) + .Returns(new[] { mockStepAttributeType.Object, mockGaugeScreenshotsType.Object }); + var mockReflectionWrapper = new Mock(); + mockReflectionWrapper.Setup(r => r.GetMethods(mockStepAttributeType.Object)) + .Returns([_mockStepMethod.Object]); + var mockScreenshotWriter = new Mock(); + mockActivationWrapper.Setup(x => x.CreateInstance(_mockScreenshotWriterType.Object)).Returns(mockScreenshotWriter); + mockReflectionWrapper.Setup(x => x.InvokeMethod(mockGaugeScreenshotsType.Object, null, "RegisterCustomScreenshotWriter", + BindingFlags.Static | BindingFlags.Public, new[] { mockScreenshotWriter })); + _mockGaugeLoadContext = new Mock(); + _mockGaugeLoadContext.Setup(x => x.LoadFromAssemblyName(It.Is(x => x.FullName == _assemblyName.FullName))) + .Returns(_mockAssembly.Object); + _mockGaugeLoadContext.Setup(x => x.LoadFromAssemblyName(It.Is(x => x.FullName == libAssemblyName.FullName))) + .Returns(_mockLibAssembly.Object); + _mockGaugeLoadContext.Setup(x => x.GetAssembliesReferencingGaugeLib()) + .Returns(new[] { _mockAssembly.Object }); + var mockAssemblyLocator = new Mock(); + mockAssemblyLocator.Setup(x => x.GetTestAssembly()).Returns(Path.Combine(_assemblyLocation, "Mock.Test.Assembly.dll")); + var mockLogger = new Mock>(); + _assemblyLoader = new AssemblyLoader(mockAssemblyLocator.Object, _mockGaugeLoadContext.Object, + mockReflectionWrapper.Object, mockActivationWrapper.Object, new StepRegistry(), mockLogger.Object); + } - private string _assemblyLocation; + private string _assemblyLocation; - private AssemblyName _assemblyName; - private Mock _mockAssembly; - private Mock _mockLibAssembly; - private AssemblyLoader _assemblyLoader; - private Mock _mockGaugeLoadContext; - private Mock _mockInstanceManagerType; - private Mock _mockScreenshotWriterType; - private Mock _mockStepMethod; - private const string TmpLocation = "/tmp/location"; + private AssemblyName _assemblyName; + private Mock _mockAssembly; + private Mock _mockLibAssembly; + private AssemblyLoader _assemblyLoader; + private Mock _mockGaugeLoadContext; + private Mock _mockInstanceManagerType; + private Mock _mockScreenshotWriterType; + private Mock _mockStepMethod; + private const string TmpLocation = "/tmp/location"; - [Test] - public void ShouldGetAssemblyReferencingGaugeLib() - { - ClassicAssert.Contains(_mockAssembly.Object, _assemblyLoader.AssembliesReferencingGaugeLib); - } + [Test] + public void ShouldGetAssemblyReferencingGaugeLib() + { + ClassicAssert.Contains(_mockAssembly.Object, _assemblyLoader.AssembliesReferencingGaugeLib); + } - [Test] - public void ShouldGetClassInstanceManagerType() - { - ClassicAssert.AreEqual(_mockInstanceManagerType.Object.Name, _assemblyLoader.ClassInstanceManagerType.Name); - } + [Test] + public void ShouldGetClassInstanceManagerType() + { + ClassicAssert.AreEqual(_mockInstanceManagerType.Object.Name, _assemblyLoader.ClassInstanceManagerType.Name); + } - [Test] - public void ShouldGetMethodsForGaugeAttribute() - { - ClassicAssert.Contains(_mockStepMethod.Object, _assemblyLoader.GetMethods(LibType.Step).ToList()); - } + [Test] + public void ShouldGetMethodsForGaugeAttribute() + { + ClassicAssert.Contains(_mockStepMethod.Object, _assemblyLoader.GetMethods(LibType.Step).ToList()); + } - [Test] - public void ShouldGetScreenGrabberType() - { - ClassicAssert.AreEqual(_mockScreenshotWriterType.Object.Name, _assemblyLoader.ScreenshotWriter.Name); - } + [Test] + public void ShouldGetScreenGrabberType() + { + ClassicAssert.AreEqual(_mockScreenshotWriterType.Object.Name, _assemblyLoader.ScreenshotWriter.Name); + } - [Test] - public void ShouldGetTargetAssembly() - { - _mockGaugeLoadContext.Verify(x => x.LoadFromAssemblyName(It.Is(a => a.FullName == _assemblyName.FullName))); - } + [Test] + public void ShouldGetTargetAssembly() + { + _mockGaugeLoadContext.Verify(x => x.LoadFromAssemblyName(It.Is(a => a.FullName == _assemblyName.FullName))); + } - [Test] - public void ShouldThrowExceptionWhenLibAssemblyNotFound() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", TmpLocation); - var mockReflectionWrapper = new Mock(); - var mockActivationWrapper = new Mock(); - var mockGaugeLoadContext = new Mock(); - ClassicAssert.Throws(() => new AssemblyLoader(Path.Combine(TmpLocation, $"{_mockLibAssembly.Name}.dll"), mockGaugeLoadContext.Object, - mockReflectionWrapper.Object, mockActivationWrapper.Object, new StepRegistry())); - } + [Test] + public void ShouldThrowExceptionWhenLibAssemblyNotFound() + { + var mockLogger = new Mock>(); + var mockReflectionWrapper = new Mock(); + var mockActivationWrapper = new Mock(); + var mockGaugeLoadContext = new Mock(); + var mockAssemblyLocator = new Mock(); + mockAssemblyLocator.Setup(x => x.GetTestAssembly()).Returns(Path.Combine(TmpLocation, $"{_mockLibAssembly.Name}.dll")); + Assert.Throws(() => new AssemblyLoader(mockAssemblyLocator.Object, mockGaugeLoadContext.Object, + mockReflectionWrapper.Object, mockActivationWrapper.Object, new StepRegistry(), mockLogger.Object)); } } \ No newline at end of file diff --git a/test/AssemblyLocaterTests.cs b/test/AssemblyLocaterTests.cs index f79f8da..36a75b4 100644 --- a/test/AssemblyLocaterTests.cs +++ b/test/AssemblyLocaterTests.cs @@ -5,44 +5,38 @@ *----------------------------------------------------------------*/ -using System; -using System.IO; -using System.Linq; -using Gauge.CSharp.Core; using Gauge.Dotnet.Exceptions; +using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Wrappers; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; namespace Gauge.Dotnet.UnitTests { [TestFixture] internal class AssemblyLocaterTests { + private readonly Mock _mockDirectoryWrapper = new Mock(); + private string _rootDirectory; + private IConfiguration _config; + [SetUp] public void Setup() { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", Directory.GetCurrentDirectory()); + _rootDirectory = Directory.GetCurrentDirectory(); + _config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", _rootDirectory } }) + .Build(); } - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } - - private readonly Mock _mockDirectoryWrapper = new Mock(); - [Test] public void ShouldGetAssembliesFromGaugeBin() { var expected = "fooAssemblyLocation"; var expectedAssemblies = new[] { $"{expected}.deps.json" }; _mockDirectoryWrapper.Setup(wrapper => - wrapper.EnumerateFiles(Utils.GetGaugeBinDir(), "*.deps.json", SearchOption.TopDirectoryOnly)) + wrapper.EnumerateFiles(_config.GetGaugeBinDir(), "*.deps.json", SearchOption.TopDirectoryOnly)) .Returns(expectedAssemblies); - var assemblyLocater = new AssemblyLocater(_mockDirectoryWrapper.Object); + var assemblyLocater = new AssemblyLocater(_mockDirectoryWrapper.Object, _config); var assembly = assemblyLocater.GetTestAssembly(); @@ -53,11 +47,11 @@ public void ShouldGetAssembliesFromGaugeBin() public void ShouldNotAddAssembliesFromInvalidFile() { _mockDirectoryWrapper.Setup(wrapper => - wrapper.EnumerateFiles(Utils.GetGaugeBinDir(), "*.deps.json", SearchOption.TopDirectoryOnly)) + wrapper.EnumerateFiles(_config.GetGaugeBinDir(), "*.deps.json", SearchOption.TopDirectoryOnly)) .Returns(Enumerable.Empty()); var expectedMessage = $"Could not locate the target test assembly. Gauge-Dotnet could not find a deps.json file in {Directory.GetCurrentDirectory()}"; - ClassicAssert.Throws(() => new AssemblyLocater(_mockDirectoryWrapper.Object).GetTestAssembly(), expectedMessage); + ClassicAssert.Throws(() => new AssemblyLocater(_mockDirectoryWrapper.Object, _config).GetTestAssembly(), expectedMessage); } } } \ No newline at end of file diff --git a/test/ExecutionInfoMapperTests.cs b/test/ExecutionInfoMapperTests.cs index 5d5e18f..b691b39 100644 --- a/test/ExecutionInfoMapperTests.cs +++ b/test/ExecutionInfoMapperTests.cs @@ -1,96 +1,100 @@ -using NUnit.Framework; -using Moq; -using Gauge.Messages; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Wrappers; -using Gauge.CSharp.Lib; -using System.Linq; -using System.Collections.Generic; +using Gauge.Messages; + +namespace Gauge.Dotnet.UnitTests; -namespace Gauge.Dotnet.UnitTests +[TestFixture] +public class ExecutionInfoMapperTests { - [TestFixture] - public class ExecutionInfoMapperTests - { - private ExecutionInfo executionInfo; - private Mock mockAssemblyLoader; + private ExecutionInfo executionInfo; + private Mock mockAssemblyLoader; - [SetUp] - public void Setup() + [SetUp] + public void Setup() + { + mockAssemblyLoader = new Mock(); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ExecutionContext)).Returns(typeof(CSharp.Lib.ExecutionContext)); + executionInfo = new ExecutionInfo { - mockAssemblyLoader = new Mock(); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ExecutionContext)).Returns(typeof(ExecutionContext)); - executionInfo = new ExecutionInfo { - CurrentScenario = new ScenarioInfo{IsFailed = true, Name = "Dummy Scenario", - Retries = new ScenarioRetriesInfo{MaxRetries = 0, CurrentRetry = 0} }, - CurrentSpec = new SpecInfo {FileName = "dummy.spec", Name = "Dummy Spec", IsFailed = true}, - CurrentStep = new StepInfo {IsFailed = true, ErrorMessage = "Dummy Error", StackTrace = "Dummy Stacktrace", - Step = new ExecuteStepRequest {ActualStepText = "Dummy Step Text"} - } - }; - } + CurrentScenario = new ScenarioInfo + { + IsFailed = true, + Name = "Dummy Scenario", + Retries = new ScenarioRetriesInfo { MaxRetries = 0, CurrentRetry = 0 } + }, + CurrentSpec = new SpecInfo { FileName = "dummy.spec", Name = "Dummy Spec", IsFailed = true }, + CurrentStep = new StepInfo + { + IsFailed = true, + ErrorMessage = "Dummy Error", + StackTrace = "Dummy Stacktrace", + Step = new ExecuteStepRequest { ActualStepText = "Dummy Step Text" } + } + }; + } - [Test] - public void ShouldMapSpecInfo() - { - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.Specification), - executionInfo.CurrentSpec.Name, executionInfo.CurrentSpec.FileName, executionInfo.CurrentSpec.IsFailed, - executionInfo.CurrentSpec.Tags.ToArray())).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapSpecInfo() + { + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.Specification), + executionInfo.CurrentSpec.Name, executionInfo.CurrentSpec.FileName, executionInfo.CurrentSpec.IsFailed, + executionInfo.CurrentSpec.Tags.ToArray())).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); + } - [Test] - public void ShouldMapNullSpecInfo() - { - executionInfo.CurrentSpec = null; - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.Specification))).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapNullSpecInfo() + { + executionInfo.CurrentSpec = null; + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.Specification))).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); + } - [Test] - public void ShouldMapScenarioInfo() - { - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.Scenario), - executionInfo.CurrentScenario.Name, executionInfo.CurrentScenario.IsFailed, - executionInfo.CurrentScenario.Tags.ToArray(), - executionInfo.CurrentScenario.Retries.MaxRetries, executionInfo.CurrentScenario.Retries.CurrentRetry)).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapScenarioInfo() + { + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.Scenario), + executionInfo.CurrentScenario.Name, executionInfo.CurrentScenario.IsFailed, + executionInfo.CurrentScenario.Tags.ToArray(), + executionInfo.CurrentScenario.Retries.MaxRetries, executionInfo.CurrentScenario.Retries.CurrentRetry)).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); + } - [Test] - public void ShouldMapNullScenarioInfo() - { - executionInfo.CurrentScenario = null; - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.Scenario))).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapNullScenarioInfo() + { + executionInfo.CurrentScenario = null; + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.Scenario))).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); + } - [Test] - public void ShouldMapStepDetails() - { - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.StepDetails), - executionInfo.CurrentStep.Step.ActualStepText, executionInfo.CurrentStep.IsFailed, - executionInfo.CurrentStep.StackTrace, executionInfo.CurrentStep.ErrorMessage, new List>())).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapStepDetails() + { + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.StepDetails), + executionInfo.CurrentStep.Step.ActualStepText, executionInfo.CurrentStep.IsFailed, + executionInfo.CurrentStep.StackTrace, executionInfo.CurrentStep.ErrorMessage, new List>())).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); + } - [Test] - public void ShouldMapNullStepDetails() - { - executionInfo.CurrentStep = null; - var mockActivatorWrapper = new Mock(); - mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(ExecutionContext.StepDetails))).Verifiable(); - new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); - mockActivatorWrapper.VerifyAll(); - } + [Test] + public void ShouldMapNullStepDetails() + { + executionInfo.CurrentStep = null; + var mockActivatorWrapper = new Mock(); + mockActivatorWrapper.Setup(x => x.CreateInstance(typeof(CSharp.Lib.ExecutionContext.StepDetails))).Verifiable(); + new ExecutionInfoMapper(mockAssemblyLoader.Object, mockActivatorWrapper.Object).ExecutionContextFrom(executionInfo); + mockActivatorWrapper.VerifyAll(); } } \ No newline at end of file diff --git a/test/ExecutionOrchestratorTests.cs b/test/ExecutionOrchestratorTests.cs index eadaaf2..ba9b516 100644 --- a/test/ExecutionOrchestratorTests.cs +++ b/test/ExecutionOrchestratorTests.cs @@ -5,239 +5,228 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; using System.Reflection; -using System.Threading; -using Gauge.CSharp.Core; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Strategy; using Gauge.Dotnet.Wrappers; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +public class ExecutionOrchestratorTests { - [TestFixture] - public class ExecutionOrchestratorTests + private readonly Mock> _logger = new(); + private IConfiguration _config; + + [SetUp] + public void Setup() { - [SetUp] - public void Setup() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", - Directory.GetDirectoryRoot(Assembly.GetExecutingAssembly().Location)); - } + _config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", Directory.GetDirectoryRoot(Assembly.GetExecutingAssembly().Location) } }) + .Build(); + } - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } + [Test] + public async Task ShouldExecuteHooks() + { + var pendingMessages = new List { "Foo", "Bar" }; + var pendingScreenshots = new List { "screenshot.png" }; + var executionResult = new ExecutionResult { Success = true }; + var mockReflectionWrapper = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockClassInstanceManager = new Mock().Object; + var hooksStrategy = new HooksStrategy(); + var mockHookExecuter = new Mock(); + mockHookExecuter.Setup(m => + m.Execute("hooks", hooksStrategy, new List(), It.IsAny(), It.IsAny()) + ).ReturnsAsync(executionResult).Verifiable(); + var mockStepExecuter = new Mock(); + var reflectionWrapper = mockReflectionWrapper.Object; + var mockType = new Mock().Object; + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) + .Returns(pendingMessages); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) + .Returns(pendingScreenshots); + var assemblyLoader = mockAssemblyLoader.Object; + var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + mockHookExecuter.Object, mockStepExecuter.Object, _config, _logger.Object); + + var result = await executionOrchestrator.ExecuteHooks("hooks", hooksStrategy, new List(), 1, It.IsAny()); + + mockHookExecuter.VerifyAll(); + ClassicAssert.False(result.Failed); + } - [Test] - public void ShouldExecuteHooks() - { - var pendingMessages = new List { "Foo", "Bar" }; - var pendingScreenshots = new List { "screenshot.png" }; - var executionResult = new ExecutionResult { Success = true }; - var mockReflectionWrapper = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockClassInstanceManager = new Mock().Object; - var hooksStrategy = new HooksStrategy(); - var mockHookExecuter = new Mock(); - mockHookExecuter.Setup(m => - m.Execute("hooks", hooksStrategy, new List(), It.IsAny()) - ).Returns(executionResult).Verifiable(); - var mockStepExecuter = new Mock(); - var reflectionWrapper = mockReflectionWrapper.Object; - var mockType = new Mock().Object; - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) - .Returns(pendingMessages); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) - .Returns(pendingScreenshots); - var assemblyLoader = mockAssemblyLoader.Object; - var executionOrchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - mockClassInstanceManager, mockHookExecuter.Object, mockStepExecuter.Object); - - var result = executionOrchestrator.ExecuteHooks("hooks", hooksStrategy, new List(), - It.IsAny()); - - mockHookExecuter.VerifyAll(); - ClassicAssert.False(result.Failed); - } - - [Test] - public void ShouldExecuteHooksAndNotTakeScreenshotOnFailureWhenDisabled() - { - var pendingMessages = new List { "Foo", "Bar" }; - var pendingScreenshots = new List { "screenshot.png" }; - var hooksStrategy = new HooksStrategy(); - var executionResult = new ExecutionResult - { - Success = false, - ExceptionMessage = "Some Error", - StackTrace = "StackTrace" - }; - var mockClassInstanceManager = new Mock().Object; - var mockReflectionWrapper = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockHookExecuter = new Mock(); - var mockStepExecuter = new Mock(); - var reflectionWrapper = mockReflectionWrapper.Object; - var assemblyLoader = mockAssemblyLoader.Object; - var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, - mockClassInstanceManager, - mockHookExecuter.Object, mockStepExecuter.Object); - mockHookExecuter.Setup(executor => - executor.Execute("hooks", hooksStrategy, new List(), It.IsAny()) - ).Returns(executionResult).Verifiable(); - var mockType = new Mock().Object; - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) - .Returns(pendingMessages); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) - .Returns(pendingScreenshots); - - var screenshotEnabled = Utils.TryReadEnvValue("SCREENSHOT_ON_FAILURE"); - Environment.SetEnvironmentVariable("SCREENSHOT_ON_FAILURE", "false"); - - var result = orchestrator.ExecuteHooks("hooks", hooksStrategy, new List(), - It.IsAny()); - - mockHookExecuter.VerifyAll(); - ClassicAssert.True(result.Failed); - ClassicAssert.True(string.IsNullOrEmpty(result.FailureScreenshotFile)); - Environment.SetEnvironmentVariable("SCREENSHOT_ON_FAILURE", screenshotEnabled); - } - - [Test] - public void ShouldExecuteMethod() + [Test] + public async Task ShouldExecuteHooksAndNotTakeScreenshotOnFailureWhenDisabled() + { + _config["SCREENSHOT_ON_FAILURE"] = "false"; + var pendingMessages = new List { "Foo", "Bar" }; + var pendingScreenshots = new List { "screenshot.png" }; + var hooksStrategy = new HooksStrategy(); + var executionResult = new ExecutionResult { - var pendingMessages = new List { "Foo", "Bar" }; - var pendingScreenshots = new List { "screenshot.png" }; - var gaugeMethod = new GaugeMethod { Name = "ShouldExecuteMethod", ParameterCount = 1 }; - var args = new[] { "Bar", "String" }; - - var mockClassInstanceManager = new Mock().Object; - var mockReflectionWrapper = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockHookExecuter = new Mock(); - var mockStepExecutor = new Mock(); - - mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny())) - .Returns(() => new ExecutionResult { Success = true }) - .Callback(() => Thread.Sleep(1)); // Simulate a delay in method execution - - var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, - mockClassInstanceManager, mockHookExecuter.Object, mockStepExecutor.Object); - - var mockType = new Mock().Object; - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) - .Returns(pendingMessages); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) - .Returns(pendingScreenshots); - var result = orchestrator.ExecuteStep(gaugeMethod, args); - mockStepExecutor.VerifyAll(); - ClassicAssert.False(result.Failed); - ClassicAssert.True(result.ExecutionTime > 0); - } - - [Test] - public void ShouldNotTakeScreenShotWhenDisabled() + Success = false, + ExceptionMessage = "Some Error", + StackTrace = "StackTrace" + }; + var mockClassInstanceManager = new Mock().Object; + var mockReflectionWrapper = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockHookExecuter = new Mock(); + var mockStepExecuter = new Mock(); + var reflectionWrapper = mockReflectionWrapper.Object; + var assemblyLoader = mockAssemblyLoader.Object; + var orchestrator = new ExecutionOrchestrator(reflectionWrapper, assemblyLoader, + mockHookExecuter.Object, mockStepExecuter.Object, _config, _logger.Object); + mockHookExecuter.Setup(executor => + executor.Execute("hooks", hooksStrategy, new List(), It.IsAny(), It.IsAny()) + ).ReturnsAsync(executionResult).Verifiable(); + var mockType = new Mock().Object; + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) + .Returns(pendingMessages); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) + .Returns(pendingScreenshots); + + var result = await orchestrator.ExecuteHooks("hooks", hooksStrategy, new List(), 1, It.IsAny()); + + mockHookExecuter.VerifyAll(); + ClassicAssert.True(result.Failed); + ClassicAssert.True(string.IsNullOrEmpty(result.FailureScreenshotFile)); + } + + [Test] + public async Task ShouldExecuteMethod() + { + var pendingMessages = new List { "Foo", "Bar" }; + var pendingScreenshots = new List { "screenshot.png" }; + var gaugeMethod = new GaugeMethod { Name = "ShouldExecuteMethod", ParameterCount = 1 }; + var args = new[] { "Bar", "String" }; + + var mockClassInstanceManager = new Mock().Object; + var mockReflectionWrapper = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockHookExecuter = new Mock(); + var mockStepExecutor = new Mock(); + + mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny(), It.IsAny())) + .ReturnsAsync(() => new ExecutionResult { Success = true }) + .Callback(() => Thread.Sleep(1)); // Simulate a delay in method execution + + var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, + mockHookExecuter.Object, mockStepExecutor.Object, _config, _logger.Object); + + var mockType = new Mock().Object; + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) + .Returns(pendingMessages); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) + .Returns(pendingScreenshots); + var result = await orchestrator.ExecuteStep(gaugeMethod, 1, args); + mockStepExecutor.VerifyAll(); + ClassicAssert.False(result.Failed); + ClassicAssert.True(result.ExecutionTime > 0); + } + + [Test] + public async Task ShouldNotTakeScreenShotWhenDisabled() + { + _config["SCREENSHOT_ON_FAILURE"] = "false"; + + var pendingMessages = new List { "Foo", "Bar" }; + var pendingScreenshots = new List { "screenshot.png" }; + var gaugeMethod = new GaugeMethod { Name = "ShouldNotTakeScreenShotWhenDisabled", ParameterCount = 1 }; + + var executionResult = new ExecutionResult { - var pendingMessages = new List { "Foo", "Bar" }; - var pendingScreenshots = new List { "screenshot.png" }; - var gaugeMethod = new GaugeMethod { Name = "ShouldNotTakeScreenShotWhenDisabled", ParameterCount = 1 }; - - var executionResult = new ExecutionResult - { - Success = false, - ExceptionMessage = "Some Error", - StackTrace = "StackTrace" - }; - var mockClassInstanceManager = new Mock().Object; - var mockReflectionWrapper = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockHookExecuter = new Mock(); - var mockStepExecutor = new Mock(); - mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny())) - .Returns(executionResult); - var mockType = new Mock().Object; - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) - .Returns(pendingMessages); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) - .Returns(pendingScreenshots); - - var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, - mockClassInstanceManager, mockHookExecuter.Object, mockStepExecutor.Object); - - var screenshotEnabled = Utils.TryReadEnvValue("SCREENSHOT_ON_FAILURE"); - Environment.SetEnvironmentVariable("SCREENSHOT_ON_FAILURE", "false"); - - var result = orchestrator.ExecuteStep(gaugeMethod, "Bar", "string"); - - mockStepExecutor.VerifyAll(); - ClassicAssert.True(string.IsNullOrEmpty(result.FailureScreenshotFile)); - Environment.SetEnvironmentVariable("SCREENSHOT_ON_FAILURE", screenshotEnabled); - } - - [Test] - public void ShouldTakeScreenShotOnFailedExecution() + Success = false, + ExceptionMessage = "Some Error", + StackTrace = "StackTrace" + }; + var mockClassInstanceManager = new Mock().Object; + var mockReflectionWrapper = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockHookExecuter = new Mock(); + var mockStepExecutor = new Mock(); + mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny(), It.IsAny())) + .ReturnsAsync(executionResult); + var mockType = new Mock().Object; + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) + .Returns(pendingMessages); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) + .Returns(pendingScreenshots); + + var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, + mockHookExecuter.Object, mockStepExecutor.Object, _config, _logger.Object); + + var result = await orchestrator.ExecuteStep(gaugeMethod, 1, "Bar", "string"); + + mockStepExecutor.VerifyAll(); + ClassicAssert.True(string.IsNullOrEmpty(result.FailureScreenshotFile)); + } + + [Test] + public async Task ShouldTakeScreenShotOnFailedExecution() + { + var pendingMessages = new List { "Foo", "Bar" }; + var expectedScreenshot = "Testscreenshot.png"; + var pendingScreenshots = new List { expectedScreenshot }; + var gaugeMethod = new GaugeMethod { Name = "ShouldExecuteMethod", ParameterCount = 1 }; + var executionResult = new ExecutionResult { - var pendingMessages = new List { "Foo", "Bar" }; - var expectedScreenshot = "Testscreenshot.png"; - var pendingScreenshots = new List { expectedScreenshot }; - var gaugeMethod = new GaugeMethod { Name = "ShouldExecuteMethod", ParameterCount = 1 }; - var executionResult = new ExecutionResult - { - Success = false, - ExceptionMessage = "error", - StackTrace = "stacktrace" - }; - var mockInstance = new Mock().Object; - var mockAssemblyLoader = new Mock(); - var mockReflectionWrapper = new Mock(); - var mockHookExecuter = new Mock(); - var mockStepExecutor = new Mock(); - mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny())) - .Returns(executionResult).Verifiable(); - var mockType = new Mock().Object; - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) - .Returns(pendingMessages); - mockReflectionWrapper.Setup(x => - x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) - .Returns(pendingScreenshots); - - var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, - mockInstance, mockHookExecuter.Object, mockStepExecutor.Object); - - var result = orchestrator.ExecuteStep(gaugeMethod, "Bar", "String"); - mockStepExecutor.VerifyAll(); - - - ClassicAssert.True(result.Failed); - ClassicAssert.AreEqual(expectedScreenshot, result.FailureScreenshotFile); - } + Success = false, + ExceptionMessage = "error", + StackTrace = "stacktrace" + }; + var mockInstance = new Mock().Object; + var mockAssemblyLoader = new Mock(); + var mockReflectionWrapper = new Mock(); + var mockHookExecuter = new Mock(); + var mockStepExecutor = new Mock(); + mockStepExecutor.Setup(executor => executor.Execute(gaugeMethod, It.IsAny(), It.IsAny())) + .ReturnsAsync(executionResult).Verifiable(); + var mockType = new Mock().Object; + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)).Returns(mockType); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockInstance); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingMessages", It.IsAny())) + .Returns(pendingMessages); + mockReflectionWrapper.Setup(x => + x.InvokeMethod(mockType, null, "GetAllPendingScreenshotFiles", It.IsAny())) + .Returns(pendingScreenshots); + + var orchestrator = new ExecutionOrchestrator(mockReflectionWrapper.Object, mockAssemblyLoader.Object, + mockHookExecuter.Object, mockStepExecutor.Object, _config, _logger.Object); + + var result = await orchestrator.ExecuteStep(gaugeMethod, 1, "Bar", "String"); + mockStepExecutor.VerifyAll(); + + + ClassicAssert.True(result.Failed); + ClassicAssert.AreEqual(expectedScreenshot, result.FailureScreenshotFile); } } \ No newline at end of file diff --git a/test/Gauge.Dotnet.UnitTests.csproj b/test/Gauge.Dotnet.UnitTests.csproj index c982e1b..fc94e99 100644 --- a/test/Gauge.Dotnet.UnitTests.csproj +++ b/test/Gauge.Dotnet.UnitTests.csproj @@ -1,18 +1,19 @@  - - net8.0 - + + net8.0 + enable + - - - - - - + + + + + + - - - + + + diff --git a/test/GaugeCommandFactoryTests.cs b/test/GaugeCommandFactoryTests.cs deleted file mode 100644 index f35d042..0000000 --- a/test/GaugeCommandFactoryTests.cs +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.IO; -using NUnit.Framework; -using NUnit.Framework.Legacy; - -namespace Gauge.Dotnet.UnitTests -{ - [TestFixture] - public class GaugeCommandFactoryTests - { - [SetUp] - public void Setup() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", Directory.GetCurrentDirectory()); - } - - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } - - [Test] - public void ShouldGetSetupPhaseExecutorForInit() - { - var command = GaugeCommandFactory.GetExecutor("--init"); - ClassicAssert.AreEqual(command.GetType(), typeof(SetupCommand)); - } - - [Test] - public void ShouldGetStartPhaseExecutorByDefault() - { - var command = GaugeCommandFactory.GetExecutor(default(string)); - ClassicAssert.AreEqual(command.GetType(), typeof(StartCommand)); - } - } -} \ No newline at end of file diff --git a/test/HookExecutorTests.cs b/test/HookExecutorTests.cs index 9732c92..f0f33a5 100644 --- a/test/HookExecutorTests.cs +++ b/test/HookExecutorTests.cs @@ -5,137 +5,117 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Reflection; -using System.Threading; +using Gauge.CSharp.Lib; +using Gauge.Dotnet.Executors; +using Gauge.Dotnet.Models; using Gauge.Dotnet.Strategy; using Gauge.Dotnet.UnitTests.Helpers; -using Gauge.Dotnet.Wrappers; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Logging; using ExecutionContext = Gauge.CSharp.Lib.ExecutionContext; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +internal class HookExecutorTests { - [TestFixture] - internal class HookExecutorTests + private readonly Mock> mockLogger = new(); + + [Test] + public async Task ShoudExecuteHooks() + { + var mockClassInstanceManager = new Mock(); + var mockHookRegistry = new Mock(); + var mockLogger = new Mock>(); + + var mockAssemblyLoader = new Mock(); + var type = LibType.BeforeSuite; + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName($"{type}Hook") + .WithFilteredHook(type) + .WithDeclaringTypeName("my.foo.type") + .WithNoParameters() + .Build(); + var method = new HookMethod(type, methodInfo, mockAssemblyLoader.Object); + mockHookRegistry.Setup(x => x.BeforeSuiteHooks).Returns(new HashSet { method }); + mockHookRegistry.Setup(x => x.MethodFor($"my.foo.type.{type}Hook")).Returns(methodInfo); + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager.Object); + + var mockExecutionInfoMapper = new Mock(); + mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(It.IsAny())).Returns(new { }); + + var executor = new HookExecutor(mockAssemblyLoader.Object, mockExecutionInfoMapper.Object, mockHookRegistry.Object, mockLogger.Object); + + var result = await executor.Execute("BeforeSuite", new HooksStrategy(), new List(), 1, new ExecutionInfo()); + ClassicAssert.True(result.Success, $"Hook execution failed: {result.ExceptionMessage}\n{result.StackTrace}"); + } + + [Test] + public async Task ShoudExecuteHooksWithExecutionContext() + { + var mockClassInstanceManager = new Mock(); + var mockHookRegistry = new Mock(); + + var mockAssemblyLoader = new Mock(); + var type = LibType.BeforeSuite; + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName($"{type}Hook") + .WithFilteredHook(type) + .WithDeclaringTypeName("my.foo.type") + .WithParameters(new KeyValuePair(typeof(ExecutionContext), "context")) + .Build(); + var method = new HookMethod(type, methodInfo, mockAssemblyLoader.Object); + mockHookRegistry.Setup(x => x.BeforeSuiteHooks).Returns(new HashSet { method }); + mockHookRegistry.Setup(x => x.MethodFor($"my.foo.type.BeforeSuiteHook-ExecutionContextcontext")).Returns(methodInfo); + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager.Object); + + var executionInfo = new ExecutionInfo(); + var expectedExecutionInfo = new ExecutionContext(); + + var mockExecutionInfoMapper = new Mock(); + mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(executionInfo)).Returns(expectedExecutionInfo); + + mockClassInstanceManager.Setup(x => x.InvokeMethod(methodInfo, 1, expectedExecutionInfo)).Verifiable(); + + var executor = new HookExecutor(mockAssemblyLoader.Object, mockExecutionInfoMapper.Object, mockHookRegistry.Object, mockLogger.Object); + + var result = await executor.Execute("BeforeSuite", new HooksStrategy(), new List(), 1, executionInfo); + ClassicAssert.True(result.Success, $"Hook execution failed: {result.ExceptionMessage}\n{result.StackTrace}"); + mockClassInstanceManager.VerifyAll(); + } + + [Test] + public async Task ShoudExecuteHooksAndGetTheError() { - [Test] - public void ShoudExecuteHooks() - { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var type = LibType.BeforeSuite; - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName($"{type}Hook") - .WithFilteredHook(type) - .WithDeclaringTypeName("my.foo.type") - .WithNoParameters() - .Build(); - mockAssemblyLoader.Setup(x => x.GetMethods(type)).Returns(new List { methodInfo }); - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance, new List())); - - var mockExecutionInfoMapper = new Mock(); - mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(It.IsAny())).Returns(new { }); - - var executor = new HookExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager, mockExecutionInfoMapper.Object); - - var result = executor.Execute("BeforeSuite", new HooksStrategy(), new List(), - new ExecutionInfo()); - ClassicAssert.True(result.Success, $"Hook execution failed: {result.ExceptionMessage}\n{result.StackTrace}"); - } - - [Test] - public void ShoudExecuteHooksWithExecutionContext() - { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var type = LibType.BeforeSuite; - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName($"{type}Hook") - .WithFilteredHook(type) - .WithDeclaringTypeName("my.foo.type") - .WithParameters(new KeyValuePair(typeof(ExecutionContext), "context")) - .Build(); - mockAssemblyLoader.Setup(x => x.GetMethods(type)).Returns(new List { methodInfo }); - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var executionInfo = new ExecutionInfo(); - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - var expectedExecutionInfo = new ExecutionContext(); - - var mockExecutionInfoMapper = new Mock(); - mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(executionInfo)) - .Returns(expectedExecutionInfo); - - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance, expectedExecutionInfo)) - .Verifiable(); - - var executor = new HookExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager, mockExecutionInfoMapper.Object); - - var result = executor.Execute("BeforeSuite", new HooksStrategy(), new List(), - executionInfo); - ClassicAssert.True(result.Success, $"Hook execution failed: {result.ExceptionMessage}\n{result.StackTrace}"); - mockReflectionWrapper.VerifyAll(); - } - - [Test] - public void ShoudExecuteHooksAndGetTheError() - { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var type = LibType.BeforeSuite; - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName($"{type}Hook") - .WithFilteredHook(type) - .WithDeclaringTypeName("my.foo.type") - .Build(); - mockAssemblyLoader.Setup(x => x.GetMethods(type)).Returns(new List { methodInfo }); - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - - var mockExecutionInfoMapper = new Mock(); - mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(It.IsAny())) - .Returns(new { Foo = "bar" }); - var executor = new HookExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager, mockExecutionInfoMapper.Object); - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance)) - .Throws(new Exception("hook failed")); - - var result = executor.Execute("BeforeSuite", new HooksStrategy(), new List(), - new ExecutionInfo()); - ClassicAssert.False(result.Success, "Hook execution passed, expected failure"); - ClassicAssert.AreEqual(result.ExceptionMessage, "hook failed"); - } + var mockClassInstanceManagerType = new Mock(); + var mockHookRegistry = new Mock(); + + var mockAssemblyLoader = new Mock(); + var type = LibType.BeforeSuite; + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName($"{type}Hook") + .WithFilteredHook(type) + .WithDeclaringTypeName("my.foo.type") + .Build(); + var method = new HookMethod(type, methodInfo, mockAssemblyLoader.Object); + mockHookRegistry.Setup(x => x.BeforeSuiteHooks).Returns(new HashSet { method }); + mockHookRegistry.Setup(x => x.MethodFor($"my.foo.type.BeforeSuiteHook")).Returns(methodInfo); + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManagerType.Object); + + var expectedExecutionInfo = new ExecutionContext(); + + var mockExecutionInfoMapper = new Mock(); + mockExecutionInfoMapper.Setup(x => x.ExecutionContextFrom(It.IsAny())) + .Returns(expectedExecutionInfo); + var executor = new HookExecutor(mockAssemblyLoader.Object, mockExecutionInfoMapper.Object, mockHookRegistry.Object, mockLogger.Object); + mockClassInstanceManagerType.Setup(x => x.InvokeMethod(methodInfo, 1, It.IsAny())) + .Throws(new Exception("hook failed")); + + var result = await executor.Execute("BeforeSuite", new HooksStrategy(), new List(), 1, new ExecutionInfo()); + ClassicAssert.False(result.Success, "Hook execution passed, expected failure"); + ClassicAssert.AreEqual(result.ExceptionMessage, "hook failed"); } } \ No newline at end of file diff --git a/test/Processors/CacheFileProcessorTests.cs b/test/Processors/CacheFileProcessorTests.cs index 603a8a9..d41c227 100644 --- a/test/Processors/CacheFileProcessorTests.cs +++ b/test/Processors/CacheFileProcessorTests.cs @@ -4,14 +4,8 @@ * See LICENSE.txt in the project root for license information. *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Xml.Linq; using Gauge.Dotnet.Processors; -using Gauge.Dotnet.Wrappers; using Gauge.Messages; -using Moq; -using NUnit.Framework; namespace Gauge.Dotnet.UnitTests.Processors { @@ -32,7 +26,7 @@ public class CacheFileProcessorTests private const string fileName = "foo.cs"; [Test] - public void ShouldProcessMessage() + public async Task ShouldProcessMessage() { var mockLoader = new Mock(); mockLoader.Setup(x => x.LoadImplementations()); @@ -45,14 +39,14 @@ public void ShouldProcessMessage() Status = CacheFileRequest.Types.FileStatus.Opened }; - processor.Process(request); + await processor.Process(1, request); mockLoader.Verify(); mockLoader.VerifyNoOtherCalls(); } [Test] - public void ShouldProcessRequestWithDeleteStatus() + public async Task ShouldProcessRequestWithDeleteStatus() { var mockLoader = new Mock(); mockLoader.Setup(x => x.LoadImplementations()); @@ -64,7 +58,7 @@ public void ShouldProcessRequestWithDeleteStatus() Status = CacheFileRequest.Types.FileStatus.Deleted }; - processor.Process(request); + await processor.Process(1, request); mockLoader.Verify(); mockLoader.VerifyNoOtherCalls(); diff --git a/test/Processors/DefaultProcessorTests.cs b/test/Processors/DefaultProcessorTests.cs deleted file mode 100644 index 4b89301..0000000 --- a/test/Processors/DefaultProcessorTests.cs +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - -using Gauge.Dotnet.Processors; -using Gauge.Messages; -using NUnit.Framework; -using NUnit.Framework.Legacy; - -namespace Gauge.Dotnet.UnitTests.Processors -{ - [TestFixture] - public class DefaultProcessorTests - { - [Test] - public void ShouldProcessMessage() - { - var request = new Message - { - MessageId = 20, - MessageType = Message.Types.MessageType.ExecuteStep - }; - - var response = new DefaultProcessor().Process(request); - var executionStatusResponse = response.ExecutionStatusResponse; - - ClassicAssert.AreEqual(response.MessageId, 20); - ClassicAssert.AreEqual(response.MessageType, Message.Types.MessageType.ExecutionStatusResponse); - ClassicAssert.AreEqual(executionStatusResponse.ExecutionResult.ExecutionTime, 0); - } - } -} \ No newline at end of file diff --git a/test/Processors/ExecuteStepProcessorTests.cs b/test/Processors/ExecuteStepProcessorTests.cs index c09641f..cf1db95 100644 --- a/test/Processors/ExecuteStepProcessorTests.cs +++ b/test/Processors/ExecuteStepProcessorTests.cs @@ -5,148 +5,145 @@ *----------------------------------------------------------------*/ +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +[TestFixture] +public class ExecuteStepProcessorTests { - [TestFixture] - public class ExecuteStepProcessorTests + public void Foo(string param) { - public void Foo(string param) - { - } + } - [Test] - public void ShouldProcessExecuteStepRequest() + [Test] + public async Task ShouldProcessExecuteStepRequest() + { + const string parsedStepText = "Foo"; + var request = new ExecuteStepRequest { - const string parsedStepText = "Foo"; - var request = new ExecuteStepRequest - { - ActualStepText = parsedStepText, - ParsedStepText = parsedStepText, - Parameters = + ActualStepText = parsedStepText, + ParsedStepText = parsedStepText, + Parameters = + { + new Parameter { - new Parameter - { - ParameterType = Parameter.Types.ParameterType.Static, - Name = "Foo", - Value = "Bar" - } + ParameterType = Parameter.Types.ParameterType.Static, + Name = "Foo", + Value = "Bar" } - }; - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); - var fooMethodInfo = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; - mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethodInfo); - var mockOrchestrator = new Mock(); - mockOrchestrator.Setup(e => e.ExecuteStep(fooMethodInfo, It.IsAny())) - .Returns(() => new ProtoExecutionResult { ExecutionTime = 1, Failed = false }); - - var mockTableFormatter = new Mock(); - - var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); - var response = processor.Process(request); - - ClassicAssert.False(response.ExecutionResult.Failed); - } - - [Test] - [TestCase(Parameter.Types.ParameterType.Table)] - [TestCase(Parameter.Types.ParameterType.SpecialTable)] - public void ShouldProcessExecuteStepRequestForTableParam(Parameter.Types.ParameterType parameterType) + } + }; + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); + var fooMethodInfo = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; + mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethodInfo); + var mockOrchestrator = new Mock(); + mockOrchestrator.Setup(e => e.ExecuteStep(fooMethodInfo, It.IsAny(), It.IsAny())) + .ReturnsAsync(() => new ProtoExecutionResult { ExecutionTime = 1, Failed = false }); + + var mockTableFormatter = new Mock(); + + var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); + var response = await processor.Process(1, request); + + ClassicAssert.False(response.ExecutionResult.Failed); + } + + [Test] + [TestCase(Parameter.Types.ParameterType.Table)] + [TestCase(Parameter.Types.ParameterType.SpecialTable)] + public async Task ShouldProcessExecuteStepRequestForTableParam(Parameter.Types.ParameterType parameterType) + { + const string parsedStepText = "Foo"; + var protoTable = new ProtoTable(); + var tableJSON = "{'headers':['foo', 'bar'],'rows':[['foorow1','barrow1']]}"; + var request = new ExecuteStepRequest { - const string parsedStepText = "Foo"; - var protoTable = new ProtoTable(); - var tableJSON = "{'headers':['foo', 'bar'],'rows':[['foorow1','barrow1']]}"; - var request = new ExecuteStepRequest - { - ActualStepText = parsedStepText, - ParsedStepText = parsedStepText, - Parameters = + ActualStepText = parsedStepText, + ParsedStepText = parsedStepText, + Parameters = + { + new Parameter { - new Parameter - { - ParameterType = parameterType, - Table = protoTable - } + ParameterType = parameterType, + Table = protoTable } - }; - - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); - var fooMethodInfo = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; - mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethodInfo); - var mockOrchestrator = new Mock(); - mockOrchestrator.Setup(e => e.ExecuteStep(fooMethodInfo, It.IsAny())).Returns(() => - new ProtoExecutionResult - { - ExecutionTime = 1, - Failed = false - }); - - var mockAssemblyLoader = new Mock(); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); - var mockTableFormatter = new Mock(); - mockTableFormatter.Setup(x => x.GetJSON(protoTable)) - .Returns(tableJSON); - var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); - var response = processor.Process(request); - - mockOrchestrator.Verify(executor => - executor.ExecuteStep(fooMethodInfo, It.Is(strings => strings[0] == tableJSON))); - ClassicAssert.False(response.ExecutionResult.Failed); - } - - [Test] - public void ShouldReportArgumentMismatch() - { - const string parsedStepText = "Foo"; - var request = new ExecuteStepRequest + } + }; + + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); + var fooMethodInfo = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; + mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethodInfo); + var mockOrchestrator = new Mock(); + mockOrchestrator.Setup(e => e.ExecuteStep(fooMethodInfo, It.IsAny(), It.IsAny())).ReturnsAsync(() => + new ProtoExecutionResult { - ActualStepText = parsedStepText, - ParsedStepText = parsedStepText - }; - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); - var fooMethod = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; - mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethod); - var mockOrchestrator = new Mock(); - - var mockTableFormatter = new Mock(); - - var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); - var response = processor.Process(request); - - ClassicAssert.True(response.ExecutionResult.Failed); - ClassicAssert.AreEqual(response.ExecutionResult.ErrorMessage, - "Argument length mismatch for Foo. Actual Count: 0, Expected Count: 1"); - } - - [Test] - public void ShouldReportMissingStep() + ExecutionTime = 1, + Failed = false + }); + + var mockAssemblyLoader = new Mock(); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); + var mockTableFormatter = new Mock(); + mockTableFormatter.Setup(x => x.GetJSON(protoTable)) + .Returns(tableJSON); + var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); + var response = await processor.Process(1, request); + + mockOrchestrator.Verify(executor => + executor.ExecuteStep(fooMethodInfo, It.IsAny(), It.Is(strings => strings[0] == tableJSON))); + ClassicAssert.False(response.ExecutionResult.Failed); + } + + [Test] + public async Task ShouldReportArgumentMismatch() + { + const string parsedStepText = "Foo"; + var request = new ExecuteStepRequest { - const string parsedStepText = "Foo"; - var request = new ExecuteStepRequest - { - ActualStepText = parsedStepText, - ParsedStepText = parsedStepText - }; - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(false); - var mockOrchestrator = new Mock(); - var mockTableFormatter = new Mock(); - - var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); - var response = processor.Process(request); - - ClassicAssert.True(response.ExecutionResult.Failed); - ClassicAssert.AreEqual(response.ExecutionResult.ErrorMessage, - "Step Implementation not found"); - } + ActualStepText = parsedStepText, + ParsedStepText = parsedStepText + }; + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(true); + var fooMethod = new GaugeMethod { Name = "Foo", ParameterCount = 1 }; + mockStepRegistry.Setup(x => x.MethodFor(parsedStepText)).Returns(fooMethod); + var mockOrchestrator = new Mock(); + + var mockTableFormatter = new Mock(); + + var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); + var response = await processor.Process(1, request); + + ClassicAssert.True(response.ExecutionResult.Failed); + ClassicAssert.AreEqual(response.ExecutionResult.ErrorMessage, + "Argument length mismatch for Foo. Actual Count: 0, Expected Count: 1"); + } + + [Test] + public async Task ShouldReportMissingStep() + { + const string parsedStepText = "Foo"; + var request = new ExecuteStepRequest + { + ActualStepText = parsedStepText, + ParsedStepText = parsedStepText + }; + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.ContainsStep(parsedStepText)).Returns(false); + var mockOrchestrator = new Mock(); + var mockTableFormatter = new Mock(); + + var processor = new ExecuteStepProcessor(mockStepRegistry.Object, mockOrchestrator.Object, mockTableFormatter.Object); + var response = await processor.Process(1, request); + + ClassicAssert.True(response.ExecutionResult.Failed); + ClassicAssert.AreEqual(response.ExecutionResult.ErrorMessage, + "Step Implementation not found"); } } \ No newline at end of file diff --git a/test/Processors/ExecutionEndingProcessorTests.cs b/test/Processors/ExecutionEndingProcessorTests.cs index f07f1d1..bd983d5 100644 --- a/test/Processors/ExecutionEndingProcessorTests.cs +++ b/test/Processors/ExecutionEndingProcessorTests.cs @@ -5,95 +5,92 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Dotnet.UnitTests.Helpers; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +[TestFixture] +public class ExecutionEndingProcessorTests { - [TestFixture] - public class ExecutionEndingProcessorTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() + var mockHookRegistry = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("Foo") + .WithFilteredHook(LibType.BeforeSpec) + .Build(); + var hooks = new HashSet { - var mockHookRegistry = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("Foo") - .WithFilteredHook(LibType.BeforeSpec) - .Build(); - var hooks = new HashSet - { - new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) - }; - mockHookRegistry.Setup(x => x.AfterSuiteHooks).Returns(hooks); - var executionEndingRequest = new ExecutionEndingRequest + new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) + }; + mockHookRegistry.Setup(x => x.AfterSuiteHooks).Returns(hooks); + var executionEndingRequest = new ExecutionEndingRequest + { + CurrentExecutionInfo = new ExecutionInfo { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo(), - CurrentScenario = new ScenarioInfo() - } - }; - _request = executionEndingRequest; + CurrentSpec = new SpecInfo(), + CurrentScenario = new ScenarioInfo() + } + }; + _request = executionEndingRequest; - _mockMethodExecutor = new Mock(); - _protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; - _mockMethodExecutor.Setup(x => - x.ExecuteHooks("AfterSuite", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(_protoExecutionResult); - _mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(_pendingMessages); - _mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); - _executionEndingProcessor = new ExecutionEndingProcessor(_mockMethodExecutor.Object); - } + _mockMethodExecutor = new Mock(); + _protoExecutionResult = new ProtoExecutionResult + { + ExecutionTime = 0, + Failed = false + }; + _mockMethodExecutor.Setup(x => + x.ExecuteHooks("AfterSuite", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(_protoExecutionResult); + _mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(_pendingMessages); + _mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); + _executionEndingProcessor = new ExecutionEndingProcessor(_mockMethodExecutor.Object, config); + } - private ExecutionEndingProcessor _executionEndingProcessor; - private ExecutionEndingRequest _request; - private Mock _mockMethodExecutor; - private ProtoExecutionResult _protoExecutionResult; - private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; + private ExecutionEndingProcessor _executionEndingProcessor; + private ExecutionEndingRequest _request; + private Mock _mockMethodExecutor; + private ProtoExecutionResult _protoExecutionResult; + private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; - private readonly IEnumerable _pendingScreenshotFiles = - new List { "screenshot.png" }; + private readonly IEnumerable _pendingScreenshotFiles = + new List { "screenshot.png" }; - [Test] - public void ShouldExtendFromHooksExecutionProcessor() - { - AssertEx.InheritsFrom(); - AssertEx.DoesNotInheritsFrom(); - AssertEx.DoesNotInheritsFrom(); - } + [Test] + public void ShouldExtendFromHooksExecutionProcessor() + { + AssertEx.InheritsFrom(); + AssertEx.DoesNotInheritsFrom(); + AssertEx.DoesNotInheritsFrom(); + } - [Test] - public void ShouldGetEmptyTagListByDefault() - { - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", _request.CurrentExecutionInfo); - ClassicAssert.IsEmpty(tags); - } + [Test] + public void ShouldGetEmptyTagListByDefault() + { + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", _request.CurrentExecutionInfo); + ClassicAssert.IsEmpty(tags); + } - [Test] - public void ShouldProcessHooks() - { - var result = _executionEndingProcessor.Process(_request); - _mockMethodExecutor.VerifyAll(); - ClassicAssert.AreEqual(result.ExecutionResult.Message, _pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, _pendingScreenshotFiles); - } + [Test] + public async Task ShouldProcessHooks() + { + var result = await _executionEndingProcessor.Process(1, _request); + _mockMethodExecutor.VerifyAll(); + ClassicAssert.AreEqual(result.ExecutionResult.Message, _pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, _pendingScreenshotFiles); + } - } } \ No newline at end of file diff --git a/test/Processors/ExecutionStartingProcessorTests.cs b/test/Processors/ExecutionStartingProcessorTests.cs index 6a454bc..bd1e749 100644 --- a/test/Processors/ExecutionStartingProcessorTests.cs +++ b/test/Processors/ExecutionStartingProcessorTests.cs @@ -5,109 +5,106 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Dotnet.UnitTests.Helpers; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +[TestFixture] +public class ExecutionStartingProcessorTests { - [TestFixture] - public class ExecutionStartingProcessorTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() + var mockHookRegistry = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("Foo") + .WithFilteredHook(LibType.BeforeSpec) + .Build(); + + var hooks = new HashSet { - var mockHookRegistry = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("Foo") - .WithFilteredHook(LibType.BeforeSpec) - .Build(); - - var hooks = new HashSet - { - new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) - }; - mockHookRegistry.Setup(x => x.BeforeSuiteHooks).Returns(hooks); - - _mockMethodExecutor = new Mock(); - _protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; - - _mockMethodExecutor.Setup(x => - x.ExecuteHooks("BeforeSuite", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(_protoExecutionResult); - _mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(_pendingMessages); - _mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); - _executionStartingProcessor = new ExecutionStartingProcessor(_mockMethodExecutor.Object); - } - - private ExecutionStartingProcessor _executionStartingProcessor; - - private Mock _mockMethodExecutor; - private ProtoExecutionResult _protoExecutionResult; - - private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; - - private readonly IEnumerable _pendingScreenshotFiles = - new List { "screenshot.png" }; - - [Test] - public void ShouldExtendFromHooksExecutionProcessor() + new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) + }; + mockHookRegistry.Setup(x => x.BeforeSuiteHooks).Returns(hooks); + + _mockMethodExecutor = new Mock(); + _protoExecutionResult = new ProtoExecutionResult { - AssertEx.InheritsFrom(); - AssertEx.DoesNotInheritsFrom(); - AssertEx.DoesNotInheritsFrom(); - } + ExecutionTime = 0, + Failed = false + }; + + _mockMethodExecutor.Setup(x => + x.ExecuteHooks("BeforeSuite", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(_protoExecutionResult); + _mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(_pendingMessages); + _mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); + _executionStartingProcessor = new ExecutionStartingProcessor(_mockMethodExecutor.Object, config); + } + + private ExecutionStartingProcessor _executionStartingProcessor; + + private Mock _mockMethodExecutor; + private ProtoExecutionResult _protoExecutionResult; - [Test] - public void ShouldGetEmptyTagListByDefault() + private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; + + private readonly IEnumerable _pendingScreenshotFiles = + new List { "screenshot.png" }; + + [Test] + public void ShouldExtendFromHooksExecutionProcessor() + { + AssertEx.InheritsFrom(); + AssertEx.DoesNotInheritsFrom(); + AssertEx.DoesNotInheritsFrom(); + } + + [Test] + public void ShouldGetEmptyTagListByDefault() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "bar" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentScenario = scenarioInfo, - CurrentSpec = specInfo - }; - - - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario); - ClassicAssert.IsEmpty(tags); - } - - [Test] - public void ShouldProcessHooks() + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo { - var executionStartingRequest = new ExecutionStartingRequest(); - var result = _executionStartingProcessor.Process(executionStartingRequest); + Tags = { "bar" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentScenario = scenarioInfo, + CurrentSpec = specInfo + }; + + + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario); + ClassicAssert.IsEmpty(tags); + } + + [Test] + public async Task ShouldProcessHooks() + { + var executionStartingRequest = new ExecutionStartingRequest(); + var result = await _executionStartingProcessor.Process(1, executionStartingRequest); - _mockMethodExecutor.VerifyAll(); - ClassicAssert.AreEqual(result.ExecutionResult.Message, _pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, _pendingScreenshotFiles); - } + _mockMethodExecutor.VerifyAll(); + ClassicAssert.AreEqual(result.ExecutionResult.Message, _pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, _pendingScreenshotFiles); } } \ No newline at end of file diff --git a/test/Processors/HookExecutionProcessorTests.cs b/test/Processors/HookExecutionProcessorTests.cs index 6248ee1..cbe1f90 100644 --- a/test/Processors/HookExecutionProcessorTests.cs +++ b/test/Processors/HookExecutionProcessorTests.cs @@ -5,8 +5,6 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; using System.Reflection; using Gauge.Dotnet.Extensions; using Gauge.Dotnet.Models; @@ -14,210 +12,206 @@ using Gauge.Dotnet.UnitTests.Helpers; using Gauge.Dotnet.UnitTests.Processors.Stubs; using Gauge.Dotnet.Wrappers; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +[TestFixture] +public class HookExecutionProcessorTests { - [TestFixture] - public class HookExecutionProcessorTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() - { - var mockAssemblyLoader = new Mock(); - - mockFooMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("FooMethod") - .WithFilteredHook(LibType.BeforeScenario, "Foo") - .Build(); - mockBarMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("BarMethod") - .WithFilteredHook(LibType.BeforeScenario, "Bar", "Baz") - .Build(); - mockBazMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("BazMethod") - .WithFilteredHook(LibType.BeforeScenario, "Foo", "Baz") - .WithTagAggregation(1) - .Build(); - mockBlahMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("BlahMethod") - .WithFilteredHook(LibType.BeforeScenario) - .Build(); - - _hookMethods = new List - { - new HookMethod(LibType.BeforeScenario, mockFooMethod, mockAssemblyLoader.Object), - new HookMethod(LibType.BeforeScenario, mockBarMethod, mockAssemblyLoader.Object), - new HookMethod(LibType.BeforeScenario, mockBazMethod, mockAssemblyLoader.Object), - new HookMethod(LibType.BeforeScenario, mockBlahMethod, mockAssemblyLoader.Object) - }; - } - - //[BeforeScenario("Foo")] - //public void Foo() - //{ - //} - - //[BeforeScenario("Bar", "Baz")] - //public void Bar() - //{ - //} - - //[BeforeScenario("Foo", "Baz")] - //[TagAggregationBehaviour(TagAggregation.Or)] - //public void Baz() - //{ - //} - - //[BeforeScenario] - //public void Blah() - //{ - //} - - - /* - * untagged hooks are executed for all. - * Tags | Methods - * Foo | Foo, Baz - * Bar | NONE - * Baz | Baz - * Bar, Baz | Bar, Baz - * Foo, Baz | Baz - */ - - private IList _hookMethods; - private MethodInfo mockFooMethod; - private MethodInfo mockBarMethod; - private MethodInfo mockBazMethod; - private MethodInfo mockBlahMethod; - - [Test] - public void ShouldAllowMultipleHooksInaMethod() + var mockAssemblyLoader = new Mock(); + + mockFooMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("FooMethod") + .WithFilteredHook(LibType.BeforeScenario, "Foo") + .Build(); + mockBarMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("BarMethod") + .WithFilteredHook(LibType.BeforeScenario, "Bar", "Baz") + .Build(); + mockBazMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("BazMethod") + .WithFilteredHook(LibType.BeforeScenario, "Foo", "Baz") + .WithTagAggregation(1) + .Build(); + mockBlahMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("BlahMethod") + .WithFilteredHook(LibType.BeforeScenario) + .Build(); + + _hookMethods = new List { - var mockAssemblyLoader = new Mock(); - var mockMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("MultipleHookMethod") - .WithFilteredHook(LibType.BeforeScenario) - .WithFilteredHook(LibType.BeforeSpec) - .Build(); + new HookMethod(LibType.BeforeScenario, mockFooMethod, mockAssemblyLoader.Object), + new HookMethod(LibType.BeforeScenario, mockBarMethod, mockAssemblyLoader.Object), + new HookMethod(LibType.BeforeScenario, mockBazMethod, mockAssemblyLoader.Object), + new HookMethod(LibType.BeforeScenario, mockBlahMethod, mockAssemblyLoader.Object) + }; + } + //[BeforeScenario("Foo")] + //public void Foo() + //{ + //} + + //[BeforeScenario("Bar", "Baz")] + //public void Bar() + //{ + //} + + //[BeforeScenario("Foo", "Baz")] + //[TagAggregationBehaviour(TagAggregation.Or)] + //public void Baz() + //{ + //} + + //[BeforeScenario] + //public void Blah() + //{ + //} + + + /* + * untagged hooks are executed for all. + * Tags | Methods + * Foo | Foo, Baz + * Bar | NONE + * Baz | Baz + * Bar, Baz | Bar, Baz + * Foo, Baz | Baz + */ + + private IList _hookMethods; + private MethodInfo mockFooMethod; + private MethodInfo mockBarMethod; + private MethodInfo mockBazMethod; + private MethodInfo mockBlahMethod; + + [Test] + public void ShouldAllowMultipleHooksInaMethod() + { + var mockAssemblyLoader = new Mock(); + var mockMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("MultipleHookMethod") + .WithFilteredHook(LibType.BeforeScenario) + .WithFilteredHook(LibType.BeforeSpec) + .Build(); - var beforeScenarioHook = new HookMethod(LibType.BeforeScenario, mockMethod, mockAssemblyLoader.Object); - ClassicAssert.AreEqual("MultipleHookMethod", beforeScenarioHook.Method); - var beforeSpecHook = new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object); - ClassicAssert.AreEqual("MultipleHookMethod", beforeSpecHook.Method); - } + var beforeScenarioHook = new HookMethod(LibType.BeforeScenario, mockMethod, mockAssemblyLoader.Object); + ClassicAssert.AreEqual("MultipleHookMethod", beforeScenarioHook.Method); - [Test] - public void ShouldFetchAHooksWithSpecifiedTagsWhenDoingAnd() - { - var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Baz", "Bar" }, _hookMethods) - .ToList(); + var beforeSpecHook = new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object); + ClassicAssert.AreEqual("MultipleHookMethod", beforeSpecHook.Method); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.AreEqual(2, applicableHooks.Count); - ClassicAssert.Contains(mockBarMethod.FullyQuallifiedName(), applicableHooks); - ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); - } + [Test] + public void ShouldFetchAHooksWithSpecifiedTagsWhenDoingAnd() + { + var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Baz", "Bar" }, _hookMethods) + .ToList(); - [Test] - public void ShouldFetchAHooksWithSpecifiedTagsWhenDoingOr() - { - var applicableHooks = - new HooksStrategy().GetTaggedHooks(new List { "Baz", "Foo" }, _hookMethods).ToList(); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.AreEqual(2, applicableHooks.Count); + ClassicAssert.Contains(mockBarMethod.FullyQuallifiedName(), applicableHooks); + ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.AreEqual(2, applicableHooks.Count); - ClassicAssert.Contains(mockFooMethod.FullyQuallifiedName(), applicableHooks); - ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); - } + [Test] + public void ShouldFetchAHooksWithSpecifiedTagsWhenDoingOr() + { + var applicableHooks = + new HooksStrategy().GetTaggedHooks(new List { "Baz", "Foo" }, _hookMethods).ToList(); - [Test] - public void ShouldFetchAllHooksWhenNoTagsSpecified() - { - var applicableHooks = new HooksStrategy().GetApplicableHooks(new List(), _hookMethods); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.AreEqual(2, applicableHooks.Count); + ClassicAssert.Contains(mockFooMethod.FullyQuallifiedName(), applicableHooks); + ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.AreEqual(1, applicableHooks.Count()); - } + [Test] + public void ShouldFetchAllHooksWhenNoTagsSpecified() + { + var applicableHooks = new HooksStrategy().GetApplicableHooks(new List(), _hookMethods); - [Test] - public void ShouldFetchAllHooksWithSpecifiedTags() - { - var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Foo" }, _hookMethods).ToList(); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.AreEqual(1, applicableHooks.Count()); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.AreEqual(2, applicableHooks.Count); - ClassicAssert.Contains(mockFooMethod.FullyQuallifiedName(), applicableHooks); - } + [Test] + public void ShouldFetchAllHooksWithSpecifiedTags() + { + var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Foo" }, _hookMethods).ToList(); - [Test] - public void ShouldFetchAllHooksWithSpecifiedTagsWhenDoingAnd() - { - var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Bar" }, _hookMethods); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.AreEqual(2, applicableHooks.Count); + ClassicAssert.Contains(mockFooMethod.FullyQuallifiedName(), applicableHooks); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.IsEmpty(applicableHooks); - } + [Test] + public void ShouldFetchAllHooksWithSpecifiedTagsWhenDoingAnd() + { + var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Bar" }, _hookMethods); - [Test] - public void ShouldFetchAnyHooksWithSpecifiedTagsWhenDoingOr() - { - var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Baz" }, _hookMethods).ToList(); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.IsEmpty(applicableHooks); + } - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.AreEqual(1, applicableHooks.Count); - ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); - } + [Test] + public void ShouldFetchAnyHooksWithSpecifiedTagsWhenDoingOr() + { + var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Baz" }, _hookMethods).ToList(); - [Test] - public void ShouldNotFetchAnyTaggedHooksWhenTagsAreASuperSet() - { - var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Bar", "Blah" }, _hookMethods); + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.AreEqual(1, applicableHooks.Count); + ClassicAssert.Contains(mockBazMethod.FullyQuallifiedName(), applicableHooks); + } + + [Test] + public void ShouldNotFetchAnyTaggedHooksWhenTagsAreASuperSet() + { + var applicableHooks = new HooksStrategy().GetTaggedHooks(new List { "Bar", "Blah" }, _hookMethods); - ClassicAssert.IsNotNull(applicableHooks); - ClassicAssert.IsEmpty(applicableHooks); - } + ClassicAssert.IsNotNull(applicableHooks); + ClassicAssert.IsEmpty(applicableHooks); + } - [Test] - public void ShouldUseDefaultHooksStrategy() - { - var assemblyLoader = new Mock(); - assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); - var reflectionWrapper = new Mock(); - var hooksStrategy = new TestHooksExecutionProcessor(null) + [Test] + public void ShouldUseDefaultHooksStrategy() + { + var assemblyLoader = new Mock(); + assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); + var reflectionWrapper = new Mock(); + var hooksStrategy = new TestHooksExecutionProcessor(null, null) + .GetHooksStrategy(); + + ClassicAssert.IsInstanceOf(hooksStrategy); + } + + [Test] + public void ShouldUseTaggedHooksFirstStrategy() + { + var assemblyLoader = new Mock(); + assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); + var reflectionWrapper = new Mock(); + var hooksStrategy = + new TestTaggedHooksFirstExecutionProcessor(null, null) .GetHooksStrategy(); - ClassicAssert.IsInstanceOf(hooksStrategy); - } + ClassicAssert.IsInstanceOf(hooksStrategy); + } - [Test] - public void ShouldUseTaggedHooksFirstStrategy() - { - var assemblyLoader = new Mock(); - assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); - var reflectionWrapper = new Mock(); - var hooksStrategy = - new TestTaggedHooksFirstExecutionProcessor(null) - .GetHooksStrategy(); - - ClassicAssert.IsInstanceOf(hooksStrategy); - } - - [Test] - public void ShouldUseUntaggedHooksFirstStrategy() - { - var assemblyLoader = new Mock(); - assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); - var reflectionWrapper = new Mock(); - var hooksStrategy = - new TestUntaggedHooksFirstExecutionProcessor(null) - .GetHooksStrategy(); - - ClassicAssert.IsInstanceOf(hooksStrategy); - } + [Test] + public void ShouldUseUntaggedHooksFirstStrategy() + { + var assemblyLoader = new Mock(); + assemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)); + var reflectionWrapper = new Mock(); + var hooksStrategy = + new TestUntaggedHooksFirstExecutionProcessor(null, null) + .GetHooksStrategy(); + + ClassicAssert.IsInstanceOf(hooksStrategy); } } \ No newline at end of file diff --git a/test/Processors/ScenarioExecutionEndingProcessorTests.cs b/test/Processors/ScenarioExecutionEndingProcessorTests.cs index 0cdb3ab..2473965 100644 --- a/test/Processors/ScenarioExecutionEndingProcessorTests.cs +++ b/test/Processors/ScenarioExecutionEndingProcessorTests.cs @@ -5,126 +5,122 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class ScenarioExecutionEndingProcessorTests { - internal class ScenarioExecutionEndingProcessorTests + [Test] + public void ShouldExtendFromTaggedHooksFirstExecutionProcessor() { - [Test] - public void ShouldExtendFromTaggedHooksFirstExecutionProcessor() - { - AssertEx.InheritsFrom(); - } + AssertEx.InheritsFrom(); + } - [Test] - public void ShouldGetTagListFromSpecAndScenario() + [Test] + public void ShouldGetTagListFromSpecAndScenario() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "bar" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentSpec = specInfo, - CurrentScenario = scenarioInfo - }; - var currentExecutionInfo = new ScenarioExecutionEndingRequest - { - CurrentExecutionInfo = currentScenario - }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "bar" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentSpec = specInfo, + CurrentScenario = scenarioInfo + }; + var currentExecutionInfo = new ScenarioExecutionEndingRequest + { + CurrentExecutionInfo = currentScenario + }; + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(2, tags.Count); - ClassicAssert.Contains("foo", tags); - ClassicAssert.Contains("bar", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(2, tags.Count); + ClassicAssert.Contains("foo", tags); + ClassicAssert.Contains("bar", tags); + } - [Test] - public void ShouldNotGetDuplicateTags() + [Test] + public void ShouldNotGetDuplicateTags() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "foo" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentSpec = specInfo, - CurrentScenario = scenarioInfo - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "foo" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentSpec = specInfo, + CurrentScenario = scenarioInfo + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); + } - [Test] - public void ShouldExecutreBeforeScenarioHook() + [Test] + public async Task ShouldExecutreBeforeScenarioHook() + { + var scenarioExecutionStartingRequest = new ScenarioExecutionEndingRequest { - var scenarioExecutionStartingRequest = new ScenarioExecutionEndingRequest + CurrentExecutionInfo = new ExecutionInfo { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo(), - CurrentScenario = new ScenarioInfo() - } - }; + CurrentSpec = new SpecInfo(), + CurrentScenario = new ScenarioInfo() + } + }; - var mockMethodExecutor = new Mock(); - var protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; - var pendingMessages = new List { "one", "two" }; - var pendingScreenshotFiles = new List { "screenshot.png" }; + var mockMethodExecutor = new Mock(); + var protoExecutionResult = new ProtoExecutionResult + { + ExecutionTime = 0, + Failed = false + }; + var pendingMessages = new List { "one", "two" }; + var pendingScreenshotFiles = new List { "screenshot.png" }; - mockMethodExecutor.Setup(x => - x.ExecuteHooks("AfterScenario", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(pendingMessages); - mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + mockMethodExecutor.Setup(x => + x.ExecuteHooks("AfterScenario", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(pendingMessages); + mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); - var processor = new ScenarioExecutionEndingProcessor(mockMethodExecutor.Object); + var processor = new ScenarioExecutionEndingProcessor(mockMethodExecutor.Object, config); - var result = processor.Process(scenarioExecutionStartingRequest); - ClassicAssert.False(result.ExecutionResult.Failed); - ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); - } + var result = await processor.Process(1, scenarioExecutionStartingRequest); + ClassicAssert.False(result.ExecutionResult.Failed); + ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); } } \ No newline at end of file diff --git a/test/Processors/ScenarioExecutionStartingProcessorTests.cs b/test/Processors/ScenarioExecutionStartingProcessorTests.cs index 7ea08be..506d08c 100644 --- a/test/Processors/ScenarioExecutionStartingProcessorTests.cs +++ b/test/Processors/ScenarioExecutionStartingProcessorTests.cs @@ -5,129 +5,125 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class ScenarioExecutionStartingProcessorTests { - internal class ScenarioExecutionStartingProcessorTests + [Test] + public void ShouldExtendFromUntaggedHooksFirstExecutionProcessor() { - [Test] - public void ShouldExtendFromUntaggedHooksFirstExecutionProcessor() - { - AssertEx.InheritsFrom(); - } + AssertEx.InheritsFrom(); + } - [Test] - public void ShouldGetTagListFromExecutionInfo() + [Test] + public void ShouldGetTagListFromExecutionInfo() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "bar" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentSpec = specInfo, - CurrentScenario = scenarioInfo - }; - var currentExecutionInfo = new ScenarioExecutionStartingRequest - { - CurrentExecutionInfo = currentScenario - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "bar" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentSpec = specInfo, + CurrentScenario = scenarioInfo + }; + var currentExecutionInfo = new ScenarioExecutionStartingRequest + { + CurrentExecutionInfo = currentScenario + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(2, tags.Count); - ClassicAssert.Contains("foo", tags); - ClassicAssert.Contains("bar", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(2, tags.Count); + ClassicAssert.Contains("foo", tags); + ClassicAssert.Contains("bar", tags); + } - [Test] - public void ShouldNotFetchDuplicateTags() + [Test] + public void ShouldNotFetchDuplicateTags() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "foo" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentSpec = specInfo, - CurrentScenario = scenarioInfo - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "foo" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentSpec = specInfo, + CurrentScenario = scenarioInfo + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); + } - [Test] - public void ShouldExecuteBeforeScenarioHook() + [Test] + public async Task ShouldExecuteBeforeScenarioHook() + { + var scenarioExecutionEndingRequest = new ScenarioExecutionStartingRequest { - var scenarioExecutionEndingRequest = new ScenarioExecutionStartingRequest - { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo(), - CurrentScenario = new ScenarioInfo() - } - }; - - var mockMethodExecutor = new Mock(); - var protoExecutionResult = new ProtoExecutionResult + CurrentExecutionInfo = new ExecutionInfo { - ExecutionTime = 0, - Failed = false - }; - - var pendingMessages = new List { "one", "two" }; - var pendingScreenshotFiles = new List { "screenshot.png" }; - - mockMethodExecutor.Setup(x => - x.ExecuteHooks("BeforeScenario", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(pendingMessages); - mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); - - var processor = new ScenarioExecutionStartingProcessor(mockMethodExecutor.Object); - - var result = processor.Process(scenarioExecutionEndingRequest); - ClassicAssert.False(result.ExecutionResult.Failed); - ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); - } + CurrentSpec = new SpecInfo(), + CurrentScenario = new ScenarioInfo() + } + }; + + var mockMethodExecutor = new Mock(); + var protoExecutionResult = new ProtoExecutionResult + { + ExecutionTime = 0, + Failed = false + }; + + var pendingMessages = new List { "one", "two" }; + var pendingScreenshotFiles = new List { "screenshot.png" }; + + mockMethodExecutor.Setup(x => + x.ExecuteHooks("BeforeScenario", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(pendingMessages); + mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); + + var processor = new ScenarioExecutionStartingProcessor(mockMethodExecutor.Object, config); + + var result = await processor.Process(1, scenarioExecutionEndingRequest); + ClassicAssert.False(result.ExecutionResult.Failed); + ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); } } \ No newline at end of file diff --git a/test/Processors/SpecExecutionEndingProcessorTests.cs b/test/Processors/SpecExecutionEndingProcessorTests.cs index 2b4d9e9..402cb32 100644 --- a/test/Processors/SpecExecutionEndingProcessorTests.cs +++ b/test/Processors/SpecExecutionEndingProcessorTests.cs @@ -5,83 +5,79 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class SpecExecutionEndingProcessorTests { - internal class SpecExecutionEndingProcessorTests + [Test] + public void ShouldExtendFromTaggedHooksFirstExecutionProcessor() { - [Test] - public void ShouldExtendFromTaggedHooksFirstExecutionProcessor() - { - AssertEx.InheritsFrom(); - } + AssertEx.InheritsFrom(); + } - [Test] - public void ShouldGetTagListFromExecutionInfo() + [Test] + public void ShouldGetTagListFromExecutionInfo() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var executionInfo = new ExecutionInfo - { - CurrentSpec = specInfo - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var executionInfo = new ExecutionInfo + { + CurrentSpec = specInfo + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", executionInfo) - .ToList(); + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", executionInfo) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); + } - [Test] - public void ShouldExecuteBeforeSpecHook() + [Test] + public async Task ShouldExecuteBeforeSpecHook() + { + var request = new SpecExecutionEndingRequest { - var request = new SpecExecutionEndingRequest + CurrentExecutionInfo = new ExecutionInfo { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo() - } - }; + CurrentSpec = new SpecInfo() + } + }; - var mockMethodExecutor = new Mock(); - var protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; + var mockMethodExecutor = new Mock(); + var protoExecutionResult = new ProtoExecutionResult + { + ExecutionTime = 0, + Failed = false + }; - var pendingMessages = new List { "one", "two" }; - var pendingScreenshotFiles = new List { "screenshot.png" }; + var pendingMessages = new List { "one", "two" }; + var pendingScreenshotFiles = new List { "screenshot.png" }; - mockMethodExecutor.Setup(x => - x.ExecuteHooks("AfterSpec", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(pendingMessages); - mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); - var processor = new SpecExecutionEndingProcessor(mockMethodExecutor.Object); + mockMethodExecutor.Setup(x => + x.ExecuteHooks("AfterSpec", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(pendingMessages); + mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); + var processor = new SpecExecutionEndingProcessor(mockMethodExecutor.Object, config); - var result = processor.Process(request); - ClassicAssert.False(result.ExecutionResult.Failed); - ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); - } + var result = await processor.Process(1, request); + ClassicAssert.False(result.ExecutionResult.Failed); + ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); } } \ No newline at end of file diff --git a/test/Processors/SpecExecutionStartingProcessorTests.cs b/test/Processors/SpecExecutionStartingProcessorTests.cs index 33f4c2b..475f875 100644 --- a/test/Processors/SpecExecutionStartingProcessorTests.cs +++ b/test/Processors/SpecExecutionStartingProcessorTests.cs @@ -5,85 +5,81 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class SpecExecutionStartingProcessorTests { - internal class SpecExecutionStartingProcessorTests + [Test] + public void ShouldExtendFromUntaggedHooksFirstExecutionProcessor() { - [Test] - public void ShouldExtendFromUntaggedHooksFirstExecutionProcessor() - { - AssertEx.InheritsFrom(); - } + AssertEx.InheritsFrom(); + } - [Test] - public void ShouldGetTagListFromExecutionInfo() + [Test] + public void ShouldGetTagListFromExecutionInfo() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var executionInfo = new ExecutionInfo - { - CurrentSpec = specInfo - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var executionInfo = new ExecutionInfo + { + CurrentSpec = specInfo + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", executionInfo) - .ToList(); + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", executionInfo) + .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); + } - [Test] - public void ShouldExecutreBeforeSpecHook() + [Test] + public async Task ShouldExecutreBeforeSpecHook() + { + var specExecutionStartingRequest = new SpecExecutionStartingRequest { - var specExecutionStartingRequest = new SpecExecutionStartingRequest + CurrentExecutionInfo = new ExecutionInfo { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo() - } - }; - var request = specExecutionStartingRequest; + CurrentSpec = new SpecInfo() + } + }; + var request = specExecutionStartingRequest; - var mockMethodExecutor = new Mock(); - var protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; - var pendingMessages = new List { "one", "two" }; - var pendingScreenshotFiles = new List { "screenshot.png" }; + var mockMethodExecutor = new Mock(); + var protoExecutionResult = new ProtoExecutionResult + { + ExecutionTime = 0, + Failed = false + }; + var pendingMessages = new List { "one", "two" }; + var pendingScreenshotFiles = new List { "screenshot.png" }; - mockMethodExecutor.Setup(x => - x.ExecuteHooks("BeforeSpec", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(pendingMessages); - mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + mockMethodExecutor.Setup(x => + x.ExecuteHooks("BeforeSpec", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(pendingMessages); + mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); - var processor = new SpecExecutionStartingProcessor(mockMethodExecutor.Object); + var processor = new SpecExecutionStartingProcessor(mockMethodExecutor.Object, config); - var result = processor.Process(request); - ClassicAssert.False(result.ExecutionResult.Failed); - ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); - } + var result = await processor.Process(1, request); + ClassicAssert.False(result.ExecutionResult.Failed); + ClassicAssert.AreEqual(result.ExecutionResult.Message.ToList(), pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles.ToList(), pendingScreenshotFiles); } } \ No newline at end of file diff --git a/test/Processors/StepExecutionEndingProcessorTests.cs b/test/Processors/StepExecutionEndingProcessorTests.cs index 15c33cc..0dac811 100644 --- a/test/Processors/StepExecutionEndingProcessorTests.cs +++ b/test/Processors/StepExecutionEndingProcessorTests.cs @@ -5,160 +5,155 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Dotnet.UnitTests.Helpers; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class StepExecutionEndingProcessorTests { - internal class StepExecutionEndingProcessorTests - { - private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; + private readonly IEnumerable _pendingMessages = new List { "Foo", "Bar" }; - private readonly IEnumerable _pendingScreenshotFiles = new List { "SCREENSHOT.png" }; + private readonly IEnumerable _pendingScreenshotFiles = new List { "SCREENSHOT.png" }; - private Mock _mockMethodExecutor; - private ProtoExecutionResult _protoExecutionResult; - private StepExecutionEndingRequest _stepExecutionEndingRequest; - private StepExecutionEndingProcessor _stepExecutionEndingProcessor; + private Mock _mockMethodExecutor; + private ProtoExecutionResult _protoExecutionResult; + private StepExecutionEndingRequest _stepExecutionEndingRequest; + private StepExecutionEndingProcessor _stepExecutionEndingProcessor; - [SetUp] - public void Setup() + [SetUp] + public void Setup() + { + var mockHookRegistry = new Mock(); + var mockAssemblyLoader = new Mock(); + var mockMessageCollectorType = new Mock(); + var mockScreenshotFilesCollectorType = new Mock(); + + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)) + .Returns(mockMessageCollectorType.Object); + mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)) + .Returns(mockScreenshotFilesCollectorType.Object); + var mockMethod = new MockMethodBuilder(mockAssemblyLoader) + .WithName("Foo") + .WithFilteredHook(LibType.BeforeSpec) + .Build(); + var hooks = new HashSet { - var mockHookRegistry = new Mock(); - var mockAssemblyLoader = new Mock(); - var mockMessageCollectorType = new Mock(); - var mockScreenshotFilesCollectorType = new Mock(); - - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.MessageCollector)) - .Returns(mockMessageCollectorType.Object); - mockAssemblyLoader.Setup(x => x.GetLibType(LibType.ScreenshotFilesCollector)) - .Returns(mockScreenshotFilesCollectorType.Object); - var mockMethod = new MockMethodBuilder(mockAssemblyLoader) - .WithName("Foo") - .WithFilteredHook(LibType.BeforeSpec) - .Build(); - var hooks = new HashSet - { - new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) - }; - mockHookRegistry.Setup(x => x.AfterStepHooks).Returns(hooks); - _stepExecutionEndingRequest = new StepExecutionEndingRequest - { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo(), - CurrentScenario = new ScenarioInfo() - } - }; - - _mockMethodExecutor = new Mock(); - _protoExecutionResult = new ProtoExecutionResult - { - ExecutionTime = 0, - Failed = false - }; - - _mockMethodExecutor.Setup(x => - x.ExecuteHooks("AfterStep", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(_protoExecutionResult); - _mockMethodExecutor.Setup(x => - x.GetAllPendingMessages()).Returns(_pendingMessages); - _mockMethodExecutor.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); - _stepExecutionEndingProcessor = new StepExecutionEndingProcessor(_mockMethodExecutor.Object); - } - - [Test] - public void ShouldExtendFromHooksExecutionProcessor() + new HookMethod(LibType.BeforeSpec, mockMethod, mockAssemblyLoader.Object) + }; + mockHookRegistry.Setup(x => x.AfterStepHooks).Returns(hooks); + _stepExecutionEndingRequest = new StepExecutionEndingRequest { - AssertEx.InheritsFrom(); - } + CurrentExecutionInfo = new ExecutionInfo + { + CurrentSpec = new SpecInfo(), + CurrentScenario = new ScenarioInfo() + } + }; - [Test] - public void ShouldReadPendingMessages() + _mockMethodExecutor = new Mock(); + _protoExecutionResult = new ProtoExecutionResult { - var response = _stepExecutionEndingProcessor.Process(_stepExecutionEndingRequest); + ExecutionTime = 0, + Failed = false + }; + + _mockMethodExecutor.Setup(x => + x.ExecuteHooks("AfterStep", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(_protoExecutionResult); + _mockMethodExecutor.Setup(x => + x.GetAllPendingMessages()).Returns(_pendingMessages); + _mockMethodExecutor.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(_pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); + _stepExecutionEndingProcessor = new StepExecutionEndingProcessor(_mockMethodExecutor.Object, config); + } - ClassicAssert.True(response != null); - ClassicAssert.True(response.ExecutionResult != null); - ClassicAssert.AreEqual(2, response.ExecutionResult.Message.Count); - ClassicAssert.AreEqual(1, response.ExecutionResult.ScreenshotFiles.Count); + [Test] + public void ShouldExtendFromHooksExecutionProcessor() + { + AssertEx.InheritsFrom(); + } + + [Test] + public async Task ShouldReadPendingMessages() + { + var response = await _stepExecutionEndingProcessor.Process(1, _stepExecutionEndingRequest); + + ClassicAssert.True(response != null); + ClassicAssert.True(response.ExecutionResult != null); + ClassicAssert.AreEqual(2, response.ExecutionResult.Message.Count); + ClassicAssert.AreEqual(1, response.ExecutionResult.ScreenshotFiles.Count); + + foreach (var pendingMessage in _pendingMessages) + ClassicAssert.Contains(pendingMessage, response.ExecutionResult.Message.ToList()); + } - foreach (var pendingMessage in _pendingMessages) - ClassicAssert.Contains(pendingMessage, response.ExecutionResult.Message.ToList()); - } + [Test] + public void ShouldGetTagListFromScenarioAndSpec() + { + var specInfo = new SpecInfo + { + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "bar" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentScenario = scenarioInfo, + CurrentSpec = specInfo + }; + + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(2, tags.Count); + ClassicAssert.Contains("foo", tags); + ClassicAssert.Contains("bar", tags); + } - [Test] - public void ShouldGetTagListFromScenarioAndSpec() + [Test] + public void ShouldGetTagListFromScenarioAndSpecAndIgnoreDuplicates() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "bar" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentScenario = scenarioInfo, - CurrentSpec = specInfo - }; - - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(2, tags.Count); - ClassicAssert.Contains("foo", tags); - ClassicAssert.Contains("bar", tags); - } - - [Test] - public void ShouldGetTagListFromScenarioAndSpecAndIgnoreDuplicates() + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "foo" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentScenario = scenarioInfo, - CurrentSpec = specInfo - }; - var currentExecutionInfo = new StepExecutionEndingRequest - { - CurrentExecutionInfo = currentScenario - }; - - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + Tags = { "foo" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentScenario = scenarioInfo, + CurrentSpec = specInfo + }; + var currentExecutionInfo = new StepExecutionEndingRequest + { + CurrentExecutionInfo = currentScenario + }; + + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); } } \ No newline at end of file diff --git a/test/Processors/StepExecutionStartingProcessorTests.cs b/test/Processors/StepExecutionStartingProcessorTests.cs index 3c9919d..b580483 100644 --- a/test/Processors/StepExecutionStartingProcessorTests.cs +++ b/test/Processors/StepExecutionStartingProcessorTests.cs @@ -5,127 +5,122 @@ *----------------------------------------------------------------*/ -using System.Collections.Generic; -using System.Linq; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +internal class StepExecutionStartingProcessorTests { - internal class StepExecutionStartingProcessorTests + [Test] + public void ShouldExtendFromHooksExecutionProcessor() { - [Test] - public void ShouldExtendFromHooksExecutionProcessor() - { - AssertEx.InheritsFrom(); - } + AssertEx.InheritsFrom(); + } - [Test] - public void ShouldClearExistingGaugeMessages() - { - var mockExecutionHelper = new Mock(); + [Test] + public async Task ShouldClearExistingGaugeMessages() + { + var mockExecutionHelper = new Mock(); - var request = new StepExecutionStartingRequest + var request = new StepExecutionStartingRequest + { + CurrentExecutionInfo = new ExecutionInfo { - CurrentExecutionInfo = new ExecutionInfo - { - CurrentSpec = new SpecInfo(), - CurrentScenario = new ScenarioInfo() - } - }; + CurrentSpec = new SpecInfo(), + CurrentScenario = new ScenarioInfo() + } + }; - var protoExecutionResult = new ProtoExecutionResult { ExecutionTime = 0, Failed = false }; - mockExecutionHelper.Setup(executor => - executor.ExecuteHooks(It.IsAny(), It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - var hookRegistry = new Mock(); - hookRegistry.Setup(registry => registry.BeforeStepHooks).Returns(new HashSet()); + var protoExecutionResult = new ProtoExecutionResult { ExecutionTime = 0, Failed = false }; + mockExecutionHelper.Setup(executor => + executor.ExecuteHooks(It.IsAny(), It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + var hookRegistry = new Mock(); + hookRegistry.Setup(registry => registry.BeforeStepHooks).Returns(new HashSet()); - var pendingMessages = new List { "one", "two" }; - var pendingScreenshotFiles = new List { "screenshot.png" }; + var pendingMessages = new List { "one", "two" }; + var pendingScreenshotFiles = new List { "screenshot.png" }; - mockExecutionHelper.Setup(x => - x.ExecuteHooks("BeforeStep", It.IsAny(), It.IsAny>(), - It.IsAny())) - .Returns(protoExecutionResult); - mockExecutionHelper.Setup(x => - x.GetAllPendingMessages()).Returns(pendingMessages); - mockExecutionHelper.Setup(x => - x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + mockExecutionHelper.Setup(x => + x.ExecuteHooks("BeforeStep", It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())) + .ReturnsAsync(protoExecutionResult); + mockExecutionHelper.Setup(x => + x.GetAllPendingMessages()).Returns(pendingMessages); + mockExecutionHelper.Setup(x => + x.GetAllPendingScreenshotFiles()).Returns(pendingScreenshotFiles); + var config = new ConfigurationBuilder().Build(); - var processor = new StepExecutionStartingProcessor(mockExecutionHelper.Object); - var result = processor.Process(request); - ClassicAssert.AreEqual(result.ExecutionResult.Message, pendingMessages); - ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, pendingScreenshotFiles); - } + var processor = new StepExecutionStartingProcessor(mockExecutionHelper.Object, config); + var result = await processor.Process(1, request); + ClassicAssert.AreEqual(result.ExecutionResult.Message, pendingMessages); + ClassicAssert.AreEqual(result.ExecutionResult.ScreenshotFiles, pendingScreenshotFiles); + } - [Test] - public void ShouldGetTagListFromScenarioAndSpec() + [Test] + public void ShouldGetTagListFromScenarioAndSpec() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "bar" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentScenario = scenarioInfo, - CurrentSpec = specInfo - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "bar" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentScenario = scenarioInfo, + CurrentSpec = specInfo + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(2, tags.Count); - ClassicAssert.Contains("foo", tags); - ClassicAssert.Contains("bar", tags); - } + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(2, tags.Count); + ClassicAssert.Contains("foo", tags); + ClassicAssert.Contains("bar", tags); + } - [Test] - public void ShouldGetTagListFromScenarioAndSpecAndIgnoreDuplicates() + [Test] + public void ShouldGetTagListFromScenarioAndSpecAndIgnoreDuplicates() + { + var specInfo = new SpecInfo { - var specInfo = new SpecInfo - { - Tags = { "foo" }, - Name = "", - FileName = "", - IsFailed = false - }; - var scenarioInfo = new ScenarioInfo - { - Tags = { "foo" }, - Name = "", - IsFailed = false - }; - var currentScenario = new ExecutionInfo - { - CurrentScenario = scenarioInfo, - CurrentSpec = specInfo - }; - var currentExecutionInfo = new StepExecutionStartingRequest - { - CurrentExecutionInfo = currentScenario - }; + Tags = { "foo" }, + Name = "", + FileName = "", + IsFailed = false + }; + var scenarioInfo = new ScenarioInfo + { + Tags = { "foo" }, + Name = "", + IsFailed = false + }; + var currentScenario = new ExecutionInfo + { + CurrentScenario = scenarioInfo, + CurrentSpec = specInfo + }; + var currentExecutionInfo = new StepExecutionStartingRequest + { + CurrentExecutionInfo = currentScenario + }; - var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) - .ToList(); - ClassicAssert.IsNotEmpty(tags); - ClassicAssert.AreEqual(1, tags.Count); - ClassicAssert.Contains("foo", tags); - } + var tags = AssertEx.ExecuteProtectedMethod("GetApplicableTags", currentScenario) + .ToList(); + ClassicAssert.IsNotEmpty(tags); + ClassicAssert.AreEqual(1, tags.Count); + ClassicAssert.Contains("foo", tags); } } \ No newline at end of file diff --git a/test/Processors/StepNameProcessorTest.cs b/test/Processors/StepNameProcessorTest.cs index 81aed38..566ef09 100644 --- a/test/Processors/StepNameProcessorTest.cs +++ b/test/Processors/StepNameProcessorTest.cs @@ -1,102 +1,97 @@ -using System.Collections.Generic; -using Gauge.Dotnet.Models; +using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +public class StepNameProcessorTest { - public class StepNameProcessorTest + public class StepNameProcessorTests { - public class StepNameProcessorTests + [Test] + public async Task ShouldProcessStepNameRequest() { - [Test] - public void ShouldProcessStepNameRequest() + var mockStepRegistry = new Mock(); + var request = new StepNameRequest { - var mockStepRegistry = new Mock(); - var request = new StepNameRequest - { - StepValue = "step1" - }; + StepValue = "step1" + }; - var parsedStepText = request.StepValue; - const string stepText = "step1"; - mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); - mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); - var gaugeMethod = new GaugeMethod - { - FileName = "foo" - }; - mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); - mockStepRegistry.Setup(r => r.HasAlias(stepText)).Returns(false); - var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); + var parsedStepText = request.StepValue; + const string stepText = "step1"; + mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); + mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); + var gaugeMethod = new GaugeMethod + { + FileName = "foo" + }; + mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); + mockStepRegistry.Setup(r => r.HasAlias(stepText)).Returns(false); + var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); - var response = stepNameProcessor.Process(request); + var response = await stepNameProcessor.Process(1, request); - ClassicAssert.AreEqual(response.FileName, "foo"); - ClassicAssert.AreEqual(response.StepName[0], "step1"); - ClassicAssert.False(response.HasAlias); - } + ClassicAssert.AreEqual(response.FileName, "foo"); + ClassicAssert.AreEqual(response.StepName[0], "step1"); + ClassicAssert.False(response.HasAlias); + } - [Test] - public void ShouldProcessStepNameWithAliasRequest() + [Test] + public async Task ShouldProcessStepNameWithAliasRequest() + { + var mockStepRegistry = new Mock(); + var request = new StepNameRequest { - var mockStepRegistry = new Mock(); - var request = new StepNameRequest - { - StepValue = "step1" - }; - var parsedStepText = request.StepValue; - const string stepText = "step1"; - mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); - mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); + StepValue = "step1" + }; + var parsedStepText = request.StepValue; + const string stepText = "step1"; + mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); + mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); - var gaugeMethod = new GaugeMethod - { - FileName = "foo", - HasAlias = true, - Aliases = new List { "step2", "step3" } - }; - mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); - mockStepRegistry.Setup(r => r.HasAlias(stepText)).Returns(true); - var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); + var gaugeMethod = new GaugeMethod + { + FileName = "foo", + HasAlias = true, + Aliases = new List { "step2", "step3" } + }; + mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); + mockStepRegistry.Setup(r => r.HasAlias(stepText)).Returns(true); + var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); - var response = stepNameProcessor.Process(request); + var response = await stepNameProcessor.Process(1, request); - ClassicAssert.AreEqual(response.FileName, "foo"); - ClassicAssert.AreEqual(response.StepName[0], "step2"); - ClassicAssert.AreEqual(response.StepName[1], "step3"); - ClassicAssert.True(response.HasAlias); - } + ClassicAssert.AreEqual(response.FileName, "foo"); + ClassicAssert.AreEqual(response.StepName[0], "step2"); + ClassicAssert.AreEqual(response.StepName[1], "step3"); + ClassicAssert.True(response.HasAlias); + } - [Test] - public void ShouldProcessExternalSteps() + [Test] + public async Task ShouldProcessExternalSteps() + { + var mockStepRegistry = new Mock(); + var request = new StepNameRequest { - var mockStepRegistry = new Mock(); - var request = new StepNameRequest - { - StepValue = "step1" - }; - var parsedStepText = request.StepValue; - const string stepText = "step1"; - mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); - mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); + StepValue = "step1" + }; + var parsedStepText = request.StepValue; + const string stepText = "step1"; + mockStepRegistry.Setup(r => r.ContainsStep(parsedStepText)).Returns(true); + mockStepRegistry.Setup(r => r.GetStepText(parsedStepText)).Returns(stepText); - var gaugeMethod = new GaugeMethod - { - FileName = "foo", - IsExternal = true - }; - mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); - var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); + var gaugeMethod = new GaugeMethod + { + FileName = "foo", + IsExternal = true + }; + mockStepRegistry.Setup(r => r.MethodFor(parsedStepText)).Returns(gaugeMethod); + var stepNameProcessor = new StepNameProcessor(mockStepRegistry.Object); - var response = stepNameProcessor.Process(request); + var response = await stepNameProcessor.Process(1, request); - ClassicAssert.True(response.IsExternal); - // ClassicAssert.AreEqual(response.FileName, null); - } + ClassicAssert.True(response.IsExternal); + // ClassicAssert.AreEqual(response.FileName, null); } } } \ No newline at end of file diff --git a/test/Processors/StepNamesProcessorTests.cs b/test/Processors/StepNamesProcessorTests.cs index cc4b91a..8e80fec 100644 --- a/test/Processors/StepNamesProcessorTests.cs +++ b/test/Processors/StepNamesProcessorTests.cs @@ -1,25 +1,20 @@ -using System.Collections.Generic; -using Gauge.Dotnet.Models; +using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +public class StepNamesProcessorTests { - public class StepNamesProcessorTests + [Test] + public async Task ShouldProcessStepNamesRequest() { - [Test] - public void ShouldProcessStepNamesRequest() - { - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(r => r.GetStepTexts()).Returns(new List { "step1", "step2", "step3" }); - var stepNamesProcessor = new StepNamesProcessor(mockStepRegistry.Object); - var request = new StepNamesRequest(); - var response = stepNamesProcessor.Process(request); - ClassicAssert.AreEqual(3, response.Steps.Count); - ClassicAssert.AreEqual(response.Steps[0], "step1"); - } + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(r => r.GetStepTexts()).Returns(new List { "step1", "step2", "step3" }); + var stepNamesProcessor = new StepNamesProcessor(mockStepRegistry.Object); + var request = new StepNamesRequest(); + var response = await stepNamesProcessor.Process(1, request); + ClassicAssert.AreEqual(3, response.Steps.Count); + ClassicAssert.AreEqual(response.Steps[0], "step1"); } } \ No newline at end of file diff --git a/test/Processors/StepPositionsProcessorTests.cs b/test/Processors/StepPositionsProcessorTests.cs index d40ea3c..8e43691 100644 --- a/test/Processors/StepPositionsProcessorTests.cs +++ b/test/Processors/StepPositionsProcessorTests.cs @@ -5,53 +5,48 @@ *----------------------------------------------------------------*/ -using System.Linq; using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; using static Gauge.Messages.StepPositionsResponse.Types; -namespace Gauge.Dotnet.UnitTests.Processors +namespace Gauge.Dotnet.UnitTests.Processors; + +public class StepPositionsProcessorTests { - public class StepPositionsProcessorTests + [Test] + public async Task ShouldProcessRequest() + { + var filePath = "Foo.cs"; + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.GetStepPositions(filePath)) + .Returns(new[] { new StepPosition { StepValue = "goodbye", Span = new Span { Start = 6, End = 16 } } }); + var processor = new StepPositionsProcessor(mockStepRegistry.Object); + var request = new StepPositionsRequest { FilePath = "Foo.cs" }; + + var response = await processor.Process(1, request); + + ClassicAssert.AreEqual(response.StepPositions.Count, 1); + ClassicAssert.AreEqual(response.StepPositions.First().StepValue, "goodbye"); + ClassicAssert.AreEqual(response.StepPositions.First().Span.Start, 6); + } + + + [Test] + public async Task ShouldProcessRequestForAliasSteps() { - [Test] - public void ShouldProcessRequest() - { - var filePath = "Foo.cs"; - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.GetStepPositions(filePath)) - .Returns(new[] { new StepPosition { StepValue = "goodbye", Span = new Span { Start = 6, End = 16 } } }); - var processor = new StepPositionsProcessor(mockStepRegistry.Object); - var request = new StepPositionsRequest { FilePath = "Foo.cs" }; - - var response = processor.Process(request); - - ClassicAssert.AreEqual(response.StepPositions.Count, 1); - ClassicAssert.AreEqual(response.StepPositions.First().StepValue, "goodbye"); - ClassicAssert.AreEqual(response.StepPositions.First().Span.Start, 6); - } - - - [Test] - public void ShouldProcessRequestForAliasSteps() - { - var filePath = "Foo.cs"; - var mockStepRegistry = new Mock(); - mockStepRegistry.Setup(x => x.GetStepPositions(filePath)) - .Returns(new[] { - new StepPosition{StepValue = "goodbye", Span = new Span{Start= 6, End= 16}}, - new StepPosition{StepValue = "Sayonara", Span = new Span{Start= 6, End= 16}}, - }); - var processor = new StepPositionsProcessor(mockStepRegistry.Object); - var request = new StepPositionsRequest { FilePath = filePath }; - - var response = processor.Process(request); - - ClassicAssert.AreEqual(response.StepPositions.Count, 2); - } + var filePath = "Foo.cs"; + var mockStepRegistry = new Mock(); + mockStepRegistry.Setup(x => x.GetStepPositions(filePath)) + .Returns(new[] { + new StepPosition{StepValue = "goodbye", Span = new Span{Start= 6, End= 16}}, + new StepPosition{StepValue = "Sayonara", Span = new Span{Start= 6, End= 16}}, + }); + var processor = new StepPositionsProcessor(mockStepRegistry.Object); + var request = new StepPositionsRequest { FilePath = filePath }; + + var response = await processor.Process(1, request); + + ClassicAssert.AreEqual(response.StepPositions.Count, 2); } } \ No newline at end of file diff --git a/test/Processors/Stubs/TestHooksExecutionProcessor.cs b/test/Processors/Stubs/TestHooksExecutionProcessor.cs index 69dff2c..b72cbfd 100644 --- a/test/Processors/Stubs/TestHooksExecutionProcessor.cs +++ b/test/Processors/Stubs/TestHooksExecutionProcessor.cs @@ -5,25 +5,24 @@ *----------------------------------------------------------------*/ -using System; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; -using Gauge.Messages; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors.Stubs +namespace Gauge.Dotnet.UnitTests.Processors.Stubs; + +public class TestHooksExecutionProcessor : HookExecutionProcessor { - public class TestHooksExecutionProcessor : HookExecutionProcessor + public TestHooksExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public TestHooksExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => throw new NotImplementedException(); + protected override string HookType => throw new NotImplementedException(); - public HooksStrategy GetHooksStrategy() - { - return Strategy; - } + public HooksStrategy GetHooksStrategy() + { + return Strategy; } } \ No newline at end of file diff --git a/test/Processors/Stubs/TestTaggedHooksFirstExecutionProcessor.cs b/test/Processors/Stubs/TestTaggedHooksFirstExecutionProcessor.cs index b8bc9ba..7528fe1 100644 --- a/test/Processors/Stubs/TestTaggedHooksFirstExecutionProcessor.cs +++ b/test/Processors/Stubs/TestTaggedHooksFirstExecutionProcessor.cs @@ -5,25 +5,24 @@ *----------------------------------------------------------------*/ -using System; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; -using Gauge.Messages; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors.Stubs +namespace Gauge.Dotnet.UnitTests.Processors.Stubs; + +public class TestTaggedHooksFirstExecutionProcessor : TaggedHooksFirstExecutionProcessor { - public class TestTaggedHooksFirstExecutionProcessor : TaggedHooksFirstExecutionProcessor + public TestTaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public TestTaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => throw new NotImplementedException(); + protected override string HookType => throw new NotImplementedException(); - public HooksStrategy GetHooksStrategy() - { - return Strategy; - } + public HooksStrategy GetHooksStrategy() + { + return Strategy; } } \ No newline at end of file diff --git a/test/Processors/Stubs/TestUntaggedHooksFirstExecutionProcessor.cs b/test/Processors/Stubs/TestUntaggedHooksFirstExecutionProcessor.cs index 6a898fd..8ee2285 100644 --- a/test/Processors/Stubs/TestUntaggedHooksFirstExecutionProcessor.cs +++ b/test/Processors/Stubs/TestUntaggedHooksFirstExecutionProcessor.cs @@ -5,26 +5,24 @@ *----------------------------------------------------------------*/ -using System; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Processors; using Gauge.Dotnet.Strategy; -using Gauge.Dotnet.Wrappers; -using Gauge.Messages; +using Microsoft.Extensions.Configuration; -namespace Gauge.Dotnet.UnitTests.Processors.Stubs +namespace Gauge.Dotnet.UnitTests.Processors.Stubs; + +public class TestUntaggedHooksFirstExecutionProcessor : UntaggedHooksFirstExecutionProcessor { - public class TestUntaggedHooksFirstExecutionProcessor : UntaggedHooksFirstExecutionProcessor + public TestUntaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator, IConfiguration config) + : base(executionOrchestrator, config) { - public TestUntaggedHooksFirstExecutionProcessor(IExecutionOrchestrator executionOrchestrator) - : base(executionOrchestrator) - { - } + } - protected override string HookType => throw new NotImplementedException(); + protected override string HookType => throw new NotImplementedException(); - public HooksStrategy GetHooksStrategy() - { - return Strategy; - } + public HooksStrategy GetHooksStrategy() + { + return Strategy; } } \ No newline at end of file diff --git a/test/StartCommandTests.cs b/test/StartCommandTests.cs deleted file mode 100644 index 2a0a680..0000000 --- a/test/StartCommandTests.cs +++ /dev/null @@ -1,112 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.IO; -using System.Runtime.InteropServices; -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; - -namespace Gauge.Dotnet.UnitTests -{ - [TestFixture] - internal class StartCommandTests - { - class FakeGaugeListener : GaugeListener - { - public FakeGaugeListener(IConfiguration configuration) : base(configuration) - { - } - - public override void ConfigureServices(IServiceCollection services) { } - public override void Configure(IApplicationBuilder app, IHostApplicationLifetime lifetime) { } - } - - [SetUp] - public void Setup() - { - _mockGaugeProjectBuilder = new Mock(); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", TempPath); - _startCommand = new StartCommand(_mockGaugeProjectBuilder.Object, typeof(FakeGaugeListener)); - } - - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", null); - } - - private readonly string TempPath = Path.GetTempPath(); - - private Mock _mockGaugeProjectBuilder; - private StartCommand _startCommand; - - [Test] - public void ShouldInvokeProjectBuild() - { - _startCommand.Execute().ContinueWith(b => - { - _mockGaugeProjectBuilder.Verify(builder => builder.BuildTargetGaugeProject(), Times.Once); - }); - } - - [Test] - public void ShouldNotBuildWhenCustomBuildPathIsSetAsync() - { - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", "GAUGE_CUSTOM_BUILD_PATH"); - _startCommand.Execute().ContinueWith(b => - { - _mockGaugeProjectBuilder.Verify(builder => builder.BuildTargetGaugeProject(), Times.Never); - }); - - } - - [Test] - public void ShouldNotPollForMessagesWhenBuildFails() - { - _mockGaugeProjectBuilder.Setup(builder => builder.BuildTargetGaugeProject()).Returns(false); - _startCommand.Execute() - .ContinueWith(b => ClassicAssert.False(b.Result, "Should not start server when build fails")); - } - - [Test] - public void ShouldPollForMessagesWhenBuildPasses() - { - _mockGaugeProjectBuilder.Setup(builder => builder.BuildTargetGaugeProject()).Returns(true); - - _startCommand.Execute() - .ContinueWith(b => ClassicAssert.True(b.Result, "Should start server using GaugeListener when build passes")); - } - - [Test] - public void ShouldPollForMessagesWhenCustomBuildPathIsSet() - { - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", "GAUGE_CUSTOM_BUILD_PATH"); - - _startCommand.Execute() - .ContinueWith(b => ClassicAssert.True(b.Result, "Should start server using GaugeListener when GAUGE_CUSTOM_BUILD_PATH is set")); - } - - [Test] - public void ShouldRunProcessInProjectRoot() - { - var actual = Environment.CurrentDirectory.TrimEnd(Path.DirectorySeparatorChar); - var expected = TempPath.TrimEnd(Path.DirectorySeparatorChar); - // in osx the /var tmp path is a symlink to /private/var - if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) - expected = $"/private{expected}"; - - ClassicAssert.That(actual, Is.SamePath(expected)); - } - } -} \ No newline at end of file diff --git a/test/StaticLoaderTests.cs b/test/StaticLoaderTests.cs index a2cf31f..480d85e 100644 --- a/test/StaticLoaderTests.cs +++ b/test/StaticLoaderTests.cs @@ -5,288 +5,273 @@ *----------------------------------------------------------------*/ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using System.Xml.Linq; -using Gauge.CSharp.Core; using Gauge.Dotnet.Wrappers; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +public class StaticLoaderTests { - [TestFixture] - public class StaticLoaderTests + private IConfiguration _config; + private readonly string dummyProjectRoot = Path.Combine("non", "existent", "path"); + private readonly Mock> _logger = new(); + + [SetUp] + public void Setup() { - private string oldEnv; - private readonly string dummyProjectRoot = Path.Combine("non", "existent", "path"); - [SetUp] - public void Setup() - { - oldEnv = Environment.GetEnvironmentVariable("GAUGE_PROJECT_ROOT"); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", dummyProjectRoot); - } + _config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary { { "GAUGE_PROJECT_ROOT", dummyProjectRoot } }) + .Build(); + } - [TearDown] - public void Teardown() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", oldEnv); - } + [Test] + public void ShouldAddAliasesSteps() + { + var mockAttributesLoader = new Mock(); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + var mockDirectoryWrapper = new Mock(); + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class FooBar\n" + + " {\n" + + " [Step(\"goodbye\",\"adieu\", \"sayonara\")]\n" + + " public void farewell()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + const string fileName = @"foo.cs"; + loader.LoadStepsFromText(text, fileName); + var registry = loader.GetStepRegistry(); + + ClassicAssert.True(registry.ContainsStep("goodbye")); + ClassicAssert.True(registry.ContainsStep("adieu")); + ClassicAssert.True(registry.ContainsStep("sayonara")); + } - [Test] - public void ShouldAddAliasesSteps() - { - var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); - var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class FooBar\n" + - " {\n" + - " [Step(\"goodbye\",\"adieu\", \"sayonara\")]\n" + - " public void farewell()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - const string fileName = @"foo.cs"; - loader.LoadStepsFromText(text, fileName); - var registry = loader.GetStepRegistry(); - - ClassicAssert.True(registry.ContainsStep("goodbye")); - ClassicAssert.True(registry.ContainsStep("adieu")); - ClassicAssert.True(registry.ContainsStep("sayonara")); - } + [Test] + public void ShouldAddStepsFromGivenContent() + { + var mockAttributesLoader = new Mock(); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + var mockDirectoryWrapper = new Mock(); + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class FooBar\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + const string fileName = @"foo.cs"; + loader.LoadStepsFromText(text, fileName); + ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); + } - [Test] - public void ShouldAddStepsFromGivenContent() - { - var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); - var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class FooBar\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - const string fileName = @"foo.cs"; - loader.LoadStepsFromText(text, fileName); - ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); - } + [Test] + public void ShouldLoadStepsWithPosition() + { + var mockAttributesLoader = new Mock(); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + var mockDirectoryWrapper = new Mock(); + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + const string file1 = @"Foo.cs"; + + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class Foo\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + + loader.LoadStepsFromText(text, file1); + + const string file2 = @"Bar.cs"; + const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class Bar\n" + + " {\n" + + " [Step(\"hola\")]\n" + + " public void hola()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + + loader.ReloadSteps(newText, file2); + + var positions = loader.GetStepRegistry().GetStepPositions(file1).ToList(); + ClassicAssert.AreEqual(1, positions.Count); + ClassicAssert.AreEqual(6, positions.First().Span.Start); + ClassicAssert.AreEqual(9, positions.First().Span.End); + } - [Test] - public void ShouldLoadStepsWithPosition() - { - var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); - var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - const string file1 = @"Foo.cs"; - - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class Foo\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - - loader.LoadStepsFromText(text, file1); - - const string file2 = @"Bar.cs"; - const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class Bar\n" + - " {\n" + - " [Step(\"hola\")]\n" + - " public void hola()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - - loader.ReloadSteps(newText, file2); - - var positions = loader.GetStepRegistry().GetStepPositions(file1).ToList(); - ClassicAssert.AreEqual(1, positions.Count); - ClassicAssert.AreEqual(6, positions.First().Span.Start); - ClassicAssert.AreEqual(9, positions.First().Span.End); - } + [Test] + public void ShouldNotReloadStepOfRemovedFile() + { + var currentDirectory = Directory.GetCurrentDirectory(); + _config["GAUGE_PROJECT_ROOT"] = currentDirectory; + var mockAttributesLoader = new Mock(); + var csprojText = XDocument.Parse(""); + var attributes = csprojText.Descendants().Attributes("Remove"); + var list = new List(); + list.AddRange(attributes); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(list); + var mockDirectoryWrapper = new Mock(); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class FooBar\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + const string fileName = @"foo.cs"; + var filePath = Path.Combine(currentDirectory, fileName); + loader.ReloadSteps(text, filePath); + ClassicAssert.False(loader.GetStepRegistry().ContainsStep("hello")); + } - [Test] - public void ShouldNotReloadStepOfRemovedFile() - { - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", Directory.GetCurrentDirectory()); - var mockAttributesLoader = new Mock(); - var csprojText = XDocument.Parse(""); - var attributes = csprojText.Descendants().Attributes("Remove"); - var list = new List(); - list.AddRange(attributes); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(list); - var mockDirectoryWrapper = new Mock(); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class FooBar\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - const string fileName = @"foo.cs"; - var filePath = Path.Combine(Utils.GaugeProjectRoot, fileName); - loader.ReloadSteps(text, filePath); - ClassicAssert.False(loader.GetStepRegistry().ContainsStep("hello")); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", null); - } + [Test] + public void ShouldReloadSteps() + { + var mockAttributesLoader = new Mock(); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + var mockDirectoryWrapper = new Mock(); + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class FooBar\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + const string fileName = @"foo.cs"; + loader.LoadStepsFromText(text, fileName); + ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); + + const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class FooBar\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " [Step(\"hola\")]\n" + + " public void hola()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + + loader.ReloadSteps(newText, fileName); + + ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hola")); + } - [Test] - public void ShouldReloadSteps() + [Test] + public void ShouldRemoveSteps() + { + var mockAttributesLoader = new Mock(); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + var mockDirectoryWrapper = new Mock(); + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + const string file1 = @"Foo.cs"; + + const string text = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class Foo\n" + + " {\n" + + " [Step(\"hello\")]\n" + + " public void hello()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + + loader.LoadStepsFromText(text, file1); + + const string file2 = @"Bar.cs"; + const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + + "namespace foobar\n" + + "{\n" + + " public class Bar\n" + + " {\n" + + " [Step(\"hola\")]\n" + + " public void hola()\n" + + " {\n" + + " }\n" + + " }\n" + + "}\n"; + + loader.ReloadSteps(newText, file2); + + ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); + ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hola")); + + loader.RemoveSteps(file2); + + ClassicAssert.False(loader.GetStepRegistry().ContainsStep("hola")); + } + + public class LoadImplementationsTest + { + private IConfiguration _config; + private readonly string dummyBuildPath = Path.Combine("foo"); + private readonly Mock> _logger = new(); + + [SetUp] + public void Setup() { - var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); - var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class FooBar\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - const string fileName = @"foo.cs"; - loader.LoadStepsFromText(text, fileName); - ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); - - const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class FooBar\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " [Step(\"hola\")]\n" + - " public void hola()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - - loader.ReloadSteps(newText, fileName); - - ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hola")); + _config = new ConfigurationBuilder() + .AddInMemoryCollection(new Dictionary { { "GAUGE_CUSTOM_BUILD_PATH", dummyBuildPath } }) + .Build(); } [Test] - public void ShouldRemoveSteps() + public void ShouldNotLoadWhenCustomBuildPathIsSet() { var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Returns(new List()); + mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Verifiable(); var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(dummyProjectRoot, "*.cs", SearchOption.AllDirectories)).Returns(Enumerable.Empty); - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - const string file1 = @"Foo.cs"; - - const string text = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class Foo\n" + - " {\n" + - " [Step(\"hello\")]\n" + - " public void hello()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - - loader.LoadStepsFromText(text, file1); - - const string file2 = @"Bar.cs"; - const string newText = "using Gauge.CSharp.Lib.Attributes;\n" + - "namespace foobar\n" + - "{\n" + - " public class Bar\n" + - " {\n" + - " [Step(\"hola\")]\n" + - " public void hola()\n" + - " {\n" + - " }\n" + - " }\n" + - "}\n"; - - loader.ReloadSteps(newText, file2); - - ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hello")); - ClassicAssert.True(loader.GetStepRegistry().ContainsStep("hola")); - - loader.RemoveSteps(file2); - - ClassicAssert.False(loader.GetStepRegistry().ContainsStep("hola")); - } + mockDirectoryWrapper.Setup(x => x.EnumerateFiles(It.IsAny(), "*.cs", SearchOption.AllDirectories)); - public class LoadImplementationsTest - { - private const string GaugeCustomBuildPathEnv = "GAUGE_CUSTOM_BUILD_PATH"; - private string old; - - [SetUp] - public void Setup() - { - old = Utils.TryReadEnvValue(GaugeCustomBuildPathEnv); - Environment.SetEnvironmentVariable(GaugeCustomBuildPathEnv, "foo"); - } - - [Test] - public void ShouldNotLoadWhenCustomBuildPathIsSet() - { - var mockAttributesLoader = new Mock(); - mockAttributesLoader.Setup(x => x.GetRemovedAttributes()).Verifiable(); - var mockDirectoryWrapper = new Mock(); - mockDirectoryWrapper.Setup(x => x.EnumerateFiles(It.IsAny(), "*.cs", SearchOption.AllDirectories)); - - var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object); - - mockAttributesLoader.Verify(x => x.GetRemovedAttributes(), Times.Never()); - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", old); - } - - [TearDown] - public void TearDown() - { - Environment.SetEnvironmentVariable(GaugeCustomBuildPathEnv, old); - } + var loader = new StaticLoader(mockAttributesLoader.Object, mockDirectoryWrapper.Object, _config, _logger.Object); + + mockAttributesLoader.Verify(x => x.GetRemovedAttributes(), Times.Never()); } } } \ No newline at end of file diff --git a/test/StepExecutorTests.cs b/test/StepExecutorTests.cs index d3492d9..d12839b 100644 --- a/test/StepExecutorTests.cs +++ b/test/StepExecutorTests.cs @@ -5,129 +5,100 @@ *----------------------------------------------------------------*/ -using System; -using System.Threading; +using Gauge.CSharp.Lib; +using Gauge.Dotnet.Executors; using Gauge.Dotnet.Models; using Gauge.Dotnet.UnitTests.Helpers; -using Gauge.Dotnet.Wrappers; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; +using Microsoft.Extensions.Logging; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +internal class StepExecutorTests { - [TestFixture] - internal class StepExecutorTests + private readonly Mock> _logger = new(); + + [Test] + public async Task ShoudExecuteStep() { - [Test] - public void ShoudExecuteStep() + var mockClassInstanceManager = new Mock(); + + var mockAssemblyLoader = new Mock(); + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName("StepImplementation") + .WithDeclaringTypeName("my.foo.type") + .Build(); + var gaugeMethod = new GaugeMethod { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName("StepImplementation") - .WithDeclaringTypeName("my.foo.type") - .Build(); - var gaugeMethod = new GaugeMethod - { - Name = "StepImplementation", - MethodInfo = methodInfo - }; - - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - - var executor = new StepExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager); - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance)) - .Returns(null); - - - var result = executor.Execute(gaugeMethod); - ClassicAssert.True(result.Success); - } - - [Test] - public void ShoudExecuteStepAndGetFailure() + Name = "StepImplementation", + MethodInfo = methodInfo + }; + + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager.Object); + + var executor = new StepExecutor(mockAssemblyLoader.Object, _logger.Object); + + var result = await executor.Execute(gaugeMethod, 1); + ClassicAssert.True(result.Success); + } + + [Test] + public async Task ShoudExecuteStepAndGetFailure() + { + var mockClassInstanceManager = new Mock(); + + var mockAssemblyLoader = new Mock(); + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName("StepImplementation") + .WithDeclaringTypeName("my.foo.type") + .Build(); + + var gaugeMethod = new GaugeMethod { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName("StepImplementation") - .WithDeclaringTypeName("my.foo.type") - .Build(); - - var gaugeMethod = new GaugeMethod - { - Name = "StepImplementation", - MethodInfo = methodInfo - }; - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - - var executor = new StepExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager); - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance)) - .Throws(new Exception("step execution failure")); - - var result = executor.Execute(gaugeMethod); - ClassicAssert.False(result.Success); - ClassicAssert.AreEqual(result.ExceptionMessage, "step execution failure"); - } - - [Test] - public void ShoudExecuteStepAndGetRecoverableError() + Name = "StepImplementation", + MethodInfo = methodInfo + }; + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager.Object); + + var executor = new StepExecutor(mockAssemblyLoader.Object, _logger.Object); + mockClassInstanceManager.Setup(x => x.InvokeMethod(methodInfo, 1, It.IsAny())) + .Throws(new Exception("step execution failure")); + + var result = await executor.Execute(gaugeMethod, 1); + ClassicAssert.False(result.Success); + ClassicAssert.AreEqual(result.ExceptionMessage, "step execution failure"); + } + + [Test] + public async Task ShoudExecuteStepAndGetRecoverableError() + { + var mockClassInstanceManager = new Mock(); + + var mockAssemblyLoader = new Mock(); + var methodInfo = new MockMethodBuilder(mockAssemblyLoader) + .WithName("StepImplementation") + .WithContinueOnFailure() + .WithDeclaringTypeName("my.foo.type") + .Build(); + + var gaugeMethod = new GaugeMethod { - var mockInstance = new Mock().Object; - var mockClassInstanceManagerType = new Mock().Object; - var mockClassInstanceManager = new ThreadLocal(() => new Mock().Object); - - var mockAssemblyLoader = new Mock(); - var methodInfo = new MockMethodBuilder(mockAssemblyLoader) - .WithName("StepImplementation") - .WithContinueOnFailure() - .WithDeclaringTypeName("my.foo.type") - .Build(); - - var gaugeMethod = new GaugeMethod - { - Name = "StepImplementation", - MethodInfo = methodInfo, - ContinueOnFailure = true - }; - mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(mockClassInstanceManagerType); - - var mockReflectionWrapper = new Mock(); - mockReflectionWrapper - .Setup(x => x.InvokeMethod(mockClassInstanceManagerType, mockClassInstanceManager, "Get", - methodInfo.DeclaringType)) - .Returns(mockInstance); - - var executor = new StepExecutor(mockAssemblyLoader.Object, mockReflectionWrapper.Object, - mockClassInstanceManager); - mockReflectionWrapper.Setup(x => x.Invoke(methodInfo, mockInstance)) - .Throws(new Exception("step execution failure")); - - var result = executor.Execute(gaugeMethod); - ClassicAssert.False(result.Success); - ClassicAssert.True(result.Recoverable); - ClassicAssert.AreEqual(result.ExceptionMessage, "step execution failure"); - } + Name = "StepImplementation", + MethodInfo = methodInfo, + ContinueOnFailure = true + }; + mockAssemblyLoader.Setup(x => x.ClassInstanceManagerType).Returns(typeof(IClassInstanceManager)); + mockAssemblyLoader.Setup(x => x.GetClassInstanceManager()).Returns(mockClassInstanceManager.Object); + + var executor = new StepExecutor(mockAssemblyLoader.Object, _logger.Object); + mockClassInstanceManager.Setup(x => x.InvokeMethod(methodInfo, 1, It.IsAny())) + .Throws(new Exception("step execution failure")); + + var result = await executor.Execute(gaugeMethod, 1); + ClassicAssert.False(result.Success); + ClassicAssert.True(result.Recoverable); + ClassicAssert.AreEqual(result.ExceptionMessage, "step execution failure"); } } \ No newline at end of file diff --git a/test/Usings.cs b/test/Usings.cs new file mode 100644 index 0000000..943941e --- /dev/null +++ b/test/Usings.cs @@ -0,0 +1,3 @@ +global using Moq; +global using NUnit.Framework; +global using NUnit.Framework.Legacy; \ No newline at end of file diff --git a/test/UtilsTest.cs b/test/UtilsTest.cs deleted file mode 100644 index 51c4a69..0000000 --- a/test/UtilsTest.cs +++ /dev/null @@ -1,49 +0,0 @@ -/*---------------------------------------------------------------- - * Copyright (c) ThoughtWorks, Inc. - * Licensed under the Apache License, Version 2.0 - * See LICENSE.txt in the project root for license information. - *----------------------------------------------------------------*/ - - -using System; -using System.IO; -using Gauge.CSharp.Core; -using NUnit.Framework; -using NUnit.Framework.Legacy; - -namespace Gauge.Dotnet.UnitTests -{ - [TestFixture] - internal class UtilsTest - { - [Test] - public void ShouldGetCustomBuildPathFromEnvWhenLowerCase() - { - Environment.SetEnvironmentVariable("gauge_project_root", @"C:\Blah"); - - var imaginaryPath = string.Format("Foo{0}Bar", Path.DirectorySeparatorChar); - Environment.SetEnvironmentVariable("gauge_custom_build_path", imaginaryPath); - var gaugeBinDir = Utils.GetGaugeBinDir(); - ClassicAssert.AreEqual(string.Format(@"C:\Blah{0}Foo{0}Bar", Path.DirectorySeparatorChar), gaugeBinDir); - - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", string.Empty); - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", string.Empty); - } - - [Test] - public void ShouldGetCustomBuildPathFromEnvWhenUpperCase() - { - var driveRoot = Path.GetPathRoot(Directory.GetCurrentDirectory()); - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", Path.Combine(driveRoot, "Blah")); - - var imaginaryPath = Path.Combine("Foo", "Bar"); - ; - Environment.SetEnvironmentVariable("gauge_custom_build_path", imaginaryPath); - var gaugeBinDir = Utils.GetGaugeBinDir(); - ClassicAssert.AreEqual(Path.Combine(driveRoot, "Blah", "Foo", "Bar"), gaugeBinDir); - - Environment.SetEnvironmentVariable("GAUGE_PROJECT_ROOT", string.Empty); - Environment.SetEnvironmentVariable("GAUGE_CUSTOM_BUILD_PATH", string.Empty); - } - } -} \ No newline at end of file diff --git a/test/ValidateProcessorTests.cs b/test/ValidateProcessorTests.cs index 7967559..ffb786e 100644 --- a/test/ValidateProcessorTests.cs +++ b/test/ValidateProcessorTests.cs @@ -7,87 +7,83 @@ using Gauge.Dotnet.Models; using Gauge.Dotnet.Processors; using Gauge.Messages; -using Moq; -using NUnit.Framework; -using NUnit.Framework.Legacy; -namespace Gauge.Dotnet.UnitTests +namespace Gauge.Dotnet.UnitTests; + +[TestFixture] +public class ValidateProcessorTests { - [TestFixture] - public class ValidateProcessorTests + [SetUp] + public void Setup() { - [SetUp] - public void Setup() - { - _mockStepRegistry = new Mock(); + _mockStepRegistry = new Mock(); - } + } - private Mock _mockStepRegistry; + private Mock _mockStepRegistry; - [Test] - public void ShouldGetErrorResponseForStepValidateRequestWhenMultipleStepImplFound() + [Test] + public async Task ShouldGetErrorResponseForStepValidateRequestWhenMultipleStepImplFound() + { + var request = new StepValidateRequest { - var request = new StepValidateRequest - { - StepText = "step_text_1", - NumberOfParameters = 0 - }; + StepText = "step_text_1", + NumberOfParameters = 0 + }; - _mockStepRegistry.Setup(registry => registry.ContainsStep("step_text_1")).Returns(true); - _mockStepRegistry.Setup(registry => registry.HasMultipleImplementations("step_text_1")).Returns(true); - var processor = new StepValidationProcessor(_mockStepRegistry.Object); - var response = processor.Process(request); + _mockStepRegistry.Setup(registry => registry.ContainsStep("step_text_1")).Returns(true); + _mockStepRegistry.Setup(registry => registry.HasMultipleImplementations("step_text_1")).Returns(true); + var processor = new StepValidationProcessor(_mockStepRegistry.Object); + var response = await processor.Process(1, request); - ClassicAssert.AreEqual(false, response.IsValid); - ClassicAssert.AreEqual(StepValidateResponse.Types.ErrorType.DuplicateStepImplementation, - response.ErrorType); - ClassicAssert.AreEqual("Multiple step implementations found for : step_text_1", - response.ErrorMessage); - ClassicAssert.IsEmpty(response.Suggestion); - } + ClassicAssert.AreEqual(false, response.IsValid); + ClassicAssert.AreEqual(StepValidateResponse.Types.ErrorType.DuplicateStepImplementation, + response.ErrorType); + ClassicAssert.AreEqual("Multiple step implementations found for : step_text_1", + response.ErrorMessage); + ClassicAssert.IsEmpty(response.Suggestion); + } - [Test] - public void ShouldGetErrorResponseForStepValidateRequestWhennNoImplFound() + [Test] + public async Task ShouldGetErrorResponseForStepValidateRequestWhennNoImplFound() + { + var request = new StepValidateRequest { - var request = new StepValidateRequest + StepText = "step_text_1", + NumberOfParameters = 0, + StepValue = new ProtoStepValue { - StepText = "step_text_1", - NumberOfParameters = 0, - StepValue = new ProtoStepValue - { - ParameterizedStepValue = "step_text_1", - StepValue = "step_text_1" - } - }; - var processor = new StepValidationProcessor(_mockStepRegistry.Object); - var response = processor.Process(request); + ParameterizedStepValue = "step_text_1", + StepValue = "step_text_1" + } + }; + var processor = new StepValidationProcessor(_mockStepRegistry.Object); + var response = await processor.Process(1, request); - ClassicAssert.AreEqual(false, response.IsValid); - ClassicAssert.AreEqual(StepValidateResponse.Types.ErrorType.StepImplementationNotFound, - response.ErrorType); - StringAssert.Contains("No implementation found for : step_text_1.", - response.ErrorMessage); - StringAssert.Contains("[Step(\"step_text_1\")]", response.Suggestion); - } + ClassicAssert.AreEqual(false, response.IsValid); + ClassicAssert.AreEqual(StepValidateResponse.Types.ErrorType.StepImplementationNotFound, + response.ErrorType); + StringAssert.Contains("No implementation found for : step_text_1.", + response.ErrorMessage); + StringAssert.Contains("[Step(\"step_text_1\")]", response.Suggestion); + } - [Test] - public void ShouldGetVaildResponseForStepValidateRequest() + [Test] + public async Task ShouldGetVaildResponseForStepValidateRequest() + { + var request = new StepValidateRequest { - var request = new StepValidateRequest - { - StepText = "step_text_1", - NumberOfParameters = 0 - }; + StepText = "step_text_1", + NumberOfParameters = 0 + }; - _mockStepRegistry.Setup(registry => registry.ContainsStep("step_text_1")).Returns(true); - _mockStepRegistry.Setup(registry => registry.HasMultipleImplementations("step_text_1")).Returns(false); + _mockStepRegistry.Setup(registry => registry.ContainsStep("step_text_1")).Returns(true); + _mockStepRegistry.Setup(registry => registry.HasMultipleImplementations("step_text_1")).Returns(false); - var processor = new StepValidationProcessor(_mockStepRegistry.Object); - var response = processor.Process(request); + var processor = new StepValidationProcessor(_mockStepRegistry.Object); + var response = await processor.Process(1, request); - ClassicAssert.AreEqual(true, response.IsValid); - } + ClassicAssert.AreEqual(true, response.IsValid); } } \ No newline at end of file