Conformance.cs 23.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: conformance.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Conformance {

12
  /// <summary>Holder for reflection information generated from conformance.proto</summary>
13
  public static partial class ConformanceReflection {
14 15

    #region Descriptor
16
    /// <summary>File descriptor for conformance.proto</summary>
17 18 19 20 21
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

22
    static ConformanceReflection() {
23 24
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
Yilun Chong's avatar
Yilun Chong committed
25
            "ChFjb25mb3JtYW5jZS5wcm90bxILY29uZm9ybWFuY2UiowEKEkNvbmZvcm1h",
26 27
            "bmNlUmVxdWVzdBIaChBwcm90b2J1Zl9wYXlsb2FkGAEgASgMSAASFgoManNv",
            "bl9wYXlsb2FkGAIgASgJSAASOAoXcmVxdWVzdGVkX291dHB1dF9mb3JtYXQY",
Yilun Chong's avatar
Yilun Chong committed
28 29 30 31 32 33 34 35
            "AyABKA4yFy5jb25mb3JtYW5jZS5XaXJlRm9ybWF0EhQKDG1lc3NhZ2VfdHlw",
            "ZRgEIAEoCUIJCgdwYXlsb2FkIrEBChNDb25mb3JtYW5jZVJlc3BvbnNlEhUK",
            "C3BhcnNlX2Vycm9yGAEgASgJSAASGQoPc2VyaWFsaXplX2Vycm9yGAYgASgJ",
            "SAASFwoNcnVudGltZV9lcnJvchgCIAEoCUgAEhoKEHByb3RvYnVmX3BheWxv",
            "YWQYAyABKAxIABIWCgxqc29uX3BheWxvYWQYBCABKAlIABIRCgdza2lwcGVk",
            "GAUgASgJSABCCAoGcmVzdWx0KjUKCldpcmVGb3JtYXQSDwoLVU5TUEVDSUZJ",
            "RUQQABIMCghQUk9UT0JVRhABEggKBEpTT04QAkIhCh9jb20uZ29vZ2xlLnBy",
            "b3RvYnVmLmNvbmZvcm1hbmNlYgZwcm90bzM="));
36
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
37 38
          new pbr::FileDescriptor[] { },
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Conformance.WireFormat), }, new pbr::GeneratedClrTypeInfo[] {
Yilun Chong's avatar
Yilun Chong committed
39
            new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceRequest), global::Conformance.ConformanceRequest.Parser, new[]{ "ProtobufPayload", "JsonPayload", "RequestedOutputFormat", "MessageType" }, new[]{ "Payload" }, null, null),
40
            new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.ConformanceResponse), global::Conformance.ConformanceResponse.Parser, new[]{ "ParseError", "SerializeError", "RuntimeError", "ProtobufPayload", "JsonPayload", "Skipped" }, new[]{ "Result" }, null, null)
