• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: conformance/conformance.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Conformance {
13 
14   /// <summary>Holder for reflection information generated from conformance/conformance.proto</summary>
15   public static partial class ConformanceReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for conformance/conformance.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
ConformanceReflection()24     static ConformanceReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Ch1jb25mb3JtYW5jZS9jb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2Ui",
28             "SQoKVGVzdFN0YXR1cxIMCgRuYW1lGAEgASgJEhcKD2ZhaWx1cmVfbWVzc2Fn",
29             "ZRgCIAEoCRIUCgxtYXRjaGVkX25hbWUYAyABKAkiOQoKRmFpbHVyZVNldBIl",
30             "CgR0ZXN0GAIgAygLMhcuY29uZm9ybWFuY2UuVGVzdFN0YXR1c0oECAEQAiLj",
31             "AgoSQ29uZm9ybWFuY2VSZXF1ZXN0EhoKEHByb3RvYnVmX3BheWxvYWQYASAB",
32             "KAxIABIWCgxqc29uX3BheWxvYWQYAiABKAlIABIWCgxqc3BiX3BheWxvYWQY",
33             "ByABKAlIABIWCgx0ZXh0X3BheWxvYWQYCCABKAlIABI4ChdyZXF1ZXN0ZWRf",
34             "b3V0cHV0X2Zvcm1hdBgDIAEoDjIXLmNvbmZvcm1hbmNlLldpcmVGb3JtYXQS",
35             "FAoMbWVzc2FnZV90eXBlGAQgASgJEjAKDXRlc3RfY2F0ZWdvcnkYBSABKA4y",
36             "GS5jb25mb3JtYW5jZS5UZXN0Q2F0ZWdvcnkSPgoVanNwYl9lbmNvZGluZ19v",
37             "cHRpb25zGAYgASgLMh8uY29uZm9ybWFuY2UuSnNwYkVuY29kaW5nQ29uZmln",
38             "EhwKFHByaW50X3Vua25vd25fZmllbGRzGAkgASgIQgkKB3BheWxvYWQi+gEK",
39             "E0NvbmZvcm1hbmNlUmVzcG9uc2USFQoLcGFyc2VfZXJyb3IYASABKAlIABIZ",
40             "Cg9zZXJpYWxpemVfZXJyb3IYBiABKAlIABIXCg10aW1lb3V0X2Vycm9yGAkg",
41             "ASgJSAASFwoNcnVudGltZV9lcnJvchgCIAEoCUgAEhoKEHByb3RvYnVmX3Bh",
42             "eWxvYWQYAyABKAxIABIWCgxqc29uX3BheWxvYWQYBCABKAlIABIRCgdza2lw",
43             "cGVkGAUgASgJSAASFgoManNwYl9wYXlsb2FkGAcgASgJSAASFgoMdGV4dF9w",
44             "YXlsb2FkGAggASgJSABCCAoGcmVzdWx0IjcKEkpzcGJFbmNvZGluZ0NvbmZp",
45             "ZxIhChl1c2VfanNwYl9hcnJheV9hbnlfZm9ybWF0GAEgASgIKlAKCldpcmVG",
46             "b3JtYXQSDwoLVU5TUEVDSUZJRUQQABIMCghQUk9UT0JVRhABEggKBEpTT04Q",
47             "AhIICgRKU1BCEAMSDwoLVEVYVF9GT1JNQVQQBCqPAQoMVGVzdENhdGVnb3J5",
48             "EhQKEFVOU1BFQ0lGSUVEX1RFU1QQABIPCgtCSU5BUllfVEVTVBABEg0KCUpT",
49             "T05fVEVTVBACEiQKIEpTT05fSUdOT1JFX1VOS05PV05fUEFSU0lOR19URVNU",
50             "EAMSDQoJSlNQQl9URVNUEAQSFAoQVEVYVF9GT1JNQVRfVEVTVBAFQi8KH2Nv",
51             "bS5nb29nbGUucHJvdG9idWYuY29uZm9ybWFuY2WiAgtDb25mb3JtYW5jZWIG",
52             "cHJvdG8z"));
53       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
54           new pbr::FileDescriptor[] { },
55           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Conformance.WireFormat), typeof(global::Conformance.TestCategory), }, null, new pbr::GeneratedClrTypeInfo[] {
56             new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.TestStatus), global::Conformance.TestStatus.Parser, new[]{ "Name", "FailureMessage", "MatchedName" }, null, null, null, null),
57             new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.FailureSet), global::Conformance.FailureSet.Parser, new[]{ "Test" }, null, null, null, null),
58             new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceRequest), global::Conformance.ConformanceRequest.Parser, new[]{ "ProtobufPayload", "JsonPayload", "JspbPayload", "TextPayload", "RequestedOutputFormat", "MessageType", "TestCategory", "JspbEncodingOptions", "PrintUnknownFields" }, new[]{ "Payload" }, null, null, null),
59             new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceResponse), global::Conformance.ConformanceResponse.Parser, new[]{ "ParseError", "SerializeError", "TimeoutError", "RuntimeError", "ProtobufPayload", "JsonPayload", "Skipped", "JspbPayload", "TextPayload" }, new[]{ "Result" }, null, null, null),
60             new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.JspbEncodingConfig), global::Conformance.JspbEncodingConfig.Parser, new[]{ "UseJspbArrayAnyFormat" }, null, null, null, null)
61           }));
62     }
63     #endregion
64 
65   }
66   #region Enums
67   public enum WireFormat {
68     [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
69     [pbr::OriginalName("PROTOBUF")] Protobuf = 1,
70     [pbr::OriginalName("JSON")] Json = 2,
71     /// <summary>
72     /// Only used inside Google. Opensource testees just skip it.
73     /// </summary>
74     [pbr::OriginalName("JSPB")] Jspb = 3,
75     [pbr::OriginalName("TEXT_FORMAT")] TextFormat = 4,
76   }
77 
78   public enum TestCategory {
79     [pbr::OriginalName("UNSPECIFIED_TEST")] UnspecifiedTest = 0,
80     /// <summary>
81     /// Test binary wire format.
82     /// </summary>
83     [pbr::OriginalName("BINARY_TEST")] BinaryTest = 1,
84     /// <summary>
85     /// Test json wire format.
86     /// </summary>
87     [pbr::OriginalName("JSON_TEST")] JsonTest = 2,
88     /// <summary>
89     /// Similar to JSON_TEST. However, during parsing json, testee should ignore
90     /// unknown fields. This feature is optional. Each implementation can decide
91     /// whether to support it.  See
92     /// https://developers.google.com/protocol-buffers/docs/proto3#json_options
93     /// for more detail.
94     /// </summary>
95     [pbr::OriginalName("JSON_IGNORE_UNKNOWN_PARSING_TEST")] JsonIgnoreUnknownParsingTest = 3,
96     /// <summary>
97     /// Test jspb wire format. Only used inside Google. Opensource testees just
98     /// skip it.
99     /// </summary>
100     [pbr::OriginalName("JSPB_TEST")] JspbTest = 4,
101     /// <summary>
102     /// Test text format. For cpp, java and python, testees can already deal with
103     /// this type. Testees of other languages can simply skip it.
104     /// </summary>
105     [pbr::OriginalName("TEXT_FORMAT_TEST")] TextFormatTest = 5,
106   }
107 
108   #endregion
109 
110   #region Messages
111   /// <summary>
112   /// Meant to encapsulate all types of tests: successes, skips, failures, etc.
113   /// Therefore, this may or may not have a failure message. Failure messages
114   /// may be truncated for our failure lists.
115   /// </summary>
116   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
117   public sealed partial class TestStatus : pb::IMessage<TestStatus>
118   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
119       , pb::IBufferMessage
120   #endif
121   {
122     private static readonly pb::MessageParser<TestStatus> _parser = new pb::MessageParser<TestStatus>(() => new TestStatus());
123     private pb::UnknownFieldSet _unknownFields;
124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
125     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
126     public static pb::MessageParser<TestStatus> Parser { get { return _parser; } }
127 
128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
130     public static pbr::MessageDescriptor Descriptor {
131       get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[0]; }
132     }
133 
134     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
135     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
136     pbr::MessageDescriptor pb::IMessage.Descriptor {
137       get { return Descriptor; }
138     }
139 
140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestStatus()142     public TestStatus() {
143       OnConstruction();
144     }
145 
OnConstruction()146     partial void OnConstruction();
147 
148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
149     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestStatus(TestStatus other)150     public TestStatus(TestStatus other) : this() {
151       name_ = other.name_;
152       failureMessage_ = other.failureMessage_;
153       matchedName_ = other.matchedName_;
154       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
155     }
156 
157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
158     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()159     public TestStatus Clone() {
160       return new TestStatus(this);
161     }
162 
163     /// <summary>Field number for the "name" field.</summary>
164     public const int NameFieldNumber = 1;
165     private string name_ = "";
166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
168     public string Name {
169       get { return name_; }
170       set {
171         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
172       }
173     }
174 
175     /// <summary>Field number for the "failure_message" field.</summary>
176     public const int FailureMessageFieldNumber = 2;
177     private string failureMessage_ = "";
178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
180     public string FailureMessage {
181       get { return failureMessage_; }
182       set {
183         failureMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
184       }
185     }
186 
187     /// <summary>Field number for the "matched_name" field.</summary>
188     public const int MatchedNameFieldNumber = 3;
189     private string matchedName_ = "";
190     /// <summary>
191     /// What an actual test name matched to in a failure list. Can be wildcarded or
192     /// an exact match without wildcards.
193     /// </summary>
194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
196     public string MatchedName {
197       get { return matchedName_; }
198       set {
199         matchedName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
200       }
201     }
202 
203     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
204     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)205     public override bool Equals(object other) {
206       return Equals(other as TestStatus);
207     }
208 
209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
210     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestStatus other)211     public bool Equals(TestStatus other) {
212       if (ReferenceEquals(other, null)) {
213         return false;
214       }
215       if (ReferenceEquals(other, this)) {
216         return true;
217       }
218       if (Name != other.Name) return false;
219       if (FailureMessage != other.FailureMessage) return false;
220       if (MatchedName != other.MatchedName) return false;
221       return Equals(_unknownFields, other._unknownFields);
222     }
223 
224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()226     public override int GetHashCode() {
227       int hash = 1;
228       if (Name.Length != 0) hash ^= Name.GetHashCode();
229       if (FailureMessage.Length != 0) hash ^= FailureMessage.GetHashCode();
230       if (MatchedName.Length != 0) hash ^= MatchedName.GetHashCode();
231       if (_unknownFields != null) {
232         hash ^= _unknownFields.GetHashCode();
233       }
234       return hash;
235     }
236 
237     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
238     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()239     public override string ToString() {
240       return pb::JsonFormatter.ToDiagnosticString(this);
241     }
242 
243     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
244     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)245     public void WriteTo(pb::CodedOutputStream output) {
246     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
247       output.WriteRawMessage(this);
248     #else
249       if (Name.Length != 0) {
250         output.WriteRawTag(10);
251         output.WriteString(Name);
252       }
253       if (FailureMessage.Length != 0) {
254         output.WriteRawTag(18);
255         output.WriteString(FailureMessage);
256       }
257       if (MatchedName.Length != 0) {
258         output.WriteRawTag(26);
259         output.WriteString(MatchedName);
260       }
261       if (_unknownFields != null) {
262         _unknownFields.WriteTo(output);
263       }
264     #endif
265     }
266 
267     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
269     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)270     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
271       if (Name.Length != 0) {
272         output.WriteRawTag(10);
273         output.WriteString(Name);
274       }
275       if (FailureMessage.Length != 0) {
276         output.WriteRawTag(18);
277         output.WriteString(FailureMessage);
278       }
279       if (MatchedName.Length != 0) {
280         output.WriteRawTag(26);
281         output.WriteString(MatchedName);
282       }
283       if (_unknownFields != null) {
284         _unknownFields.WriteTo(ref output);
285       }
286     }
287     #endif
288 
289     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
290     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()291     public int CalculateSize() {
292       int size = 0;
293       if (Name.Length != 0) {
294         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
295       }
296       if (FailureMessage.Length != 0) {
297         size += 1 + pb::CodedOutputStream.ComputeStringSize(FailureMessage);
298       }
299       if (MatchedName.Length != 0) {
300         size += 1 + pb::CodedOutputStream.ComputeStringSize(MatchedName);
301       }
302       if (_unknownFields != null) {
303         size += _unknownFields.CalculateSize();
304       }
305       return size;
306     }
307 
308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestStatus other)310     public void MergeFrom(TestStatus other) {
311       if (other == null) {
312         return;
313       }
314       if (other.Name.Length != 0) {
315         Name = other.Name;
316       }
317       if (other.FailureMessage.Length != 0) {
318         FailureMessage = other.FailureMessage;
319       }
320       if (other.MatchedName.Length != 0) {
321         MatchedName = other.MatchedName;
322       }
323       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
324     }
325 
326     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
327     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)328     public void MergeFrom(pb::CodedInputStream input) {
329     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
330       input.ReadRawMessage(this);
331     #else
332       uint tag;
333       while ((tag = input.ReadTag()) != 0) {
334       if ((tag & 7) == 4) {
335         // Abort on any end group tag.
336         return;
337       }
338       switch(tag) {
339           default:
340             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
341             break;
342           case 10: {
343             Name = input.ReadString();
344             break;
345           }
346           case 18: {
347             FailureMessage = input.ReadString();
348             break;
349           }
350           case 26: {
351             MatchedName = input.ReadString();
352             break;
353           }
354         }
355       }
356     #endif
357     }
358 
359     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
361     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)362     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
363       uint tag;
364       while ((tag = input.ReadTag()) != 0) {
365       if ((tag & 7) == 4) {
366         // Abort on any end group tag.
367         return;
368       }
369       switch(tag) {
370           default:
371             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
372             break;
373           case 10: {
374             Name = input.ReadString();
375             break;
376           }
377           case 18: {
378             FailureMessage = input.ReadString();
379             break;
380           }
381           case 26: {
382             MatchedName = input.ReadString();
383             break;
384           }
385         }
386       }
387     }
388     #endif
389 
390   }
391 
392   /// <summary>
393   /// The conformance runner will request a list of failures as the first request.
394   /// This will be known by message_type == "conformance.FailureSet", a conformance
395   /// test should return a serialized FailureSet in protobuf_payload.
396   /// </summary>
397   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
398   public sealed partial class FailureSet : pb::IMessage<FailureSet>
399   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
400       , pb::IBufferMessage
401   #endif
402   {
403     private static readonly pb::MessageParser<FailureSet> _parser = new pb::MessageParser<FailureSet>(() => new FailureSet());
404     private pb::UnknownFieldSet _unknownFields;
405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
406     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
407     public static pb::MessageParser<FailureSet> Parser { get { return _parser; } }
408 
409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
411     public static pbr::MessageDescriptor Descriptor {
412       get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[1]; }
413     }
414 
415     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
416     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
417     pbr::MessageDescriptor pb::IMessage.Descriptor {
418       get { return Descriptor; }
419     }
420 
421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
422     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FailureSet()423     public FailureSet() {
424       OnConstruction();
425     }
426 
OnConstruction()427     partial void OnConstruction();
428 
429     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FailureSet(FailureSet other)431     public FailureSet(FailureSet other) : this() {
432       test_ = other.test_.Clone();
433       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
434     }
435 
436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()438     public FailureSet Clone() {
439       return new FailureSet(this);
440     }
441 
442     /// <summary>Field number for the "test" field.</summary>
443     public const int TestFieldNumber = 2;
444     private static readonly pb::FieldCodec<global::Conformance.TestStatus> _repeated_test_codec
445         = pb::FieldCodec.ForMessage(18, global::Conformance.TestStatus.Parser);
446     private readonly pbc::RepeatedField<global::Conformance.TestStatus> test_ = new pbc::RepeatedField<global::Conformance.TestStatus>();
447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
448     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
449     public pbc::RepeatedField<global::Conformance.TestStatus> Test {
450       get { return test_; }
451     }
452 
453     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
454     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)455     public override bool Equals(object other) {
456       return Equals(other as FailureSet);
457     }
458 
459     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FailureSet other)461     public bool Equals(FailureSet other) {
462       if (ReferenceEquals(other, null)) {
463         return false;
464       }
465       if (ReferenceEquals(other, this)) {
466         return true;
467       }
468       if(!test_.Equals(other.test_)) return false;
469       return Equals(_unknownFields, other._unknownFields);
470     }
471 
472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
473     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()474     public override int GetHashCode() {
475       int hash = 1;
476       hash ^= test_.GetHashCode();
477       if (_unknownFields != null) {
478         hash ^= _unknownFields.GetHashCode();
479       }
480       return hash;
481     }
482 
483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()485     public override string ToString() {
486       return pb::JsonFormatter.ToDiagnosticString(this);
487     }
488 
489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)491     public void WriteTo(pb::CodedOutputStream output) {
492     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
493       output.WriteRawMessage(this);
494     #else
495       test_.WriteTo(output, _repeated_test_codec);
496       if (_unknownFields != null) {
497         _unknownFields.WriteTo(output);
498       }
499     #endif
500     }
501 
502     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)505     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
506       test_.WriteTo(ref output, _repeated_test_codec);
507       if (_unknownFields != null) {
508         _unknownFields.WriteTo(ref output);
509       }
510     }
511     #endif
512 
513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
514     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()515     public int CalculateSize() {
516       int size = 0;
517       size += test_.CalculateSize(_repeated_test_codec);
518       if (_unknownFields != null) {
519         size += _unknownFields.CalculateSize();
520       }
521       return size;
522     }
523 
524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FailureSet other)526     public void MergeFrom(FailureSet other) {
527       if (other == null) {
528         return;
529       }
530       test_.Add(other.test_);
531       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
532     }
533 
534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
535     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)536     public void MergeFrom(pb::CodedInputStream input) {
537     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
538       input.ReadRawMessage(this);
539     #else
540       uint tag;
541       while ((tag = input.ReadTag()) != 0) {
542       if ((tag & 7) == 4) {
543         // Abort on any end group tag.
544         return;
545       }
546       switch(tag) {
547           default:
548             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
549             break;
550           case 18: {
551             test_.AddEntriesFrom(input, _repeated_test_codec);
552             break;
553           }
554         }
555       }
556     #endif
557     }
558 
559     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
561     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)562     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
563       uint tag;
564       while ((tag = input.ReadTag()) != 0) {
565       if ((tag & 7) == 4) {
566         // Abort on any end group tag.
567         return;
568       }
569       switch(tag) {
570           default:
571             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
572             break;
573           case 18: {
574             test_.AddEntriesFrom(ref input, _repeated_test_codec);
575             break;
576           }
577         }
578       }
579     }
580     #endif
581 
582   }
583 
584   /// <summary>
585   /// Represents a single test case's input.  The testee should:
586   ///
587   ///   1. parse this proto (which should always succeed)
588   ///   2. parse the protobuf or JSON payload in "payload" (which may fail)
589   ///   3. if the parse succeeded, serialize the message in the requested format.
590   /// </summary>
591   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
592   public sealed partial class ConformanceRequest : pb::IMessage<ConformanceRequest>
593   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
594       , pb::IBufferMessage
595   #endif
596   {
597     private static readonly pb::MessageParser<ConformanceRequest> _parser = new pb::MessageParser<ConformanceRequest>(() => new ConformanceRequest());
598     private pb::UnknownFieldSet _unknownFields;
599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
601     public static pb::MessageParser<ConformanceRequest> Parser { get { return _parser; } }
602 
603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
605     public static pbr::MessageDescriptor Descriptor {
606       get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[2]; }
607     }
608 
609     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
610     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
611     pbr::MessageDescriptor pb::IMessage.Descriptor {
612       get { return Descriptor; }
613     }
614 
615     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
616     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ConformanceRequest()617     public ConformanceRequest() {
618       OnConstruction();
619     }
620 
OnConstruction()621     partial void OnConstruction();
622 
623     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
624     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ConformanceRequest(ConformanceRequest other)625     public ConformanceRequest(ConformanceRequest other) : this() {
626       requestedOutputFormat_ = other.requestedOutputFormat_;
627       messageType_ = other.messageType_;
628       testCategory_ = other.testCategory_;
629       jspbEncodingOptions_ = other.jspbEncodingOptions_ != null ? other.jspbEncodingOptions_.Clone() : null;
630       printUnknownFields_ = other.printUnknownFields_;
631       switch (other.PayloadCase) {
632         case PayloadOneofCase.ProtobufPayload:
633           ProtobufPayload = other.ProtobufPayload;
634           break;
635         case PayloadOneofCase.JsonPayload:
636           JsonPayload = other.JsonPayload;
637           break;
638         case PayloadOneofCase.JspbPayload:
639           JspbPayload = other.JspbPayload;
640           break;
641         case PayloadOneofCase.TextPayload:
642           TextPayload = other.TextPayload;
643           break;
644       }
645 
646       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
647     }
648 
649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()651     public ConformanceRequest Clone() {
652       return new ConformanceRequest(this);
653     }
654 
655     /// <summary>Field number for the "protobuf_payload" field.</summary>
656     public const int ProtobufPayloadFieldNumber = 1;
657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
659     public pb::ByteString ProtobufPayload {
660       get { return HasProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
661       set {
662         payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
663         payloadCase_ = PayloadOneofCase.ProtobufPayload;
664       }
665     }
666     /// <summary>Gets whether the "protobuf_payload" field is set</summary>
667     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
668     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
669     public bool HasProtobufPayload {
670       get { return payloadCase_ == PayloadOneofCase.ProtobufPayload; }
671     }
672     /// <summary> Clears the value of the oneof if it's currently set to "protobuf_payload" </summary>
673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
674     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearProtobufPayload()675     public void ClearProtobufPayload() {
676       if (HasProtobufPayload) {
677         ClearPayload();
678       }
679     }
680 
681     /// <summary>Field number for the "json_payload" field.</summary>
682     public const int JsonPayloadFieldNumber = 2;
683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
685     public string JsonPayload {
686       get { return HasJsonPayload ? (string) payload_ : ""; }
687       set {
688         payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
689         payloadCase_ = PayloadOneofCase.JsonPayload;
690       }
691     }
692     /// <summary>Gets whether the "json_payload" field is set</summary>
693     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
695     public bool HasJsonPayload {
696       get { return payloadCase_ == PayloadOneofCase.JsonPayload; }
697     }
698     /// <summary> Clears the value of the oneof if it's currently set to "json_payload" </summary>
699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
700     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJsonPayload()701     public void ClearJsonPayload() {
702       if (HasJsonPayload) {
703         ClearPayload();
704       }
705     }
706 
707     /// <summary>Field number for the "jspb_payload" field.</summary>
708     public const int JspbPayloadFieldNumber = 7;
709     /// <summary>
710     /// Only used inside Google.  Opensource testees just skip it.
711     /// </summary>
712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
714     public string JspbPayload {
715       get { return HasJspbPayload ? (string) payload_ : ""; }
716       set {
717         payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
718         payloadCase_ = PayloadOneofCase.JspbPayload;
719       }
720     }
721     /// <summary>Gets whether the "jspb_payload" field is set</summary>
722     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
723     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
724     public bool HasJspbPayload {
725       get { return payloadCase_ == PayloadOneofCase.JspbPayload; }
726     }
727     /// <summary> Clears the value of the oneof if it's currently set to "jspb_payload" </summary>
728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
729     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJspbPayload()730     public void ClearJspbPayload() {
731       if (HasJspbPayload) {
732         ClearPayload();
733       }
734     }
735 
736     /// <summary>Field number for the "text_payload" field.</summary>
737     public const int TextPayloadFieldNumber = 8;
738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
740     public string TextPayload {
741       get { return HasTextPayload ? (string) payload_ : ""; }
742       set {
743         payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
744         payloadCase_ = PayloadOneofCase.TextPayload;
745       }
746     }
747     /// <summary>Gets whether the "text_payload" field is set</summary>
748     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
749     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
750     public bool HasTextPayload {
751       get { return payloadCase_ == PayloadOneofCase.TextPayload; }
752     }
753     /// <summary> Clears the value of the oneof if it's currently set to "text_payload" </summary>
754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
755     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearTextPayload()756     public void ClearTextPayload() {
757       if (HasTextPayload) {
758         ClearPayload();
759       }
760     }
761 
762     /// <summary>Field number for the "requested_output_format" field.</summary>
763     public const int RequestedOutputFormatFieldNumber = 3;
764     private global::Conformance.WireFormat requestedOutputFormat_ = global::Conformance.WireFormat.Unspecified;
765     /// <summary>
766     /// Which format should the testee serialize its message to?
767     /// </summary>
768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
769     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
770     public global::Conformance.WireFormat RequestedOutputFormat {
771       get { return requestedOutputFormat_; }
772       set {
773         requestedOutputFormat_ = value;
774       }
775     }
776 
777     /// <summary>Field number for the "message_type" field.</summary>
778     public const int MessageTypeFieldNumber = 4;
779     private string messageType_ = "";
780     /// <summary>
781     /// The full name for the test message to use; for the moment, either:
782     /// protobuf_test_messages.proto3.TestAllTypesProto3 or
783     /// protobuf_test_messages.proto2.TestAllTypesProto2 or
784     /// protobuf_test_messages.editions.proto2.TestAllTypesProto2 or
785     /// protobuf_test_messages.editions.proto3.TestAllTypesProto3 or
786     /// protobuf_test_messages.editions.TestAllTypesEdition2023.
787     /// </summary>
788     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
789     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
790     public string MessageType {
791       get { return messageType_; }
792       set {
793         messageType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
794       }
795     }
796 
797     /// <summary>Field number for the "test_category" field.</summary>
798     public const int TestCategoryFieldNumber = 5;
799     private global::Conformance.TestCategory testCategory_ = global::Conformance.TestCategory.UnspecifiedTest;
800     /// <summary>
801     /// Each test is given a specific test category. Some category may need
802     /// specific support in testee programs. Refer to the definition of
803     /// TestCategory for more information.
804     /// </summary>
805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
806     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
807     public global::Conformance.TestCategory TestCategory {
808       get { return testCategory_; }
809       set {
810         testCategory_ = value;
811       }
812     }
813 
814     /// <summary>Field number for the "jspb_encoding_options" field.</summary>
815     public const int JspbEncodingOptionsFieldNumber = 6;
816     private global::Conformance.JspbEncodingConfig jspbEncodingOptions_;
817     /// <summary>
818     /// Specify details for how to encode jspb.
819     /// </summary>
820     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
821     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
822     public global::Conformance.JspbEncodingConfig JspbEncodingOptions {
823       get { return jspbEncodingOptions_; }
824       set {
825         jspbEncodingOptions_ = value;
826       }
827     }
828 
829     /// <summary>Field number for the "print_unknown_fields" field.</summary>
830     public const int PrintUnknownFieldsFieldNumber = 9;
831     private bool printUnknownFields_;
832     /// <summary>
833     /// This can be used in json and text format. If true, testee should print
834     /// unknown fields instead of ignore. This feature is optional.
835     /// </summary>
836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
838     public bool PrintUnknownFields {
839       get { return printUnknownFields_; }
840       set {
841         printUnknownFields_ = value;
842       }
843     }
844 
845     private object payload_;
846     /// <summary>Enum of possible cases for the "payload" oneof.</summary>
847     public enum PayloadOneofCase {
848       None = 0,
849       ProtobufPayload = 1,
850       JsonPayload = 2,
851       JspbPayload = 7,
852       TextPayload = 8,
853     }
854     private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
856     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
857     public PayloadOneofCase PayloadCase {
858       get { return payloadCase_; }
859     }
860 
861     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
862     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPayload()863     public void ClearPayload() {
864       payloadCase_ = PayloadOneofCase.None;
865       payload_ = null;
866     }
867 
868     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
869     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)870     public override bool Equals(object other) {
871       return Equals(other as ConformanceRequest);
872     }
873 
874     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
875     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ConformanceRequest other)876     public bool Equals(ConformanceRequest other) {
877       if (ReferenceEquals(other, null)) {
878         return false;
879       }
880       if (ReferenceEquals(other, this)) {
881         return true;
882       }
883       if (ProtobufPayload != other.ProtobufPayload) return false;
884       if (JsonPayload != other.JsonPayload) return false;
885       if (JspbPayload != other.JspbPayload) return false;
886       if (TextPayload != other.TextPayload) return false;
887       if (RequestedOutputFormat != other.RequestedOutputFormat) return false;
888       if (MessageType != other.MessageType) return false;
889       if (TestCategory != other.TestCategory) return false;
890       if (!object.Equals(JspbEncodingOptions, other.JspbEncodingOptions)) return false;
891       if (PrintUnknownFields != other.PrintUnknownFields) return false;
892       if (PayloadCase != other.PayloadCase) return false;
893       return Equals(_unknownFields, other._unknownFields);
894     }
895 
896     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
897     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()898     public override int GetHashCode() {
899       int hash = 1;
900       if (HasProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
901       if (HasJsonPayload) hash ^= JsonPayload.GetHashCode();
902       if (HasJspbPayload) hash ^= JspbPayload.GetHashCode();
903       if (HasTextPayload) hash ^= TextPayload.GetHashCode();
904       if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) hash ^= RequestedOutputFormat.GetHashCode();
905       if (MessageType.Length != 0) hash ^= MessageType.GetHashCode();
906       if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) hash ^= TestCategory.GetHashCode();
907       if (jspbEncodingOptions_ != null) hash ^= JspbEncodingOptions.GetHashCode();
908       if (PrintUnknownFields != false) hash ^= PrintUnknownFields.GetHashCode();
909       hash ^= (int) payloadCase_;
910       if (_unknownFields != null) {
911         hash ^= _unknownFields.GetHashCode();
912       }
913       return hash;
914     }
915 
916     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
917     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()918     public override string ToString() {
919       return pb::JsonFormatter.ToDiagnosticString(this);
920     }
921 
922     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
923     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)924     public void WriteTo(pb::CodedOutputStream output) {
925     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
926       output.WriteRawMessage(this);
927     #else
928       if (HasProtobufPayload) {
929         output.WriteRawTag(10);
930         output.WriteBytes(ProtobufPayload);
931       }
932       if (HasJsonPayload) {
933         output.WriteRawTag(18);
934         output.WriteString(JsonPayload);
935       }
936       if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
937         output.WriteRawTag(24);
938         output.WriteEnum((int) RequestedOutputFormat);
939       }
940       if (MessageType.Length != 0) {
941         output.WriteRawTag(34);
942         output.WriteString(MessageType);
943       }
944       if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
945         output.WriteRawTag(40);
946         output.WriteEnum((int) TestCategory);
947       }
948       if (jspbEncodingOptions_ != null) {
949         output.WriteRawTag(50);
950         output.WriteMessage(JspbEncodingOptions);
951       }
952       if (HasJspbPayload) {
953         output.WriteRawTag(58);
954         output.WriteString(JspbPayload);
955       }
956       if (HasTextPayload) {
957         output.WriteRawTag(66);
958         output.WriteString(TextPayload);
959       }
960       if (PrintUnknownFields != false) {
961         output.WriteRawTag(72);
962         output.WriteBool(PrintUnknownFields);
963       }
964       if (_unknownFields != null) {
965         _unknownFields.WriteTo(output);
966       }
967     #endif
968     }
969 
970     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
971     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
972     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)973     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
974       if (HasProtobufPayload) {
975         output.WriteRawTag(10);
976         output.WriteBytes(ProtobufPayload);
977       }
978       if (HasJsonPayload) {
979         output.WriteRawTag(18);
980         output.WriteString(JsonPayload);
981       }
982       if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
983         output.WriteRawTag(24);
984         output.WriteEnum((int) RequestedOutputFormat);
985       }
986       if (MessageType.Length != 0) {
987         output.WriteRawTag(34);
988         output.WriteString(MessageType);
989       }
990       if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
991         output.WriteRawTag(40);
992         output.WriteEnum((int) TestCategory);
993       }
994       if (jspbEncodingOptions_ != null) {
995         output.WriteRawTag(50);
996         output.WriteMessage(JspbEncodingOptions);
997       }
998       if (HasJspbPayload) {
999         output.WriteRawTag(58);
1000         output.WriteString(JspbPayload);
1001       }
1002       if (HasTextPayload) {
1003         output.WriteRawTag(66);
1004         output.WriteString(TextPayload);
1005       }
1006       if (PrintUnknownFields != false) {
1007         output.WriteRawTag(72);
1008         output.WriteBool(PrintUnknownFields);
1009       }
1010       if (_unknownFields != null) {
1011         _unknownFields.WriteTo(ref output);
1012       }
1013     }
1014     #endif
1015 
1016     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1017     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1018     public int CalculateSize() {
1019       int size = 0;
1020       if (HasProtobufPayload) {
1021         size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
1022       }
1023       if (HasJsonPayload) {
1024         size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
1025       }
1026       if (HasJspbPayload) {
1027         size += 1 + pb::CodedOutputStream.ComputeStringSize(JspbPayload);
1028       }
1029       if (HasTextPayload) {
1030         size += 1 + pb::CodedOutputStream.ComputeStringSize(TextPayload);
1031       }
1032       if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
1033         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOutputFormat);
1034       }
1035       if (MessageType.Length != 0) {
1036         size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageType);
1037       }
1038       if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
1039         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TestCategory);
1040       }
1041       if (jspbEncodingOptions_ != null) {
1042         size += 1 + pb::CodedOutputStream.ComputeMessageSize(JspbEncodingOptions);
1043       }
1044       if (PrintUnknownFields != false) {
1045         size += 1 + 1;
1046       }
1047       if (_unknownFields != null) {
1048         size += _unknownFields.CalculateSize();
1049       }
1050       return size;
1051     }
1052 
1053     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1054     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ConformanceRequest other)1055     public void MergeFrom(ConformanceRequest other) {
1056       if (other == null) {
1057         return;
1058       }
1059       if (other.RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
1060         RequestedOutputFormat = other.RequestedOutputFormat;
1061       }
1062       if (other.MessageType.Length != 0) {
1063         MessageType = other.MessageType;
1064       }
1065       if (other.TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
1066         TestCategory = other.TestCategory;
1067       }
1068       if (other.jspbEncodingOptions_ != null) {
1069         if (jspbEncodingOptions_ == null) {
1070           JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
1071         }
1072         JspbEncodingOptions.MergeFrom(other.JspbEncodingOptions);
1073       }
1074       if (other.PrintUnknownFields != false) {
1075         PrintUnknownFields = other.PrintUnknownFields;
1076       }
1077       switch (other.PayloadCase) {
1078         case PayloadOneofCase.ProtobufPayload:
1079           ProtobufPayload = other.ProtobufPayload;
1080           break;
1081         case PayloadOneofCase.JsonPayload:
1082           JsonPayload = other.JsonPayload;
1083           break;
1084         case PayloadOneofCase.JspbPayload:
1085           JspbPayload = other.JspbPayload;
1086           break;
1087         case PayloadOneofCase.TextPayload:
1088           TextPayload = other.TextPayload;
1089           break;
1090       }
1091 
1092       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1093     }
1094 
1095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1096     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1097     public void MergeFrom(pb::CodedInputStream input) {
1098     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1099       input.ReadRawMessage(this);
1100     #else
1101       uint tag;
1102       while ((tag = input.ReadTag()) != 0) {
1103       if ((tag & 7) == 4) {
1104         // Abort on any end group tag.
1105         return;
1106       }
1107       switch(tag) {
1108           default:
1109             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1110             break;
1111           case 10: {
1112             ProtobufPayload = input.ReadBytes();
1113             break;
1114           }
1115           case 18: {
1116             JsonPayload = input.ReadString();
1117             break;
1118           }
1119           case 24: {
1120             RequestedOutputFormat = (global::Conformance.WireFormat) input.ReadEnum();
1121             break;
1122           }
1123           case 34: {
1124             MessageType = input.ReadString();
1125             break;
1126           }
1127           case 40: {
1128             TestCategory = (global::Conformance.TestCategory) input.ReadEnum();
1129             break;
1130           }
1131           case 50: {
1132             if (jspbEncodingOptions_ == null) {
1133               JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
1134             }
1135             input.ReadMessage(JspbEncodingOptions);
1136             break;
1137           }
1138           case 58: {
1139             JspbPayload = input.ReadString();
1140             break;
1141           }
1142           case 66: {
1143             TextPayload = input.ReadString();
1144             break;
1145           }
1146           case 72: {
1147             PrintUnknownFields = input.ReadBool();
1148             break;
1149           }
1150         }
1151       }
1152     #endif
1153     }
1154 
1155     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1158     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1159       uint tag;
1160       while ((tag = input.ReadTag()) != 0) {
1161       if ((tag & 7) == 4) {
1162         // Abort on any end group tag.
1163         return;
1164       }
1165       switch(tag) {
1166           default:
1167             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1168             break;
1169           case 10: {
1170             ProtobufPayload = input.ReadBytes();
1171             break;
1172           }
1173           case 18: {
1174             JsonPayload = input.ReadString();
1175             break;
1176           }
1177           case 24: {
1178             RequestedOutputFormat = (global::Conformance.WireFormat) input.ReadEnum();
1179             break;
1180           }
1181           case 34: {
1182             MessageType = input.ReadString();
1183             break;
1184           }
1185           case 40: {
1186             TestCategory = (global::Conformance.TestCategory) input.ReadEnum();
1187             break;
1188           }
1189           case 50: {
1190             if (jspbEncodingOptions_ == null) {
1191               JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
1192             }
1193             input.ReadMessage(JspbEncodingOptions);
1194             break;
1195           }
1196           case 58: {
1197             JspbPayload = input.ReadString();
1198             break;
1199           }
1200           case 66: {
1201             TextPayload = input.ReadString();
1202             break;
1203           }
1204           case 72: {
1205             PrintUnknownFields = input.ReadBool();
1206             break;
1207           }
1208         }
1209       }
1210     }
1211     #endif
1212 
1213   }
1214 
1215   /// <summary>
1216   /// Represents a single test case's output.
1217   /// </summary>
1218   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1219   public sealed partial class ConformanceResponse : pb::IMessage<ConformanceResponse>
1220   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1221       , pb::IBufferMessage
1222   #endif
1223   {
1224     private static readonly pb::MessageParser<ConformanceResponse> _parser = new pb::MessageParser<ConformanceResponse>(() => new ConformanceResponse());
1225     private pb::UnknownFieldSet _unknownFields;
1226     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1227     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1228     public static pb::MessageParser<ConformanceResponse> Parser { get { return _parser; } }
1229 
1230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1232     public static pbr::MessageDescriptor Descriptor {
1233       get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[3]; }
1234     }
1235 
1236     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1237     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1238     pbr::MessageDescriptor pb::IMessage.Descriptor {
1239       get { return Descriptor; }
1240     }
1241 
1242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1243     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ConformanceResponse()1244     public ConformanceResponse() {
1245       OnConstruction();
1246     }
1247 
OnConstruction()1248     partial void OnConstruction();
1249 
1250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ConformanceResponse(ConformanceResponse other)1252     public ConformanceResponse(ConformanceResponse other) : this() {
1253       switch (other.ResultCase) {
1254         case ResultOneofCase.ParseError:
1255           ParseError = other.ParseError;
1256           break;
1257         case ResultOneofCase.SerializeError:
1258           SerializeError = other.SerializeError;
1259           break;
1260         case ResultOneofCase.TimeoutError:
1261           TimeoutError = other.TimeoutError;
1262           break;
1263         case ResultOneofCase.RuntimeError:
1264           RuntimeError = other.RuntimeError;
1265           break;
1266         case ResultOneofCase.ProtobufPayload:
1267           ProtobufPayload = other.ProtobufPayload;
1268           break;
1269         case ResultOneofCase.JsonPayload:
1270           JsonPayload = other.JsonPayload;
1271           break;
1272         case ResultOneofCase.Skipped:
1273           Skipped = other.Skipped;
1274           break;
1275         case ResultOneofCase.JspbPayload:
1276           JspbPayload = other.JspbPayload;
1277           break;
1278         case ResultOneofCase.TextPayload:
1279           TextPayload = other.TextPayload;
1280           break;
1281       }
1282 
1283       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1284     }
1285 
1286     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1287     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1288     public ConformanceResponse Clone() {
1289       return new ConformanceResponse(this);
1290     }
1291 
1292     /// <summary>Field number for the "parse_error" field.</summary>
1293     public const int ParseErrorFieldNumber = 1;
1294     /// <summary>
1295     /// This string should be set to indicate parsing failed.  The string can
1296     /// provide more information about the parse error if it is available.
1297     ///
1298     /// Setting this string does not necessarily mean the testee failed the
1299     /// test.  Some of the test cases are intentionally invalid input.
1300     /// </summary>
1301     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1302     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1303     public string ParseError {
1304       get { return HasParseError ? (string) result_ : ""; }
1305       set {
1306         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1307         resultCase_ = ResultOneofCase.ParseError;
1308       }
1309     }
1310     /// <summary>Gets whether the "parse_error" field is set</summary>
1311     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1312     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1313     public bool HasParseError {
1314       get { return resultCase_ == ResultOneofCase.ParseError; }
1315     }
1316     /// <summary> Clears the value of the oneof if it's currently set to "parse_error" </summary>
1317     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1318     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearParseError()1319     public void ClearParseError() {
1320       if (HasParseError) {
1321         ClearResult();
1322       }
1323     }
1324 
1325     /// <summary>Field number for the "serialize_error" field.</summary>
1326     public const int SerializeErrorFieldNumber = 6;
1327     /// <summary>
1328     /// If the input was successfully parsed but errors occurred when
1329     /// serializing it to the requested output format, set the error message in
1330     /// this field.
1331     /// </summary>
1332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1334     public string SerializeError {
1335       get { return HasSerializeError ? (string) result_ : ""; }
1336       set {
1337         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1338         resultCase_ = ResultOneofCase.SerializeError;
1339       }
1340     }
1341     /// <summary>Gets whether the "serialize_error" field is set</summary>
1342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1343     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1344     public bool HasSerializeError {
1345       get { return resultCase_ == ResultOneofCase.SerializeError; }
1346     }
1347     /// <summary> Clears the value of the oneof if it's currently set to "serialize_error" </summary>
1348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSerializeError()1350     public void ClearSerializeError() {
1351       if (HasSerializeError) {
1352         ClearResult();
1353       }
1354     }
1355 
1356     /// <summary>Field number for the "timeout_error" field.</summary>
1357     public const int TimeoutErrorFieldNumber = 9;
1358     /// <summary>
1359     /// This should be set if the test program timed out.  The string should
1360     /// provide more information about what the child process was doing when it
1361     /// was killed.
1362     /// </summary>
1363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1365     public string TimeoutError {
1366       get { return HasTimeoutError ? (string) result_ : ""; }
1367       set {
1368         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1369         resultCase_ = ResultOneofCase.TimeoutError;
1370       }
1371     }
1372     /// <summary>Gets whether the "timeout_error" field is set</summary>
1373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1375     public bool HasTimeoutError {
1376       get { return resultCase_ == ResultOneofCase.TimeoutError; }
1377     }
1378     /// <summary> Clears the value of the oneof if it's currently set to "timeout_error" </summary>
1379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearTimeoutError()1381     public void ClearTimeoutError() {
1382       if (HasTimeoutError) {
1383         ClearResult();
1384       }
1385     }
1386 
1387     /// <summary>Field number for the "runtime_error" field.</summary>
1388     public const int RuntimeErrorFieldNumber = 2;
1389     /// <summary>
1390     /// This should be set if some other error occurred.  This will always
1391     /// indicate that the test failed.  The string can provide more information
1392     /// about the failure.
1393     /// </summary>
1394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1396     public string RuntimeError {
1397       get { return HasRuntimeError ? (string) result_ : ""; }
1398       set {
1399         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1400         resultCase_ = ResultOneofCase.RuntimeError;
1401       }
1402     }
1403     /// <summary>Gets whether the "runtime_error" field is set</summary>
1404     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1405     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1406     public bool HasRuntimeError {
1407       get { return resultCase_ == ResultOneofCase.RuntimeError; }
1408     }
1409     /// <summary> Clears the value of the oneof if it's currently set to "runtime_error" </summary>
1410     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1411     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRuntimeError()1412     public void ClearRuntimeError() {
1413       if (HasRuntimeError) {
1414         ClearResult();
1415       }
1416     }
1417 
1418     /// <summary>Field number for the "protobuf_payload" field.</summary>
1419     public const int ProtobufPayloadFieldNumber = 3;
1420     /// <summary>
1421     /// If the input was successfully parsed and the requested output was
1422     /// protobuf, serialize it to protobuf and set it in this field.
1423     /// </summary>
1424     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1426     public pb::ByteString ProtobufPayload {
1427       get { return HasProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
1428       set {
1429         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1430         resultCase_ = ResultOneofCase.ProtobufPayload;
1431       }
1432     }
1433     /// <summary>Gets whether the "protobuf_payload" field is set</summary>
1434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1435     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1436     public bool HasProtobufPayload {
1437       get { return resultCase_ == ResultOneofCase.ProtobufPayload; }
1438     }
1439     /// <summary> Clears the value of the oneof if it's currently set to "protobuf_payload" </summary>
1440     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearProtobufPayload()1442     public void ClearProtobufPayload() {
1443       if (HasProtobufPayload) {
1444         ClearResult();
1445       }
1446     }
1447 
1448     /// <summary>Field number for the "json_payload" field.</summary>
1449     public const int JsonPayloadFieldNumber = 4;
1450     /// <summary>
1451     /// If the input was successfully parsed and the requested output was JSON,
1452     /// serialize to JSON and set it in this field.
1453     /// </summary>
1454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1455     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1456     public string JsonPayload {
1457       get { return HasJsonPayload ? (string) result_ : ""; }
1458       set {
1459         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1460         resultCase_ = ResultOneofCase.JsonPayload;
1461       }
1462     }
1463     /// <summary>Gets whether the "json_payload" field is set</summary>
1464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1465     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1466     public bool HasJsonPayload {
1467       get { return resultCase_ == ResultOneofCase.JsonPayload; }
1468     }
1469     /// <summary> Clears the value of the oneof if it's currently set to "json_payload" </summary>
1470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1471     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJsonPayload()1472     public void ClearJsonPayload() {
1473       if (HasJsonPayload) {
1474         ClearResult();
1475       }
1476     }
1477 
1478     /// <summary>Field number for the "skipped" field.</summary>
1479     public const int SkippedFieldNumber = 5;
1480     /// <summary>
1481     /// For when the testee skipped the test, likely because a certain feature
1482     /// wasn't supported, like JSON input/output.
1483     /// </summary>
1484     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1485     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1486     public string Skipped {
1487       get { return HasSkipped ? (string) result_ : ""; }
1488       set {
1489         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1490         resultCase_ = ResultOneofCase.Skipped;
1491       }
1492     }
1493     /// <summary>Gets whether the "skipped" field is set</summary>
1494     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1495     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1496     public bool HasSkipped {
1497       get { return resultCase_ == ResultOneofCase.Skipped; }
1498     }
1499     /// <summary> Clears the value of the oneof if it's currently set to "skipped" </summary>
1500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSkipped()1502     public void ClearSkipped() {
1503       if (HasSkipped) {
1504         ClearResult();
1505       }
1506     }
1507 
1508     /// <summary>Field number for the "jspb_payload" field.</summary>
1509     public const int JspbPayloadFieldNumber = 7;
1510     /// <summary>
1511     /// If the input was successfully parsed and the requested output was JSPB,
1512     /// serialize to JSPB and set it in this field. JSPB is only used inside
1513     /// Google. Opensource testees can just skip it.
1514     /// </summary>
1515     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1516     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1517     public string JspbPayload {
1518       get { return HasJspbPayload ? (string) result_ : ""; }
1519       set {
1520         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1521         resultCase_ = ResultOneofCase.JspbPayload;
1522       }
1523     }
1524     /// <summary>Gets whether the "jspb_payload" field is set</summary>
1525     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1526     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1527     public bool HasJspbPayload {
1528       get { return resultCase_ == ResultOneofCase.JspbPayload; }
1529     }
1530     /// <summary> Clears the value of the oneof if it's currently set to "jspb_payload" </summary>
1531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJspbPayload()1533     public void ClearJspbPayload() {
1534       if (HasJspbPayload) {
1535         ClearResult();
1536       }
1537     }
1538 
1539     /// <summary>Field number for the "text_payload" field.</summary>
1540     public const int TextPayloadFieldNumber = 8;
1541     /// <summary>
1542     /// If the input was successfully parsed and the requested output was
1543     /// TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field.
1544     /// </summary>
1545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1547     public string TextPayload {
1548       get { return HasTextPayload ? (string) result_ : ""; }
1549       set {
1550         result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1551         resultCase_ = ResultOneofCase.TextPayload;
1552       }
1553     }
1554     /// <summary>Gets whether the "text_payload" field is set</summary>
1555     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1556     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1557     public bool HasTextPayload {
1558       get { return resultCase_ == ResultOneofCase.TextPayload; }
1559     }
1560     /// <summary> Clears the value of the oneof if it's currently set to "text_payload" </summary>
1561     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1562     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearTextPayload()1563     public void ClearTextPayload() {
1564       if (HasTextPayload) {
1565         ClearResult();
1566       }
1567     }
1568 
1569     private object result_;
1570     /// <summary>Enum of possible cases for the "result" oneof.</summary>
1571     public enum ResultOneofCase {
1572       None = 0,
1573       ParseError = 1,
1574       SerializeError = 6,
1575       TimeoutError = 9,
1576       RuntimeError = 2,
1577       ProtobufPayload = 3,
1578       JsonPayload = 4,
1579       Skipped = 5,
1580       JspbPayload = 7,
1581       TextPayload = 8,
1582     }
1583     private ResultOneofCase resultCase_ = ResultOneofCase.None;
1584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1585     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1586     public ResultOneofCase ResultCase {
1587       get { return resultCase_; }
1588     }
1589 
1590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1591     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearResult()1592     public void ClearResult() {
1593       resultCase_ = ResultOneofCase.None;
1594       result_ = null;
1595     }
1596 
1597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1599     public override bool Equals(object other) {
1600       return Equals(other as ConformanceResponse);
1601     }
1602 
1603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ConformanceResponse other)1605     public bool Equals(ConformanceResponse other) {
1606       if (ReferenceEquals(other, null)) {
1607         return false;
1608       }
1609       if (ReferenceEquals(other, this)) {
1610         return true;
1611       }
1612       if (ParseError != other.ParseError) return false;
1613       if (SerializeError != other.SerializeError) return false;
1614       if (TimeoutError != other.TimeoutError) return false;
1615       if (RuntimeError != other.RuntimeError) return false;
1616       if (ProtobufPayload != other.ProtobufPayload) return false;
1617       if (JsonPayload != other.JsonPayload) return false;
1618       if (Skipped != other.Skipped) return false;
1619       if (JspbPayload != other.JspbPayload) return false;
1620       if (TextPayload != other.TextPayload) return false;
1621       if (ResultCase != other.ResultCase) return false;
1622       return Equals(_unknownFields, other._unknownFields);
1623     }
1624 
1625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1626     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1627     public override int GetHashCode() {
1628       int hash = 1;
1629       if (HasParseError) hash ^= ParseError.GetHashCode();
1630       if (HasSerializeError) hash ^= SerializeError.GetHashCode();
1631       if (HasTimeoutError) hash ^= TimeoutError.GetHashCode();
1632       if (HasRuntimeError) hash ^= RuntimeError.GetHashCode();
1633       if (HasProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
1634       if (HasJsonPayload) hash ^= JsonPayload.GetHashCode();
1635       if (HasSkipped) hash ^= Skipped.GetHashCode();
1636       if (HasJspbPayload) hash ^= JspbPayload.GetHashCode();
1637       if (HasTextPayload) hash ^= TextPayload.GetHashCode();
1638       hash ^= (int) resultCase_;
1639       if (_unknownFields != null) {
1640         hash ^= _unknownFields.GetHashCode();
1641       }
1642       return hash;
1643     }
1644 
1645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1647     public override string ToString() {
1648       return pb::JsonFormatter.ToDiagnosticString(this);
1649     }
1650 
1651     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1652     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1653     public void WriteTo(pb::CodedOutputStream output) {
1654     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1655       output.WriteRawMessage(this);
1656     #else
1657       if (HasParseError) {
1658         output.WriteRawTag(10);
1659         output.WriteString(ParseError);
1660       }
1661       if (HasRuntimeError) {
1662         output.WriteRawTag(18);
1663         output.WriteString(RuntimeError);
1664       }
1665       if (HasProtobufPayload) {
1666         output.WriteRawTag(26);
1667         output.WriteBytes(ProtobufPayload);
1668       }
1669       if (HasJsonPayload) {
1670         output.WriteRawTag(34);
1671         output.WriteString(JsonPayload);
1672       }
1673       if (HasSkipped) {
1674         output.WriteRawTag(42);
1675         output.WriteString(Skipped);
1676       }
1677       if (HasSerializeError) {
1678         output.WriteRawTag(50);
1679         output.WriteString(SerializeError);
1680       }
1681       if (HasJspbPayload) {
1682         output.WriteRawTag(58);
1683         output.WriteString(JspbPayload);
1684       }
1685       if (HasTextPayload) {
1686         output.WriteRawTag(66);
1687         output.WriteString(TextPayload);
1688       }
1689       if (HasTimeoutError) {
1690         output.WriteRawTag(74);
1691         output.WriteString(TimeoutError);
1692       }
1693       if (_unknownFields != null) {
1694         _unknownFields.WriteTo(output);
1695       }
1696     #endif
1697     }
1698 
1699     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1700     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1701     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1702     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1703       if (HasParseError) {
1704         output.WriteRawTag(10);
1705         output.WriteString(ParseError);
1706       }
1707       if (HasRuntimeError) {
1708         output.WriteRawTag(18);
1709         output.WriteString(RuntimeError);
1710       }
1711       if (HasProtobufPayload) {
1712         output.WriteRawTag(26);
1713         output.WriteBytes(ProtobufPayload);
1714       }
1715       if (HasJsonPayload) {
1716         output.WriteRawTag(34);
1717         output.WriteString(JsonPayload);
1718       }
1719       if (HasSkipped) {
1720         output.WriteRawTag(42);
1721         output.WriteString(Skipped);
1722       }
1723       if (HasSerializeError) {
1724         output.WriteRawTag(50);
1725         output.WriteString(SerializeError);
1726       }
1727       if (HasJspbPayload) {
1728         output.WriteRawTag(58);
1729         output.WriteString(JspbPayload);
1730       }
1731       if (HasTextPayload) {
1732         output.WriteRawTag(66);
1733         output.WriteString(TextPayload);
1734       }
1735       if (HasTimeoutError) {
1736         output.WriteRawTag(74);
1737         output.WriteString(TimeoutError);
1738       }
1739       if (_unknownFields != null) {
1740         _unknownFields.WriteTo(ref output);
1741       }
1742     }
1743     #endif
1744 
1745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1746     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1747     public int CalculateSize() {
1748       int size = 0;
1749       if (HasParseError) {
1750         size += 1 + pb::CodedOutputStream.ComputeStringSize(ParseError);
1751       }
1752       if (HasSerializeError) {
1753         size += 1 + pb::CodedOutputStream.ComputeStringSize(SerializeError);
1754       }
1755       if (HasTimeoutError) {
1756         size += 1 + pb::CodedOutputStream.ComputeStringSize(TimeoutError);
1757       }
1758       if (HasRuntimeError) {
1759         size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeError);
1760       }
1761       if (HasProtobufPayload) {
1762         size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
1763       }
1764       if (HasJsonPayload) {
1765         size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
1766       }
1767       if (HasSkipped) {
1768         size += 1 + pb::CodedOutputStream.ComputeStringSize(Skipped);
1769       }
1770       if (HasJspbPayload) {
1771         size += 1 + pb::CodedOutputStream.ComputeStringSize(JspbPayload);
1772       }
1773       if (HasTextPayload) {
1774         size += 1 + pb::CodedOutputStream.ComputeStringSize(TextPayload);
1775       }
1776       if (_unknownFields != null) {
1777         size += _unknownFields.CalculateSize();
1778       }
1779       return size;
1780     }
1781 
1782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ConformanceResponse other)1784     public void MergeFrom(ConformanceResponse other) {
1785       if (other == null) {
1786         return;
1787       }
1788       switch (other.ResultCase) {
1789         case ResultOneofCase.ParseError:
1790           ParseError = other.ParseError;
1791           break;
1792         case ResultOneofCase.SerializeError:
1793           SerializeError = other.SerializeError;
1794           break;
1795         case ResultOneofCase.TimeoutError:
1796           TimeoutError = other.TimeoutError;
1797           break;
1798         case ResultOneofCase.RuntimeError:
1799           RuntimeError = other.RuntimeError;
1800           break;
1801         case ResultOneofCase.ProtobufPayload:
1802           ProtobufPayload = other.ProtobufPayload;
1803           break;
1804         case ResultOneofCase.JsonPayload:
1805           JsonPayload = other.JsonPayload;
1806           break;
1807         case ResultOneofCase.Skipped:
1808           Skipped = other.Skipped;
1809           break;
1810         case ResultOneofCase.JspbPayload:
1811           JspbPayload = other.JspbPayload;
1812           break;
1813         case ResultOneofCase.TextPayload:
1814           TextPayload = other.TextPayload;
1815           break;
1816       }
1817 
1818       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1819     }
1820 
1821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1823     public void MergeFrom(pb::CodedInputStream input) {
1824     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1825       input.ReadRawMessage(this);
1826     #else
1827       uint tag;
1828       while ((tag = input.ReadTag()) != 0) {
1829       if ((tag & 7) == 4) {
1830         // Abort on any end group tag.
1831         return;
1832       }
1833       switch(tag) {
1834           default:
1835             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1836             break;
1837           case 10: {
1838             ParseError = input.ReadString();
1839             break;
1840           }
1841           case 18: {
1842             RuntimeError = input.ReadString();
1843             break;
1844           }
1845           case 26: {
1846             ProtobufPayload = input.ReadBytes();
1847             break;
1848           }
1849           case 34: {
1850             JsonPayload = input.ReadString();
1851             break;
1852           }
1853           case 42: {
1854             Skipped = input.ReadString();
1855             break;
1856           }
1857           case 50: {
1858             SerializeError = input.ReadString();
1859             break;
1860           }
1861           case 58: {
1862             JspbPayload = input.ReadString();
1863             break;
1864           }
1865           case 66: {
1866             TextPayload = input.ReadString();
1867             break;
1868           }
1869           case 74: {
1870             TimeoutError = input.ReadString();
1871             break;
1872           }
1873         }
1874       }
1875     #endif
1876     }
1877 
1878     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1879     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1880     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1881     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1882       uint tag;
1883       while ((tag = input.ReadTag()) != 0) {
1884       if ((tag & 7) == 4) {
1885         // Abort on any end group tag.
1886         return;
1887       }
1888       switch(tag) {
1889           default:
1890             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1891             break;
1892           case 10: {
1893             ParseError = input.ReadString();
1894             break;
1895           }
1896           case 18: {
1897             RuntimeError = input.ReadString();
1898             break;
1899           }
1900           case 26: {
1901             ProtobufPayload = input.ReadBytes();
1902             break;
1903           }
1904           case 34: {
1905             JsonPayload = input.ReadString();
1906             break;
1907           }
1908           case 42: {
1909             Skipped = input.ReadString();
1910             break;
1911           }
1912           case 50: {
1913             SerializeError = input.ReadString();
1914             break;
1915           }
1916           case 58: {
1917             JspbPayload = input.ReadString();
1918             break;
1919           }
1920           case 66: {
1921             TextPayload = input.ReadString();
1922             break;
1923           }
1924           case 74: {
1925             TimeoutError = input.ReadString();
1926             break;
1927           }
1928         }
1929       }
1930     }
1931     #endif
1932 
1933   }
1934 
1935   /// <summary>
1936   /// Encoding options for jspb format.
1937   /// </summary>
1938   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1939   public sealed partial class JspbEncodingConfig : pb::IMessage<JspbEncodingConfig>
1940   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1941       , pb::IBufferMessage
1942   #endif
1943   {
1944     private static readonly pb::MessageParser<JspbEncodingConfig> _parser = new pb::MessageParser<JspbEncodingConfig>(() => new JspbEncodingConfig());
1945     private pb::UnknownFieldSet _unknownFields;
1946     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1947     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1948     public static pb::MessageParser<JspbEncodingConfig> Parser { get { return _parser; } }
1949 
1950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1951     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1952     public static pbr::MessageDescriptor Descriptor {
1953       get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[4]; }
1954     }
1955 
1956     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1957     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1958     pbr::MessageDescriptor pb::IMessage.Descriptor {
1959       get { return Descriptor; }
1960     }
1961 
1962     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1963     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
JspbEncodingConfig()1964     public JspbEncodingConfig() {
1965       OnConstruction();
1966     }
1967 
OnConstruction()1968     partial void OnConstruction();
1969 
1970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1971     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
JspbEncodingConfig(JspbEncodingConfig other)1972     public JspbEncodingConfig(JspbEncodingConfig other) : this() {
1973       useJspbArrayAnyFormat_ = other.useJspbArrayAnyFormat_;
1974       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1975     }
1976 
1977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1979     public JspbEncodingConfig Clone() {
1980       return new JspbEncodingConfig(this);
1981     }
1982 
1983     /// <summary>Field number for the "use_jspb_array_any_format" field.</summary>
1984     public const int UseJspbArrayAnyFormatFieldNumber = 1;
1985     private bool useJspbArrayAnyFormat_;
1986     /// <summary>
1987     /// Encode the value field of Any as jspb array if true, otherwise binary.
1988     /// </summary>
1989     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1990     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1991     public bool UseJspbArrayAnyFormat {
1992       get { return useJspbArrayAnyFormat_; }
1993       set {
1994         useJspbArrayAnyFormat_ = value;
1995       }
1996     }
1997 
1998     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1999     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2000     public override bool Equals(object other) {
2001       return Equals(other as JspbEncodingConfig);
2002     }
2003 
2004     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2005     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(JspbEncodingConfig other)2006     public bool Equals(JspbEncodingConfig other) {
2007       if (ReferenceEquals(other, null)) {
2008         return false;
2009       }
2010       if (ReferenceEquals(other, this)) {
2011         return true;
2012       }
2013       if (UseJspbArrayAnyFormat != other.UseJspbArrayAnyFormat) return false;
2014       return Equals(_unknownFields, other._unknownFields);
2015     }
2016 
2017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2019     public override int GetHashCode() {
2020       int hash = 1;
2021       if (UseJspbArrayAnyFormat != false) hash ^= UseJspbArrayAnyFormat.GetHashCode();
2022       if (_unknownFields != null) {
2023         hash ^= _unknownFields.GetHashCode();
2024       }
2025       return hash;
2026     }
2027 
2028     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2029     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2030     public override string ToString() {
2031       return pb::JsonFormatter.ToDiagnosticString(this);
2032     }
2033 
2034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2035     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)2036     public void WriteTo(pb::CodedOutputStream output) {
2037     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2038       output.WriteRawMessage(this);
2039     #else
2040       if (UseJspbArrayAnyFormat != false) {
2041         output.WriteRawTag(8);
2042         output.WriteBool(UseJspbArrayAnyFormat);
2043       }
2044       if (_unknownFields != null) {
2045         _unknownFields.WriteTo(output);
2046       }
2047     #endif
2048     }
2049 
2050     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2053     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2054       if (UseJspbArrayAnyFormat != false) {
2055         output.WriteRawTag(8);
2056         output.WriteBool(UseJspbArrayAnyFormat);
2057       }
2058       if (_unknownFields != null) {
2059         _unknownFields.WriteTo(ref output);
2060       }
2061     }
2062     #endif
2063 
2064     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2065     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()2066     public int CalculateSize() {
2067       int size = 0;
2068       if (UseJspbArrayAnyFormat != false) {
2069         size += 1 + 1;
2070       }
2071       if (_unknownFields != null) {
2072         size += _unknownFields.CalculateSize();
2073       }
2074       return size;
2075     }
2076 
2077     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2078     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(JspbEncodingConfig other)2079     public void MergeFrom(JspbEncodingConfig other) {
2080       if (other == null) {
2081         return;
2082       }
2083       if (other.UseJspbArrayAnyFormat != false) {
2084         UseJspbArrayAnyFormat = other.UseJspbArrayAnyFormat;
2085       }
2086       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2087     }
2088 
2089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2090     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)2091     public void MergeFrom(pb::CodedInputStream input) {
2092     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2093       input.ReadRawMessage(this);
2094     #else
2095       uint tag;
2096       while ((tag = input.ReadTag()) != 0) {
2097       if ((tag & 7) == 4) {
2098         // Abort on any end group tag.
2099         return;
2100       }
2101       switch(tag) {
2102           default:
2103             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2104             break;
2105           case 8: {
2106             UseJspbArrayAnyFormat = input.ReadBool();
2107             break;
2108           }
2109         }
2110       }
2111     #endif
2112     }
2113 
2114     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2116     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2117     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2118       uint tag;
2119       while ((tag = input.ReadTag()) != 0) {
2120       if ((tag & 7) == 4) {
2121         // Abort on any end group tag.
2122         return;
2123       }
2124       switch(tag) {
2125           default:
2126             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2127             break;
2128           case 8: {
2129             UseJspbArrayAnyFormat = input.ReadBool();
2130             break;
2131           }
2132         }
2133       }
2134     }
2135     #endif
2136 
2137   }
2138 
2139   #endregion
2140 
2141 }
2142 
2143 #endregion Designer generated code
2144