1ffe3c632Sopenharmony_ci// <auto-generated>
2ffe3c632Sopenharmony_ci//     Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci//     source: conformance.proto
4ffe3c632Sopenharmony_ci// </auto-generated>
5ffe3c632Sopenharmony_ci#pragma warning disable 1591, 0612, 3021
6ffe3c632Sopenharmony_ci#region Designer generated code
7ffe3c632Sopenharmony_ci
8ffe3c632Sopenharmony_ciusing pb = global::Google.Protobuf;
9ffe3c632Sopenharmony_ciusing pbc = global::Google.Protobuf.Collections;
10ffe3c632Sopenharmony_ciusing pbr = global::Google.Protobuf.Reflection;
11ffe3c632Sopenharmony_ciusing scg = global::System.Collections.Generic;
12ffe3c632Sopenharmony_cinamespace Conformance {
13ffe3c632Sopenharmony_ci
14ffe3c632Sopenharmony_ci  /// <summary>Holder for reflection information generated from conformance.proto</summary>
15ffe3c632Sopenharmony_ci  public static partial class ConformanceReflection {
16ffe3c632Sopenharmony_ci
17ffe3c632Sopenharmony_ci    #region Descriptor
18ffe3c632Sopenharmony_ci    /// <summary>File descriptor for conformance.proto</summary>
19ffe3c632Sopenharmony_ci    public static pbr::FileDescriptor Descriptor {
20ffe3c632Sopenharmony_ci      get { return descriptor; }
21ffe3c632Sopenharmony_ci    }
22ffe3c632Sopenharmony_ci    private static pbr::FileDescriptor descriptor;
23ffe3c632Sopenharmony_ci
24ffe3c632Sopenharmony_ci    static ConformanceReflection() {
25ffe3c632Sopenharmony_ci      byte[] descriptorData = global::System.Convert.FromBase64String(
26ffe3c632Sopenharmony_ci          string.Concat(
27ffe3c632Sopenharmony_ci            "ChFjb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2UiHQoKRmFpbHVyZVNl",
28ffe3c632Sopenharmony_ci            "dBIPCgdmYWlsdXJlGAEgAygJIuMCChJDb25mb3JtYW5jZVJlcXVlc3QSGgoQ",
29ffe3c632Sopenharmony_ci            "cHJvdG9idWZfcGF5bG9hZBgBIAEoDEgAEhYKDGpzb25fcGF5bG9hZBgCIAEo",
30ffe3c632Sopenharmony_ci            "CUgAEhYKDGpzcGJfcGF5bG9hZBgHIAEoCUgAEhYKDHRleHRfcGF5bG9hZBgI",
31ffe3c632Sopenharmony_ci            "IAEoCUgAEjgKF3JlcXVlc3RlZF9vdXRwdXRfZm9ybWF0GAMgASgOMhcuY29u",
32ffe3c632Sopenharmony_ci            "Zm9ybWFuY2UuV2lyZUZvcm1hdBIUCgxtZXNzYWdlX3R5cGUYBCABKAkSMAoN",
33ffe3c632Sopenharmony_ci            "dGVzdF9jYXRlZ29yeRgFIAEoDjIZLmNvbmZvcm1hbmNlLlRlc3RDYXRlZ29y",
34ffe3c632Sopenharmony_ci            "eRI+ChVqc3BiX2VuY29kaW5nX29wdGlvbnMYBiABKAsyHy5jb25mb3JtYW5j",
35ffe3c632Sopenharmony_ci            "ZS5Kc3BiRW5jb2RpbmdDb25maWcSHAoUcHJpbnRfdW5rbm93bl9maWVsZHMY",
36ffe3c632Sopenharmony_ci            "CSABKAhCCQoHcGF5bG9hZCLhAQoTQ29uZm9ybWFuY2VSZXNwb25zZRIVCgtw",
37ffe3c632Sopenharmony_ci            "YXJzZV9lcnJvchgBIAEoCUgAEhkKD3NlcmlhbGl6ZV9lcnJvchgGIAEoCUgA",
38ffe3c632Sopenharmony_ci            "EhcKDXJ1bnRpbWVfZXJyb3IYAiABKAlIABIaChBwcm90b2J1Zl9wYXlsb2Fk",
39ffe3c632Sopenharmony_ci            "GAMgASgMSAASFgoManNvbl9wYXlsb2FkGAQgASgJSAASEQoHc2tpcHBlZBgF",
40ffe3c632Sopenharmony_ci            "IAEoCUgAEhYKDGpzcGJfcGF5bG9hZBgHIAEoCUgAEhYKDHRleHRfcGF5bG9h",
41ffe3c632Sopenharmony_ci            "ZBgIIAEoCUgAQggKBnJlc3VsdCI3ChJKc3BiRW5jb2RpbmdDb25maWcSIQoZ",
42ffe3c632Sopenharmony_ci            "dXNlX2pzcGJfYXJyYXlfYW55X2Zvcm1hdBgBIAEoCCpQCgpXaXJlRm9ybWF0",
43ffe3c632Sopenharmony_ci            "Eg8KC1VOU1BFQ0lGSUVEEAASDAoIUFJPVE9CVUYQARIICgRKU09OEAISCAoE",
44ffe3c632Sopenharmony_ci            "SlNQQhADEg8KC1RFWFRfRk9STUFUEAQqjwEKDFRlc3RDYXRlZ29yeRIUChBV",
45ffe3c632Sopenharmony_ci            "TlNQRUNJRklFRF9URVNUEAASDwoLQklOQVJZX1RFU1QQARINCglKU09OX1RF",
46ffe3c632Sopenharmony_ci            "U1QQAhIkCiBKU09OX0lHTk9SRV9VTktOT1dOX1BBUlNJTkdfVEVTVBADEg0K",
47ffe3c632Sopenharmony_ci            "CUpTUEJfVEVTVBAEEhQKEFRFWFRfRk9STUFUX1RFU1QQBUIhCh9jb20uZ29v",
48ffe3c632Sopenharmony_ci            "Z2xlLnByb3RvYnVmLmNvbmZvcm1hbmNlYgZwcm90bzM="));
49ffe3c632Sopenharmony_ci      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
50ffe3c632Sopenharmony_ci          new pbr::FileDescriptor[] { },
51ffe3c632Sopenharmony_ci          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Conformance.WireFormat), typeof(global::Conformance.TestCategory), }, null, new pbr::GeneratedClrTypeInfo[] {
52ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.FailureSet), global::Conformance.FailureSet.Parser, new[]{ "Failure" }, null, null, null, null),
53ffe3c632Sopenharmony_ci            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),
54ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceResponse), global::Conformance.ConformanceResponse.Parser, new[]{ "ParseError", "SerializeError", "RuntimeError", "ProtobufPayload", "JsonPayload", "Skipped", "JspbPayload", "TextPayload" }, new[]{ "Result" }, null, null, null),
55ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.JspbEncodingConfig), global::Conformance.JspbEncodingConfig.Parser, new[]{ "UseJspbArrayAnyFormat" }, null, null, null, null)
56ffe3c632Sopenharmony_ci          }));
57ffe3c632Sopenharmony_ci    }
58ffe3c632Sopenharmony_ci    #endregion
59ffe3c632Sopenharmony_ci
60ffe3c632Sopenharmony_ci  }
61ffe3c632Sopenharmony_ci  #region Enums
62ffe3c632Sopenharmony_ci  public enum WireFormat {
63ffe3c632Sopenharmony_ci    [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
64ffe3c632Sopenharmony_ci    [pbr::OriginalName("PROTOBUF")] Protobuf = 1,
65ffe3c632Sopenharmony_ci    [pbr::OriginalName("JSON")] Json = 2,
66ffe3c632Sopenharmony_ci    /// <summary>
67ffe3c632Sopenharmony_ci    /// Google internal only. Opensource testees just skip it.
68ffe3c632Sopenharmony_ci    /// </summary>
69ffe3c632Sopenharmony_ci    [pbr::OriginalName("JSPB")] Jspb = 3,
70ffe3c632Sopenharmony_ci    [pbr::OriginalName("TEXT_FORMAT")] TextFormat = 4,
71ffe3c632Sopenharmony_ci  }
72ffe3c632Sopenharmony_ci
73ffe3c632Sopenharmony_ci  public enum TestCategory {
74ffe3c632Sopenharmony_ci    [pbr::OriginalName("UNSPECIFIED_TEST")] UnspecifiedTest = 0,
75ffe3c632Sopenharmony_ci    /// <summary>
76ffe3c632Sopenharmony_ci    /// Test binary wire format.
77ffe3c632Sopenharmony_ci    /// </summary>
78ffe3c632Sopenharmony_ci    [pbr::OriginalName("BINARY_TEST")] BinaryTest = 1,
79ffe3c632Sopenharmony_ci    /// <summary>
80ffe3c632Sopenharmony_ci    /// Test json wire format.
81ffe3c632Sopenharmony_ci    /// </summary>
82ffe3c632Sopenharmony_ci    [pbr::OriginalName("JSON_TEST")] JsonTest = 2,
83ffe3c632Sopenharmony_ci    /// <summary>
84ffe3c632Sopenharmony_ci    /// Similar to JSON_TEST. However, during parsing json, testee should ignore
85ffe3c632Sopenharmony_ci    /// unknown fields. This feature is optional. Each implementation can descide
86ffe3c632Sopenharmony_ci    /// whether to support it.  See
87ffe3c632Sopenharmony_ci    /// https://developers.google.com/protocol-buffers/docs/proto3#json_options
88ffe3c632Sopenharmony_ci    /// for more detail.
89ffe3c632Sopenharmony_ci    /// </summary>
90ffe3c632Sopenharmony_ci    [pbr::OriginalName("JSON_IGNORE_UNKNOWN_PARSING_TEST")] JsonIgnoreUnknownParsingTest = 3,
91ffe3c632Sopenharmony_ci    /// <summary>
92ffe3c632Sopenharmony_ci    /// Test jspb wire format. Google internal only. Opensource testees just skip it.
93ffe3c632Sopenharmony_ci    /// </summary>
94ffe3c632Sopenharmony_ci    [pbr::OriginalName("JSPB_TEST")] JspbTest = 4,
95ffe3c632Sopenharmony_ci    /// <summary>
96ffe3c632Sopenharmony_ci    /// Test text format. For cpp, java and python, testees can already deal with
97ffe3c632Sopenharmony_ci    /// this type. Testees of other languages can simply skip it.
98ffe3c632Sopenharmony_ci    /// </summary>
99ffe3c632Sopenharmony_ci    [pbr::OriginalName("TEXT_FORMAT_TEST")] TextFormatTest = 5,
100ffe3c632Sopenharmony_ci  }
101ffe3c632Sopenharmony_ci
102ffe3c632Sopenharmony_ci  #endregion
103ffe3c632Sopenharmony_ci
104ffe3c632Sopenharmony_ci  #region Messages
105ffe3c632Sopenharmony_ci  /// <summary>
106ffe3c632Sopenharmony_ci  /// The conformance runner will request a list of failures as the first request.
107ffe3c632Sopenharmony_ci  /// This will be known by message_type == "conformance.FailureSet", a conformance
108ffe3c632Sopenharmony_ci  /// test should return a serialized FailureSet in protobuf_payload.
109ffe3c632Sopenharmony_ci  /// </summary>
110ffe3c632Sopenharmony_ci  public sealed partial class FailureSet : pb::IMessage<FailureSet>
111ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
112ffe3c632Sopenharmony_ci      , pb::IBufferMessage
113ffe3c632Sopenharmony_ci  #endif
114ffe3c632Sopenharmony_ci  {
115ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<FailureSet> _parser = new pb::MessageParser<FailureSet>(() => new FailureSet());
116ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
117ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
118ffe3c632Sopenharmony_ci    public static pb::MessageParser<FailureSet> Parser { get { return _parser; } }
119ffe3c632Sopenharmony_ci
120ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
121ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
122ffe3c632Sopenharmony_ci      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[0]; }
123ffe3c632Sopenharmony_ci    }
124ffe3c632Sopenharmony_ci
125ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
127ffe3c632Sopenharmony_ci      get { return Descriptor; }
128ffe3c632Sopenharmony_ci    }
129ffe3c632Sopenharmony_ci
130ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
131ffe3c632Sopenharmony_ci    public FailureSet() {
132ffe3c632Sopenharmony_ci      OnConstruction();
133ffe3c632Sopenharmony_ci    }
134ffe3c632Sopenharmony_ci
135ffe3c632Sopenharmony_ci    partial void OnConstruction();
136ffe3c632Sopenharmony_ci
137ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138ffe3c632Sopenharmony_ci    public FailureSet(FailureSet other) : this() {
139ffe3c632Sopenharmony_ci      failure_ = other.failure_.Clone();
140ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
141ffe3c632Sopenharmony_ci    }
142ffe3c632Sopenharmony_ci
143ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
144ffe3c632Sopenharmony_ci    public FailureSet Clone() {
145ffe3c632Sopenharmony_ci      return new FailureSet(this);
146ffe3c632Sopenharmony_ci    }
147ffe3c632Sopenharmony_ci
148ffe3c632Sopenharmony_ci    /// <summary>Field number for the "failure" field.</summary>
149ffe3c632Sopenharmony_ci    public const int FailureFieldNumber = 1;
150ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<string> _repeated_failure_codec
151ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForString(10);
152ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<string> failure_ = new pbc::RepeatedField<string>();
153ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
154ffe3c632Sopenharmony_ci    public pbc::RepeatedField<string> Failure {
155ffe3c632Sopenharmony_ci      get { return failure_; }
156ffe3c632Sopenharmony_ci    }
157ffe3c632Sopenharmony_ci
158ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
159ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
160ffe3c632Sopenharmony_ci      return Equals(other as FailureSet);
161ffe3c632Sopenharmony_ci    }
162ffe3c632Sopenharmony_ci
163ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
164ffe3c632Sopenharmony_ci    public bool Equals(FailureSet other) {
165ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
166ffe3c632Sopenharmony_ci        return false;
167ffe3c632Sopenharmony_ci      }
168ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
169ffe3c632Sopenharmony_ci        return true;
170ffe3c632Sopenharmony_ci      }
171ffe3c632Sopenharmony_ci      if(!failure_.Equals(other.failure_)) return false;
172ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
173ffe3c632Sopenharmony_ci    }
174ffe3c632Sopenharmony_ci
175ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
176ffe3c632Sopenharmony_ci    public override int GetHashCode() {
177ffe3c632Sopenharmony_ci      int hash = 1;
178ffe3c632Sopenharmony_ci      hash ^= failure_.GetHashCode();
179ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
180ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
181ffe3c632Sopenharmony_ci      }
182ffe3c632Sopenharmony_ci      return hash;
183ffe3c632Sopenharmony_ci    }
184ffe3c632Sopenharmony_ci
185ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186ffe3c632Sopenharmony_ci    public override string ToString() {
187ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
188ffe3c632Sopenharmony_ci    }
189ffe3c632Sopenharmony_ci
190ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
192ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
193ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
194ffe3c632Sopenharmony_ci    #else
195ffe3c632Sopenharmony_ci      failure_.WriteTo(output, _repeated_failure_codec);
196ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
197ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
198ffe3c632Sopenharmony_ci      }
199ffe3c632Sopenharmony_ci    #endif
200ffe3c632Sopenharmony_ci    }
201ffe3c632Sopenharmony_ci
202ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
203ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
204ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
205ffe3c632Sopenharmony_ci      failure_.WriteTo(ref output, _repeated_failure_codec);
206ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
207ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
208ffe3c632Sopenharmony_ci      }
209ffe3c632Sopenharmony_ci    }
210ffe3c632Sopenharmony_ci    #endif
211ffe3c632Sopenharmony_ci
212ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
213ffe3c632Sopenharmony_ci    public int CalculateSize() {
214ffe3c632Sopenharmony_ci      int size = 0;
215ffe3c632Sopenharmony_ci      size += failure_.CalculateSize(_repeated_failure_codec);
216ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
217ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
218ffe3c632Sopenharmony_ci      }
219ffe3c632Sopenharmony_ci      return size;
220ffe3c632Sopenharmony_ci    }
221ffe3c632Sopenharmony_ci
222ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223ffe3c632Sopenharmony_ci    public void MergeFrom(FailureSet other) {
224ffe3c632Sopenharmony_ci      if (other == null) {
225ffe3c632Sopenharmony_ci        return;
226ffe3c632Sopenharmony_ci      }
227ffe3c632Sopenharmony_ci      failure_.Add(other.failure_);
228ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
229ffe3c632Sopenharmony_ci    }
230ffe3c632Sopenharmony_ci
231ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
232ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
233ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
234ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
235ffe3c632Sopenharmony_ci    #else
236ffe3c632Sopenharmony_ci      uint tag;
237ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
238ffe3c632Sopenharmony_ci        switch(tag) {
239ffe3c632Sopenharmony_ci          default:
240ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
241ffe3c632Sopenharmony_ci            break;
242ffe3c632Sopenharmony_ci          case 10: {
243ffe3c632Sopenharmony_ci            failure_.AddEntriesFrom(input, _repeated_failure_codec);
244ffe3c632Sopenharmony_ci            break;
245ffe3c632Sopenharmony_ci          }
246ffe3c632Sopenharmony_ci        }
247ffe3c632Sopenharmony_ci      }
248ffe3c632Sopenharmony_ci    #endif
249ffe3c632Sopenharmony_ci    }
250ffe3c632Sopenharmony_ci
251ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
252ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
253ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
254ffe3c632Sopenharmony_ci      uint tag;
255ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
256ffe3c632Sopenharmony_ci        switch(tag) {
257ffe3c632Sopenharmony_ci          default:
258ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
259ffe3c632Sopenharmony_ci            break;
260ffe3c632Sopenharmony_ci          case 10: {
261ffe3c632Sopenharmony_ci            failure_.AddEntriesFrom(ref input, _repeated_failure_codec);
262ffe3c632Sopenharmony_ci            break;
263ffe3c632Sopenharmony_ci          }
264ffe3c632Sopenharmony_ci        }
265ffe3c632Sopenharmony_ci      }
266ffe3c632Sopenharmony_ci    }
267ffe3c632Sopenharmony_ci    #endif
268ffe3c632Sopenharmony_ci
269ffe3c632Sopenharmony_ci  }
270ffe3c632Sopenharmony_ci
271ffe3c632Sopenharmony_ci  /// <summary>
272ffe3c632Sopenharmony_ci  /// Represents a single test case's input.  The testee should:
273ffe3c632Sopenharmony_ci  ///
274ffe3c632Sopenharmony_ci  ///   1. parse this proto (which should always succeed)
275ffe3c632Sopenharmony_ci  ///   2. parse the protobuf or JSON payload in "payload" (which may fail)
276ffe3c632Sopenharmony_ci  ///   3. if the parse succeeded, serialize the message in the requested format.
277ffe3c632Sopenharmony_ci  /// </summary>
278ffe3c632Sopenharmony_ci  public sealed partial class ConformanceRequest : pb::IMessage<ConformanceRequest>
279ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
280ffe3c632Sopenharmony_ci      , pb::IBufferMessage
281ffe3c632Sopenharmony_ci  #endif
282ffe3c632Sopenharmony_ci  {
283ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<ConformanceRequest> _parser = new pb::MessageParser<ConformanceRequest>(() => new ConformanceRequest());
284ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
285ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
286ffe3c632Sopenharmony_ci    public static pb::MessageParser<ConformanceRequest> Parser { get { return _parser; } }
287ffe3c632Sopenharmony_ci
288ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
290ffe3c632Sopenharmony_ci      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[1]; }
291ffe3c632Sopenharmony_ci    }
292ffe3c632Sopenharmony_ci
293ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
294ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
295ffe3c632Sopenharmony_ci      get { return Descriptor; }
296ffe3c632Sopenharmony_ci    }
297ffe3c632Sopenharmony_ci
298ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
299ffe3c632Sopenharmony_ci    public ConformanceRequest() {
300ffe3c632Sopenharmony_ci      OnConstruction();
301ffe3c632Sopenharmony_ci    }
302ffe3c632Sopenharmony_ci
303ffe3c632Sopenharmony_ci    partial void OnConstruction();
304ffe3c632Sopenharmony_ci
305ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
306ffe3c632Sopenharmony_ci    public ConformanceRequest(ConformanceRequest other) : this() {
307ffe3c632Sopenharmony_ci      requestedOutputFormat_ = other.requestedOutputFormat_;
308ffe3c632Sopenharmony_ci      messageType_ = other.messageType_;
309ffe3c632Sopenharmony_ci      testCategory_ = other.testCategory_;
310ffe3c632Sopenharmony_ci      jspbEncodingOptions_ = other.jspbEncodingOptions_ != null ? other.jspbEncodingOptions_.Clone() : null;
311ffe3c632Sopenharmony_ci      printUnknownFields_ = other.printUnknownFields_;
312ffe3c632Sopenharmony_ci      switch (other.PayloadCase) {
313ffe3c632Sopenharmony_ci        case PayloadOneofCase.ProtobufPayload:
314ffe3c632Sopenharmony_ci          ProtobufPayload = other.ProtobufPayload;
315ffe3c632Sopenharmony_ci          break;
316ffe3c632Sopenharmony_ci        case PayloadOneofCase.JsonPayload:
317ffe3c632Sopenharmony_ci          JsonPayload = other.JsonPayload;
318ffe3c632Sopenharmony_ci          break;
319ffe3c632Sopenharmony_ci        case PayloadOneofCase.JspbPayload:
320ffe3c632Sopenharmony_ci          JspbPayload = other.JspbPayload;
321ffe3c632Sopenharmony_ci          break;
322ffe3c632Sopenharmony_ci        case PayloadOneofCase.TextPayload:
323ffe3c632Sopenharmony_ci          TextPayload = other.TextPayload;
324ffe3c632Sopenharmony_ci          break;
325ffe3c632Sopenharmony_ci      }
326ffe3c632Sopenharmony_ci
327ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
328ffe3c632Sopenharmony_ci    }
329ffe3c632Sopenharmony_ci
330ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331ffe3c632Sopenharmony_ci    public ConformanceRequest Clone() {
332ffe3c632Sopenharmony_ci      return new ConformanceRequest(this);
333ffe3c632Sopenharmony_ci    }
334ffe3c632Sopenharmony_ci
335ffe3c632Sopenharmony_ci    /// <summary>Field number for the "protobuf_payload" field.</summary>
336ffe3c632Sopenharmony_ci    public const int ProtobufPayloadFieldNumber = 1;
337ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
338ffe3c632Sopenharmony_ci    public pb::ByteString ProtobufPayload {
339ffe3c632Sopenharmony_ci      get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
340ffe3c632Sopenharmony_ci      set {
341ffe3c632Sopenharmony_ci        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
342ffe3c632Sopenharmony_ci        payloadCase_ = PayloadOneofCase.ProtobufPayload;
343ffe3c632Sopenharmony_ci      }
344ffe3c632Sopenharmony_ci    }
345ffe3c632Sopenharmony_ci
346ffe3c632Sopenharmony_ci    /// <summary>Field number for the "json_payload" field.</summary>
347ffe3c632Sopenharmony_ci    public const int JsonPayloadFieldNumber = 2;
348ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
349ffe3c632Sopenharmony_ci    public string JsonPayload {
350ffe3c632Sopenharmony_ci      get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
351ffe3c632Sopenharmony_ci      set {
352ffe3c632Sopenharmony_ci        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
353ffe3c632Sopenharmony_ci        payloadCase_ = PayloadOneofCase.JsonPayload;
354ffe3c632Sopenharmony_ci      }
355ffe3c632Sopenharmony_ci    }
356ffe3c632Sopenharmony_ci
357ffe3c632Sopenharmony_ci    /// <summary>Field number for the "jspb_payload" field.</summary>
358ffe3c632Sopenharmony_ci    public const int JspbPayloadFieldNumber = 7;
359ffe3c632Sopenharmony_ci    /// <summary>
360ffe3c632Sopenharmony_ci    /// Google internal only.  Opensource testees just skip it.
361ffe3c632Sopenharmony_ci    /// </summary>
362ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
363ffe3c632Sopenharmony_ci    public string JspbPayload {
364ffe3c632Sopenharmony_ci      get { return payloadCase_ == PayloadOneofCase.JspbPayload ? (string) payload_ : ""; }
365ffe3c632Sopenharmony_ci      set {
366ffe3c632Sopenharmony_ci        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
367ffe3c632Sopenharmony_ci        payloadCase_ = PayloadOneofCase.JspbPayload;
368ffe3c632Sopenharmony_ci      }
369ffe3c632Sopenharmony_ci    }
370ffe3c632Sopenharmony_ci
371ffe3c632Sopenharmony_ci    /// <summary>Field number for the "text_payload" field.</summary>
372ffe3c632Sopenharmony_ci    public const int TextPayloadFieldNumber = 8;
373ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374ffe3c632Sopenharmony_ci    public string TextPayload {
375ffe3c632Sopenharmony_ci      get { return payloadCase_ == PayloadOneofCase.TextPayload ? (string) payload_ : ""; }
376ffe3c632Sopenharmony_ci      set {
377ffe3c632Sopenharmony_ci        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
378ffe3c632Sopenharmony_ci        payloadCase_ = PayloadOneofCase.TextPayload;
379ffe3c632Sopenharmony_ci      }
380ffe3c632Sopenharmony_ci    }
381ffe3c632Sopenharmony_ci
382ffe3c632Sopenharmony_ci    /// <summary>Field number for the "requested_output_format" field.</summary>
383ffe3c632Sopenharmony_ci    public const int RequestedOutputFormatFieldNumber = 3;
384ffe3c632Sopenharmony_ci    private global::Conformance.WireFormat requestedOutputFormat_ = global::Conformance.WireFormat.Unspecified;
385ffe3c632Sopenharmony_ci    /// <summary>
386ffe3c632Sopenharmony_ci    /// Which format should the testee serialize its message to?
387ffe3c632Sopenharmony_ci    /// </summary>
388ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
389ffe3c632Sopenharmony_ci    public global::Conformance.WireFormat RequestedOutputFormat {
390ffe3c632Sopenharmony_ci      get { return requestedOutputFormat_; }
391ffe3c632Sopenharmony_ci      set {
392ffe3c632Sopenharmony_ci        requestedOutputFormat_ = value;
393ffe3c632Sopenharmony_ci      }
394ffe3c632Sopenharmony_ci    }
395ffe3c632Sopenharmony_ci
396ffe3c632Sopenharmony_ci    /// <summary>Field number for the "message_type" field.</summary>
397ffe3c632Sopenharmony_ci    public const int MessageTypeFieldNumber = 4;
398ffe3c632Sopenharmony_ci    private string messageType_ = "";
399ffe3c632Sopenharmony_ci    /// <summary>
400ffe3c632Sopenharmony_ci    /// The full name for the test message to use; for the moment, either:
401ffe3c632Sopenharmony_ci    /// protobuf_test_messages.proto3.TestAllTypesProto3 or
402ffe3c632Sopenharmony_ci    /// protobuf_test_messages.proto2.TestAllTypesProto2.
403ffe3c632Sopenharmony_ci    /// </summary>
404ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
405ffe3c632Sopenharmony_ci    public string MessageType {
406ffe3c632Sopenharmony_ci      get { return messageType_; }
407ffe3c632Sopenharmony_ci      set {
408ffe3c632Sopenharmony_ci        messageType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
409ffe3c632Sopenharmony_ci      }
410ffe3c632Sopenharmony_ci    }
411ffe3c632Sopenharmony_ci
412ffe3c632Sopenharmony_ci    /// <summary>Field number for the "test_category" field.</summary>
413ffe3c632Sopenharmony_ci    public const int TestCategoryFieldNumber = 5;
414ffe3c632Sopenharmony_ci    private global::Conformance.TestCategory testCategory_ = global::Conformance.TestCategory.UnspecifiedTest;
415ffe3c632Sopenharmony_ci    /// <summary>
416ffe3c632Sopenharmony_ci    /// Each test is given a specific test category. Some category may need
417ffe3c632Sopenharmony_ci    /// spedific support in testee programs. Refer to the definition of TestCategory
418ffe3c632Sopenharmony_ci    /// for more information.
419ffe3c632Sopenharmony_ci    /// </summary>
420ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421ffe3c632Sopenharmony_ci    public global::Conformance.TestCategory TestCategory {
422ffe3c632Sopenharmony_ci      get { return testCategory_; }
423ffe3c632Sopenharmony_ci      set {
424ffe3c632Sopenharmony_ci        testCategory_ = value;
425ffe3c632Sopenharmony_ci      }
426ffe3c632Sopenharmony_ci    }
427ffe3c632Sopenharmony_ci
428ffe3c632Sopenharmony_ci    /// <summary>Field number for the "jspb_encoding_options" field.</summary>
429ffe3c632Sopenharmony_ci    public const int JspbEncodingOptionsFieldNumber = 6;
430ffe3c632Sopenharmony_ci    private global::Conformance.JspbEncodingConfig jspbEncodingOptions_;
431ffe3c632Sopenharmony_ci    /// <summary>
432ffe3c632Sopenharmony_ci    /// Specify details for how to encode jspb.
433ffe3c632Sopenharmony_ci    /// </summary>
434ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
435ffe3c632Sopenharmony_ci    public global::Conformance.JspbEncodingConfig JspbEncodingOptions {
436ffe3c632Sopenharmony_ci      get { return jspbEncodingOptions_; }
437ffe3c632Sopenharmony_ci      set {
438ffe3c632Sopenharmony_ci        jspbEncodingOptions_ = value;
439ffe3c632Sopenharmony_ci      }
440ffe3c632Sopenharmony_ci    }
441ffe3c632Sopenharmony_ci
442ffe3c632Sopenharmony_ci    /// <summary>Field number for the "print_unknown_fields" field.</summary>
443ffe3c632Sopenharmony_ci    public const int PrintUnknownFieldsFieldNumber = 9;
444ffe3c632Sopenharmony_ci    private bool printUnknownFields_;
445ffe3c632Sopenharmony_ci    /// <summary>
446ffe3c632Sopenharmony_ci    /// This can be used in json and text format. If true, testee should print
447ffe3c632Sopenharmony_ci    /// unknown fields instead of ignore. This feature is optional.
448ffe3c632Sopenharmony_ci    /// </summary>
449ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
450ffe3c632Sopenharmony_ci    public bool PrintUnknownFields {
451ffe3c632Sopenharmony_ci      get { return printUnknownFields_; }
452ffe3c632Sopenharmony_ci      set {
453ffe3c632Sopenharmony_ci        printUnknownFields_ = value;
454ffe3c632Sopenharmony_ci      }
455ffe3c632Sopenharmony_ci    }
456ffe3c632Sopenharmony_ci
457ffe3c632Sopenharmony_ci    private object payload_;
458ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "payload" oneof.</summary>
459ffe3c632Sopenharmony_ci    public enum PayloadOneofCase {
460ffe3c632Sopenharmony_ci      None = 0,
461ffe3c632Sopenharmony_ci      ProtobufPayload = 1,
462ffe3c632Sopenharmony_ci      JsonPayload = 2,
463ffe3c632Sopenharmony_ci      JspbPayload = 7,
464ffe3c632Sopenharmony_ci      TextPayload = 8,
465ffe3c632Sopenharmony_ci    }
466ffe3c632Sopenharmony_ci    private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
467ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468ffe3c632Sopenharmony_ci    public PayloadOneofCase PayloadCase {
469ffe3c632Sopenharmony_ci      get { return payloadCase_; }
470ffe3c632Sopenharmony_ci    }
471ffe3c632Sopenharmony_ci
472ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
473ffe3c632Sopenharmony_ci    public void ClearPayload() {
474ffe3c632Sopenharmony_ci      payloadCase_ = PayloadOneofCase.None;
475ffe3c632Sopenharmony_ci      payload_ = null;
476ffe3c632Sopenharmony_ci    }
477ffe3c632Sopenharmony_ci
478ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
479ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
480ffe3c632Sopenharmony_ci      return Equals(other as ConformanceRequest);
481ffe3c632Sopenharmony_ci    }
482ffe3c632Sopenharmony_ci
483ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484ffe3c632Sopenharmony_ci    public bool Equals(ConformanceRequest other) {
485ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
486ffe3c632Sopenharmony_ci        return false;
487ffe3c632Sopenharmony_ci      }
488ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
489ffe3c632Sopenharmony_ci        return true;
490ffe3c632Sopenharmony_ci      }
491ffe3c632Sopenharmony_ci      if (ProtobufPayload != other.ProtobufPayload) return false;
492ffe3c632Sopenharmony_ci      if (JsonPayload != other.JsonPayload) return false;
493ffe3c632Sopenharmony_ci      if (JspbPayload != other.JspbPayload) return false;
494ffe3c632Sopenharmony_ci      if (TextPayload != other.TextPayload) return false;
495ffe3c632Sopenharmony_ci      if (RequestedOutputFormat != other.RequestedOutputFormat) return false;
496ffe3c632Sopenharmony_ci      if (MessageType != other.MessageType) return false;
497ffe3c632Sopenharmony_ci      if (TestCategory != other.TestCategory) return false;
498ffe3c632Sopenharmony_ci      if (!object.Equals(JspbEncodingOptions, other.JspbEncodingOptions)) return false;
499ffe3c632Sopenharmony_ci      if (PrintUnknownFields != other.PrintUnknownFields) return false;
500ffe3c632Sopenharmony_ci      if (PayloadCase != other.PayloadCase) return false;
501ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
502ffe3c632Sopenharmony_ci    }
503ffe3c632Sopenharmony_ci
504ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
505ffe3c632Sopenharmony_ci    public override int GetHashCode() {
506ffe3c632Sopenharmony_ci      int hash = 1;
507ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
508ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
509ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JspbPayload) hash ^= JspbPayload.GetHashCode();
510ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.TextPayload) hash ^= TextPayload.GetHashCode();
511ffe3c632Sopenharmony_ci      if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) hash ^= RequestedOutputFormat.GetHashCode();
512ffe3c632Sopenharmony_ci      if (MessageType.Length != 0) hash ^= MessageType.GetHashCode();
513ffe3c632Sopenharmony_ci      if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) hash ^= TestCategory.GetHashCode();
514ffe3c632Sopenharmony_ci      if (jspbEncodingOptions_ != null) hash ^= JspbEncodingOptions.GetHashCode();
515ffe3c632Sopenharmony_ci      if (PrintUnknownFields != false) hash ^= PrintUnknownFields.GetHashCode();
516ffe3c632Sopenharmony_ci      hash ^= (int) payloadCase_;
517ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
518ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
519ffe3c632Sopenharmony_ci      }
520ffe3c632Sopenharmony_ci      return hash;
521ffe3c632Sopenharmony_ci    }
522ffe3c632Sopenharmony_ci
523ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
524ffe3c632Sopenharmony_ci    public override string ToString() {
525ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
526ffe3c632Sopenharmony_ci    }
527ffe3c632Sopenharmony_ci
528ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
529ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
530ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
531ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
532ffe3c632Sopenharmony_ci    #else
533ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
534ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
535ffe3c632Sopenharmony_ci        output.WriteBytes(ProtobufPayload);
536ffe3c632Sopenharmony_ci      }
537ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JsonPayload) {
538ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
539ffe3c632Sopenharmony_ci        output.WriteString(JsonPayload);
540ffe3c632Sopenharmony_ci      }
541ffe3c632Sopenharmony_ci      if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
542ffe3c632Sopenharmony_ci        output.WriteRawTag(24);
543ffe3c632Sopenharmony_ci        output.WriteEnum((int) RequestedOutputFormat);
544ffe3c632Sopenharmony_ci      }
545ffe3c632Sopenharmony_ci      if (MessageType.Length != 0) {
546ffe3c632Sopenharmony_ci        output.WriteRawTag(34);
547ffe3c632Sopenharmony_ci        output.WriteString(MessageType);
548ffe3c632Sopenharmony_ci      }
549ffe3c632Sopenharmony_ci      if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
550ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
551ffe3c632Sopenharmony_ci        output.WriteEnum((int) TestCategory);
552ffe3c632Sopenharmony_ci      }
553ffe3c632Sopenharmony_ci      if (jspbEncodingOptions_ != null) {
554ffe3c632Sopenharmony_ci        output.WriteRawTag(50);
555ffe3c632Sopenharmony_ci        output.WriteMessage(JspbEncodingOptions);
556ffe3c632Sopenharmony_ci      }
557ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JspbPayload) {
558ffe3c632Sopenharmony_ci        output.WriteRawTag(58);
559ffe3c632Sopenharmony_ci        output.WriteString(JspbPayload);
560ffe3c632Sopenharmony_ci      }
561ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.TextPayload) {
562ffe3c632Sopenharmony_ci        output.WriteRawTag(66);
563ffe3c632Sopenharmony_ci        output.WriteString(TextPayload);
564ffe3c632Sopenharmony_ci      }
565ffe3c632Sopenharmony_ci      if (PrintUnknownFields != false) {
566ffe3c632Sopenharmony_ci        output.WriteRawTag(72);
567ffe3c632Sopenharmony_ci        output.WriteBool(PrintUnknownFields);
568ffe3c632Sopenharmony_ci      }
569ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
570ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
571ffe3c632Sopenharmony_ci      }
572ffe3c632Sopenharmony_ci    #endif
573ffe3c632Sopenharmony_ci    }
574ffe3c632Sopenharmony_ci
575ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
576ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
577ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
578ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
579ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
580ffe3c632Sopenharmony_ci        output.WriteBytes(ProtobufPayload);
581ffe3c632Sopenharmony_ci      }
582ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JsonPayload) {
583ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
584ffe3c632Sopenharmony_ci        output.WriteString(JsonPayload);
585ffe3c632Sopenharmony_ci      }
586ffe3c632Sopenharmony_ci      if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
587ffe3c632Sopenharmony_ci        output.WriteRawTag(24);
588ffe3c632Sopenharmony_ci        output.WriteEnum((int) RequestedOutputFormat);
589ffe3c632Sopenharmony_ci      }
590ffe3c632Sopenharmony_ci      if (MessageType.Length != 0) {
591ffe3c632Sopenharmony_ci        output.WriteRawTag(34);
592ffe3c632Sopenharmony_ci        output.WriteString(MessageType);
593ffe3c632Sopenharmony_ci      }
594ffe3c632Sopenharmony_ci      if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
595ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
596ffe3c632Sopenharmony_ci        output.WriteEnum((int) TestCategory);
597ffe3c632Sopenharmony_ci      }
598ffe3c632Sopenharmony_ci      if (jspbEncodingOptions_ != null) {
599ffe3c632Sopenharmony_ci        output.WriteRawTag(50);
600ffe3c632Sopenharmony_ci        output.WriteMessage(JspbEncodingOptions);
601ffe3c632Sopenharmony_ci      }
602ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JspbPayload) {
603ffe3c632Sopenharmony_ci        output.WriteRawTag(58);
604ffe3c632Sopenharmony_ci        output.WriteString(JspbPayload);
605ffe3c632Sopenharmony_ci      }
606ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.TextPayload) {
607ffe3c632Sopenharmony_ci        output.WriteRawTag(66);
608ffe3c632Sopenharmony_ci        output.WriteString(TextPayload);
609ffe3c632Sopenharmony_ci      }
610ffe3c632Sopenharmony_ci      if (PrintUnknownFields != false) {
611ffe3c632Sopenharmony_ci        output.WriteRawTag(72);
612ffe3c632Sopenharmony_ci        output.WriteBool(PrintUnknownFields);
613ffe3c632Sopenharmony_ci      }
614ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
615ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
616ffe3c632Sopenharmony_ci      }
617ffe3c632Sopenharmony_ci    }
618ffe3c632Sopenharmony_ci    #endif
619ffe3c632Sopenharmony_ci
620ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621ffe3c632Sopenharmony_ci    public int CalculateSize() {
622ffe3c632Sopenharmony_ci      int size = 0;
623ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
624ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
625ffe3c632Sopenharmony_ci      }
626ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JsonPayload) {
627ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
628ffe3c632Sopenharmony_ci      }
629ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.JspbPayload) {
630ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(JspbPayload);
631ffe3c632Sopenharmony_ci      }
632ffe3c632Sopenharmony_ci      if (payloadCase_ == PayloadOneofCase.TextPayload) {
633ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(TextPayload);
634ffe3c632Sopenharmony_ci      }
635ffe3c632Sopenharmony_ci      if (RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
636ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOutputFormat);
637ffe3c632Sopenharmony_ci      }
638ffe3c632Sopenharmony_ci      if (MessageType.Length != 0) {
639ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageType);
640ffe3c632Sopenharmony_ci      }
641ffe3c632Sopenharmony_ci      if (TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
642ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TestCategory);
643ffe3c632Sopenharmony_ci      }
644ffe3c632Sopenharmony_ci      if (jspbEncodingOptions_ != null) {
645ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeMessageSize(JspbEncodingOptions);
646ffe3c632Sopenharmony_ci      }
647ffe3c632Sopenharmony_ci      if (PrintUnknownFields != false) {
648ffe3c632Sopenharmony_ci        size += 1 + 1;
649ffe3c632Sopenharmony_ci      }
650ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
651ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
652ffe3c632Sopenharmony_ci      }
653ffe3c632Sopenharmony_ci      return size;
654ffe3c632Sopenharmony_ci    }
655ffe3c632Sopenharmony_ci
656ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
657ffe3c632Sopenharmony_ci    public void MergeFrom(ConformanceRequest other) {
658ffe3c632Sopenharmony_ci      if (other == null) {
659ffe3c632Sopenharmony_ci        return;
660ffe3c632Sopenharmony_ci      }
661ffe3c632Sopenharmony_ci      if (other.RequestedOutputFormat != global::Conformance.WireFormat.Unspecified) {
662ffe3c632Sopenharmony_ci        RequestedOutputFormat = other.RequestedOutputFormat;
663ffe3c632Sopenharmony_ci      }
664ffe3c632Sopenharmony_ci      if (other.MessageType.Length != 0) {
665ffe3c632Sopenharmony_ci        MessageType = other.MessageType;
666ffe3c632Sopenharmony_ci      }
667ffe3c632Sopenharmony_ci      if (other.TestCategory != global::Conformance.TestCategory.UnspecifiedTest) {
668ffe3c632Sopenharmony_ci        TestCategory = other.TestCategory;
669ffe3c632Sopenharmony_ci      }
670ffe3c632Sopenharmony_ci      if (other.jspbEncodingOptions_ != null) {
671ffe3c632Sopenharmony_ci        if (jspbEncodingOptions_ == null) {
672ffe3c632Sopenharmony_ci          JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
673ffe3c632Sopenharmony_ci        }
674ffe3c632Sopenharmony_ci        JspbEncodingOptions.MergeFrom(other.JspbEncodingOptions);
675ffe3c632Sopenharmony_ci      }
676ffe3c632Sopenharmony_ci      if (other.PrintUnknownFields != false) {
677ffe3c632Sopenharmony_ci        PrintUnknownFields = other.PrintUnknownFields;
678ffe3c632Sopenharmony_ci      }
679ffe3c632Sopenharmony_ci      switch (other.PayloadCase) {
680ffe3c632Sopenharmony_ci        case PayloadOneofCase.ProtobufPayload:
681ffe3c632Sopenharmony_ci          ProtobufPayload = other.ProtobufPayload;
682ffe3c632Sopenharmony_ci          break;
683ffe3c632Sopenharmony_ci        case PayloadOneofCase.JsonPayload:
684ffe3c632Sopenharmony_ci          JsonPayload = other.JsonPayload;
685ffe3c632Sopenharmony_ci          break;
686ffe3c632Sopenharmony_ci        case PayloadOneofCase.JspbPayload:
687ffe3c632Sopenharmony_ci          JspbPayload = other.JspbPayload;
688ffe3c632Sopenharmony_ci          break;
689ffe3c632Sopenharmony_ci        case PayloadOneofCase.TextPayload:
690ffe3c632Sopenharmony_ci          TextPayload = other.TextPayload;
691ffe3c632Sopenharmony_ci          break;
692ffe3c632Sopenharmony_ci      }
693ffe3c632Sopenharmony_ci
694ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
695ffe3c632Sopenharmony_ci    }
696ffe3c632Sopenharmony_ci
697ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
698ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
699ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
700ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
701ffe3c632Sopenharmony_ci    #else
702ffe3c632Sopenharmony_ci      uint tag;
703ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
704ffe3c632Sopenharmony_ci        switch(tag) {
705ffe3c632Sopenharmony_ci          default:
706ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
707ffe3c632Sopenharmony_ci            break;
708ffe3c632Sopenharmony_ci          case 10: {
709ffe3c632Sopenharmony_ci            ProtobufPayload = input.ReadBytes();
710ffe3c632Sopenharmony_ci            break;
711ffe3c632Sopenharmony_ci          }
712ffe3c632Sopenharmony_ci          case 18: {
713ffe3c632Sopenharmony_ci            JsonPayload = input.ReadString();
714ffe3c632Sopenharmony_ci            break;
715ffe3c632Sopenharmony_ci          }
716ffe3c632Sopenharmony_ci          case 24: {
717ffe3c632Sopenharmony_ci            RequestedOutputFormat = (global::Conformance.WireFormat) input.ReadEnum();
718ffe3c632Sopenharmony_ci            break;
719ffe3c632Sopenharmony_ci          }
720ffe3c632Sopenharmony_ci          case 34: {
721ffe3c632Sopenharmony_ci            MessageType = input.ReadString();
722ffe3c632Sopenharmony_ci            break;
723ffe3c632Sopenharmony_ci          }
724ffe3c632Sopenharmony_ci          case 40: {
725ffe3c632Sopenharmony_ci            TestCategory = (global::Conformance.TestCategory) input.ReadEnum();
726ffe3c632Sopenharmony_ci            break;
727ffe3c632Sopenharmony_ci          }
728ffe3c632Sopenharmony_ci          case 50: {
729ffe3c632Sopenharmony_ci            if (jspbEncodingOptions_ == null) {
730ffe3c632Sopenharmony_ci              JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
731ffe3c632Sopenharmony_ci            }
732ffe3c632Sopenharmony_ci            input.ReadMessage(JspbEncodingOptions);
733ffe3c632Sopenharmony_ci            break;
734ffe3c632Sopenharmony_ci          }
735ffe3c632Sopenharmony_ci          case 58: {
736ffe3c632Sopenharmony_ci            JspbPayload = input.ReadString();
737ffe3c632Sopenharmony_ci            break;
738ffe3c632Sopenharmony_ci          }
739ffe3c632Sopenharmony_ci          case 66: {
740ffe3c632Sopenharmony_ci            TextPayload = input.ReadString();
741ffe3c632Sopenharmony_ci            break;
742ffe3c632Sopenharmony_ci          }
743ffe3c632Sopenharmony_ci          case 72: {
744ffe3c632Sopenharmony_ci            PrintUnknownFields = input.ReadBool();
745ffe3c632Sopenharmony_ci            break;
746ffe3c632Sopenharmony_ci          }
747ffe3c632Sopenharmony_ci        }
748ffe3c632Sopenharmony_ci      }
749ffe3c632Sopenharmony_ci    #endif
750ffe3c632Sopenharmony_ci    }
751ffe3c632Sopenharmony_ci
752ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
753ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
754ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
755ffe3c632Sopenharmony_ci      uint tag;
756ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
757ffe3c632Sopenharmony_ci        switch(tag) {
758ffe3c632Sopenharmony_ci          default:
759ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
760ffe3c632Sopenharmony_ci            break;
761ffe3c632Sopenharmony_ci          case 10: {
762ffe3c632Sopenharmony_ci            ProtobufPayload = input.ReadBytes();
763ffe3c632Sopenharmony_ci            break;
764ffe3c632Sopenharmony_ci          }
765ffe3c632Sopenharmony_ci          case 18: {
766ffe3c632Sopenharmony_ci            JsonPayload = input.ReadString();
767ffe3c632Sopenharmony_ci            break;
768ffe3c632Sopenharmony_ci          }
769ffe3c632Sopenharmony_ci          case 24: {
770ffe3c632Sopenharmony_ci            RequestedOutputFormat = (global::Conformance.WireFormat) input.ReadEnum();
771ffe3c632Sopenharmony_ci            break;
772ffe3c632Sopenharmony_ci          }
773ffe3c632Sopenharmony_ci          case 34: {
774ffe3c632Sopenharmony_ci            MessageType = input.ReadString();
775ffe3c632Sopenharmony_ci            break;
776ffe3c632Sopenharmony_ci          }
777ffe3c632Sopenharmony_ci          case 40: {
778ffe3c632Sopenharmony_ci            TestCategory = (global::Conformance.TestCategory) input.ReadEnum();
779ffe3c632Sopenharmony_ci            break;
780ffe3c632Sopenharmony_ci          }
781ffe3c632Sopenharmony_ci          case 50: {
782ffe3c632Sopenharmony_ci            if (jspbEncodingOptions_ == null) {
783ffe3c632Sopenharmony_ci              JspbEncodingOptions = new global::Conformance.JspbEncodingConfig();
784ffe3c632Sopenharmony_ci            }
785ffe3c632Sopenharmony_ci            input.ReadMessage(JspbEncodingOptions);
786ffe3c632Sopenharmony_ci            break;
787ffe3c632Sopenharmony_ci          }
788ffe3c632Sopenharmony_ci          case 58: {
789ffe3c632Sopenharmony_ci            JspbPayload = input.ReadString();
790ffe3c632Sopenharmony_ci            break;
791ffe3c632Sopenharmony_ci          }
792ffe3c632Sopenharmony_ci          case 66: {
793ffe3c632Sopenharmony_ci            TextPayload = input.ReadString();
794ffe3c632Sopenharmony_ci            break;
795ffe3c632Sopenharmony_ci          }
796ffe3c632Sopenharmony_ci          case 72: {
797ffe3c632Sopenharmony_ci            PrintUnknownFields = input.ReadBool();
798ffe3c632Sopenharmony_ci            break;
799ffe3c632Sopenharmony_ci          }
800ffe3c632Sopenharmony_ci        }
801ffe3c632Sopenharmony_ci      }
802ffe3c632Sopenharmony_ci    }
803ffe3c632Sopenharmony_ci    #endif
804ffe3c632Sopenharmony_ci
805ffe3c632Sopenharmony_ci  }
806ffe3c632Sopenharmony_ci
807ffe3c632Sopenharmony_ci  /// <summary>
808ffe3c632Sopenharmony_ci  /// Represents a single test case's output.
809ffe3c632Sopenharmony_ci  /// </summary>
810ffe3c632Sopenharmony_ci  public sealed partial class ConformanceResponse : pb::IMessage<ConformanceResponse>
811ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
812ffe3c632Sopenharmony_ci      , pb::IBufferMessage
813ffe3c632Sopenharmony_ci  #endif
814ffe3c632Sopenharmony_ci  {
815ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<ConformanceResponse> _parser = new pb::MessageParser<ConformanceResponse>(() => new ConformanceResponse());
816ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
817ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818ffe3c632Sopenharmony_ci    public static pb::MessageParser<ConformanceResponse> Parser { get { return _parser; } }
819ffe3c632Sopenharmony_ci
820ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
821ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
822ffe3c632Sopenharmony_ci      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[2]; }
823ffe3c632Sopenharmony_ci    }
824ffe3c632Sopenharmony_ci
825ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
826ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
827ffe3c632Sopenharmony_ci      get { return Descriptor; }
828ffe3c632Sopenharmony_ci    }
829ffe3c632Sopenharmony_ci
830ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
831ffe3c632Sopenharmony_ci    public ConformanceResponse() {
832ffe3c632Sopenharmony_ci      OnConstruction();
833ffe3c632Sopenharmony_ci    }
834ffe3c632Sopenharmony_ci
835ffe3c632Sopenharmony_ci    partial void OnConstruction();
836ffe3c632Sopenharmony_ci
837ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838ffe3c632Sopenharmony_ci    public ConformanceResponse(ConformanceResponse other) : this() {
839ffe3c632Sopenharmony_ci      switch (other.ResultCase) {
840ffe3c632Sopenharmony_ci        case ResultOneofCase.ParseError:
841ffe3c632Sopenharmony_ci          ParseError = other.ParseError;
842ffe3c632Sopenharmony_ci          break;
843ffe3c632Sopenharmony_ci        case ResultOneofCase.SerializeError:
844ffe3c632Sopenharmony_ci          SerializeError = other.SerializeError;
845ffe3c632Sopenharmony_ci          break;
846ffe3c632Sopenharmony_ci        case ResultOneofCase.RuntimeError:
847ffe3c632Sopenharmony_ci          RuntimeError = other.RuntimeError;
848ffe3c632Sopenharmony_ci          break;
849ffe3c632Sopenharmony_ci        case ResultOneofCase.ProtobufPayload:
850ffe3c632Sopenharmony_ci          ProtobufPayload = other.ProtobufPayload;
851ffe3c632Sopenharmony_ci          break;
852ffe3c632Sopenharmony_ci        case ResultOneofCase.JsonPayload:
853ffe3c632Sopenharmony_ci          JsonPayload = other.JsonPayload;
854ffe3c632Sopenharmony_ci          break;
855ffe3c632Sopenharmony_ci        case ResultOneofCase.Skipped:
856ffe3c632Sopenharmony_ci          Skipped = other.Skipped;
857ffe3c632Sopenharmony_ci          break;
858ffe3c632Sopenharmony_ci        case ResultOneofCase.JspbPayload:
859ffe3c632Sopenharmony_ci          JspbPayload = other.JspbPayload;
860ffe3c632Sopenharmony_ci          break;
861ffe3c632Sopenharmony_ci        case ResultOneofCase.TextPayload:
862ffe3c632Sopenharmony_ci          TextPayload = other.TextPayload;
863ffe3c632Sopenharmony_ci          break;
864ffe3c632Sopenharmony_ci      }
865ffe3c632Sopenharmony_ci
866ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
867ffe3c632Sopenharmony_ci    }
868ffe3c632Sopenharmony_ci
869ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
870ffe3c632Sopenharmony_ci    public ConformanceResponse Clone() {
871ffe3c632Sopenharmony_ci      return new ConformanceResponse(this);
872ffe3c632Sopenharmony_ci    }
873ffe3c632Sopenharmony_ci
874ffe3c632Sopenharmony_ci    /// <summary>Field number for the "parse_error" field.</summary>
875ffe3c632Sopenharmony_ci    public const int ParseErrorFieldNumber = 1;
876ffe3c632Sopenharmony_ci    /// <summary>
877ffe3c632Sopenharmony_ci    /// This string should be set to indicate parsing failed.  The string can
878ffe3c632Sopenharmony_ci    /// provide more information about the parse error if it is available.
879ffe3c632Sopenharmony_ci    ///
880ffe3c632Sopenharmony_ci    /// Setting this string does not necessarily mean the testee failed the
881ffe3c632Sopenharmony_ci    /// test.  Some of the test cases are intentionally invalid input.
882ffe3c632Sopenharmony_ci    /// </summary>
883ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
884ffe3c632Sopenharmony_ci    public string ParseError {
885ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
886ffe3c632Sopenharmony_ci      set {
887ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
888ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.ParseError;
889ffe3c632Sopenharmony_ci      }
890ffe3c632Sopenharmony_ci    }
891ffe3c632Sopenharmony_ci
892ffe3c632Sopenharmony_ci    /// <summary>Field number for the "serialize_error" field.</summary>
893ffe3c632Sopenharmony_ci    public const int SerializeErrorFieldNumber = 6;
894ffe3c632Sopenharmony_ci    /// <summary>
895ffe3c632Sopenharmony_ci    /// If the input was successfully parsed but errors occurred when
896ffe3c632Sopenharmony_ci    /// serializing it to the requested output format, set the error message in
897ffe3c632Sopenharmony_ci    /// this field.
898ffe3c632Sopenharmony_ci    /// </summary>
899ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
900ffe3c632Sopenharmony_ci    public string SerializeError {
901ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.SerializeError ? (string) result_ : ""; }
902ffe3c632Sopenharmony_ci      set {
903ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
904ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.SerializeError;
905ffe3c632Sopenharmony_ci      }
906ffe3c632Sopenharmony_ci    }
907ffe3c632Sopenharmony_ci
908ffe3c632Sopenharmony_ci    /// <summary>Field number for the "runtime_error" field.</summary>
909ffe3c632Sopenharmony_ci    public const int RuntimeErrorFieldNumber = 2;
910ffe3c632Sopenharmony_ci    /// <summary>
911ffe3c632Sopenharmony_ci    /// This should be set if some other error occurred.  This will always
912ffe3c632Sopenharmony_ci    /// indicate that the test failed.  The string can provide more information
913ffe3c632Sopenharmony_ci    /// about the failure.
914ffe3c632Sopenharmony_ci    /// </summary>
915ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
916ffe3c632Sopenharmony_ci    public string RuntimeError {
917ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
918ffe3c632Sopenharmony_ci      set {
919ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
920ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.RuntimeError;
921ffe3c632Sopenharmony_ci      }
922ffe3c632Sopenharmony_ci    }
923ffe3c632Sopenharmony_ci
924ffe3c632Sopenharmony_ci    /// <summary>Field number for the "protobuf_payload" field.</summary>
925ffe3c632Sopenharmony_ci    public const int ProtobufPayloadFieldNumber = 3;
926ffe3c632Sopenharmony_ci    /// <summary>
927ffe3c632Sopenharmony_ci    /// If the input was successfully parsed and the requested output was
928ffe3c632Sopenharmony_ci    /// protobuf, serialize it to protobuf and set it in this field.
929ffe3c632Sopenharmony_ci    /// </summary>
930ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
931ffe3c632Sopenharmony_ci    public pb::ByteString ProtobufPayload {
932ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
933ffe3c632Sopenharmony_ci      set {
934ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
935ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.ProtobufPayload;
936ffe3c632Sopenharmony_ci      }
937ffe3c632Sopenharmony_ci    }
938ffe3c632Sopenharmony_ci
939ffe3c632Sopenharmony_ci    /// <summary>Field number for the "json_payload" field.</summary>
940ffe3c632Sopenharmony_ci    public const int JsonPayloadFieldNumber = 4;
941ffe3c632Sopenharmony_ci    /// <summary>
942ffe3c632Sopenharmony_ci    /// If the input was successfully parsed and the requested output was JSON,
943ffe3c632Sopenharmony_ci    /// serialize to JSON and set it in this field.
944ffe3c632Sopenharmony_ci    /// </summary>
945ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
946ffe3c632Sopenharmony_ci    public string JsonPayload {
947ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
948ffe3c632Sopenharmony_ci      set {
949ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
950ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.JsonPayload;
951ffe3c632Sopenharmony_ci      }
952ffe3c632Sopenharmony_ci    }
953ffe3c632Sopenharmony_ci
954ffe3c632Sopenharmony_ci    /// <summary>Field number for the "skipped" field.</summary>
955ffe3c632Sopenharmony_ci    public const int SkippedFieldNumber = 5;
956ffe3c632Sopenharmony_ci    /// <summary>
957ffe3c632Sopenharmony_ci    /// For when the testee skipped the test, likely because a certain feature
958ffe3c632Sopenharmony_ci    /// wasn't supported, like JSON input/output.
959ffe3c632Sopenharmony_ci    /// </summary>
960ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
961ffe3c632Sopenharmony_ci    public string Skipped {
962ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
963ffe3c632Sopenharmony_ci      set {
964ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
965ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.Skipped;
966ffe3c632Sopenharmony_ci      }
967ffe3c632Sopenharmony_ci    }
968ffe3c632Sopenharmony_ci
969ffe3c632Sopenharmony_ci    /// <summary>Field number for the "jspb_payload" field.</summary>
970ffe3c632Sopenharmony_ci    public const int JspbPayloadFieldNumber = 7;
971ffe3c632Sopenharmony_ci    /// <summary>
972ffe3c632Sopenharmony_ci    /// If the input was successfully parsed and the requested output was JSPB,
973ffe3c632Sopenharmony_ci    /// serialize to JSPB and set it in this field. JSPB is google internal only
974ffe3c632Sopenharmony_ci    /// format. Opensource testees can just skip it.
975ffe3c632Sopenharmony_ci    /// </summary>
976ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977ffe3c632Sopenharmony_ci    public string JspbPayload {
978ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.JspbPayload ? (string) result_ : ""; }
979ffe3c632Sopenharmony_ci      set {
980ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
981ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.JspbPayload;
982ffe3c632Sopenharmony_ci      }
983ffe3c632Sopenharmony_ci    }
984ffe3c632Sopenharmony_ci
985ffe3c632Sopenharmony_ci    /// <summary>Field number for the "text_payload" field.</summary>
986ffe3c632Sopenharmony_ci    public const int TextPayloadFieldNumber = 8;
987ffe3c632Sopenharmony_ci    /// <summary>
988ffe3c632Sopenharmony_ci    /// If the input was successfully parsed and the requested output was
989ffe3c632Sopenharmony_ci    /// TEXT_FORMAT, serialize to TEXT_FORMAT and set it in this field.
990ffe3c632Sopenharmony_ci    /// </summary>
991ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
992ffe3c632Sopenharmony_ci    public string TextPayload {
993ffe3c632Sopenharmony_ci      get { return resultCase_ == ResultOneofCase.TextPayload ? (string) result_ : ""; }
994ffe3c632Sopenharmony_ci      set {
995ffe3c632Sopenharmony_ci        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
996ffe3c632Sopenharmony_ci        resultCase_ = ResultOneofCase.TextPayload;
997ffe3c632Sopenharmony_ci      }
998ffe3c632Sopenharmony_ci    }
999ffe3c632Sopenharmony_ci
1000ffe3c632Sopenharmony_ci    private object result_;
1001ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "result" oneof.</summary>
1002ffe3c632Sopenharmony_ci    public enum ResultOneofCase {
1003ffe3c632Sopenharmony_ci      None = 0,
1004ffe3c632Sopenharmony_ci      ParseError = 1,
1005ffe3c632Sopenharmony_ci      SerializeError = 6,
1006ffe3c632Sopenharmony_ci      RuntimeError = 2,
1007ffe3c632Sopenharmony_ci      ProtobufPayload = 3,
1008ffe3c632Sopenharmony_ci      JsonPayload = 4,
1009ffe3c632Sopenharmony_ci      Skipped = 5,
1010ffe3c632Sopenharmony_ci      JspbPayload = 7,
1011ffe3c632Sopenharmony_ci      TextPayload = 8,
1012ffe3c632Sopenharmony_ci    }
1013ffe3c632Sopenharmony_ci    private ResultOneofCase resultCase_ = ResultOneofCase.None;
1014ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1015ffe3c632Sopenharmony_ci    public ResultOneofCase ResultCase {
1016ffe3c632Sopenharmony_ci      get { return resultCase_; }
1017ffe3c632Sopenharmony_ci    }
1018ffe3c632Sopenharmony_ci
1019ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1020ffe3c632Sopenharmony_ci    public void ClearResult() {
1021ffe3c632Sopenharmony_ci      resultCase_ = ResultOneofCase.None;
1022ffe3c632Sopenharmony_ci      result_ = null;
1023ffe3c632Sopenharmony_ci    }
1024ffe3c632Sopenharmony_ci
1025ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1026ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
1027ffe3c632Sopenharmony_ci      return Equals(other as ConformanceResponse);
1028ffe3c632Sopenharmony_ci    }
1029ffe3c632Sopenharmony_ci
1030ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1031ffe3c632Sopenharmony_ci    public bool Equals(ConformanceResponse other) {
1032ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1033ffe3c632Sopenharmony_ci        return false;
1034ffe3c632Sopenharmony_ci      }
1035ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1036ffe3c632Sopenharmony_ci        return true;
1037ffe3c632Sopenharmony_ci      }
1038ffe3c632Sopenharmony_ci      if (ParseError != other.ParseError) return false;
1039ffe3c632Sopenharmony_ci      if (SerializeError != other.SerializeError) return false;
1040ffe3c632Sopenharmony_ci      if (RuntimeError != other.RuntimeError) return false;
1041ffe3c632Sopenharmony_ci      if (ProtobufPayload != other.ProtobufPayload) return false;
1042ffe3c632Sopenharmony_ci      if (JsonPayload != other.JsonPayload) return false;
1043ffe3c632Sopenharmony_ci      if (Skipped != other.Skipped) return false;
1044ffe3c632Sopenharmony_ci      if (JspbPayload != other.JspbPayload) return false;
1045ffe3c632Sopenharmony_ci      if (TextPayload != other.TextPayload) return false;
1046ffe3c632Sopenharmony_ci      if (ResultCase != other.ResultCase) return false;
1047ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1048ffe3c632Sopenharmony_ci    }
1049ffe3c632Sopenharmony_ci
1050ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1051ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1052ffe3c632Sopenharmony_ci      int hash = 1;
1053ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode();
1054ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.SerializeError) hash ^= SerializeError.GetHashCode();
1055ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.RuntimeError) hash ^= RuntimeError.GetHashCode();
1056ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
1057ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
1058ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.Skipped) hash ^= Skipped.GetHashCode();
1059ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JspbPayload) hash ^= JspbPayload.GetHashCode();
1060ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.TextPayload) hash ^= TextPayload.GetHashCode();
1061ffe3c632Sopenharmony_ci      hash ^= (int) resultCase_;
1062ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1063ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1064ffe3c632Sopenharmony_ci      }
1065ffe3c632Sopenharmony_ci      return hash;
1066ffe3c632Sopenharmony_ci    }
1067ffe3c632Sopenharmony_ci
1068ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1069ffe3c632Sopenharmony_ci    public override string ToString() {
1070ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1071ffe3c632Sopenharmony_ci    }
1072ffe3c632Sopenharmony_ci
1073ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1074ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1075ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1076ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1077ffe3c632Sopenharmony_ci    #else
1078ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ParseError) {
1079ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
1080ffe3c632Sopenharmony_ci        output.WriteString(ParseError);
1081ffe3c632Sopenharmony_ci      }
1082ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.RuntimeError) {
1083ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
1084ffe3c632Sopenharmony_ci        output.WriteString(RuntimeError);
1085ffe3c632Sopenharmony_ci      }
1086ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ProtobufPayload) {
1087ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
1088ffe3c632Sopenharmony_ci        output.WriteBytes(ProtobufPayload);
1089ffe3c632Sopenharmony_ci      }
1090ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JsonPayload) {
1091ffe3c632Sopenharmony_ci        output.WriteRawTag(34);
1092ffe3c632Sopenharmony_ci        output.WriteString(JsonPayload);
1093ffe3c632Sopenharmony_ci      }
1094ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.Skipped) {
1095ffe3c632Sopenharmony_ci        output.WriteRawTag(42);
1096ffe3c632Sopenharmony_ci        output.WriteString(Skipped);
1097ffe3c632Sopenharmony_ci      }
1098ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.SerializeError) {
1099ffe3c632Sopenharmony_ci        output.WriteRawTag(50);
1100ffe3c632Sopenharmony_ci        output.WriteString(SerializeError);
1101ffe3c632Sopenharmony_ci      }
1102ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JspbPayload) {
1103ffe3c632Sopenharmony_ci        output.WriteRawTag(58);
1104ffe3c632Sopenharmony_ci        output.WriteString(JspbPayload);
1105ffe3c632Sopenharmony_ci      }
1106ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.TextPayload) {
1107ffe3c632Sopenharmony_ci        output.WriteRawTag(66);
1108ffe3c632Sopenharmony_ci        output.WriteString(TextPayload);
1109ffe3c632Sopenharmony_ci      }
1110ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1111ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
1112ffe3c632Sopenharmony_ci      }
1113ffe3c632Sopenharmony_ci    #endif
1114ffe3c632Sopenharmony_ci    }
1115ffe3c632Sopenharmony_ci
1116ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1117ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1118ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1119ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ParseError) {
1120ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
1121ffe3c632Sopenharmony_ci        output.WriteString(ParseError);
1122ffe3c632Sopenharmony_ci      }
1123ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.RuntimeError) {
1124ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
1125ffe3c632Sopenharmony_ci        output.WriteString(RuntimeError);
1126ffe3c632Sopenharmony_ci      }
1127ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ProtobufPayload) {
1128ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
1129ffe3c632Sopenharmony_ci        output.WriteBytes(ProtobufPayload);
1130ffe3c632Sopenharmony_ci      }
1131ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JsonPayload) {
1132ffe3c632Sopenharmony_ci        output.WriteRawTag(34);
1133ffe3c632Sopenharmony_ci        output.WriteString(JsonPayload);
1134ffe3c632Sopenharmony_ci      }
1135ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.Skipped) {
1136ffe3c632Sopenharmony_ci        output.WriteRawTag(42);
1137ffe3c632Sopenharmony_ci        output.WriteString(Skipped);
1138ffe3c632Sopenharmony_ci      }
1139ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.SerializeError) {
1140ffe3c632Sopenharmony_ci        output.WriteRawTag(50);
1141ffe3c632Sopenharmony_ci        output.WriteString(SerializeError);
1142ffe3c632Sopenharmony_ci      }
1143ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JspbPayload) {
1144ffe3c632Sopenharmony_ci        output.WriteRawTag(58);
1145ffe3c632Sopenharmony_ci        output.WriteString(JspbPayload);
1146ffe3c632Sopenharmony_ci      }
1147ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.TextPayload) {
1148ffe3c632Sopenharmony_ci        output.WriteRawTag(66);
1149ffe3c632Sopenharmony_ci        output.WriteString(TextPayload);
1150ffe3c632Sopenharmony_ci      }
1151ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1152ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
1153ffe3c632Sopenharmony_ci      }
1154ffe3c632Sopenharmony_ci    }
1155ffe3c632Sopenharmony_ci    #endif
1156ffe3c632Sopenharmony_ci
1157ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1158ffe3c632Sopenharmony_ci    public int CalculateSize() {
1159ffe3c632Sopenharmony_ci      int size = 0;
1160ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ParseError) {
1161ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(ParseError);
1162ffe3c632Sopenharmony_ci      }
1163ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.SerializeError) {
1164ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(SerializeError);
1165ffe3c632Sopenharmony_ci      }
1166ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.RuntimeError) {
1167ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeError);
1168ffe3c632Sopenharmony_ci      }
1169ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.ProtobufPayload) {
1170ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
1171ffe3c632Sopenharmony_ci      }
1172ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JsonPayload) {
1173ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
1174ffe3c632Sopenharmony_ci      }
1175ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.Skipped) {
1176ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(Skipped);
1177ffe3c632Sopenharmony_ci      }
1178ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.JspbPayload) {
1179ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(JspbPayload);
1180ffe3c632Sopenharmony_ci      }
1181ffe3c632Sopenharmony_ci      if (resultCase_ == ResultOneofCase.TextPayload) {
1182ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(TextPayload);
1183ffe3c632Sopenharmony_ci      }
1184ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1185ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
1186ffe3c632Sopenharmony_ci      }
1187ffe3c632Sopenharmony_ci      return size;
1188ffe3c632Sopenharmony_ci    }
1189ffe3c632Sopenharmony_ci
1190ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1191ffe3c632Sopenharmony_ci    public void MergeFrom(ConformanceResponse other) {
1192ffe3c632Sopenharmony_ci      if (other == null) {
1193ffe3c632Sopenharmony_ci        return;
1194ffe3c632Sopenharmony_ci      }
1195ffe3c632Sopenharmony_ci      switch (other.ResultCase) {
1196ffe3c632Sopenharmony_ci        case ResultOneofCase.ParseError:
1197ffe3c632Sopenharmony_ci          ParseError = other.ParseError;
1198ffe3c632Sopenharmony_ci          break;
1199ffe3c632Sopenharmony_ci        case ResultOneofCase.SerializeError:
1200ffe3c632Sopenharmony_ci          SerializeError = other.SerializeError;
1201ffe3c632Sopenharmony_ci          break;
1202ffe3c632Sopenharmony_ci        case ResultOneofCase.RuntimeError:
1203ffe3c632Sopenharmony_ci          RuntimeError = other.RuntimeError;
1204ffe3c632Sopenharmony_ci          break;
1205ffe3c632Sopenharmony_ci        case ResultOneofCase.ProtobufPayload:
1206ffe3c632Sopenharmony_ci          ProtobufPayload = other.ProtobufPayload;
1207ffe3c632Sopenharmony_ci          break;
1208ffe3c632Sopenharmony_ci        case ResultOneofCase.JsonPayload:
1209ffe3c632Sopenharmony_ci          JsonPayload = other.JsonPayload;
1210ffe3c632Sopenharmony_ci          break;
1211ffe3c632Sopenharmony_ci        case ResultOneofCase.Skipped:
1212ffe3c632Sopenharmony_ci          Skipped = other.Skipped;
1213ffe3c632Sopenharmony_ci          break;
1214ffe3c632Sopenharmony_ci        case ResultOneofCase.JspbPayload:
1215ffe3c632Sopenharmony_ci          JspbPayload = other.JspbPayload;
1216ffe3c632Sopenharmony_ci          break;
1217ffe3c632Sopenharmony_ci        case ResultOneofCase.TextPayload:
1218ffe3c632Sopenharmony_ci          TextPayload = other.TextPayload;
1219ffe3c632Sopenharmony_ci          break;
1220ffe3c632Sopenharmony_ci      }
1221ffe3c632Sopenharmony_ci
1222ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1223ffe3c632Sopenharmony_ci    }
1224ffe3c632Sopenharmony_ci
1225ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1226ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
1227ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1228ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
1229ffe3c632Sopenharmony_ci    #else
1230ffe3c632Sopenharmony_ci      uint tag;
1231ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1232ffe3c632Sopenharmony_ci        switch(tag) {
1233ffe3c632Sopenharmony_ci          default:
1234ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1235ffe3c632Sopenharmony_ci            break;
1236ffe3c632Sopenharmony_ci          case 10: {
1237ffe3c632Sopenharmony_ci            ParseError = input.ReadString();
1238ffe3c632Sopenharmony_ci            break;
1239ffe3c632Sopenharmony_ci          }
1240ffe3c632Sopenharmony_ci          case 18: {
1241ffe3c632Sopenharmony_ci            RuntimeError = input.ReadString();
1242ffe3c632Sopenharmony_ci            break;
1243ffe3c632Sopenharmony_ci          }
1244ffe3c632Sopenharmony_ci          case 26: {
1245ffe3c632Sopenharmony_ci            ProtobufPayload = input.ReadBytes();
1246ffe3c632Sopenharmony_ci            break;
1247ffe3c632Sopenharmony_ci          }
1248ffe3c632Sopenharmony_ci          case 34: {
1249ffe3c632Sopenharmony_ci            JsonPayload = input.ReadString();
1250ffe3c632Sopenharmony_ci            break;
1251ffe3c632Sopenharmony_ci          }
1252ffe3c632Sopenharmony_ci          case 42: {
1253ffe3c632Sopenharmony_ci            Skipped = input.ReadString();
1254ffe3c632Sopenharmony_ci            break;
1255ffe3c632Sopenharmony_ci          }
1256ffe3c632Sopenharmony_ci          case 50: {
1257ffe3c632Sopenharmony_ci            SerializeError = input.ReadString();
1258ffe3c632Sopenharmony_ci            break;
1259ffe3c632Sopenharmony_ci          }
1260ffe3c632Sopenharmony_ci          case 58: {
1261ffe3c632Sopenharmony_ci            JspbPayload = input.ReadString();
1262ffe3c632Sopenharmony_ci            break;
1263ffe3c632Sopenharmony_ci          }
1264ffe3c632Sopenharmony_ci          case 66: {
1265ffe3c632Sopenharmony_ci            TextPayload = input.ReadString();
1266ffe3c632Sopenharmony_ci            break;
1267ffe3c632Sopenharmony_ci          }
1268ffe3c632Sopenharmony_ci        }
1269ffe3c632Sopenharmony_ci      }
1270ffe3c632Sopenharmony_ci    #endif
1271ffe3c632Sopenharmony_ci    }
1272ffe3c632Sopenharmony_ci
1273ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1274ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1275ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1276ffe3c632Sopenharmony_ci      uint tag;
1277ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1278ffe3c632Sopenharmony_ci        switch(tag) {
1279ffe3c632Sopenharmony_ci          default:
1280ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1281ffe3c632Sopenharmony_ci            break;
1282ffe3c632Sopenharmony_ci          case 10: {
1283ffe3c632Sopenharmony_ci            ParseError = input.ReadString();
1284ffe3c632Sopenharmony_ci            break;
1285ffe3c632Sopenharmony_ci          }
1286ffe3c632Sopenharmony_ci          case 18: {
1287ffe3c632Sopenharmony_ci            RuntimeError = input.ReadString();
1288ffe3c632Sopenharmony_ci            break;
1289ffe3c632Sopenharmony_ci          }
1290ffe3c632Sopenharmony_ci          case 26: {
1291ffe3c632Sopenharmony_ci            ProtobufPayload = input.ReadBytes();
1292ffe3c632Sopenharmony_ci            break;
1293ffe3c632Sopenharmony_ci          }
1294ffe3c632Sopenharmony_ci          case 34: {
1295ffe3c632Sopenharmony_ci            JsonPayload = input.ReadString();
1296ffe3c632Sopenharmony_ci            break;
1297ffe3c632Sopenharmony_ci          }
1298ffe3c632Sopenharmony_ci          case 42: {
1299ffe3c632Sopenharmony_ci            Skipped = input.ReadString();
1300ffe3c632Sopenharmony_ci            break;
1301ffe3c632Sopenharmony_ci          }
1302ffe3c632Sopenharmony_ci          case 50: {
1303ffe3c632Sopenharmony_ci            SerializeError = input.ReadString();
1304ffe3c632Sopenharmony_ci            break;
1305ffe3c632Sopenharmony_ci          }
1306ffe3c632Sopenharmony_ci          case 58: {
1307ffe3c632Sopenharmony_ci            JspbPayload = input.ReadString();
1308ffe3c632Sopenharmony_ci            break;
1309ffe3c632Sopenharmony_ci          }
1310ffe3c632Sopenharmony_ci          case 66: {
1311ffe3c632Sopenharmony_ci            TextPayload = input.ReadString();
1312ffe3c632Sopenharmony_ci            break;
1313ffe3c632Sopenharmony_ci          }
1314ffe3c632Sopenharmony_ci        }
1315ffe3c632Sopenharmony_ci      }
1316ffe3c632Sopenharmony_ci    }
1317ffe3c632Sopenharmony_ci    #endif
1318ffe3c632Sopenharmony_ci
1319ffe3c632Sopenharmony_ci  }
1320ffe3c632Sopenharmony_ci
1321ffe3c632Sopenharmony_ci  /// <summary>
1322ffe3c632Sopenharmony_ci  /// Encoding options for jspb format.
1323ffe3c632Sopenharmony_ci  /// </summary>
1324ffe3c632Sopenharmony_ci  public sealed partial class JspbEncodingConfig : pb::IMessage<JspbEncodingConfig>
1325ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1326ffe3c632Sopenharmony_ci      , pb::IBufferMessage
1327ffe3c632Sopenharmony_ci  #endif
1328ffe3c632Sopenharmony_ci  {
1329ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<JspbEncodingConfig> _parser = new pb::MessageParser<JspbEncodingConfig>(() => new JspbEncodingConfig());
1330ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
1331ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1332ffe3c632Sopenharmony_ci    public static pb::MessageParser<JspbEncodingConfig> Parser { get { return _parser; } }
1333ffe3c632Sopenharmony_ci
1334ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1335ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
1336ffe3c632Sopenharmony_ci      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[3]; }
1337ffe3c632Sopenharmony_ci    }
1338ffe3c632Sopenharmony_ci
1339ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1340ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
1341ffe3c632Sopenharmony_ci      get { return Descriptor; }
1342ffe3c632Sopenharmony_ci    }
1343ffe3c632Sopenharmony_ci
1344ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1345ffe3c632Sopenharmony_ci    public JspbEncodingConfig() {
1346ffe3c632Sopenharmony_ci      OnConstruction();
1347ffe3c632Sopenharmony_ci    }
1348ffe3c632Sopenharmony_ci
1349ffe3c632Sopenharmony_ci    partial void OnConstruction();
1350ffe3c632Sopenharmony_ci
1351ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1352ffe3c632Sopenharmony_ci    public JspbEncodingConfig(JspbEncodingConfig other) : this() {
1353ffe3c632Sopenharmony_ci      useJspbArrayAnyFormat_ = other.useJspbArrayAnyFormat_;
1354ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1355ffe3c632Sopenharmony_ci    }
1356ffe3c632Sopenharmony_ci
1357ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1358ffe3c632Sopenharmony_ci    public JspbEncodingConfig Clone() {
1359ffe3c632Sopenharmony_ci      return new JspbEncodingConfig(this);
1360ffe3c632Sopenharmony_ci    }
1361ffe3c632Sopenharmony_ci
1362ffe3c632Sopenharmony_ci    /// <summary>Field number for the "use_jspb_array_any_format" field.</summary>
1363ffe3c632Sopenharmony_ci    public const int UseJspbArrayAnyFormatFieldNumber = 1;
1364ffe3c632Sopenharmony_ci    private bool useJspbArrayAnyFormat_;
1365ffe3c632Sopenharmony_ci    /// <summary>
1366ffe3c632Sopenharmony_ci    /// Encode the value field of Any as jspb array if true, otherwise binary.
1367ffe3c632Sopenharmony_ci    /// </summary>
1368ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1369ffe3c632Sopenharmony_ci    public bool UseJspbArrayAnyFormat {
1370ffe3c632Sopenharmony_ci      get { return useJspbArrayAnyFormat_; }
1371ffe3c632Sopenharmony_ci      set {
1372ffe3c632Sopenharmony_ci        useJspbArrayAnyFormat_ = value;
1373ffe3c632Sopenharmony_ci      }
1374ffe3c632Sopenharmony_ci    }
1375ffe3c632Sopenharmony_ci
1376ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1377ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
1378ffe3c632Sopenharmony_ci      return Equals(other as JspbEncodingConfig);
1379ffe3c632Sopenharmony_ci    }
1380ffe3c632Sopenharmony_ci
1381ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1382ffe3c632Sopenharmony_ci    public bool Equals(JspbEncodingConfig other) {
1383ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1384ffe3c632Sopenharmony_ci        return false;
1385ffe3c632Sopenharmony_ci      }
1386ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1387ffe3c632Sopenharmony_ci        return true;
1388ffe3c632Sopenharmony_ci      }
1389ffe3c632Sopenharmony_ci      if (UseJspbArrayAnyFormat != other.UseJspbArrayAnyFormat) return false;
1390ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1391ffe3c632Sopenharmony_ci    }
1392ffe3c632Sopenharmony_ci
1393ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1394ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1395ffe3c632Sopenharmony_ci      int hash = 1;
1396ffe3c632Sopenharmony_ci      if (UseJspbArrayAnyFormat != false) hash ^= UseJspbArrayAnyFormat.GetHashCode();
1397ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1398ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1399ffe3c632Sopenharmony_ci      }
1400ffe3c632Sopenharmony_ci      return hash;
1401ffe3c632Sopenharmony_ci    }
1402ffe3c632Sopenharmony_ci
1403ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1404ffe3c632Sopenharmony_ci    public override string ToString() {
1405ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1406ffe3c632Sopenharmony_ci    }
1407ffe3c632Sopenharmony_ci
1408ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1410ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1411ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1412ffe3c632Sopenharmony_ci    #else
1413ffe3c632Sopenharmony_ci      if (UseJspbArrayAnyFormat != false) {
1414ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1415ffe3c632Sopenharmony_ci        output.WriteBool(UseJspbArrayAnyFormat);
1416ffe3c632Sopenharmony_ci      }
1417ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1418ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
1419ffe3c632Sopenharmony_ci      }
1420ffe3c632Sopenharmony_ci    #endif
1421ffe3c632Sopenharmony_ci    }
1422ffe3c632Sopenharmony_ci
1423ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1424ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1426ffe3c632Sopenharmony_ci      if (UseJspbArrayAnyFormat != false) {
1427ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1428ffe3c632Sopenharmony_ci        output.WriteBool(UseJspbArrayAnyFormat);
1429ffe3c632Sopenharmony_ci      }
1430ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1431ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
1432ffe3c632Sopenharmony_ci      }
1433ffe3c632Sopenharmony_ci    }
1434ffe3c632Sopenharmony_ci    #endif
1435ffe3c632Sopenharmony_ci
1436ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1437ffe3c632Sopenharmony_ci    public int CalculateSize() {
1438ffe3c632Sopenharmony_ci      int size = 0;
1439ffe3c632Sopenharmony_ci      if (UseJspbArrayAnyFormat != false) {
1440ffe3c632Sopenharmony_ci        size += 1 + 1;
1441ffe3c632Sopenharmony_ci      }
1442ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1443ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
1444ffe3c632Sopenharmony_ci      }
1445ffe3c632Sopenharmony_ci      return size;
1446ffe3c632Sopenharmony_ci    }
1447ffe3c632Sopenharmony_ci
1448ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1449ffe3c632Sopenharmony_ci    public void MergeFrom(JspbEncodingConfig other) {
1450ffe3c632Sopenharmony_ci      if (other == null) {
1451ffe3c632Sopenharmony_ci        return;
1452ffe3c632Sopenharmony_ci      }
1453ffe3c632Sopenharmony_ci      if (other.UseJspbArrayAnyFormat != false) {
1454ffe3c632Sopenharmony_ci        UseJspbArrayAnyFormat = other.UseJspbArrayAnyFormat;
1455ffe3c632Sopenharmony_ci      }
1456ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1457ffe3c632Sopenharmony_ci    }
1458ffe3c632Sopenharmony_ci
1459ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1460ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
1461ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1462ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
1463ffe3c632Sopenharmony_ci    #else
1464ffe3c632Sopenharmony_ci      uint tag;
1465ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1466ffe3c632Sopenharmony_ci        switch(tag) {
1467ffe3c632Sopenharmony_ci          default:
1468ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1469ffe3c632Sopenharmony_ci            break;
1470ffe3c632Sopenharmony_ci          case 8: {
1471ffe3c632Sopenharmony_ci            UseJspbArrayAnyFormat = input.ReadBool();
1472ffe3c632Sopenharmony_ci            break;
1473ffe3c632Sopenharmony_ci          }
1474ffe3c632Sopenharmony_ci        }
1475ffe3c632Sopenharmony_ci      }
1476ffe3c632Sopenharmony_ci    #endif
1477ffe3c632Sopenharmony_ci    }
1478ffe3c632Sopenharmony_ci
1479ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1480ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1481ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1482ffe3c632Sopenharmony_ci      uint tag;
1483ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1484ffe3c632Sopenharmony_ci        switch(tag) {
1485ffe3c632Sopenharmony_ci          default:
1486ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1487ffe3c632Sopenharmony_ci            break;
1488ffe3c632Sopenharmony_ci          case 8: {
1489ffe3c632Sopenharmony_ci            UseJspbArrayAnyFormat = input.ReadBool();
1490ffe3c632Sopenharmony_ci            break;
1491ffe3c632Sopenharmony_ci          }
1492ffe3c632Sopenharmony_ci        }
1493ffe3c632Sopenharmony_ci      }
1494ffe3c632Sopenharmony_ci    }
1495ffe3c632Sopenharmony_ci    #endif
1496ffe3c632Sopenharmony_ci
1497ffe3c632Sopenharmony_ci  }
1498ffe3c632Sopenharmony_ci
1499ffe3c632Sopenharmony_ci  #endregion
1500ffe3c632Sopenharmony_ci
1501ffe3c632Sopenharmony_ci}
1502ffe3c632Sopenharmony_ci
1503ffe3c632Sopenharmony_ci#endregion Designer generated code
1504