41 42 43 44 45 46 47
          }));
    }
    #endregion

  }
  #region Enums
  public enum WireFormat {
48 49 50
    [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
    [pbr::OriginalName("PROTOBUF")] Protobuf = 1,
    [pbr::OriginalName("JSON")] Json = 2,
51 52 53 54 55
  }

  #endregion

  #region Messages
56
  /// <summary>
57
  /// Represents a single test case's input.  The testee should:
58
  ///
59 60 61
  ///   1. parse this proto (which should always succeed)
  ///   2. parse the protobuf or JSON payload in "payload" (which may fail)
  ///   3. if the parse succeeded, serialize the message in the requested format.
62
  /// </summary>
63 64
  public sealed partial class ConformanceRequest : pb::IMessage<ConformanceRequest> {
    private static readonly pb::MessageParser<ConformanceRequest> _parser = new pb::MessageParser<ConformanceRequest>(() => new ConformanceRequest());
65
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66 67
    public static pb::MessageParser<ConformanceRequest> Parser { get { return _parser; } }

68
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
69
    public static pbr::MessageDescriptor Descriptor {
70
      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[0]; }
71 72
    }

73
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74 75 76 77
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

78
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
79 80 81 82 83 84
    public ConformanceRequest() {
      OnConstruction();
    }

    partial void OnConstruction();

85
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86 87
    public ConformanceRequest(ConformanceRequest other) : this() {
      requestedOutputFormat_ = other.requestedOutputFormat_;
Yilun Chong's avatar
Yilun Chong committed
88
      messageType_ = other.messageType_;
89 90 91 92 93 94 95 96 97 98 99
      switch (other.PayloadCase) {
        case PayloadOneofCase.ProtobufPayload:
          ProtobufPayload = other.ProtobufPayload;
          break;
        case PayloadOneofCase.JsonPayload:
          JsonPayload = other.JsonPayload;
          break;
      }

    }

100
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
101 102 103 104
    public ConformanceRequest Clone() {
      return new ConformanceRequest(this);
    }

105
    /// <summary>Field number for the "protobuf_payload" field.</summary>
106
    public const int ProtobufPayloadFieldNumber = 1;
107
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 109 110
    public pb::ByteString ProtobufPayload {
      get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
      set {
111
        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
112 113 114 115
        payloadCase_ = PayloadOneofCase.ProtobufPayload;
      }
    }

116
    /// <summary>Field number for the "json_payload" field.</summary>
117
    public const int JsonPayloadFieldNumber = 2;
118
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
119 120 121
    public string JsonPayload {
      get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
      set {
122
        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
123 124 125 126
        payloadCase_ = PayloadOneofCase.JsonPayload;
      }
    }

127
    /// <summary>Field number for the "requested_output_format" field.</summary>
128
    public const int RequestedOutputFormatFieldNumber = 3;
129
    private global::Conformance.WireFormat requestedOutputFormat_ = 0;
130
    /// <summary>
131
    /// Which format should the testee serialize its message to?
132
    /// </summary>
133
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134 135 136 137 138 139 140
    public global::Conformance.WireFormat RequestedOutputFormat {
      get { return requestedOutputFormat_; }
      set {
        requestedOutputFormat_ = value;
      }
    }

Yilun Chong's avatar
Yilun Chong committed
141 142 143 144
    /// <summary>Field number for the "message_type" field.</summary>
    public const int MessageTypeFieldNumber = 4;
    private string messageType_ = "";
    /// <summary>
145 146 147
    /// The full name for the test message to use; for the moment, either:
    /// protobuf_test_messages.proto3.TestAllTypesProto3 or
    /// protobuf_test_messages.proto2.TestAllTypesProto2.
Yilun Chong's avatar
Yilun Chong committed
148 149 150 151 152 153 154 155 156
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public string MessageType {
      get { return messageType_; }
      set {
        messageType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

157
    private object payload_;
158
    /// <summary>Enum of possible cases for the "payload" oneof.</summary>
159 160 161 162 163 164
    public enum PayloadOneofCase {
      None = 0,
      ProtobufPayload = 1,
      JsonPayload = 2,
    }
    private PayloadOneofCase payloadCase_ = PayloadOneofCase.None;
165
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
166 167 168 169
    public PayloadOneofCase PayloadCase {
      get { return payloadCase_; }
    }

170
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
171 172 173 174 175
    public void ClearPayload() {
      payloadCase_ = PayloadOneofCase.None;
      payload_ = null;
    }

176
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
177 178 179 180
    public override bool Equals(object other) {
      return Equals(other as ConformanceRequest);
    }

181
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
182 183 184 185 186 187 188 189 190 191
    public bool Equals(ConformanceRequest other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ProtobufPayload != other.ProtobufPayload) return false;
      if (JsonPayload != other.JsonPayload) return false;
      if (RequestedOutputFormat != other.RequestedOutputFormat) return false;
Yilun Chong's avatar
Yilun Chong committed
192
      if (MessageType != other.MessageType) return false;
193
      if (PayloadCase != other.PayloadCase) return false;
194 195 196
      return true;
    }

197
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198 199 200 201
    public override int GetHashCode() {
      int hash = 1;
      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
      if (payloadCase_ == PayloadOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
202
      if (RequestedOutputFormat != 0) hash ^= RequestedOutputFormat.GetHashCode();
Yilun Chong's avatar
Yilun Chong committed
203
      if (MessageType.Length != 0) hash ^= MessageType.GetHashCode();
204
      hash ^= (int) payloadCase_;
205 206 207
      return hash;
    }

208
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
209
    public override string ToString() {
210
      return pb::JsonFormatter.ToDiagnosticString(this);
211 212
    }

213
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
214 215 216 217 218 219 220 221 222
    public void WriteTo(pb::CodedOutputStream output) {
      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
        output.WriteRawTag(10);
        output.WriteBytes(ProtobufPayload);
      }
      if (payloadCase_ == PayloadOneofCase.JsonPayload) {
        output.WriteRawTag(18);
        output.WriteString(JsonPayload);
      }
223
      if (RequestedOutputFormat != 0) {
224 225 226
        output.WriteRawTag(24);
        output.WriteEnum((int) RequestedOutputFormat);
      }
Yilun Chong's avatar
Yilun Chong committed
227 228 229 230
      if (MessageType.Length != 0) {
        output.WriteRawTag(34);
        output.WriteString(MessageType);
      }
231 232
    }

233
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
234 235 236 237 238 239 240 241
    public int CalculateSize() {
      int size = 0;
      if (payloadCase_ == PayloadOneofCase.ProtobufPayload) {
        size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
      }
      if (payloadCase_ == PayloadOneofCase.JsonPayload) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
      }
242
      if (RequestedOutputFormat != 0) {
243 244
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestedOutputFormat);
      }
Yilun Chong's avatar
Yilun Chong committed
245 246 247
      if (MessageType.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageType);
      }
248 249 250
      return size;
    }

251
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
252 253 254 255
    public void MergeFrom(ConformanceRequest other) {
      if (other == null) {
        return;
      }
256
      if (other.RequestedOutputFormat != 0) {
257 258
        RequestedOutputFormat = other.RequestedOutputFormat;
      }
Yilun Chong's avatar
Yilun Chong committed
259 260 261
      if (other.MessageType.Length != 0) {
        MessageType = other.MessageType;
      }
262 263 264 265 266 267 268 269 270 271 272
      switch (other.PayloadCase) {
        case PayloadOneofCase.ProtobufPayload:
          ProtobufPayload = other.ProtobufPayload;
          break;
        case PayloadOneofCase.JsonPayload:
          JsonPayload = other.JsonPayload;
          break;
      }

    }

273
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
274 275
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
276
      while ((tag = input.ReadTag()) != 0) {
277 278
        switch(tag) {
          default:
279
            input.SkipLastField();
280 281 282 283 284 285 286 287 288 289 290 291 292
            break;
          case 10: {
            ProtobufPayload = input.ReadBytes();
            break;
          }
          case 18: {
            JsonPayload = input.ReadString();
            break;
          }
          case 24: {
            requestedOutputFormat_ = (global::Conformance.WireFormat) input.ReadEnum();
            break;
          }
Yilun Chong's avatar
Yilun Chong committed
293 294 295 296
          case 34: {
            MessageType = input.ReadString();
            break;
          }
297 298 299 300 301 302
        }
      }
    }

  }

303
  /// <summary>
304
  /// Represents a single test case's output.
305
  /// </summary>
306 307
  public sealed partial class ConformanceResponse : pb::IMessage<ConformanceResponse> {
    private static readonly pb::MessageParser<ConformanceResponse> _parser = new pb::MessageParser<ConformanceResponse>(() => new ConformanceResponse());
308
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309 310
    public static pb::MessageParser<ConformanceResponse> Parser { get { return _parser; } }

311
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
312
    public static pbr::MessageDescriptor Descriptor {
313
      get { return global::Conformance.ConformanceReflection.Descriptor.MessageTypes[1]; }
314 315
    }

316
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
317 318 319 320
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

321
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
322 323 324 325 326 327
    public ConformanceResponse() {
      OnConstruction();
    }

    partial void OnConstruction();

328
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
329 330 331 332 333
    public ConformanceResponse(ConformanceResponse other) : this() {
      switch (other.ResultCase) {
        case ResultOneofCase.ParseError:
          ParseError = other.ParseError;
          break;
334 335 336
        case ResultOneofCase.SerializeError:
          SerializeError = other.SerializeError;
          break;
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
        case ResultOneofCase.RuntimeError:
          RuntimeError = other.RuntimeError;
          break;
        case ResultOneofCase.ProtobufPayload:
          ProtobufPayload = other.ProtobufPayload;
          break;
        case ResultOneofCase.JsonPayload:
          JsonPayload = other.JsonPayload;
          break;
        case ResultOneofCase.Skipped:
          Skipped = other.Skipped;
          break;
      }

    }

353
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
354 355 356 357
    public ConformanceResponse Clone() {
      return new ConformanceResponse(this);
    }

358
    /// <summary>Field number for the "parse_error" field.</summary>
359
    public const int ParseErrorFieldNumber = 1;
360
    /// <summary>
361 362
    /// This string should be set to indicate parsing failed.  The string can
    /// provide more information about the parse error if it is available.
363
    ///
364 365
    /// Setting this string does not necessarily mean the testee failed the
    /// test.  Some of the test cases are intentionally invalid input.
366
    /// </summary>
367
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
368 369 370
    public string ParseError {
      get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
      set {
371
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
372 373 374 375
        resultCase_ = ResultOneofCase.ParseError;
      }
    }

376 377 378
    /// <summary>Field number for the "serialize_error" field.</summary>
    public const int SerializeErrorFieldNumber = 6;
    /// <summary>
379 380 381
    /// If the input was successfully parsed but errors occurred when
    /// serializing it to the requested output format, set the error message in
    /// this field.
382
    /// </summary>
383
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
384 385 386
    public string SerializeError {
      get { return resultCase_ == ResultOneofCase.SerializeError ? (string) result_ : ""; }
      set {
387
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
388 389 390 391
        resultCase_ = ResultOneofCase.SerializeError;
      }
    }

392
    /// <summary>Field number for the "runtime_error" field.</summary>
393
    public const int RuntimeErrorFieldNumber = 2;
394
    /// <summary>
395 396 397
    /// This should be set if some other error occurred.  This will always
    /// indicate that the test failed.  The string can provide more information
    /// about the failure.
398
    /// </summary>
399
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
400 401 402
    public string RuntimeError {
      get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
      set {
403
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
404 405 406 407
        resultCase_ = ResultOneofCase.RuntimeError;
      }
    }

408
    /// <summary>Field number for the "protobuf_payload" field.</summary>
409
    public const int ProtobufPayloadFieldNumber = 3;
410
    /// <summary>
411 412
    /// If the input was successfully parsed and the requested output was
    /// protobuf, serialize it to protobuf and set it in this field.
413
    /// </summary>
414
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415 416 417
    public pb::ByteString ProtobufPayload {
      get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
      set {
418
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
419 420 421 422
        resultCase_ = ResultOneofCase.ProtobufPayload;
      }
    }

423
    /// <summary>Field number for the "json_payload" field.</summary>
424
    public const int JsonPayloadFieldNumber = 4;
425
    /// <summary>
426 427
    /// If the input was successfully parsed and the requested output was JSON,
    /// serialize to JSON and set it in this field.
428
    /// </summary>
429
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 431 432
    public string JsonPayload {
      get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
      set {
433
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
434 435 436 437
        resultCase_ = ResultOneofCase.JsonPayload;
      }
    }

438
    /// <summary>Field number for the "skipped" field.</summary>
439
    public const int SkippedFieldNumber = 5;
440
    /// <summary>
441 442
    /// For when the testee skipped the test, likely because a certain feature
    /// wasn't supported, like JSON input/output.
443
    /// </summary>
444
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
445 446 447
    public string Skipped {
      get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
      set {
448
        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
449 450 451 452 453
        resultCase_ = ResultOneofCase.Skipped;
      }
    }

    private object result_;
454
    /// <summary>Enum of possible cases for the "result" oneof.</summary>
455 456 457
    public enum ResultOneofCase {
      None = 0,
      ParseError = 1,
458
      SerializeError = 6,
459 460 461 462 463 464
      RuntimeError = 2,
      ProtobufPayload = 3,
      JsonPayload = 4,
      Skipped = 5,
    }
    private ResultOneofCase resultCase_ = ResultOneofCase.None;
465
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
466 467 468 469
    public ResultOneofCase ResultCase {
      get { return resultCase_; }
    }

470
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
471 472 473 474 475
    public void ClearResult() {
      resultCase_ = ResultOneofCase.None;
      result_ = null;
    }

476
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
477 478 479 480
    public override bool Equals(object other) {
      return Equals(other as ConformanceResponse);
    }

481
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
482 483 484 485 486 487 488 489
    public bool Equals(ConformanceResponse other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ParseError != other.ParseError) return false;
490
      if (SerializeError != other.SerializeError) return false;
491 492 493 494
      if (RuntimeError != other.RuntimeError) return false;
      if (ProtobufPayload != other.ProtobufPayload) return false;
      if (JsonPayload != other.JsonPayload) return false;
      if (Skipped != other.Skipped) return false;
495
      if (ResultCase != other.ResultCase) return false;
496 497 498
      return true;
    }

499
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
500 501 502
    public override int GetHashCode() {
      int hash = 1;
      if (resultCase_ == ResultOneofCase.ParseError) hash ^= ParseError.GetHashCode();
503
      if (resultCase_ == ResultOneofCase.SerializeError) hash ^= SerializeError.GetHashCode();
504 505 506 507
      if (resultCase_ == ResultOneofCase.RuntimeError) hash ^= RuntimeError.GetHashCode();
      if (resultCase_ == ResultOneofCase.ProtobufPayload) hash ^= ProtobufPayload.GetHashCode();
      if (resultCase_ == ResultOneofCase.JsonPayload) hash ^= JsonPayload.GetHashCode();
      if (resultCase_ == ResultOneofCase.Skipped) hash ^= Skipped.GetHashCode();
508
      hash ^= (int) resultCase_;
509 510 511
      return hash;
    }

512
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
513
    public override string ToString() {
514
      return pb::JsonFormatter.ToDiagnosticString(this);
515 516
    }

517
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538
    public void WriteTo(pb::CodedOutputStream output) {
      if (resultCase_ == ResultOneofCase.ParseError) {
        output.WriteRawTag(10);
        output.WriteString(ParseError);
      }
      if (resultCase_ == ResultOneofCase.RuntimeError) {
        output.WriteRawTag(18);
        output.WriteString(RuntimeError);
      }
      if (resultCase_ == ResultOneofCase.ProtobufPayload) {
        output.WriteRawTag(26);
        output.WriteBytes(ProtobufPayload);
      }
      if (resultCase_ == ResultOneofCase.JsonPayload) {
        output.WriteRawTag(34);
        output.WriteString(JsonPayload);
      }
      if (resultCase_ == ResultOneofCase.Skipped) {
        output.WriteRawTag(42);
        output.WriteString(Skipped);
      }
539 540 541 542
      if (resultCase_ == ResultOneofCase.SerializeError) {
        output.WriteRawTag(50);
        output.WriteString(SerializeError);
      }
543 544
    }

545
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
546 547 548 549 550
    public int CalculateSize() {
      int size = 0;
      if (resultCase_ == ResultOneofCase.ParseError) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ParseError);
      }
551 552 553
      if (resultCase_ == ResultOneofCase.SerializeError) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(SerializeError);
      }
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568
      if (resultCase_ == ResultOneofCase.RuntimeError) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(RuntimeError);
      }
      if (resultCase_ == ResultOneofCase.ProtobufPayload) {
        size += 1 + pb::CodedOutputStream.ComputeBytesSize(ProtobufPayload);
      }
      if (resultCase_ == ResultOneofCase.JsonPayload) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonPayload);
      }
      if (resultCase_ == ResultOneofCase.Skipped) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Skipped);
      }
      return size;
    }

569
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
570 571 572 573 574 575 576 577
    public void MergeFrom(ConformanceResponse other) {
      if (other == null) {
        return;
      }
      switch (other.ResultCase) {
        case ResultOneofCase.ParseError:
          ParseError = other.ParseError;
          break;
578 579 580
        case ResultOneofCase.SerializeError:
          SerializeError = other.SerializeError;
          break;
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596
        case ResultOneofCase.RuntimeError:
          RuntimeError = other.RuntimeError;
          break;
        case ResultOneofCase.ProtobufPayload:
          ProtobufPayload = other.ProtobufPayload;
          break;
        case ResultOneofCase.JsonPayload:
          JsonPayload = other.JsonPayload;
          break;
        case ResultOneofCase.Skipped:
          Skipped = other.Skipped;
          break;
      }

    }

597
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
598 599
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
600
      while ((tag = input.ReadTag()) != 0) {
601 602
        switch(tag) {
          default:
603
            input.SkipLastField();
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
            break;
          case 10: {
            ParseError = input.ReadString();
            break;
          }
          case 18: {
            RuntimeError = input.ReadString();
            break;
          }
          case 26: {
            ProtobufPayload = input.ReadBytes();
            break;
          }
          case 34: {
            JsonPayload = input.ReadString();
            break;
          }
          case 42: {
            Skipped = input.ReadString();
            break;
          }
625 626 627 628
          case 50: {
            SerializeError = input.ReadString();
            break;
          }
629 630 631 632 633 634 635 636 637 638 639
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code