1ffe3c632Sopenharmony_ci// <auto-generated>
2ffe3c632Sopenharmony_ci//     Generated by the protocol buffer compiler.  DO NOT EDIT!
3ffe3c632Sopenharmony_ci//     source: unittest_issues.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 UnitTest.Issues.TestProtos {
13ffe3c632Sopenharmony_ci
14ffe3c632Sopenharmony_ci  /// <summary>Holder for reflection information generated from unittest_issues.proto</summary>
15ffe3c632Sopenharmony_ci  public static partial class UnittestIssuesReflection {
16ffe3c632Sopenharmony_ci
17ffe3c632Sopenharmony_ci    #region Descriptor
18ffe3c632Sopenharmony_ci    /// <summary>File descriptor for unittest_issues.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 UnittestIssuesReflection() {
25ffe3c632Sopenharmony_ci      byte[] descriptorData = global::System.Convert.FromBase64String(
26ffe3c632Sopenharmony_ci          string.Concat(
27ffe3c632Sopenharmony_ci            "ChV1bml0dGVzdF9pc3N1ZXMucHJvdG8SD3VuaXR0ZXN0X2lzc3VlcxocZ29v",
28ffe3c632Sopenharmony_ci            "Z2xlL3Byb3RvYnVmL3N0cnVjdC5wcm90byInCghJc3N1ZTMwNxobCgpOZXN0",
29ffe3c632Sopenharmony_ci            "ZWRPbmNlGg0KC05lc3RlZFR3aWNlIrABChNOZWdhdGl2ZUVudW1NZXNzYWdl",
30ffe3c632Sopenharmony_ci            "EiwKBXZhbHVlGAEgASgOMh0udW5pdHRlc3RfaXNzdWVzLk5lZ2F0aXZlRW51",
31ffe3c632Sopenharmony_ci            "bRIxCgZ2YWx1ZXMYAiADKA4yHS51bml0dGVzdF9pc3N1ZXMuTmVnYXRpdmVF",
32ffe3c632Sopenharmony_ci            "bnVtQgIQABI4Cg1wYWNrZWRfdmFsdWVzGAMgAygOMh0udW5pdHRlc3RfaXNz",
33ffe3c632Sopenharmony_ci            "dWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVjYXRlZENoaWxkIrkCChdE",
34ffe3c632Sopenharmony_ci            "ZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5QcmltaXRpdmVWYWx1ZRgBIAEo",
35ffe3c632Sopenharmony_ci            "BUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVCAhgBEjoKDE1lc3NhZ2VW",
36ffe3c632Sopenharmony_ci            "YWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkQ2hpbGRC",
37ffe3c632Sopenharmony_ci            "AhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5E",
38ffe3c632Sopenharmony_ci            "ZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1ZRgFIAEoDjIfLnVuaXR0",
39ffe3c632Sopenharmony_ci            "ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAESNgoJRW51bUFycmF5GAYg",
40ffe3c632Sopenharmony_ci            "AygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0ZWRFbnVtQgIYASIZCglJ",
41ffe3c632Sopenharmony_ci            "dGVtRmllbGQSDAoEaXRlbRgBIAEoBSJECg1SZXNlcnZlZE5hbWVzEg0KBXR5",
42ffe3c632Sopenharmony_ci            "cGVzGAEgASgFEhIKCmRlc2NyaXB0b3IYAiABKAUaEAoOU29tZU5lc3RlZFR5",
43ffe3c632Sopenharmony_ci            "cGUioAEKFVRlc3RKc29uRmllbGRPcmRlcmluZxITCgtwbGFpbl9pbnQzMhgE",
44ffe3c632Sopenharmony_ci            "IAEoBRITCglvMV9zdHJpbmcYAiABKAlIABISCghvMV9pbnQzMhgFIAEoBUgA",
45ffe3c632Sopenharmony_ci            "EhQKDHBsYWluX3N0cmluZxgBIAEoCRISCghvMl9pbnQzMhgGIAEoBUgBEhMK",
46ffe3c632Sopenharmony_ci            "CW8yX3N0cmluZxgDIAEoCUgBQgQKAm8xQgQKAm8yIksKDFRlc3RKc29uTmFt",
47ffe3c632Sopenharmony_ci            "ZRIMCgRuYW1lGAEgASgJEhkKC2Rlc2NyaXB0aW9uGAIgASgJUgRkZXNjEhIK",
48ffe3c632Sopenharmony_ci            "BGd1aWQYAyABKAlSBGV4aWQifwoMT25lb2ZNZXJnaW5nEg4KBHRleHQYASAB",
49ffe3c632Sopenharmony_ci            "KAlIABI2CgZuZXN0ZWQYAiABKAsyJC51bml0dGVzdF9pc3N1ZXMuT25lb2ZN",
50ffe3c632Sopenharmony_ci            "ZXJnaW5nLk5lc3RlZEgAGh4KBk5lc3RlZBIJCgF4GAEgASgFEgkKAXkYAiAB",
51ffe3c632Sopenharmony_ci            "KAVCBwoFdmFsdWUiawoWTnVsbFZhbHVlT3V0c2lkZVN0cnVjdBIWCgxzdHJp",
52ffe3c632Sopenharmony_ci            "bmdfdmFsdWUYASABKAlIABIwCgpudWxsX3ZhbHVlGAIgASgOMhouZ29vZ2xl",
53ffe3c632Sopenharmony_ci            "LnByb3RvYnVmLk51bGxWYWx1ZUgAQgcKBXZhbHVlIkUKE051bGxWYWx1ZU5v",
54ffe3c632Sopenharmony_ci            "dEluT25lb2YSLgoKbnVsbF92YWx1ZRgCIAEoDjIaLmdvb2dsZS5wcm90b2J1",
55ffe3c632Sopenharmony_ci            "Zi5OdWxsVmFsdWUiYAoXTWl4ZWRSZWd1bGFyQW5kT3B0aW9uYWwSFQoNcmVn",
56ffe3c632Sopenharmony_ci            "dWxhcl9maWVsZBgBIAEoCRIbCg5vcHRpb25hbF9maWVsZBgCIAEoCUgAiAEB",
57ffe3c632Sopenharmony_ci            "QhEKD19vcHRpb25hbF9maWVsZCpVCgxOZWdhdGl2ZUVudW0SFgoSTkVHQVRJ",
58ffe3c632Sopenharmony_ci            "VkVfRU5VTV9aRVJPEAASFgoJRml2ZUJlbG93EPv//////////wESFQoITWlu",
59ffe3c632Sopenharmony_ci            "dXNPbmUQ////////////ASouCg5EZXByZWNhdGVkRW51bRITCg9ERVBSRUNB",
60ffe3c632Sopenharmony_ci            "VEVEX1pFUk8QABIHCgNvbmUQAUIdqgIaVW5pdFRlc3QuSXNzdWVzLlRlc3RQ",
61ffe3c632Sopenharmony_ci            "cm90b3NiBnByb3RvMw=="));
62ffe3c632Sopenharmony_ci      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
63ffe3c632Sopenharmony_ci          new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, },
64ffe3c632Sopenharmony_ci          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.NegativeEnum), typeof(global::UnitTest.Issues.TestProtos.DeprecatedEnum), }, null, new pbr::GeneratedClrTypeInfo[] {
65ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307), global::UnitTest.Issues.TestProtos.Issue307.Parser, null, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Parser, null, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice.Parser, null, null, null, null, null)})}),
66ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Parser, new[]{ "Value", "Values", "PackedValues" }, null, null, null, null),
67ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser, null, null, null, null, null),
68ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Parser, new[]{ "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray" }, null, null, null, null),
69ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ItemField), global::UnitTest.Issues.TestProtos.ItemField.Parser, new[]{ "Item" }, null, null, null, null),
70ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames), global::UnitTest.Issues.TestProtos.ReservedNames.Parser, new[]{ "Types_", "Descriptor_" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType), global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType.Parser, null, null, null, null, null)}),
71ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering), global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering.Parser, new[]{ "PlainInt32", "O1String", "O1Int32", "PlainString", "O2Int32", "O2String" }, new[]{ "O1", "O2" }, null, null, null),
72ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonName), global::UnitTest.Issues.TestProtos.TestJsonName.Parser, new[]{ "Name", "Description", "Guid" }, null, null, null, null),
73ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.OneofMerging), global::UnitTest.Issues.TestProtos.OneofMerging.Parser, new[]{ "Text", "Nested" }, new[]{ "Value" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested), global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested.Parser, new[]{ "X", "Y" }, null, null, null, null)}),
74ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NullValueOutsideStruct), global::UnitTest.Issues.TestProtos.NullValueOutsideStruct.Parser, new[]{ "StringValue", "NullValue" }, new[]{ "Value" }, null, null, null),
75ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NullValueNotInOneof), global::UnitTest.Issues.TestProtos.NullValueNotInOneof.Parser, new[]{ "NullValue" }, null, null, null, null),
76ffe3c632Sopenharmony_ci            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.MixedRegularAndOptional), global::UnitTest.Issues.TestProtos.MixedRegularAndOptional.Parser, new[]{ "RegularField", "OptionalField" }, new[]{ "OptionalField" }, null, null, null)
77ffe3c632Sopenharmony_ci          }));
78ffe3c632Sopenharmony_ci    }
79ffe3c632Sopenharmony_ci    #endregion
80ffe3c632Sopenharmony_ci
81ffe3c632Sopenharmony_ci  }
82ffe3c632Sopenharmony_ci  #region Enums
83ffe3c632Sopenharmony_ci  public enum NegativeEnum {
84ffe3c632Sopenharmony_ci    [pbr::OriginalName("NEGATIVE_ENUM_ZERO")] Zero = 0,
85ffe3c632Sopenharmony_ci    [pbr::OriginalName("FiveBelow")] FiveBelow = -5,
86ffe3c632Sopenharmony_ci    [pbr::OriginalName("MinusOne")] MinusOne = -1,
87ffe3c632Sopenharmony_ci  }
88ffe3c632Sopenharmony_ci
89ffe3c632Sopenharmony_ci  public enum DeprecatedEnum {
90ffe3c632Sopenharmony_ci    [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0,
91ffe3c632Sopenharmony_ci    [pbr::OriginalName("one")] One = 1,
92ffe3c632Sopenharmony_ci  }
93ffe3c632Sopenharmony_ci
94ffe3c632Sopenharmony_ci  #endregion
95ffe3c632Sopenharmony_ci
96ffe3c632Sopenharmony_ci  #region Messages
97ffe3c632Sopenharmony_ci  /// <summary>
98ffe3c632Sopenharmony_ci  /// Issue 307: when generating doubly-nested types, any references
99ffe3c632Sopenharmony_ci  /// should be of the form A.Types.B.Types.C.
100ffe3c632Sopenharmony_ci  /// </summary>
101ffe3c632Sopenharmony_ci  public sealed partial class Issue307 : pb::IMessage<Issue307>
102ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
103ffe3c632Sopenharmony_ci      , pb::IBufferMessage
104ffe3c632Sopenharmony_ci  #endif
105ffe3c632Sopenharmony_ci  {
106ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<Issue307> _parser = new pb::MessageParser<Issue307>(() => new Issue307());
107ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
108ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109ffe3c632Sopenharmony_ci    public static pb::MessageParser<Issue307> Parser { get { return _parser; } }
110ffe3c632Sopenharmony_ci
111ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
112ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
113ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[0]; }
114ffe3c632Sopenharmony_ci    }
115ffe3c632Sopenharmony_ci
116ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
117ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
118ffe3c632Sopenharmony_ci      get { return Descriptor; }
119ffe3c632Sopenharmony_ci    }
120ffe3c632Sopenharmony_ci
121ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
122ffe3c632Sopenharmony_ci    public Issue307() {
123ffe3c632Sopenharmony_ci      OnConstruction();
124ffe3c632Sopenharmony_ci    }
125ffe3c632Sopenharmony_ci
126ffe3c632Sopenharmony_ci    partial void OnConstruction();
127ffe3c632Sopenharmony_ci
128ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129ffe3c632Sopenharmony_ci    public Issue307(Issue307 other) : this() {
130ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
131ffe3c632Sopenharmony_ci    }
132ffe3c632Sopenharmony_ci
133ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134ffe3c632Sopenharmony_ci    public Issue307 Clone() {
135ffe3c632Sopenharmony_ci      return new Issue307(this);
136ffe3c632Sopenharmony_ci    }
137ffe3c632Sopenharmony_ci
138ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
139ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
140ffe3c632Sopenharmony_ci      return Equals(other as Issue307);
141ffe3c632Sopenharmony_ci    }
142ffe3c632Sopenharmony_ci
143ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
144ffe3c632Sopenharmony_ci    public bool Equals(Issue307 other) {
145ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
146ffe3c632Sopenharmony_ci        return false;
147ffe3c632Sopenharmony_ci      }
148ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
149ffe3c632Sopenharmony_ci        return true;
150ffe3c632Sopenharmony_ci      }
151ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
152ffe3c632Sopenharmony_ci    }
153ffe3c632Sopenharmony_ci
154ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
155ffe3c632Sopenharmony_ci    public override int GetHashCode() {
156ffe3c632Sopenharmony_ci      int hash = 1;
157ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
158ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
159ffe3c632Sopenharmony_ci      }
160ffe3c632Sopenharmony_ci      return hash;
161ffe3c632Sopenharmony_ci    }
162ffe3c632Sopenharmony_ci
163ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
164ffe3c632Sopenharmony_ci    public override string ToString() {
165ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
166ffe3c632Sopenharmony_ci    }
167ffe3c632Sopenharmony_ci
168ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
169ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
170ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
171ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
172ffe3c632Sopenharmony_ci    #else
173ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
174ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
175ffe3c632Sopenharmony_ci      }
176ffe3c632Sopenharmony_ci    #endif
177ffe3c632Sopenharmony_ci    }
178ffe3c632Sopenharmony_ci
179ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
180ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
181ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
182ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
183ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
184ffe3c632Sopenharmony_ci      }
185ffe3c632Sopenharmony_ci    }
186ffe3c632Sopenharmony_ci    #endif
187ffe3c632Sopenharmony_ci
188ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
189ffe3c632Sopenharmony_ci    public int CalculateSize() {
190ffe3c632Sopenharmony_ci      int size = 0;
191ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
192ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
193ffe3c632Sopenharmony_ci      }
194ffe3c632Sopenharmony_ci      return size;
195ffe3c632Sopenharmony_ci    }
196ffe3c632Sopenharmony_ci
197ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198ffe3c632Sopenharmony_ci    public void MergeFrom(Issue307 other) {
199ffe3c632Sopenharmony_ci      if (other == null) {
200ffe3c632Sopenharmony_ci        return;
201ffe3c632Sopenharmony_ci      }
202ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
203ffe3c632Sopenharmony_ci    }
204ffe3c632Sopenharmony_ci
205ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
206ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
207ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
208ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
209ffe3c632Sopenharmony_ci    #else
210ffe3c632Sopenharmony_ci      uint tag;
211ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
212ffe3c632Sopenharmony_ci        switch(tag) {
213ffe3c632Sopenharmony_ci          default:
214ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
215ffe3c632Sopenharmony_ci            break;
216ffe3c632Sopenharmony_ci        }
217ffe3c632Sopenharmony_ci      }
218ffe3c632Sopenharmony_ci    #endif
219ffe3c632Sopenharmony_ci    }
220ffe3c632Sopenharmony_ci
221ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
222ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
224ffe3c632Sopenharmony_ci      uint tag;
225ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
226ffe3c632Sopenharmony_ci        switch(tag) {
227ffe3c632Sopenharmony_ci          default:
228ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
229ffe3c632Sopenharmony_ci            break;
230ffe3c632Sopenharmony_ci        }
231ffe3c632Sopenharmony_ci      }
232ffe3c632Sopenharmony_ci    }
233ffe3c632Sopenharmony_ci    #endif
234ffe3c632Sopenharmony_ci
235ffe3c632Sopenharmony_ci    #region Nested types
236ffe3c632Sopenharmony_ci    /// <summary>Container for nested types declared in the Issue307 message type.</summary>
237ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
238ffe3c632Sopenharmony_ci    public static partial class Types {
239ffe3c632Sopenharmony_ci      public sealed partial class NestedOnce : pb::IMessage<NestedOnce>
240ffe3c632Sopenharmony_ci      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
241ffe3c632Sopenharmony_ci          , pb::IBufferMessage
242ffe3c632Sopenharmony_ci      #endif
243ffe3c632Sopenharmony_ci      {
244ffe3c632Sopenharmony_ci        private static readonly pb::MessageParser<NestedOnce> _parser = new pb::MessageParser<NestedOnce>(() => new NestedOnce());
245ffe3c632Sopenharmony_ci        private pb::UnknownFieldSet _unknownFields;
246ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247ffe3c632Sopenharmony_ci        public static pb::MessageParser<NestedOnce> Parser { get { return _parser; } }
248ffe3c632Sopenharmony_ci
249ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
250ffe3c632Sopenharmony_ci        public static pbr::MessageDescriptor Descriptor {
251ffe3c632Sopenharmony_ci          get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; }
252ffe3c632Sopenharmony_ci        }
253ffe3c632Sopenharmony_ci
254ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255ffe3c632Sopenharmony_ci        pbr::MessageDescriptor pb::IMessage.Descriptor {
256ffe3c632Sopenharmony_ci          get { return Descriptor; }
257ffe3c632Sopenharmony_ci        }
258ffe3c632Sopenharmony_ci
259ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
260ffe3c632Sopenharmony_ci        public NestedOnce() {
261ffe3c632Sopenharmony_ci          OnConstruction();
262ffe3c632Sopenharmony_ci        }
263ffe3c632Sopenharmony_ci
264ffe3c632Sopenharmony_ci        partial void OnConstruction();
265ffe3c632Sopenharmony_ci
266ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267ffe3c632Sopenharmony_ci        public NestedOnce(NestedOnce other) : this() {
268ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
269ffe3c632Sopenharmony_ci        }
270ffe3c632Sopenharmony_ci
271ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
272ffe3c632Sopenharmony_ci        public NestedOnce Clone() {
273ffe3c632Sopenharmony_ci          return new NestedOnce(this);
274ffe3c632Sopenharmony_ci        }
275ffe3c632Sopenharmony_ci
276ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
277ffe3c632Sopenharmony_ci        public override bool Equals(object other) {
278ffe3c632Sopenharmony_ci          return Equals(other as NestedOnce);
279ffe3c632Sopenharmony_ci        }
280ffe3c632Sopenharmony_ci
281ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
282ffe3c632Sopenharmony_ci        public bool Equals(NestedOnce other) {
283ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, null)) {
284ffe3c632Sopenharmony_ci            return false;
285ffe3c632Sopenharmony_ci          }
286ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, this)) {
287ffe3c632Sopenharmony_ci            return true;
288ffe3c632Sopenharmony_ci          }
289ffe3c632Sopenharmony_ci          return Equals(_unknownFields, other._unknownFields);
290ffe3c632Sopenharmony_ci        }
291ffe3c632Sopenharmony_ci
292ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
293ffe3c632Sopenharmony_ci        public override int GetHashCode() {
294ffe3c632Sopenharmony_ci          int hash = 1;
295ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
296ffe3c632Sopenharmony_ci            hash ^= _unknownFields.GetHashCode();
297ffe3c632Sopenharmony_ci          }
298ffe3c632Sopenharmony_ci          return hash;
299ffe3c632Sopenharmony_ci        }
300ffe3c632Sopenharmony_ci
301ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
302ffe3c632Sopenharmony_ci        public override string ToString() {
303ffe3c632Sopenharmony_ci          return pb::JsonFormatter.ToDiagnosticString(this);
304ffe3c632Sopenharmony_ci        }
305ffe3c632Sopenharmony_ci
306ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
307ffe3c632Sopenharmony_ci        public void WriteTo(pb::CodedOutputStream output) {
308ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
309ffe3c632Sopenharmony_ci          output.WriteRawMessage(this);
310ffe3c632Sopenharmony_ci        #else
311ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
312ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(output);
313ffe3c632Sopenharmony_ci          }
314ffe3c632Sopenharmony_ci        #endif
315ffe3c632Sopenharmony_ci        }
316ffe3c632Sopenharmony_ci
317ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
318ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
319ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
320ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
321ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(ref output);
322ffe3c632Sopenharmony_ci          }
323ffe3c632Sopenharmony_ci        }
324ffe3c632Sopenharmony_ci        #endif
325ffe3c632Sopenharmony_ci
326ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
327ffe3c632Sopenharmony_ci        public int CalculateSize() {
328ffe3c632Sopenharmony_ci          int size = 0;
329ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
330ffe3c632Sopenharmony_ci            size += _unknownFields.CalculateSize();
331ffe3c632Sopenharmony_ci          }
332ffe3c632Sopenharmony_ci          return size;
333ffe3c632Sopenharmony_ci        }
334ffe3c632Sopenharmony_ci
335ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
336ffe3c632Sopenharmony_ci        public void MergeFrom(NestedOnce other) {
337ffe3c632Sopenharmony_ci          if (other == null) {
338ffe3c632Sopenharmony_ci            return;
339ffe3c632Sopenharmony_ci          }
340ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
341ffe3c632Sopenharmony_ci        }
342ffe3c632Sopenharmony_ci
343ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
344ffe3c632Sopenharmony_ci        public void MergeFrom(pb::CodedInputStream input) {
345ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
346ffe3c632Sopenharmony_ci          input.ReadRawMessage(this);
347ffe3c632Sopenharmony_ci        #else
348ffe3c632Sopenharmony_ci          uint tag;
349ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
350ffe3c632Sopenharmony_ci            switch(tag) {
351ffe3c632Sopenharmony_ci              default:
352ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
353ffe3c632Sopenharmony_ci                break;
354ffe3c632Sopenharmony_ci            }
355ffe3c632Sopenharmony_ci          }
356ffe3c632Sopenharmony_ci        #endif
357ffe3c632Sopenharmony_ci        }
358ffe3c632Sopenharmony_ci
359ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
360ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
361ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
362ffe3c632Sopenharmony_ci          uint tag;
363ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
364ffe3c632Sopenharmony_ci            switch(tag) {
365ffe3c632Sopenharmony_ci              default:
366ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
367ffe3c632Sopenharmony_ci                break;
368ffe3c632Sopenharmony_ci            }
369ffe3c632Sopenharmony_ci          }
370ffe3c632Sopenharmony_ci        }
371ffe3c632Sopenharmony_ci        #endif
372ffe3c632Sopenharmony_ci
373ffe3c632Sopenharmony_ci        #region Nested types
374ffe3c632Sopenharmony_ci        /// <summary>Container for nested types declared in the NestedOnce message type.</summary>
375ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
376ffe3c632Sopenharmony_ci        public static partial class Types {
377ffe3c632Sopenharmony_ci          public sealed partial class NestedTwice : pb::IMessage<NestedTwice>
378ffe3c632Sopenharmony_ci          #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
379ffe3c632Sopenharmony_ci              , pb::IBufferMessage
380ffe3c632Sopenharmony_ci          #endif
381ffe3c632Sopenharmony_ci          {
382ffe3c632Sopenharmony_ci            private static readonly pb::MessageParser<NestedTwice> _parser = new pb::MessageParser<NestedTwice>(() => new NestedTwice());
383ffe3c632Sopenharmony_ci            private pb::UnknownFieldSet _unknownFields;
384ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
385ffe3c632Sopenharmony_ci            public static pb::MessageParser<NestedTwice> Parser { get { return _parser; } }
386ffe3c632Sopenharmony_ci
387ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
388ffe3c632Sopenharmony_ci            public static pbr::MessageDescriptor Descriptor {
389ffe3c632Sopenharmony_ci              get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; }
390ffe3c632Sopenharmony_ci            }
391ffe3c632Sopenharmony_ci
392ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
393ffe3c632Sopenharmony_ci            pbr::MessageDescriptor pb::IMessage.Descriptor {
394ffe3c632Sopenharmony_ci              get { return Descriptor; }
395ffe3c632Sopenharmony_ci            }
396ffe3c632Sopenharmony_ci
397ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398ffe3c632Sopenharmony_ci            public NestedTwice() {
399ffe3c632Sopenharmony_ci              OnConstruction();
400ffe3c632Sopenharmony_ci            }
401ffe3c632Sopenharmony_ci
402ffe3c632Sopenharmony_ci            partial void OnConstruction();
403ffe3c632Sopenharmony_ci
404ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
405ffe3c632Sopenharmony_ci            public NestedTwice(NestedTwice other) : this() {
406ffe3c632Sopenharmony_ci              _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
407ffe3c632Sopenharmony_ci            }
408ffe3c632Sopenharmony_ci
409ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410ffe3c632Sopenharmony_ci            public NestedTwice Clone() {
411ffe3c632Sopenharmony_ci              return new NestedTwice(this);
412ffe3c632Sopenharmony_ci            }
413ffe3c632Sopenharmony_ci
414ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415ffe3c632Sopenharmony_ci            public override bool Equals(object other) {
416ffe3c632Sopenharmony_ci              return Equals(other as NestedTwice);
417ffe3c632Sopenharmony_ci            }
418ffe3c632Sopenharmony_ci
419ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420ffe3c632Sopenharmony_ci            public bool Equals(NestedTwice other) {
421ffe3c632Sopenharmony_ci              if (ReferenceEquals(other, null)) {
422ffe3c632Sopenharmony_ci                return false;
423ffe3c632Sopenharmony_ci              }
424ffe3c632Sopenharmony_ci              if (ReferenceEquals(other, this)) {
425ffe3c632Sopenharmony_ci                return true;
426ffe3c632Sopenharmony_ci              }
427ffe3c632Sopenharmony_ci              return Equals(_unknownFields, other._unknownFields);
428ffe3c632Sopenharmony_ci            }
429ffe3c632Sopenharmony_ci
430ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
431ffe3c632Sopenharmony_ci            public override int GetHashCode() {
432ffe3c632Sopenharmony_ci              int hash = 1;
433ffe3c632Sopenharmony_ci              if (_unknownFields != null) {
434ffe3c632Sopenharmony_ci                hash ^= _unknownFields.GetHashCode();
435ffe3c632Sopenharmony_ci              }
436ffe3c632Sopenharmony_ci              return hash;
437ffe3c632Sopenharmony_ci            }
438ffe3c632Sopenharmony_ci
439ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440ffe3c632Sopenharmony_ci            public override string ToString() {
441ffe3c632Sopenharmony_ci              return pb::JsonFormatter.ToDiagnosticString(this);
442ffe3c632Sopenharmony_ci            }
443ffe3c632Sopenharmony_ci
444ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
445ffe3c632Sopenharmony_ci            public void WriteTo(pb::CodedOutputStream output) {
446ffe3c632Sopenharmony_ci            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
447ffe3c632Sopenharmony_ci              output.WriteRawMessage(this);
448ffe3c632Sopenharmony_ci            #else
449ffe3c632Sopenharmony_ci              if (_unknownFields != null) {
450ffe3c632Sopenharmony_ci                _unknownFields.WriteTo(output);
451ffe3c632Sopenharmony_ci              }
452ffe3c632Sopenharmony_ci            #endif
453ffe3c632Sopenharmony_ci            }
454ffe3c632Sopenharmony_ci
455ffe3c632Sopenharmony_ci            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
456ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
457ffe3c632Sopenharmony_ci            void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
458ffe3c632Sopenharmony_ci              if (_unknownFields != null) {
459ffe3c632Sopenharmony_ci                _unknownFields.WriteTo(ref output);
460ffe3c632Sopenharmony_ci              }
461ffe3c632Sopenharmony_ci            }
462ffe3c632Sopenharmony_ci            #endif
463ffe3c632Sopenharmony_ci
464ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
465ffe3c632Sopenharmony_ci            public int CalculateSize() {
466ffe3c632Sopenharmony_ci              int size = 0;
467ffe3c632Sopenharmony_ci              if (_unknownFields != null) {
468ffe3c632Sopenharmony_ci                size += _unknownFields.CalculateSize();
469ffe3c632Sopenharmony_ci              }
470ffe3c632Sopenharmony_ci              return size;
471ffe3c632Sopenharmony_ci            }
472ffe3c632Sopenharmony_ci
473ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
474ffe3c632Sopenharmony_ci            public void MergeFrom(NestedTwice other) {
475ffe3c632Sopenharmony_ci              if (other == null) {
476ffe3c632Sopenharmony_ci                return;
477ffe3c632Sopenharmony_ci              }
478ffe3c632Sopenharmony_ci              _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
479ffe3c632Sopenharmony_ci            }
480ffe3c632Sopenharmony_ci
481ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
482ffe3c632Sopenharmony_ci            public void MergeFrom(pb::CodedInputStream input) {
483ffe3c632Sopenharmony_ci            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
484ffe3c632Sopenharmony_ci              input.ReadRawMessage(this);
485ffe3c632Sopenharmony_ci            #else
486ffe3c632Sopenharmony_ci              uint tag;
487ffe3c632Sopenharmony_ci              while ((tag = input.ReadTag()) != 0) {
488ffe3c632Sopenharmony_ci                switch(tag) {
489ffe3c632Sopenharmony_ci                  default:
490ffe3c632Sopenharmony_ci                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
491ffe3c632Sopenharmony_ci                    break;
492ffe3c632Sopenharmony_ci                }
493ffe3c632Sopenharmony_ci              }
494ffe3c632Sopenharmony_ci            #endif
495ffe3c632Sopenharmony_ci            }
496ffe3c632Sopenharmony_ci
497ffe3c632Sopenharmony_ci            #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
498ffe3c632Sopenharmony_ci            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
499ffe3c632Sopenharmony_ci            void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
500ffe3c632Sopenharmony_ci              uint tag;
501ffe3c632Sopenharmony_ci              while ((tag = input.ReadTag()) != 0) {
502ffe3c632Sopenharmony_ci                switch(tag) {
503ffe3c632Sopenharmony_ci                  default:
504ffe3c632Sopenharmony_ci                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
505ffe3c632Sopenharmony_ci                    break;
506ffe3c632Sopenharmony_ci                }
507ffe3c632Sopenharmony_ci              }
508ffe3c632Sopenharmony_ci            }
509ffe3c632Sopenharmony_ci            #endif
510ffe3c632Sopenharmony_ci
511ffe3c632Sopenharmony_ci          }
512ffe3c632Sopenharmony_ci
513ffe3c632Sopenharmony_ci        }
514ffe3c632Sopenharmony_ci        #endregion
515ffe3c632Sopenharmony_ci
516ffe3c632Sopenharmony_ci      }
517ffe3c632Sopenharmony_ci
518ffe3c632Sopenharmony_ci    }
519ffe3c632Sopenharmony_ci    #endregion
520ffe3c632Sopenharmony_ci
521ffe3c632Sopenharmony_ci  }
522ffe3c632Sopenharmony_ci
523ffe3c632Sopenharmony_ci  public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage>
524ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
525ffe3c632Sopenharmony_ci      , pb::IBufferMessage
526ffe3c632Sopenharmony_ci  #endif
527ffe3c632Sopenharmony_ci  {
528ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage());
529ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
530ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
531ffe3c632Sopenharmony_ci    public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _parser; } }
532ffe3c632Sopenharmony_ci
533ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
534ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
535ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[1]; }
536ffe3c632Sopenharmony_ci    }
537ffe3c632Sopenharmony_ci
538ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
540ffe3c632Sopenharmony_ci      get { return Descriptor; }
541ffe3c632Sopenharmony_ci    }
542ffe3c632Sopenharmony_ci
543ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544ffe3c632Sopenharmony_ci    public NegativeEnumMessage() {
545ffe3c632Sopenharmony_ci      OnConstruction();
546ffe3c632Sopenharmony_ci    }
547ffe3c632Sopenharmony_ci
548ffe3c632Sopenharmony_ci    partial void OnConstruction();
549ffe3c632Sopenharmony_ci
550ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
551ffe3c632Sopenharmony_ci    public NegativeEnumMessage(NegativeEnumMessage other) : this() {
552ffe3c632Sopenharmony_ci      value_ = other.value_;
553ffe3c632Sopenharmony_ci      values_ = other.values_.Clone();
554ffe3c632Sopenharmony_ci      packedValues_ = other.packedValues_.Clone();
555ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
556ffe3c632Sopenharmony_ci    }
557ffe3c632Sopenharmony_ci
558ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559ffe3c632Sopenharmony_ci    public NegativeEnumMessage Clone() {
560ffe3c632Sopenharmony_ci      return new NegativeEnumMessage(this);
561ffe3c632Sopenharmony_ci    }
562ffe3c632Sopenharmony_ci
563ffe3c632Sopenharmony_ci    /// <summary>Field number for the "value" field.</summary>
564ffe3c632Sopenharmony_ci    public const int ValueFieldNumber = 1;
565ffe3c632Sopenharmony_ci    private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = global::UnitTest.Issues.TestProtos.NegativeEnum.Zero;
566ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
567ffe3c632Sopenharmony_ci    public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
568ffe3c632Sopenharmony_ci      get { return value_; }
569ffe3c632Sopenharmony_ci      set {
570ffe3c632Sopenharmony_ci        value_ = value;
571ffe3c632Sopenharmony_ci      }
572ffe3c632Sopenharmony_ci    }
573ffe3c632Sopenharmony_ci
574ffe3c632Sopenharmony_ci    /// <summary>Field number for the "values" field.</summary>
575ffe3c632Sopenharmony_ci    public const int ValuesFieldNumber = 2;
576ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_values_codec
577ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
578ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
579ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
580ffe3c632Sopenharmony_ci    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values {
581ffe3c632Sopenharmony_ci      get { return values_; }
582ffe3c632Sopenharmony_ci    }
583ffe3c632Sopenharmony_ci
584ffe3c632Sopenharmony_ci    /// <summary>Field number for the "packed_values" field.</summary>
585ffe3c632Sopenharmony_ci    public const int PackedValuesFieldNumber = 3;
586ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_packedValues_codec
587ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
588ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
589ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
590ffe3c632Sopenharmony_ci    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues {
591ffe3c632Sopenharmony_ci      get { return packedValues_; }
592ffe3c632Sopenharmony_ci    }
593ffe3c632Sopenharmony_ci
594ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
595ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
596ffe3c632Sopenharmony_ci      return Equals(other as NegativeEnumMessage);
597ffe3c632Sopenharmony_ci    }
598ffe3c632Sopenharmony_ci
599ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
600ffe3c632Sopenharmony_ci    public bool Equals(NegativeEnumMessage other) {
601ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
602ffe3c632Sopenharmony_ci        return false;
603ffe3c632Sopenharmony_ci      }
604ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
605ffe3c632Sopenharmony_ci        return true;
606ffe3c632Sopenharmony_ci      }
607ffe3c632Sopenharmony_ci      if (Value != other.Value) return false;
608ffe3c632Sopenharmony_ci      if(!values_.Equals(other.values_)) return false;
609ffe3c632Sopenharmony_ci      if(!packedValues_.Equals(other.packedValues_)) return false;
610ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
611ffe3c632Sopenharmony_ci    }
612ffe3c632Sopenharmony_ci
613ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
614ffe3c632Sopenharmony_ci    public override int GetHashCode() {
615ffe3c632Sopenharmony_ci      int hash = 1;
616ffe3c632Sopenharmony_ci      if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) hash ^= Value.GetHashCode();
617ffe3c632Sopenharmony_ci      hash ^= values_.GetHashCode();
618ffe3c632Sopenharmony_ci      hash ^= packedValues_.GetHashCode();
619ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
620ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
621ffe3c632Sopenharmony_ci      }
622ffe3c632Sopenharmony_ci      return hash;
623ffe3c632Sopenharmony_ci    }
624ffe3c632Sopenharmony_ci
625ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
626ffe3c632Sopenharmony_ci    public override string ToString() {
627ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
628ffe3c632Sopenharmony_ci    }
629ffe3c632Sopenharmony_ci
630ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
631ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
632ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
633ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
634ffe3c632Sopenharmony_ci    #else
635ffe3c632Sopenharmony_ci      if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) {
636ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
637ffe3c632Sopenharmony_ci        output.WriteEnum((int) Value);
638ffe3c632Sopenharmony_ci      }
639ffe3c632Sopenharmony_ci      values_.WriteTo(output, _repeated_values_codec);
640ffe3c632Sopenharmony_ci      packedValues_.WriteTo(output, _repeated_packedValues_codec);
641ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
642ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
643ffe3c632Sopenharmony_ci      }
644ffe3c632Sopenharmony_ci    #endif
645ffe3c632Sopenharmony_ci    }
646ffe3c632Sopenharmony_ci
647ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
648ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
649ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
650ffe3c632Sopenharmony_ci      if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) {
651ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
652ffe3c632Sopenharmony_ci        output.WriteEnum((int) Value);
653ffe3c632Sopenharmony_ci      }
654ffe3c632Sopenharmony_ci      values_.WriteTo(ref output, _repeated_values_codec);
655ffe3c632Sopenharmony_ci      packedValues_.WriteTo(ref output, _repeated_packedValues_codec);
656ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
657ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
658ffe3c632Sopenharmony_ci      }
659ffe3c632Sopenharmony_ci    }
660ffe3c632Sopenharmony_ci    #endif
661ffe3c632Sopenharmony_ci
662ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
663ffe3c632Sopenharmony_ci    public int CalculateSize() {
664ffe3c632Sopenharmony_ci      int size = 0;
665ffe3c632Sopenharmony_ci      if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) {
666ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
667ffe3c632Sopenharmony_ci      }
668ffe3c632Sopenharmony_ci      size += values_.CalculateSize(_repeated_values_codec);
669ffe3c632Sopenharmony_ci      size += packedValues_.CalculateSize(_repeated_packedValues_codec);
670ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
671ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
672ffe3c632Sopenharmony_ci      }
673ffe3c632Sopenharmony_ci      return size;
674ffe3c632Sopenharmony_ci    }
675ffe3c632Sopenharmony_ci
676ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
677ffe3c632Sopenharmony_ci    public void MergeFrom(NegativeEnumMessage other) {
678ffe3c632Sopenharmony_ci      if (other == null) {
679ffe3c632Sopenharmony_ci        return;
680ffe3c632Sopenharmony_ci      }
681ffe3c632Sopenharmony_ci      if (other.Value != global::UnitTest.Issues.TestProtos.NegativeEnum.Zero) {
682ffe3c632Sopenharmony_ci        Value = other.Value;
683ffe3c632Sopenharmony_ci      }
684ffe3c632Sopenharmony_ci      values_.Add(other.values_);
685ffe3c632Sopenharmony_ci      packedValues_.Add(other.packedValues_);
686ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
687ffe3c632Sopenharmony_ci    }
688ffe3c632Sopenharmony_ci
689ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
690ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
691ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
692ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
693ffe3c632Sopenharmony_ci    #else
694ffe3c632Sopenharmony_ci      uint tag;
695ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
696ffe3c632Sopenharmony_ci        switch(tag) {
697ffe3c632Sopenharmony_ci          default:
698ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
699ffe3c632Sopenharmony_ci            break;
700ffe3c632Sopenharmony_ci          case 8: {
701ffe3c632Sopenharmony_ci            Value = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum();
702ffe3c632Sopenharmony_ci            break;
703ffe3c632Sopenharmony_ci          }
704ffe3c632Sopenharmony_ci          case 18:
705ffe3c632Sopenharmony_ci          case 16: {
706ffe3c632Sopenharmony_ci            values_.AddEntriesFrom(input, _repeated_values_codec);
707ffe3c632Sopenharmony_ci            break;
708ffe3c632Sopenharmony_ci          }
709ffe3c632Sopenharmony_ci          case 26:
710ffe3c632Sopenharmony_ci          case 24: {
711ffe3c632Sopenharmony_ci            packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec);
712ffe3c632Sopenharmony_ci            break;
713ffe3c632Sopenharmony_ci          }
714ffe3c632Sopenharmony_ci        }
715ffe3c632Sopenharmony_ci      }
716ffe3c632Sopenharmony_ci    #endif
717ffe3c632Sopenharmony_ci    }
718ffe3c632Sopenharmony_ci
719ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
720ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
722ffe3c632Sopenharmony_ci      uint tag;
723ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
724ffe3c632Sopenharmony_ci        switch(tag) {
725ffe3c632Sopenharmony_ci          default:
726ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
727ffe3c632Sopenharmony_ci            break;
728ffe3c632Sopenharmony_ci          case 8: {
729ffe3c632Sopenharmony_ci            Value = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum();
730ffe3c632Sopenharmony_ci            break;
731ffe3c632Sopenharmony_ci          }
732ffe3c632Sopenharmony_ci          case 18:
733ffe3c632Sopenharmony_ci          case 16: {
734ffe3c632Sopenharmony_ci            values_.AddEntriesFrom(ref input, _repeated_values_codec);
735ffe3c632Sopenharmony_ci            break;
736ffe3c632Sopenharmony_ci          }
737ffe3c632Sopenharmony_ci          case 26:
738ffe3c632Sopenharmony_ci          case 24: {
739ffe3c632Sopenharmony_ci            packedValues_.AddEntriesFrom(ref input, _repeated_packedValues_codec);
740ffe3c632Sopenharmony_ci            break;
741ffe3c632Sopenharmony_ci          }
742ffe3c632Sopenharmony_ci        }
743ffe3c632Sopenharmony_ci      }
744ffe3c632Sopenharmony_ci    }
745ffe3c632Sopenharmony_ci    #endif
746ffe3c632Sopenharmony_ci
747ffe3c632Sopenharmony_ci  }
748ffe3c632Sopenharmony_ci
749ffe3c632Sopenharmony_ci  public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild>
750ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
751ffe3c632Sopenharmony_ci      , pb::IBufferMessage
752ffe3c632Sopenharmony_ci  #endif
753ffe3c632Sopenharmony_ci  {
754ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb::MessageParser<DeprecatedChild>(() => new DeprecatedChild());
755ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
756ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
757ffe3c632Sopenharmony_ci    public static pb::MessageParser<DeprecatedChild> Parser { get { return _parser; } }
758ffe3c632Sopenharmony_ci
759ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
760ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
761ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[2]; }
762ffe3c632Sopenharmony_ci    }
763ffe3c632Sopenharmony_ci
764ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
765ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
766ffe3c632Sopenharmony_ci      get { return Descriptor; }
767ffe3c632Sopenharmony_ci    }
768ffe3c632Sopenharmony_ci
769ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
770ffe3c632Sopenharmony_ci    public DeprecatedChild() {
771ffe3c632Sopenharmony_ci      OnConstruction();
772ffe3c632Sopenharmony_ci    }
773ffe3c632Sopenharmony_ci
774ffe3c632Sopenharmony_ci    partial void OnConstruction();
775ffe3c632Sopenharmony_ci
776ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
777ffe3c632Sopenharmony_ci    public DeprecatedChild(DeprecatedChild other) : this() {
778ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
779ffe3c632Sopenharmony_ci    }
780ffe3c632Sopenharmony_ci
781ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
782ffe3c632Sopenharmony_ci    public DeprecatedChild Clone() {
783ffe3c632Sopenharmony_ci      return new DeprecatedChild(this);
784ffe3c632Sopenharmony_ci    }
785ffe3c632Sopenharmony_ci
786ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
787ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
788ffe3c632Sopenharmony_ci      return Equals(other as DeprecatedChild);
789ffe3c632Sopenharmony_ci    }
790ffe3c632Sopenharmony_ci
791ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
792ffe3c632Sopenharmony_ci    public bool Equals(DeprecatedChild other) {
793ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
794ffe3c632Sopenharmony_ci        return false;
795ffe3c632Sopenharmony_ci      }
796ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
797ffe3c632Sopenharmony_ci        return true;
798ffe3c632Sopenharmony_ci      }
799ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
800ffe3c632Sopenharmony_ci    }
801ffe3c632Sopenharmony_ci
802ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
803ffe3c632Sopenharmony_ci    public override int GetHashCode() {
804ffe3c632Sopenharmony_ci      int hash = 1;
805ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
806ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
807ffe3c632Sopenharmony_ci      }
808ffe3c632Sopenharmony_ci      return hash;
809ffe3c632Sopenharmony_ci    }
810ffe3c632Sopenharmony_ci
811ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
812ffe3c632Sopenharmony_ci    public override string ToString() {
813ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
814ffe3c632Sopenharmony_ci    }
815ffe3c632Sopenharmony_ci
816ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
817ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
818ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
819ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
820ffe3c632Sopenharmony_ci    #else
821ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
822ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
823ffe3c632Sopenharmony_ci      }
824ffe3c632Sopenharmony_ci    #endif
825ffe3c632Sopenharmony_ci    }
826ffe3c632Sopenharmony_ci
827ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
828ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
830ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
831ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
832ffe3c632Sopenharmony_ci      }
833ffe3c632Sopenharmony_ci    }
834ffe3c632Sopenharmony_ci    #endif
835ffe3c632Sopenharmony_ci
836ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837ffe3c632Sopenharmony_ci    public int CalculateSize() {
838ffe3c632Sopenharmony_ci      int size = 0;
839ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
840ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
841ffe3c632Sopenharmony_ci      }
842ffe3c632Sopenharmony_ci      return size;
843ffe3c632Sopenharmony_ci    }
844ffe3c632Sopenharmony_ci
845ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
846ffe3c632Sopenharmony_ci    public void MergeFrom(DeprecatedChild other) {
847ffe3c632Sopenharmony_ci      if (other == null) {
848ffe3c632Sopenharmony_ci        return;
849ffe3c632Sopenharmony_ci      }
850ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
851ffe3c632Sopenharmony_ci    }
852ffe3c632Sopenharmony_ci
853ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
854ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
855ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
856ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
857ffe3c632Sopenharmony_ci    #else
858ffe3c632Sopenharmony_ci      uint tag;
859ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
860ffe3c632Sopenharmony_ci        switch(tag) {
861ffe3c632Sopenharmony_ci          default:
862ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
863ffe3c632Sopenharmony_ci            break;
864ffe3c632Sopenharmony_ci        }
865ffe3c632Sopenharmony_ci      }
866ffe3c632Sopenharmony_ci    #endif
867ffe3c632Sopenharmony_ci    }
868ffe3c632Sopenharmony_ci
869ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
870ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
871ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
872ffe3c632Sopenharmony_ci      uint tag;
873ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
874ffe3c632Sopenharmony_ci        switch(tag) {
875ffe3c632Sopenharmony_ci          default:
876ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
877ffe3c632Sopenharmony_ci            break;
878ffe3c632Sopenharmony_ci        }
879ffe3c632Sopenharmony_ci      }
880ffe3c632Sopenharmony_ci    }
881ffe3c632Sopenharmony_ci    #endif
882ffe3c632Sopenharmony_ci
883ffe3c632Sopenharmony_ci  }
884ffe3c632Sopenharmony_ci
885ffe3c632Sopenharmony_ci  public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedFieldsMessage>
886ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
887ffe3c632Sopenharmony_ci      , pb::IBufferMessage
888ffe3c632Sopenharmony_ci  #endif
889ffe3c632Sopenharmony_ci  {
890ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser = new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessage());
891ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
892ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
893ffe3c632Sopenharmony_ci    public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { return _parser; } }
894ffe3c632Sopenharmony_ci
895ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
896ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
897ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[3]; }
898ffe3c632Sopenharmony_ci    }
899ffe3c632Sopenharmony_ci
900ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
901ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
902ffe3c632Sopenharmony_ci      get { return Descriptor; }
903ffe3c632Sopenharmony_ci    }
904ffe3c632Sopenharmony_ci
905ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
906ffe3c632Sopenharmony_ci    public DeprecatedFieldsMessage() {
907ffe3c632Sopenharmony_ci      OnConstruction();
908ffe3c632Sopenharmony_ci    }
909ffe3c632Sopenharmony_ci
910ffe3c632Sopenharmony_ci    partial void OnConstruction();
911ffe3c632Sopenharmony_ci
912ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
913ffe3c632Sopenharmony_ci    public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
914ffe3c632Sopenharmony_ci      primitiveValue_ = other.primitiveValue_;
915ffe3c632Sopenharmony_ci      primitiveArray_ = other.primitiveArray_.Clone();
916ffe3c632Sopenharmony_ci      messageValue_ = other.messageValue_ != null ? other.messageValue_.Clone() : null;
917ffe3c632Sopenharmony_ci      messageArray_ = other.messageArray_.Clone();
918ffe3c632Sopenharmony_ci      enumValue_ = other.enumValue_;
919ffe3c632Sopenharmony_ci      enumArray_ = other.enumArray_.Clone();
920ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
921ffe3c632Sopenharmony_ci    }
922ffe3c632Sopenharmony_ci
923ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
924ffe3c632Sopenharmony_ci    public DeprecatedFieldsMessage Clone() {
925ffe3c632Sopenharmony_ci      return new DeprecatedFieldsMessage(this);
926ffe3c632Sopenharmony_ci    }
927ffe3c632Sopenharmony_ci
928ffe3c632Sopenharmony_ci    /// <summary>Field number for the "PrimitiveValue" field.</summary>
929ffe3c632Sopenharmony_ci    public const int PrimitiveValueFieldNumber = 1;
930ffe3c632Sopenharmony_ci    private int primitiveValue_;
931ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
932ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933ffe3c632Sopenharmony_ci    public int PrimitiveValue {
934ffe3c632Sopenharmony_ci      get { return primitiveValue_; }
935ffe3c632Sopenharmony_ci      set {
936ffe3c632Sopenharmony_ci        primitiveValue_ = value;
937ffe3c632Sopenharmony_ci      }
938ffe3c632Sopenharmony_ci    }
939ffe3c632Sopenharmony_ci
940ffe3c632Sopenharmony_ci    /// <summary>Field number for the "PrimitiveArray" field.</summary>
941ffe3c632Sopenharmony_ci    public const int PrimitiveArrayFieldNumber = 2;
942ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec
943ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForInt32(18);
944ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>();
945ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
946ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
947ffe3c632Sopenharmony_ci    public pbc::RepeatedField<int> PrimitiveArray {
948ffe3c632Sopenharmony_ci      get { return primitiveArray_; }
949ffe3c632Sopenharmony_ci    }
950ffe3c632Sopenharmony_ci
951ffe3c632Sopenharmony_ci    /// <summary>Field number for the "MessageValue" field.</summary>
952ffe3c632Sopenharmony_ci    public const int MessageValueFieldNumber = 3;
953ffe3c632Sopenharmony_ci    private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_;
954ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
955ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
956ffe3c632Sopenharmony_ci    public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
957ffe3c632Sopenharmony_ci      get { return messageValue_; }
958ffe3c632Sopenharmony_ci      set {
959ffe3c632Sopenharmony_ci        messageValue_ = value;
960ffe3c632Sopenharmony_ci      }
961ffe3c632Sopenharmony_ci    }
962ffe3c632Sopenharmony_ci
963ffe3c632Sopenharmony_ci    /// <summary>Field number for the "MessageArray" field.</summary>
964ffe3c632Sopenharmony_ci    public const int MessageArrayFieldNumber = 4;
965ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedChild> _repeated_messageArray_codec
966ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser);
967ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild>();
968ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
969ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
970ffe3c632Sopenharmony_ci    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray {
971ffe3c632Sopenharmony_ci      get { return messageArray_; }
972ffe3c632Sopenharmony_ci    }
973ffe3c632Sopenharmony_ci
974ffe3c632Sopenharmony_ci    /// <summary>Field number for the "EnumValue" field.</summary>
975ffe3c632Sopenharmony_ci    public const int EnumValueFieldNumber = 5;
976ffe3c632Sopenharmony_ci    private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero;
977ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
978ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
979ffe3c632Sopenharmony_ci    public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
980ffe3c632Sopenharmony_ci      get { return enumValue_; }
981ffe3c632Sopenharmony_ci      set {
982ffe3c632Sopenharmony_ci        enumValue_ = value;
983ffe3c632Sopenharmony_ci      }
984ffe3c632Sopenharmony_ci    }
985ffe3c632Sopenharmony_ci
986ffe3c632Sopenharmony_ci    /// <summary>Field number for the "EnumArray" field.</summary>
987ffe3c632Sopenharmony_ci    public const int EnumArrayFieldNumber = 6;
988ffe3c632Sopenharmony_ci    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedEnum> _repeated_enumArray_codec
989ffe3c632Sopenharmony_ci        = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x);
990ffe3c632Sopenharmony_ci    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>();
991ffe3c632Sopenharmony_ci    [global::System.ObsoleteAttribute]
992ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993ffe3c632Sopenharmony_ci    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray {
994ffe3c632Sopenharmony_ci      get { return enumArray_; }
995ffe3c632Sopenharmony_ci    }
996ffe3c632Sopenharmony_ci
997ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
998ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
999ffe3c632Sopenharmony_ci      return Equals(other as DeprecatedFieldsMessage);
1000ffe3c632Sopenharmony_ci    }
1001ffe3c632Sopenharmony_ci
1002ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1003ffe3c632Sopenharmony_ci    public bool Equals(DeprecatedFieldsMessage other) {
1004ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1005ffe3c632Sopenharmony_ci        return false;
1006ffe3c632Sopenharmony_ci      }
1007ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1008ffe3c632Sopenharmony_ci        return true;
1009ffe3c632Sopenharmony_ci      }
1010ffe3c632Sopenharmony_ci      if (PrimitiveValue != other.PrimitiveValue) return false;
1011ffe3c632Sopenharmony_ci      if(!primitiveArray_.Equals(other.primitiveArray_)) return false;
1012ffe3c632Sopenharmony_ci      if (!object.Equals(MessageValue, other.MessageValue)) return false;
1013ffe3c632Sopenharmony_ci      if(!messageArray_.Equals(other.messageArray_)) return false;
1014ffe3c632Sopenharmony_ci      if (EnumValue != other.EnumValue) return false;
1015ffe3c632Sopenharmony_ci      if(!enumArray_.Equals(other.enumArray_)) return false;
1016ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1017ffe3c632Sopenharmony_ci    }
1018ffe3c632Sopenharmony_ci
1019ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1020ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1021ffe3c632Sopenharmony_ci      int hash = 1;
1022ffe3c632Sopenharmony_ci      if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode();
1023ffe3c632Sopenharmony_ci      hash ^= primitiveArray_.GetHashCode();
1024ffe3c632Sopenharmony_ci      if (messageValue_ != null) hash ^= MessageValue.GetHashCode();
1025ffe3c632Sopenharmony_ci      hash ^= messageArray_.GetHashCode();
1026ffe3c632Sopenharmony_ci      if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero) hash ^= EnumValue.GetHashCode();
1027ffe3c632Sopenharmony_ci      hash ^= enumArray_.GetHashCode();
1028ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1029ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1030ffe3c632Sopenharmony_ci      }
1031ffe3c632Sopenharmony_ci      return hash;
1032ffe3c632Sopenharmony_ci    }
1033ffe3c632Sopenharmony_ci
1034ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1035ffe3c632Sopenharmony_ci    public override string ToString() {
1036ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1037ffe3c632Sopenharmony_ci    }
1038ffe3c632Sopenharmony_ci
1039ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1040ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1041ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1042ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1043ffe3c632Sopenharmony_ci    #else
1044ffe3c632Sopenharmony_ci      if (PrimitiveValue != 0) {
1045ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1046ffe3c632Sopenharmony_ci        output.WriteInt32(PrimitiveValue);
1047ffe3c632Sopenharmony_ci      }
1048ffe3c632Sopenharmony_ci      primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec);
1049ffe3c632Sopenharmony_ci      if (messageValue_ != null) {
1050ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
1051ffe3c632Sopenharmony_ci        output.WriteMessage(MessageValue);
1052ffe3c632Sopenharmony_ci      }
1053ffe3c632Sopenharmony_ci      messageArray_.WriteTo(output, _repeated_messageArray_codec);
1054ffe3c632Sopenharmony_ci      if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero) {
1055ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
1056ffe3c632Sopenharmony_ci        output.WriteEnum((int) EnumValue);
1057ffe3c632Sopenharmony_ci      }
1058ffe3c632Sopenharmony_ci      enumArray_.WriteTo(output, _repeated_enumArray_codec);
1059ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1060ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
1061ffe3c632Sopenharmony_ci      }
1062ffe3c632Sopenharmony_ci    #endif
1063ffe3c632Sopenharmony_ci    }
1064ffe3c632Sopenharmony_ci
1065ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1066ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1067ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1068ffe3c632Sopenharmony_ci      if (PrimitiveValue != 0) {
1069ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1070ffe3c632Sopenharmony_ci        output.WriteInt32(PrimitiveValue);
1071ffe3c632Sopenharmony_ci      }
1072ffe3c632Sopenharmony_ci      primitiveArray_.WriteTo(ref output, _repeated_primitiveArray_codec);
1073ffe3c632Sopenharmony_ci      if (messageValue_ != null) {
1074ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
1075ffe3c632Sopenharmony_ci        output.WriteMessage(MessageValue);
1076ffe3c632Sopenharmony_ci      }
1077ffe3c632Sopenharmony_ci      messageArray_.WriteTo(ref output, _repeated_messageArray_codec);
1078ffe3c632Sopenharmony_ci      if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero) {
1079ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
1080ffe3c632Sopenharmony_ci        output.WriteEnum((int) EnumValue);
1081ffe3c632Sopenharmony_ci      }
1082ffe3c632Sopenharmony_ci      enumArray_.WriteTo(ref output, _repeated_enumArray_codec);
1083ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1084ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
1085ffe3c632Sopenharmony_ci      }
1086ffe3c632Sopenharmony_ci    }
1087ffe3c632Sopenharmony_ci    #endif
1088ffe3c632Sopenharmony_ci
1089ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1090ffe3c632Sopenharmony_ci    public int CalculateSize() {
1091ffe3c632Sopenharmony_ci      int size = 0;
1092ffe3c632Sopenharmony_ci      if (PrimitiveValue != 0) {
1093ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue);
1094ffe3c632Sopenharmony_ci      }
1095ffe3c632Sopenharmony_ci      size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec);
1096ffe3c632Sopenharmony_ci      if (messageValue_ != null) {
1097ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue);
1098ffe3c632Sopenharmony_ci      }
1099ffe3c632Sopenharmony_ci      size += messageArray_.CalculateSize(_repeated_messageArray_codec);
1100ffe3c632Sopenharmony_ci      if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero) {
1101ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue);
1102ffe3c632Sopenharmony_ci      }
1103ffe3c632Sopenharmony_ci      size += enumArray_.CalculateSize(_repeated_enumArray_codec);
1104ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1105ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
1106ffe3c632Sopenharmony_ci      }
1107ffe3c632Sopenharmony_ci      return size;
1108ffe3c632Sopenharmony_ci    }
1109ffe3c632Sopenharmony_ci
1110ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1111ffe3c632Sopenharmony_ci    public void MergeFrom(DeprecatedFieldsMessage other) {
1112ffe3c632Sopenharmony_ci      if (other == null) {
1113ffe3c632Sopenharmony_ci        return;
1114ffe3c632Sopenharmony_ci      }
1115ffe3c632Sopenharmony_ci      if (other.PrimitiveValue != 0) {
1116ffe3c632Sopenharmony_ci        PrimitiveValue = other.PrimitiveValue;
1117ffe3c632Sopenharmony_ci      }
1118ffe3c632Sopenharmony_ci      primitiveArray_.Add(other.primitiveArray_);
1119ffe3c632Sopenharmony_ci      if (other.messageValue_ != null) {
1120ffe3c632Sopenharmony_ci        if (messageValue_ == null) {
1121ffe3c632Sopenharmony_ci          MessageValue = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
1122ffe3c632Sopenharmony_ci        }
1123ffe3c632Sopenharmony_ci        MessageValue.MergeFrom(other.MessageValue);
1124ffe3c632Sopenharmony_ci      }
1125ffe3c632Sopenharmony_ci      messageArray_.Add(other.messageArray_);
1126ffe3c632Sopenharmony_ci      if (other.EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DeprecatedZero) {
1127ffe3c632Sopenharmony_ci        EnumValue = other.EnumValue;
1128ffe3c632Sopenharmony_ci      }
1129ffe3c632Sopenharmony_ci      enumArray_.Add(other.enumArray_);
1130ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1131ffe3c632Sopenharmony_ci    }
1132ffe3c632Sopenharmony_ci
1133ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1134ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
1135ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1136ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
1137ffe3c632Sopenharmony_ci    #else
1138ffe3c632Sopenharmony_ci      uint tag;
1139ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1140ffe3c632Sopenharmony_ci        switch(tag) {
1141ffe3c632Sopenharmony_ci          default:
1142ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1143ffe3c632Sopenharmony_ci            break;
1144ffe3c632Sopenharmony_ci          case 8: {
1145ffe3c632Sopenharmony_ci            PrimitiveValue = input.ReadInt32();
1146ffe3c632Sopenharmony_ci            break;
1147ffe3c632Sopenharmony_ci          }
1148ffe3c632Sopenharmony_ci          case 18:
1149ffe3c632Sopenharmony_ci          case 16: {
1150ffe3c632Sopenharmony_ci            primitiveArray_.AddEntriesFrom(input, _repeated_primitiveArray_codec);
1151ffe3c632Sopenharmony_ci            break;
1152ffe3c632Sopenharmony_ci          }
1153ffe3c632Sopenharmony_ci          case 26: {
1154ffe3c632Sopenharmony_ci            if (messageValue_ == null) {
1155ffe3c632Sopenharmony_ci              MessageValue = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
1156ffe3c632Sopenharmony_ci            }
1157ffe3c632Sopenharmony_ci            input.ReadMessage(MessageValue);
1158ffe3c632Sopenharmony_ci            break;
1159ffe3c632Sopenharmony_ci          }
1160ffe3c632Sopenharmony_ci          case 34: {
1161ffe3c632Sopenharmony_ci            messageArray_.AddEntriesFrom(input, _repeated_messageArray_codec);
1162ffe3c632Sopenharmony_ci            break;
1163ffe3c632Sopenharmony_ci          }
1164ffe3c632Sopenharmony_ci          case 40: {
1165ffe3c632Sopenharmony_ci            EnumValue = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum();
1166ffe3c632Sopenharmony_ci            break;
1167ffe3c632Sopenharmony_ci          }
1168ffe3c632Sopenharmony_ci          case 50:
1169ffe3c632Sopenharmony_ci          case 48: {
1170ffe3c632Sopenharmony_ci            enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec);
1171ffe3c632Sopenharmony_ci            break;
1172ffe3c632Sopenharmony_ci          }
1173ffe3c632Sopenharmony_ci        }
1174ffe3c632Sopenharmony_ci      }
1175ffe3c632Sopenharmony_ci    #endif
1176ffe3c632Sopenharmony_ci    }
1177ffe3c632Sopenharmony_ci
1178ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1179ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1180ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1181ffe3c632Sopenharmony_ci      uint tag;
1182ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1183ffe3c632Sopenharmony_ci        switch(tag) {
1184ffe3c632Sopenharmony_ci          default:
1185ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1186ffe3c632Sopenharmony_ci            break;
1187ffe3c632Sopenharmony_ci          case 8: {
1188ffe3c632Sopenharmony_ci            PrimitiveValue = input.ReadInt32();
1189ffe3c632Sopenharmony_ci            break;
1190ffe3c632Sopenharmony_ci          }
1191ffe3c632Sopenharmony_ci          case 18:
1192ffe3c632Sopenharmony_ci          case 16: {
1193ffe3c632Sopenharmony_ci            primitiveArray_.AddEntriesFrom(ref input, _repeated_primitiveArray_codec);
1194ffe3c632Sopenharmony_ci            break;
1195ffe3c632Sopenharmony_ci          }
1196ffe3c632Sopenharmony_ci          case 26: {
1197ffe3c632Sopenharmony_ci            if (messageValue_ == null) {
1198ffe3c632Sopenharmony_ci              MessageValue = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
1199ffe3c632Sopenharmony_ci            }
1200ffe3c632Sopenharmony_ci            input.ReadMessage(MessageValue);
1201ffe3c632Sopenharmony_ci            break;
1202ffe3c632Sopenharmony_ci          }
1203ffe3c632Sopenharmony_ci          case 34: {
1204ffe3c632Sopenharmony_ci            messageArray_.AddEntriesFrom(ref input, _repeated_messageArray_codec);
1205ffe3c632Sopenharmony_ci            break;
1206ffe3c632Sopenharmony_ci          }
1207ffe3c632Sopenharmony_ci          case 40: {
1208ffe3c632Sopenharmony_ci            EnumValue = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum();
1209ffe3c632Sopenharmony_ci            break;
1210ffe3c632Sopenharmony_ci          }
1211ffe3c632Sopenharmony_ci          case 50:
1212ffe3c632Sopenharmony_ci          case 48: {
1213ffe3c632Sopenharmony_ci            enumArray_.AddEntriesFrom(ref input, _repeated_enumArray_codec);
1214ffe3c632Sopenharmony_ci            break;
1215ffe3c632Sopenharmony_ci          }
1216ffe3c632Sopenharmony_ci        }
1217ffe3c632Sopenharmony_ci      }
1218ffe3c632Sopenharmony_ci    }
1219ffe3c632Sopenharmony_ci    #endif
1220ffe3c632Sopenharmony_ci
1221ffe3c632Sopenharmony_ci  }
1222ffe3c632Sopenharmony_ci
1223ffe3c632Sopenharmony_ci  /// <summary>
1224ffe3c632Sopenharmony_ci  /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=45
1225ffe3c632Sopenharmony_ci  /// </summary>
1226ffe3c632Sopenharmony_ci  public sealed partial class ItemField : pb::IMessage<ItemField>
1227ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1228ffe3c632Sopenharmony_ci      , pb::IBufferMessage
1229ffe3c632Sopenharmony_ci  #endif
1230ffe3c632Sopenharmony_ci  {
1231ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<ItemField> _parser = new pb::MessageParser<ItemField>(() => new ItemField());
1232ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
1233ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1234ffe3c632Sopenharmony_ci    public static pb::MessageParser<ItemField> Parser { get { return _parser; } }
1235ffe3c632Sopenharmony_ci
1236ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1237ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
1238ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[4]; }
1239ffe3c632Sopenharmony_ci    }
1240ffe3c632Sopenharmony_ci
1241ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1242ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
1243ffe3c632Sopenharmony_ci      get { return Descriptor; }
1244ffe3c632Sopenharmony_ci    }
1245ffe3c632Sopenharmony_ci
1246ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1247ffe3c632Sopenharmony_ci    public ItemField() {
1248ffe3c632Sopenharmony_ci      OnConstruction();
1249ffe3c632Sopenharmony_ci    }
1250ffe3c632Sopenharmony_ci
1251ffe3c632Sopenharmony_ci    partial void OnConstruction();
1252ffe3c632Sopenharmony_ci
1253ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1254ffe3c632Sopenharmony_ci    public ItemField(ItemField other) : this() {
1255ffe3c632Sopenharmony_ci      item_ = other.item_;
1256ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1257ffe3c632Sopenharmony_ci    }
1258ffe3c632Sopenharmony_ci
1259ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1260ffe3c632Sopenharmony_ci    public ItemField Clone() {
1261ffe3c632Sopenharmony_ci      return new ItemField(this);
1262ffe3c632Sopenharmony_ci    }
1263ffe3c632Sopenharmony_ci
1264ffe3c632Sopenharmony_ci    /// <summary>Field number for the "item" field.</summary>
1265ffe3c632Sopenharmony_ci    public const int ItemFieldNumber = 1;
1266ffe3c632Sopenharmony_ci    private int item_;
1267ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1268ffe3c632Sopenharmony_ci    public int Item {
1269ffe3c632Sopenharmony_ci      get { return item_; }
1270ffe3c632Sopenharmony_ci      set {
1271ffe3c632Sopenharmony_ci        item_ = value;
1272ffe3c632Sopenharmony_ci      }
1273ffe3c632Sopenharmony_ci    }
1274ffe3c632Sopenharmony_ci
1275ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1276ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
1277ffe3c632Sopenharmony_ci      return Equals(other as ItemField);
1278ffe3c632Sopenharmony_ci    }
1279ffe3c632Sopenharmony_ci
1280ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281ffe3c632Sopenharmony_ci    public bool Equals(ItemField other) {
1282ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1283ffe3c632Sopenharmony_ci        return false;
1284ffe3c632Sopenharmony_ci      }
1285ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1286ffe3c632Sopenharmony_ci        return true;
1287ffe3c632Sopenharmony_ci      }
1288ffe3c632Sopenharmony_ci      if (Item != other.Item) return false;
1289ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1290ffe3c632Sopenharmony_ci    }
1291ffe3c632Sopenharmony_ci
1292ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1293ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1294ffe3c632Sopenharmony_ci      int hash = 1;
1295ffe3c632Sopenharmony_ci      if (Item != 0) hash ^= Item.GetHashCode();
1296ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1297ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1298ffe3c632Sopenharmony_ci      }
1299ffe3c632Sopenharmony_ci      return hash;
1300ffe3c632Sopenharmony_ci    }
1301ffe3c632Sopenharmony_ci
1302ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1303ffe3c632Sopenharmony_ci    public override string ToString() {
1304ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1305ffe3c632Sopenharmony_ci    }
1306ffe3c632Sopenharmony_ci
1307ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1308ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1309ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1310ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1311ffe3c632Sopenharmony_ci    #else
1312ffe3c632Sopenharmony_ci      if (Item != 0) {
1313ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1314ffe3c632Sopenharmony_ci        output.WriteInt32(Item);
1315ffe3c632Sopenharmony_ci      }
1316ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1317ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
1318ffe3c632Sopenharmony_ci      }
1319ffe3c632Sopenharmony_ci    #endif
1320ffe3c632Sopenharmony_ci    }
1321ffe3c632Sopenharmony_ci
1322ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1323ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1324ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1325ffe3c632Sopenharmony_ci      if (Item != 0) {
1326ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1327ffe3c632Sopenharmony_ci        output.WriteInt32(Item);
1328ffe3c632Sopenharmony_ci      }
1329ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1330ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
1331ffe3c632Sopenharmony_ci      }
1332ffe3c632Sopenharmony_ci    }
1333ffe3c632Sopenharmony_ci    #endif
1334ffe3c632Sopenharmony_ci
1335ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1336ffe3c632Sopenharmony_ci    public int CalculateSize() {
1337ffe3c632Sopenharmony_ci      int size = 0;
1338ffe3c632Sopenharmony_ci      if (Item != 0) {
1339ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item);
1340ffe3c632Sopenharmony_ci      }
1341ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1342ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
1343ffe3c632Sopenharmony_ci      }
1344ffe3c632Sopenharmony_ci      return size;
1345ffe3c632Sopenharmony_ci    }
1346ffe3c632Sopenharmony_ci
1347ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1348ffe3c632Sopenharmony_ci    public void MergeFrom(ItemField other) {
1349ffe3c632Sopenharmony_ci      if (other == null) {
1350ffe3c632Sopenharmony_ci        return;
1351ffe3c632Sopenharmony_ci      }
1352ffe3c632Sopenharmony_ci      if (other.Item != 0) {
1353ffe3c632Sopenharmony_ci        Item = other.Item;
1354ffe3c632Sopenharmony_ci      }
1355ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1356ffe3c632Sopenharmony_ci    }
1357ffe3c632Sopenharmony_ci
1358ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1359ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
1360ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1361ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
1362ffe3c632Sopenharmony_ci    #else
1363ffe3c632Sopenharmony_ci      uint tag;
1364ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1365ffe3c632Sopenharmony_ci        switch(tag) {
1366ffe3c632Sopenharmony_ci          default:
1367ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1368ffe3c632Sopenharmony_ci            break;
1369ffe3c632Sopenharmony_ci          case 8: {
1370ffe3c632Sopenharmony_ci            Item = input.ReadInt32();
1371ffe3c632Sopenharmony_ci            break;
1372ffe3c632Sopenharmony_ci          }
1373ffe3c632Sopenharmony_ci        }
1374ffe3c632Sopenharmony_ci      }
1375ffe3c632Sopenharmony_ci    #endif
1376ffe3c632Sopenharmony_ci    }
1377ffe3c632Sopenharmony_ci
1378ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1379ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1381ffe3c632Sopenharmony_ci      uint tag;
1382ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1383ffe3c632Sopenharmony_ci        switch(tag) {
1384ffe3c632Sopenharmony_ci          default:
1385ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1386ffe3c632Sopenharmony_ci            break;
1387ffe3c632Sopenharmony_ci          case 8: {
1388ffe3c632Sopenharmony_ci            Item = input.ReadInt32();
1389ffe3c632Sopenharmony_ci            break;
1390ffe3c632Sopenharmony_ci          }
1391ffe3c632Sopenharmony_ci        }
1392ffe3c632Sopenharmony_ci      }
1393ffe3c632Sopenharmony_ci    }
1394ffe3c632Sopenharmony_ci    #endif
1395ffe3c632Sopenharmony_ci
1396ffe3c632Sopenharmony_ci  }
1397ffe3c632Sopenharmony_ci
1398ffe3c632Sopenharmony_ci  public sealed partial class ReservedNames : pb::IMessage<ReservedNames>
1399ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1400ffe3c632Sopenharmony_ci      , pb::IBufferMessage
1401ffe3c632Sopenharmony_ci  #endif
1402ffe3c632Sopenharmony_ci  {
1403ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<ReservedNames> _parser = new pb::MessageParser<ReservedNames>(() => new ReservedNames());
1404ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
1405ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1406ffe3c632Sopenharmony_ci    public static pb::MessageParser<ReservedNames> Parser { get { return _parser; } }
1407ffe3c632Sopenharmony_ci
1408ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
1410ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[5]; }
1411ffe3c632Sopenharmony_ci    }
1412ffe3c632Sopenharmony_ci
1413ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1414ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
1415ffe3c632Sopenharmony_ci      get { return Descriptor; }
1416ffe3c632Sopenharmony_ci    }
1417ffe3c632Sopenharmony_ci
1418ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1419ffe3c632Sopenharmony_ci    public ReservedNames() {
1420ffe3c632Sopenharmony_ci      OnConstruction();
1421ffe3c632Sopenharmony_ci    }
1422ffe3c632Sopenharmony_ci
1423ffe3c632Sopenharmony_ci    partial void OnConstruction();
1424ffe3c632Sopenharmony_ci
1425ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1426ffe3c632Sopenharmony_ci    public ReservedNames(ReservedNames other) : this() {
1427ffe3c632Sopenharmony_ci      types_ = other.types_;
1428ffe3c632Sopenharmony_ci      descriptor_ = other.descriptor_;
1429ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1430ffe3c632Sopenharmony_ci    }
1431ffe3c632Sopenharmony_ci
1432ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1433ffe3c632Sopenharmony_ci    public ReservedNames Clone() {
1434ffe3c632Sopenharmony_ci      return new ReservedNames(this);
1435ffe3c632Sopenharmony_ci    }
1436ffe3c632Sopenharmony_ci
1437ffe3c632Sopenharmony_ci    /// <summary>Field number for the "types" field.</summary>
1438ffe3c632Sopenharmony_ci    public const int Types_FieldNumber = 1;
1439ffe3c632Sopenharmony_ci    private int types_;
1440ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441ffe3c632Sopenharmony_ci    public int Types_ {
1442ffe3c632Sopenharmony_ci      get { return types_; }
1443ffe3c632Sopenharmony_ci      set {
1444ffe3c632Sopenharmony_ci        types_ = value;
1445ffe3c632Sopenharmony_ci      }
1446ffe3c632Sopenharmony_ci    }
1447ffe3c632Sopenharmony_ci
1448ffe3c632Sopenharmony_ci    /// <summary>Field number for the "descriptor" field.</summary>
1449ffe3c632Sopenharmony_ci    public const int Descriptor_FieldNumber = 2;
1450ffe3c632Sopenharmony_ci    private int descriptor_;
1451ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1452ffe3c632Sopenharmony_ci    public int Descriptor_ {
1453ffe3c632Sopenharmony_ci      get { return descriptor_; }
1454ffe3c632Sopenharmony_ci      set {
1455ffe3c632Sopenharmony_ci        descriptor_ = value;
1456ffe3c632Sopenharmony_ci      }
1457ffe3c632Sopenharmony_ci    }
1458ffe3c632Sopenharmony_ci
1459ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1460ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
1461ffe3c632Sopenharmony_ci      return Equals(other as ReservedNames);
1462ffe3c632Sopenharmony_ci    }
1463ffe3c632Sopenharmony_ci
1464ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1465ffe3c632Sopenharmony_ci    public bool Equals(ReservedNames other) {
1466ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1467ffe3c632Sopenharmony_ci        return false;
1468ffe3c632Sopenharmony_ci      }
1469ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1470ffe3c632Sopenharmony_ci        return true;
1471ffe3c632Sopenharmony_ci      }
1472ffe3c632Sopenharmony_ci      if (Types_ != other.Types_) return false;
1473ffe3c632Sopenharmony_ci      if (Descriptor_ != other.Descriptor_) return false;
1474ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1475ffe3c632Sopenharmony_ci    }
1476ffe3c632Sopenharmony_ci
1477ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1478ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1479ffe3c632Sopenharmony_ci      int hash = 1;
1480ffe3c632Sopenharmony_ci      if (Types_ != 0) hash ^= Types_.GetHashCode();
1481ffe3c632Sopenharmony_ci      if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode();
1482ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1483ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1484ffe3c632Sopenharmony_ci      }
1485ffe3c632Sopenharmony_ci      return hash;
1486ffe3c632Sopenharmony_ci    }
1487ffe3c632Sopenharmony_ci
1488ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1489ffe3c632Sopenharmony_ci    public override string ToString() {
1490ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1491ffe3c632Sopenharmony_ci    }
1492ffe3c632Sopenharmony_ci
1493ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1494ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1495ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1496ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1497ffe3c632Sopenharmony_ci    #else
1498ffe3c632Sopenharmony_ci      if (Types_ != 0) {
1499ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1500ffe3c632Sopenharmony_ci        output.WriteInt32(Types_);
1501ffe3c632Sopenharmony_ci      }
1502ffe3c632Sopenharmony_ci      if (Descriptor_ != 0) {
1503ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
1504ffe3c632Sopenharmony_ci        output.WriteInt32(Descriptor_);
1505ffe3c632Sopenharmony_ci      }
1506ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1507ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
1508ffe3c632Sopenharmony_ci      }
1509ffe3c632Sopenharmony_ci    #endif
1510ffe3c632Sopenharmony_ci    }
1511ffe3c632Sopenharmony_ci
1512ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1513ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1514ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1515ffe3c632Sopenharmony_ci      if (Types_ != 0) {
1516ffe3c632Sopenharmony_ci        output.WriteRawTag(8);
1517ffe3c632Sopenharmony_ci        output.WriteInt32(Types_);
1518ffe3c632Sopenharmony_ci      }
1519ffe3c632Sopenharmony_ci      if (Descriptor_ != 0) {
1520ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
1521ffe3c632Sopenharmony_ci        output.WriteInt32(Descriptor_);
1522ffe3c632Sopenharmony_ci      }
1523ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1524ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
1525ffe3c632Sopenharmony_ci      }
1526ffe3c632Sopenharmony_ci    }
1527ffe3c632Sopenharmony_ci    #endif
1528ffe3c632Sopenharmony_ci
1529ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1530ffe3c632Sopenharmony_ci    public int CalculateSize() {
1531ffe3c632Sopenharmony_ci      int size = 0;
1532ffe3c632Sopenharmony_ci      if (Types_ != 0) {
1533ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_);
1534ffe3c632Sopenharmony_ci      }
1535ffe3c632Sopenharmony_ci      if (Descriptor_ != 0) {
1536ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_);
1537ffe3c632Sopenharmony_ci      }
1538ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1539ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
1540ffe3c632Sopenharmony_ci      }
1541ffe3c632Sopenharmony_ci      return size;
1542ffe3c632Sopenharmony_ci    }
1543ffe3c632Sopenharmony_ci
1544ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1545ffe3c632Sopenharmony_ci    public void MergeFrom(ReservedNames other) {
1546ffe3c632Sopenharmony_ci      if (other == null) {
1547ffe3c632Sopenharmony_ci        return;
1548ffe3c632Sopenharmony_ci      }
1549ffe3c632Sopenharmony_ci      if (other.Types_ != 0) {
1550ffe3c632Sopenharmony_ci        Types_ = other.Types_;
1551ffe3c632Sopenharmony_ci      }
1552ffe3c632Sopenharmony_ci      if (other.Descriptor_ != 0) {
1553ffe3c632Sopenharmony_ci        Descriptor_ = other.Descriptor_;
1554ffe3c632Sopenharmony_ci      }
1555ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1556ffe3c632Sopenharmony_ci    }
1557ffe3c632Sopenharmony_ci
1558ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1559ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
1560ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1561ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
1562ffe3c632Sopenharmony_ci    #else
1563ffe3c632Sopenharmony_ci      uint tag;
1564ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1565ffe3c632Sopenharmony_ci        switch(tag) {
1566ffe3c632Sopenharmony_ci          default:
1567ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1568ffe3c632Sopenharmony_ci            break;
1569ffe3c632Sopenharmony_ci          case 8: {
1570ffe3c632Sopenharmony_ci            Types_ = input.ReadInt32();
1571ffe3c632Sopenharmony_ci            break;
1572ffe3c632Sopenharmony_ci          }
1573ffe3c632Sopenharmony_ci          case 16: {
1574ffe3c632Sopenharmony_ci            Descriptor_ = input.ReadInt32();
1575ffe3c632Sopenharmony_ci            break;
1576ffe3c632Sopenharmony_ci          }
1577ffe3c632Sopenharmony_ci        }
1578ffe3c632Sopenharmony_ci      }
1579ffe3c632Sopenharmony_ci    #endif
1580ffe3c632Sopenharmony_ci    }
1581ffe3c632Sopenharmony_ci
1582ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1583ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1584ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1585ffe3c632Sopenharmony_ci      uint tag;
1586ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
1587ffe3c632Sopenharmony_ci        switch(tag) {
1588ffe3c632Sopenharmony_ci          default:
1589ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1590ffe3c632Sopenharmony_ci            break;
1591ffe3c632Sopenharmony_ci          case 8: {
1592ffe3c632Sopenharmony_ci            Types_ = input.ReadInt32();
1593ffe3c632Sopenharmony_ci            break;
1594ffe3c632Sopenharmony_ci          }
1595ffe3c632Sopenharmony_ci          case 16: {
1596ffe3c632Sopenharmony_ci            Descriptor_ = input.ReadInt32();
1597ffe3c632Sopenharmony_ci            break;
1598ffe3c632Sopenharmony_ci          }
1599ffe3c632Sopenharmony_ci        }
1600ffe3c632Sopenharmony_ci      }
1601ffe3c632Sopenharmony_ci    }
1602ffe3c632Sopenharmony_ci    #endif
1603ffe3c632Sopenharmony_ci
1604ffe3c632Sopenharmony_ci    #region Nested types
1605ffe3c632Sopenharmony_ci    /// <summary>Container for nested types declared in the ReservedNames message type.</summary>
1606ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1607ffe3c632Sopenharmony_ci    public static partial class Types {
1608ffe3c632Sopenharmony_ci      /// <summary>
1609ffe3c632Sopenharmony_ci      /// Force a nested type called Types
1610ffe3c632Sopenharmony_ci      /// </summary>
1611ffe3c632Sopenharmony_ci      public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType>
1612ffe3c632Sopenharmony_ci      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1613ffe3c632Sopenharmony_ci          , pb::IBufferMessage
1614ffe3c632Sopenharmony_ci      #endif
1615ffe3c632Sopenharmony_ci      {
1616ffe3c632Sopenharmony_ci        private static readonly pb::MessageParser<SomeNestedType> _parser = new pb::MessageParser<SomeNestedType>(() => new SomeNestedType());
1617ffe3c632Sopenharmony_ci        private pb::UnknownFieldSet _unknownFields;
1618ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1619ffe3c632Sopenharmony_ci        public static pb::MessageParser<SomeNestedType> Parser { get { return _parser; } }
1620ffe3c632Sopenharmony_ci
1621ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1622ffe3c632Sopenharmony_ci        public static pbr::MessageDescriptor Descriptor {
1623ffe3c632Sopenharmony_ci          get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descriptor.NestedTypes[0]; }
1624ffe3c632Sopenharmony_ci        }
1625ffe3c632Sopenharmony_ci
1626ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1627ffe3c632Sopenharmony_ci        pbr::MessageDescriptor pb::IMessage.Descriptor {
1628ffe3c632Sopenharmony_ci          get { return Descriptor; }
1629ffe3c632Sopenharmony_ci        }
1630ffe3c632Sopenharmony_ci
1631ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1632ffe3c632Sopenharmony_ci        public SomeNestedType() {
1633ffe3c632Sopenharmony_ci          OnConstruction();
1634ffe3c632Sopenharmony_ci        }
1635ffe3c632Sopenharmony_ci
1636ffe3c632Sopenharmony_ci        partial void OnConstruction();
1637ffe3c632Sopenharmony_ci
1638ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1639ffe3c632Sopenharmony_ci        public SomeNestedType(SomeNestedType other) : this() {
1640ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1641ffe3c632Sopenharmony_ci        }
1642ffe3c632Sopenharmony_ci
1643ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1644ffe3c632Sopenharmony_ci        public SomeNestedType Clone() {
1645ffe3c632Sopenharmony_ci          return new SomeNestedType(this);
1646ffe3c632Sopenharmony_ci        }
1647ffe3c632Sopenharmony_ci
1648ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1649ffe3c632Sopenharmony_ci        public override bool Equals(object other) {
1650ffe3c632Sopenharmony_ci          return Equals(other as SomeNestedType);
1651ffe3c632Sopenharmony_ci        }
1652ffe3c632Sopenharmony_ci
1653ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1654ffe3c632Sopenharmony_ci        public bool Equals(SomeNestedType other) {
1655ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, null)) {
1656ffe3c632Sopenharmony_ci            return false;
1657ffe3c632Sopenharmony_ci          }
1658ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, this)) {
1659ffe3c632Sopenharmony_ci            return true;
1660ffe3c632Sopenharmony_ci          }
1661ffe3c632Sopenharmony_ci          return Equals(_unknownFields, other._unknownFields);
1662ffe3c632Sopenharmony_ci        }
1663ffe3c632Sopenharmony_ci
1664ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1665ffe3c632Sopenharmony_ci        public override int GetHashCode() {
1666ffe3c632Sopenharmony_ci          int hash = 1;
1667ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
1668ffe3c632Sopenharmony_ci            hash ^= _unknownFields.GetHashCode();
1669ffe3c632Sopenharmony_ci          }
1670ffe3c632Sopenharmony_ci          return hash;
1671ffe3c632Sopenharmony_ci        }
1672ffe3c632Sopenharmony_ci
1673ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1674ffe3c632Sopenharmony_ci        public override string ToString() {
1675ffe3c632Sopenharmony_ci          return pb::JsonFormatter.ToDiagnosticString(this);
1676ffe3c632Sopenharmony_ci        }
1677ffe3c632Sopenharmony_ci
1678ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1679ffe3c632Sopenharmony_ci        public void WriteTo(pb::CodedOutputStream output) {
1680ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1681ffe3c632Sopenharmony_ci          output.WriteRawMessage(this);
1682ffe3c632Sopenharmony_ci        #else
1683ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
1684ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(output);
1685ffe3c632Sopenharmony_ci          }
1686ffe3c632Sopenharmony_ci        #endif
1687ffe3c632Sopenharmony_ci        }
1688ffe3c632Sopenharmony_ci
1689ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1690ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1691ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1692ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
1693ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(ref output);
1694ffe3c632Sopenharmony_ci          }
1695ffe3c632Sopenharmony_ci        }
1696ffe3c632Sopenharmony_ci        #endif
1697ffe3c632Sopenharmony_ci
1698ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1699ffe3c632Sopenharmony_ci        public int CalculateSize() {
1700ffe3c632Sopenharmony_ci          int size = 0;
1701ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
1702ffe3c632Sopenharmony_ci            size += _unknownFields.CalculateSize();
1703ffe3c632Sopenharmony_ci          }
1704ffe3c632Sopenharmony_ci          return size;
1705ffe3c632Sopenharmony_ci        }
1706ffe3c632Sopenharmony_ci
1707ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1708ffe3c632Sopenharmony_ci        public void MergeFrom(SomeNestedType other) {
1709ffe3c632Sopenharmony_ci          if (other == null) {
1710ffe3c632Sopenharmony_ci            return;
1711ffe3c632Sopenharmony_ci          }
1712ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1713ffe3c632Sopenharmony_ci        }
1714ffe3c632Sopenharmony_ci
1715ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1716ffe3c632Sopenharmony_ci        public void MergeFrom(pb::CodedInputStream input) {
1717ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1718ffe3c632Sopenharmony_ci          input.ReadRawMessage(this);
1719ffe3c632Sopenharmony_ci        #else
1720ffe3c632Sopenharmony_ci          uint tag;
1721ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
1722ffe3c632Sopenharmony_ci            switch(tag) {
1723ffe3c632Sopenharmony_ci              default:
1724ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1725ffe3c632Sopenharmony_ci                break;
1726ffe3c632Sopenharmony_ci            }
1727ffe3c632Sopenharmony_ci          }
1728ffe3c632Sopenharmony_ci        #endif
1729ffe3c632Sopenharmony_ci        }
1730ffe3c632Sopenharmony_ci
1731ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1732ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1733ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1734ffe3c632Sopenharmony_ci          uint tag;
1735ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
1736ffe3c632Sopenharmony_ci            switch(tag) {
1737ffe3c632Sopenharmony_ci              default:
1738ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1739ffe3c632Sopenharmony_ci                break;
1740ffe3c632Sopenharmony_ci            }
1741ffe3c632Sopenharmony_ci          }
1742ffe3c632Sopenharmony_ci        }
1743ffe3c632Sopenharmony_ci        #endif
1744ffe3c632Sopenharmony_ci
1745ffe3c632Sopenharmony_ci      }
1746ffe3c632Sopenharmony_ci
1747ffe3c632Sopenharmony_ci    }
1748ffe3c632Sopenharmony_ci    #endregion
1749ffe3c632Sopenharmony_ci
1750ffe3c632Sopenharmony_ci  }
1751ffe3c632Sopenharmony_ci
1752ffe3c632Sopenharmony_ci  /// <summary>
1753ffe3c632Sopenharmony_ci  /// These fields are deliberately not declared in numeric
1754ffe3c632Sopenharmony_ci  /// order, and the oneof fields aren't contiguous either.
1755ffe3c632Sopenharmony_ci  /// This allows for reasonably robust tests of JSON output
1756ffe3c632Sopenharmony_ci  /// ordering.
1757ffe3c632Sopenharmony_ci  /// TestFieldOrderings in unittest_proto3.proto is similar,
1758ffe3c632Sopenharmony_ci  /// but doesn't include oneofs.
1759ffe3c632Sopenharmony_ci  /// TODO: Consider adding oneofs to TestFieldOrderings, although
1760ffe3c632Sopenharmony_ci  /// that will require fixing other tests in multiple platforms.
1761ffe3c632Sopenharmony_ci  /// Alternatively, consider just adding this to
1762ffe3c632Sopenharmony_ci  /// unittest_proto3.proto if multiple platforms want it.
1763ffe3c632Sopenharmony_ci  /// </summary>
1764ffe3c632Sopenharmony_ci  public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonFieldOrdering>
1765ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1766ffe3c632Sopenharmony_ci      , pb::IBufferMessage
1767ffe3c632Sopenharmony_ci  #endif
1768ffe3c632Sopenharmony_ci  {
1769ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = new pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering());
1770ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
1771ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1772ffe3c632Sopenharmony_ci    public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return _parser; } }
1773ffe3c632Sopenharmony_ci
1774ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1775ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
1776ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[6]; }
1777ffe3c632Sopenharmony_ci    }
1778ffe3c632Sopenharmony_ci
1779ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1780ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
1781ffe3c632Sopenharmony_ci      get { return Descriptor; }
1782ffe3c632Sopenharmony_ci    }
1783ffe3c632Sopenharmony_ci
1784ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1785ffe3c632Sopenharmony_ci    public TestJsonFieldOrdering() {
1786ffe3c632Sopenharmony_ci      OnConstruction();
1787ffe3c632Sopenharmony_ci    }
1788ffe3c632Sopenharmony_ci
1789ffe3c632Sopenharmony_ci    partial void OnConstruction();
1790ffe3c632Sopenharmony_ci
1791ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1792ffe3c632Sopenharmony_ci    public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() {
1793ffe3c632Sopenharmony_ci      plainInt32_ = other.plainInt32_;
1794ffe3c632Sopenharmony_ci      plainString_ = other.plainString_;
1795ffe3c632Sopenharmony_ci      switch (other.O1Case) {
1796ffe3c632Sopenharmony_ci        case O1OneofCase.O1String:
1797ffe3c632Sopenharmony_ci          O1String = other.O1String;
1798ffe3c632Sopenharmony_ci          break;
1799ffe3c632Sopenharmony_ci        case O1OneofCase.O1Int32:
1800ffe3c632Sopenharmony_ci          O1Int32 = other.O1Int32;
1801ffe3c632Sopenharmony_ci          break;
1802ffe3c632Sopenharmony_ci      }
1803ffe3c632Sopenharmony_ci
1804ffe3c632Sopenharmony_ci      switch (other.O2Case) {
1805ffe3c632Sopenharmony_ci        case O2OneofCase.O2Int32:
1806ffe3c632Sopenharmony_ci          O2Int32 = other.O2Int32;
1807ffe3c632Sopenharmony_ci          break;
1808ffe3c632Sopenharmony_ci        case O2OneofCase.O2String:
1809ffe3c632Sopenharmony_ci          O2String = other.O2String;
1810ffe3c632Sopenharmony_ci          break;
1811ffe3c632Sopenharmony_ci      }
1812ffe3c632Sopenharmony_ci
1813ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1814ffe3c632Sopenharmony_ci    }
1815ffe3c632Sopenharmony_ci
1816ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1817ffe3c632Sopenharmony_ci    public TestJsonFieldOrdering Clone() {
1818ffe3c632Sopenharmony_ci      return new TestJsonFieldOrdering(this);
1819ffe3c632Sopenharmony_ci    }
1820ffe3c632Sopenharmony_ci
1821ffe3c632Sopenharmony_ci    /// <summary>Field number for the "plain_int32" field.</summary>
1822ffe3c632Sopenharmony_ci    public const int PlainInt32FieldNumber = 4;
1823ffe3c632Sopenharmony_ci    private int plainInt32_;
1824ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1825ffe3c632Sopenharmony_ci    public int PlainInt32 {
1826ffe3c632Sopenharmony_ci      get { return plainInt32_; }
1827ffe3c632Sopenharmony_ci      set {
1828ffe3c632Sopenharmony_ci        plainInt32_ = value;
1829ffe3c632Sopenharmony_ci      }
1830ffe3c632Sopenharmony_ci    }
1831ffe3c632Sopenharmony_ci
1832ffe3c632Sopenharmony_ci    /// <summary>Field number for the "o1_string" field.</summary>
1833ffe3c632Sopenharmony_ci    public const int O1StringFieldNumber = 2;
1834ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1835ffe3c632Sopenharmony_ci    public string O1String {
1836ffe3c632Sopenharmony_ci      get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
1837ffe3c632Sopenharmony_ci      set {
1838ffe3c632Sopenharmony_ci        o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1839ffe3c632Sopenharmony_ci        o1Case_ = O1OneofCase.O1String;
1840ffe3c632Sopenharmony_ci      }
1841ffe3c632Sopenharmony_ci    }
1842ffe3c632Sopenharmony_ci
1843ffe3c632Sopenharmony_ci    /// <summary>Field number for the "o1_int32" field.</summary>
1844ffe3c632Sopenharmony_ci    public const int O1Int32FieldNumber = 5;
1845ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1846ffe3c632Sopenharmony_ci    public int O1Int32 {
1847ffe3c632Sopenharmony_ci      get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; }
1848ffe3c632Sopenharmony_ci      set {
1849ffe3c632Sopenharmony_ci        o1_ = value;
1850ffe3c632Sopenharmony_ci        o1Case_ = O1OneofCase.O1Int32;
1851ffe3c632Sopenharmony_ci      }
1852ffe3c632Sopenharmony_ci    }
1853ffe3c632Sopenharmony_ci
1854ffe3c632Sopenharmony_ci    /// <summary>Field number for the "plain_string" field.</summary>
1855ffe3c632Sopenharmony_ci    public const int PlainStringFieldNumber = 1;
1856ffe3c632Sopenharmony_ci    private string plainString_ = "";
1857ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1858ffe3c632Sopenharmony_ci    public string PlainString {
1859ffe3c632Sopenharmony_ci      get { return plainString_; }
1860ffe3c632Sopenharmony_ci      set {
1861ffe3c632Sopenharmony_ci        plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1862ffe3c632Sopenharmony_ci      }
1863ffe3c632Sopenharmony_ci    }
1864ffe3c632Sopenharmony_ci
1865ffe3c632Sopenharmony_ci    /// <summary>Field number for the "o2_int32" field.</summary>
1866ffe3c632Sopenharmony_ci    public const int O2Int32FieldNumber = 6;
1867ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1868ffe3c632Sopenharmony_ci    public int O2Int32 {
1869ffe3c632Sopenharmony_ci      get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; }
1870ffe3c632Sopenharmony_ci      set {
1871ffe3c632Sopenharmony_ci        o2_ = value;
1872ffe3c632Sopenharmony_ci        o2Case_ = O2OneofCase.O2Int32;
1873ffe3c632Sopenharmony_ci      }
1874ffe3c632Sopenharmony_ci    }
1875ffe3c632Sopenharmony_ci
1876ffe3c632Sopenharmony_ci    /// <summary>Field number for the "o2_string" field.</summary>
1877ffe3c632Sopenharmony_ci    public const int O2StringFieldNumber = 3;
1878ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1879ffe3c632Sopenharmony_ci    public string O2String {
1880ffe3c632Sopenharmony_ci      get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
1881ffe3c632Sopenharmony_ci      set {
1882ffe3c632Sopenharmony_ci        o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1883ffe3c632Sopenharmony_ci        o2Case_ = O2OneofCase.O2String;
1884ffe3c632Sopenharmony_ci      }
1885ffe3c632Sopenharmony_ci    }
1886ffe3c632Sopenharmony_ci
1887ffe3c632Sopenharmony_ci    private object o1_;
1888ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "o1" oneof.</summary>
1889ffe3c632Sopenharmony_ci    public enum O1OneofCase {
1890ffe3c632Sopenharmony_ci      None = 0,
1891ffe3c632Sopenharmony_ci      O1String = 2,
1892ffe3c632Sopenharmony_ci      O1Int32 = 5,
1893ffe3c632Sopenharmony_ci    }
1894ffe3c632Sopenharmony_ci    private O1OneofCase o1Case_ = O1OneofCase.None;
1895ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1896ffe3c632Sopenharmony_ci    public O1OneofCase O1Case {
1897ffe3c632Sopenharmony_ci      get { return o1Case_; }
1898ffe3c632Sopenharmony_ci    }
1899ffe3c632Sopenharmony_ci
1900ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1901ffe3c632Sopenharmony_ci    public void ClearO1() {
1902ffe3c632Sopenharmony_ci      o1Case_ = O1OneofCase.None;
1903ffe3c632Sopenharmony_ci      o1_ = null;
1904ffe3c632Sopenharmony_ci    }
1905ffe3c632Sopenharmony_ci
1906ffe3c632Sopenharmony_ci    private object o2_;
1907ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "o2" oneof.</summary>
1908ffe3c632Sopenharmony_ci    public enum O2OneofCase {
1909ffe3c632Sopenharmony_ci      None = 0,
1910ffe3c632Sopenharmony_ci      O2Int32 = 6,
1911ffe3c632Sopenharmony_ci      O2String = 3,
1912ffe3c632Sopenharmony_ci    }
1913ffe3c632Sopenharmony_ci    private O2OneofCase o2Case_ = O2OneofCase.None;
1914ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1915ffe3c632Sopenharmony_ci    public O2OneofCase O2Case {
1916ffe3c632Sopenharmony_ci      get { return o2Case_; }
1917ffe3c632Sopenharmony_ci    }
1918ffe3c632Sopenharmony_ci
1919ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1920ffe3c632Sopenharmony_ci    public void ClearO2() {
1921ffe3c632Sopenharmony_ci      o2Case_ = O2OneofCase.None;
1922ffe3c632Sopenharmony_ci      o2_ = null;
1923ffe3c632Sopenharmony_ci    }
1924ffe3c632Sopenharmony_ci
1925ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
1927ffe3c632Sopenharmony_ci      return Equals(other as TestJsonFieldOrdering);
1928ffe3c632Sopenharmony_ci    }
1929ffe3c632Sopenharmony_ci
1930ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1931ffe3c632Sopenharmony_ci    public bool Equals(TestJsonFieldOrdering other) {
1932ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
1933ffe3c632Sopenharmony_ci        return false;
1934ffe3c632Sopenharmony_ci      }
1935ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
1936ffe3c632Sopenharmony_ci        return true;
1937ffe3c632Sopenharmony_ci      }
1938ffe3c632Sopenharmony_ci      if (PlainInt32 != other.PlainInt32) return false;
1939ffe3c632Sopenharmony_ci      if (O1String != other.O1String) return false;
1940ffe3c632Sopenharmony_ci      if (O1Int32 != other.O1Int32) return false;
1941ffe3c632Sopenharmony_ci      if (PlainString != other.PlainString) return false;
1942ffe3c632Sopenharmony_ci      if (O2Int32 != other.O2Int32) return false;
1943ffe3c632Sopenharmony_ci      if (O2String != other.O2String) return false;
1944ffe3c632Sopenharmony_ci      if (O1Case != other.O1Case) return false;
1945ffe3c632Sopenharmony_ci      if (O2Case != other.O2Case) return false;
1946ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
1947ffe3c632Sopenharmony_ci    }
1948ffe3c632Sopenharmony_ci
1949ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1950ffe3c632Sopenharmony_ci    public override int GetHashCode() {
1951ffe3c632Sopenharmony_ci      int hash = 1;
1952ffe3c632Sopenharmony_ci      if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode();
1953ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode();
1954ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode();
1955ffe3c632Sopenharmony_ci      if (PlainString.Length != 0) hash ^= PlainString.GetHashCode();
1956ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode();
1957ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode();
1958ffe3c632Sopenharmony_ci      hash ^= (int) o1Case_;
1959ffe3c632Sopenharmony_ci      hash ^= (int) o2Case_;
1960ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
1961ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
1962ffe3c632Sopenharmony_ci      }
1963ffe3c632Sopenharmony_ci      return hash;
1964ffe3c632Sopenharmony_ci    }
1965ffe3c632Sopenharmony_ci
1966ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1967ffe3c632Sopenharmony_ci    public override string ToString() {
1968ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
1969ffe3c632Sopenharmony_ci    }
1970ffe3c632Sopenharmony_ci
1971ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1972ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
1973ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1974ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
1975ffe3c632Sopenharmony_ci    #else
1976ffe3c632Sopenharmony_ci      if (PlainString.Length != 0) {
1977ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
1978ffe3c632Sopenharmony_ci        output.WriteString(PlainString);
1979ffe3c632Sopenharmony_ci      }
1980ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1String) {
1981ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
1982ffe3c632Sopenharmony_ci        output.WriteString(O1String);
1983ffe3c632Sopenharmony_ci      }
1984ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2String) {
1985ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
1986ffe3c632Sopenharmony_ci        output.WriteString(O2String);
1987ffe3c632Sopenharmony_ci      }
1988ffe3c632Sopenharmony_ci      if (PlainInt32 != 0) {
1989ffe3c632Sopenharmony_ci        output.WriteRawTag(32);
1990ffe3c632Sopenharmony_ci        output.WriteInt32(PlainInt32);
1991ffe3c632Sopenharmony_ci      }
1992ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1Int32) {
1993ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
1994ffe3c632Sopenharmony_ci        output.WriteInt32(O1Int32);
1995ffe3c632Sopenharmony_ci      }
1996ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2Int32) {
1997ffe3c632Sopenharmony_ci        output.WriteRawTag(48);
1998ffe3c632Sopenharmony_ci        output.WriteInt32(O2Int32);
1999ffe3c632Sopenharmony_ci      }
2000ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2001ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
2002ffe3c632Sopenharmony_ci      }
2003ffe3c632Sopenharmony_ci    #endif
2004ffe3c632Sopenharmony_ci    }
2005ffe3c632Sopenharmony_ci
2006ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2007ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2008ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2009ffe3c632Sopenharmony_ci      if (PlainString.Length != 0) {
2010ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
2011ffe3c632Sopenharmony_ci        output.WriteString(PlainString);
2012ffe3c632Sopenharmony_ci      }
2013ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1String) {
2014ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
2015ffe3c632Sopenharmony_ci        output.WriteString(O1String);
2016ffe3c632Sopenharmony_ci      }
2017ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2String) {
2018ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
2019ffe3c632Sopenharmony_ci        output.WriteString(O2String);
2020ffe3c632Sopenharmony_ci      }
2021ffe3c632Sopenharmony_ci      if (PlainInt32 != 0) {
2022ffe3c632Sopenharmony_ci        output.WriteRawTag(32);
2023ffe3c632Sopenharmony_ci        output.WriteInt32(PlainInt32);
2024ffe3c632Sopenharmony_ci      }
2025ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1Int32) {
2026ffe3c632Sopenharmony_ci        output.WriteRawTag(40);
2027ffe3c632Sopenharmony_ci        output.WriteInt32(O1Int32);
2028ffe3c632Sopenharmony_ci      }
2029ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2Int32) {
2030ffe3c632Sopenharmony_ci        output.WriteRawTag(48);
2031ffe3c632Sopenharmony_ci        output.WriteInt32(O2Int32);
2032ffe3c632Sopenharmony_ci      }
2033ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2034ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
2035ffe3c632Sopenharmony_ci      }
2036ffe3c632Sopenharmony_ci    }
2037ffe3c632Sopenharmony_ci    #endif
2038ffe3c632Sopenharmony_ci
2039ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2040ffe3c632Sopenharmony_ci    public int CalculateSize() {
2041ffe3c632Sopenharmony_ci      int size = 0;
2042ffe3c632Sopenharmony_ci      if (PlainInt32 != 0) {
2043ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32);
2044ffe3c632Sopenharmony_ci      }
2045ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1String) {
2046ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String);
2047ffe3c632Sopenharmony_ci      }
2048ffe3c632Sopenharmony_ci      if (o1Case_ == O1OneofCase.O1Int32) {
2049ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32);
2050ffe3c632Sopenharmony_ci      }
2051ffe3c632Sopenharmony_ci      if (PlainString.Length != 0) {
2052ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString);
2053ffe3c632Sopenharmony_ci      }
2054ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2Int32) {
2055ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32);
2056ffe3c632Sopenharmony_ci      }
2057ffe3c632Sopenharmony_ci      if (o2Case_ == O2OneofCase.O2String) {
2058ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String);
2059ffe3c632Sopenharmony_ci      }
2060ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2061ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
2062ffe3c632Sopenharmony_ci      }
2063ffe3c632Sopenharmony_ci      return size;
2064ffe3c632Sopenharmony_ci    }
2065ffe3c632Sopenharmony_ci
2066ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2067ffe3c632Sopenharmony_ci    public void MergeFrom(TestJsonFieldOrdering other) {
2068ffe3c632Sopenharmony_ci      if (other == null) {
2069ffe3c632Sopenharmony_ci        return;
2070ffe3c632Sopenharmony_ci      }
2071ffe3c632Sopenharmony_ci      if (other.PlainInt32 != 0) {
2072ffe3c632Sopenharmony_ci        PlainInt32 = other.PlainInt32;
2073ffe3c632Sopenharmony_ci      }
2074ffe3c632Sopenharmony_ci      if (other.PlainString.Length != 0) {
2075ffe3c632Sopenharmony_ci        PlainString = other.PlainString;
2076ffe3c632Sopenharmony_ci      }
2077ffe3c632Sopenharmony_ci      switch (other.O1Case) {
2078ffe3c632Sopenharmony_ci        case O1OneofCase.O1String:
2079ffe3c632Sopenharmony_ci          O1String = other.O1String;
2080ffe3c632Sopenharmony_ci          break;
2081ffe3c632Sopenharmony_ci        case O1OneofCase.O1Int32:
2082ffe3c632Sopenharmony_ci          O1Int32 = other.O1Int32;
2083ffe3c632Sopenharmony_ci          break;
2084ffe3c632Sopenharmony_ci      }
2085ffe3c632Sopenharmony_ci
2086ffe3c632Sopenharmony_ci      switch (other.O2Case) {
2087ffe3c632Sopenharmony_ci        case O2OneofCase.O2Int32:
2088ffe3c632Sopenharmony_ci          O2Int32 = other.O2Int32;
2089ffe3c632Sopenharmony_ci          break;
2090ffe3c632Sopenharmony_ci        case O2OneofCase.O2String:
2091ffe3c632Sopenharmony_ci          O2String = other.O2String;
2092ffe3c632Sopenharmony_ci          break;
2093ffe3c632Sopenharmony_ci      }
2094ffe3c632Sopenharmony_ci
2095ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2096ffe3c632Sopenharmony_ci    }
2097ffe3c632Sopenharmony_ci
2098ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2099ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
2100ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2101ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
2102ffe3c632Sopenharmony_ci    #else
2103ffe3c632Sopenharmony_ci      uint tag;
2104ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2105ffe3c632Sopenharmony_ci        switch(tag) {
2106ffe3c632Sopenharmony_ci          default:
2107ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2108ffe3c632Sopenharmony_ci            break;
2109ffe3c632Sopenharmony_ci          case 10: {
2110ffe3c632Sopenharmony_ci            PlainString = input.ReadString();
2111ffe3c632Sopenharmony_ci            break;
2112ffe3c632Sopenharmony_ci          }
2113ffe3c632Sopenharmony_ci          case 18: {
2114ffe3c632Sopenharmony_ci            O1String = input.ReadString();
2115ffe3c632Sopenharmony_ci            break;
2116ffe3c632Sopenharmony_ci          }
2117ffe3c632Sopenharmony_ci          case 26: {
2118ffe3c632Sopenharmony_ci            O2String = input.ReadString();
2119ffe3c632Sopenharmony_ci            break;
2120ffe3c632Sopenharmony_ci          }
2121ffe3c632Sopenharmony_ci          case 32: {
2122ffe3c632Sopenharmony_ci            PlainInt32 = input.ReadInt32();
2123ffe3c632Sopenharmony_ci            break;
2124ffe3c632Sopenharmony_ci          }
2125ffe3c632Sopenharmony_ci          case 40: {
2126ffe3c632Sopenharmony_ci            O1Int32 = input.ReadInt32();
2127ffe3c632Sopenharmony_ci            break;
2128ffe3c632Sopenharmony_ci          }
2129ffe3c632Sopenharmony_ci          case 48: {
2130ffe3c632Sopenharmony_ci            O2Int32 = input.ReadInt32();
2131ffe3c632Sopenharmony_ci            break;
2132ffe3c632Sopenharmony_ci          }
2133ffe3c632Sopenharmony_ci        }
2134ffe3c632Sopenharmony_ci      }
2135ffe3c632Sopenharmony_ci    #endif
2136ffe3c632Sopenharmony_ci    }
2137ffe3c632Sopenharmony_ci
2138ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2139ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2140ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2141ffe3c632Sopenharmony_ci      uint tag;
2142ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2143ffe3c632Sopenharmony_ci        switch(tag) {
2144ffe3c632Sopenharmony_ci          default:
2145ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2146ffe3c632Sopenharmony_ci            break;
2147ffe3c632Sopenharmony_ci          case 10: {
2148ffe3c632Sopenharmony_ci            PlainString = input.ReadString();
2149ffe3c632Sopenharmony_ci            break;
2150ffe3c632Sopenharmony_ci          }
2151ffe3c632Sopenharmony_ci          case 18: {
2152ffe3c632Sopenharmony_ci            O1String = input.ReadString();
2153ffe3c632Sopenharmony_ci            break;
2154ffe3c632Sopenharmony_ci          }
2155ffe3c632Sopenharmony_ci          case 26: {
2156ffe3c632Sopenharmony_ci            O2String = input.ReadString();
2157ffe3c632Sopenharmony_ci            break;
2158ffe3c632Sopenharmony_ci          }
2159ffe3c632Sopenharmony_ci          case 32: {
2160ffe3c632Sopenharmony_ci            PlainInt32 = input.ReadInt32();
2161ffe3c632Sopenharmony_ci            break;
2162ffe3c632Sopenharmony_ci          }
2163ffe3c632Sopenharmony_ci          case 40: {
2164ffe3c632Sopenharmony_ci            O1Int32 = input.ReadInt32();
2165ffe3c632Sopenharmony_ci            break;
2166ffe3c632Sopenharmony_ci          }
2167ffe3c632Sopenharmony_ci          case 48: {
2168ffe3c632Sopenharmony_ci            O2Int32 = input.ReadInt32();
2169ffe3c632Sopenharmony_ci            break;
2170ffe3c632Sopenharmony_ci          }
2171ffe3c632Sopenharmony_ci        }
2172ffe3c632Sopenharmony_ci      }
2173ffe3c632Sopenharmony_ci    }
2174ffe3c632Sopenharmony_ci    #endif
2175ffe3c632Sopenharmony_ci
2176ffe3c632Sopenharmony_ci  }
2177ffe3c632Sopenharmony_ci
2178ffe3c632Sopenharmony_ci  public sealed partial class TestJsonName : pb::IMessage<TestJsonName>
2179ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2180ffe3c632Sopenharmony_ci      , pb::IBufferMessage
2181ffe3c632Sopenharmony_ci  #endif
2182ffe3c632Sopenharmony_ci  {
2183ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
2184ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
2185ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2186ffe3c632Sopenharmony_ci    public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }
2187ffe3c632Sopenharmony_ci
2188ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2189ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
2190ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[7]; }
2191ffe3c632Sopenharmony_ci    }
2192ffe3c632Sopenharmony_ci
2193ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2194ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
2195ffe3c632Sopenharmony_ci      get { return Descriptor; }
2196ffe3c632Sopenharmony_ci    }
2197ffe3c632Sopenharmony_ci
2198ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2199ffe3c632Sopenharmony_ci    public TestJsonName() {
2200ffe3c632Sopenharmony_ci      OnConstruction();
2201ffe3c632Sopenharmony_ci    }
2202ffe3c632Sopenharmony_ci
2203ffe3c632Sopenharmony_ci    partial void OnConstruction();
2204ffe3c632Sopenharmony_ci
2205ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2206ffe3c632Sopenharmony_ci    public TestJsonName(TestJsonName other) : this() {
2207ffe3c632Sopenharmony_ci      name_ = other.name_;
2208ffe3c632Sopenharmony_ci      description_ = other.description_;
2209ffe3c632Sopenharmony_ci      guid_ = other.guid_;
2210ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2211ffe3c632Sopenharmony_ci    }
2212ffe3c632Sopenharmony_ci
2213ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2214ffe3c632Sopenharmony_ci    public TestJsonName Clone() {
2215ffe3c632Sopenharmony_ci      return new TestJsonName(this);
2216ffe3c632Sopenharmony_ci    }
2217ffe3c632Sopenharmony_ci
2218ffe3c632Sopenharmony_ci    /// <summary>Field number for the "name" field.</summary>
2219ffe3c632Sopenharmony_ci    public const int NameFieldNumber = 1;
2220ffe3c632Sopenharmony_ci    private string name_ = "";
2221ffe3c632Sopenharmony_ci    /// <summary>
2222ffe3c632Sopenharmony_ci    /// Message for testing the effects for of the json_name option
2223ffe3c632Sopenharmony_ci    /// </summary>
2224ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2225ffe3c632Sopenharmony_ci    public string Name {
2226ffe3c632Sopenharmony_ci      get { return name_; }
2227ffe3c632Sopenharmony_ci      set {
2228ffe3c632Sopenharmony_ci        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2229ffe3c632Sopenharmony_ci      }
2230ffe3c632Sopenharmony_ci    }
2231ffe3c632Sopenharmony_ci
2232ffe3c632Sopenharmony_ci    /// <summary>Field number for the "description" field.</summary>
2233ffe3c632Sopenharmony_ci    public const int DescriptionFieldNumber = 2;
2234ffe3c632Sopenharmony_ci    private string description_ = "";
2235ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2236ffe3c632Sopenharmony_ci    public string Description {
2237ffe3c632Sopenharmony_ci      get { return description_; }
2238ffe3c632Sopenharmony_ci      set {
2239ffe3c632Sopenharmony_ci        description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2240ffe3c632Sopenharmony_ci      }
2241ffe3c632Sopenharmony_ci    }
2242ffe3c632Sopenharmony_ci
2243ffe3c632Sopenharmony_ci    /// <summary>Field number for the "guid" field.</summary>
2244ffe3c632Sopenharmony_ci    public const int GuidFieldNumber = 3;
2245ffe3c632Sopenharmony_ci    private string guid_ = "";
2246ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2247ffe3c632Sopenharmony_ci    public string Guid {
2248ffe3c632Sopenharmony_ci      get { return guid_; }
2249ffe3c632Sopenharmony_ci      set {
2250ffe3c632Sopenharmony_ci        guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2251ffe3c632Sopenharmony_ci      }
2252ffe3c632Sopenharmony_ci    }
2253ffe3c632Sopenharmony_ci
2254ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2255ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
2256ffe3c632Sopenharmony_ci      return Equals(other as TestJsonName);
2257ffe3c632Sopenharmony_ci    }
2258ffe3c632Sopenharmony_ci
2259ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2260ffe3c632Sopenharmony_ci    public bool Equals(TestJsonName other) {
2261ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
2262ffe3c632Sopenharmony_ci        return false;
2263ffe3c632Sopenharmony_ci      }
2264ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
2265ffe3c632Sopenharmony_ci        return true;
2266ffe3c632Sopenharmony_ci      }
2267ffe3c632Sopenharmony_ci      if (Name != other.Name) return false;
2268ffe3c632Sopenharmony_ci      if (Description != other.Description) return false;
2269ffe3c632Sopenharmony_ci      if (Guid != other.Guid) return false;
2270ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
2271ffe3c632Sopenharmony_ci    }
2272ffe3c632Sopenharmony_ci
2273ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2274ffe3c632Sopenharmony_ci    public override int GetHashCode() {
2275ffe3c632Sopenharmony_ci      int hash = 1;
2276ffe3c632Sopenharmony_ci      if (Name.Length != 0) hash ^= Name.GetHashCode();
2277ffe3c632Sopenharmony_ci      if (Description.Length != 0) hash ^= Description.GetHashCode();
2278ffe3c632Sopenharmony_ci      if (Guid.Length != 0) hash ^= Guid.GetHashCode();
2279ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2280ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
2281ffe3c632Sopenharmony_ci      }
2282ffe3c632Sopenharmony_ci      return hash;
2283ffe3c632Sopenharmony_ci    }
2284ffe3c632Sopenharmony_ci
2285ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2286ffe3c632Sopenharmony_ci    public override string ToString() {
2287ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
2288ffe3c632Sopenharmony_ci    }
2289ffe3c632Sopenharmony_ci
2290ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2291ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
2292ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2293ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
2294ffe3c632Sopenharmony_ci    #else
2295ffe3c632Sopenharmony_ci      if (Name.Length != 0) {
2296ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
2297ffe3c632Sopenharmony_ci        output.WriteString(Name);
2298ffe3c632Sopenharmony_ci      }
2299ffe3c632Sopenharmony_ci      if (Description.Length != 0) {
2300ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
2301ffe3c632Sopenharmony_ci        output.WriteString(Description);
2302ffe3c632Sopenharmony_ci      }
2303ffe3c632Sopenharmony_ci      if (Guid.Length != 0) {
2304ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
2305ffe3c632Sopenharmony_ci        output.WriteString(Guid);
2306ffe3c632Sopenharmony_ci      }
2307ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2308ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
2309ffe3c632Sopenharmony_ci      }
2310ffe3c632Sopenharmony_ci    #endif
2311ffe3c632Sopenharmony_ci    }
2312ffe3c632Sopenharmony_ci
2313ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2314ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2315ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2316ffe3c632Sopenharmony_ci      if (Name.Length != 0) {
2317ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
2318ffe3c632Sopenharmony_ci        output.WriteString(Name);
2319ffe3c632Sopenharmony_ci      }
2320ffe3c632Sopenharmony_ci      if (Description.Length != 0) {
2321ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
2322ffe3c632Sopenharmony_ci        output.WriteString(Description);
2323ffe3c632Sopenharmony_ci      }
2324ffe3c632Sopenharmony_ci      if (Guid.Length != 0) {
2325ffe3c632Sopenharmony_ci        output.WriteRawTag(26);
2326ffe3c632Sopenharmony_ci        output.WriteString(Guid);
2327ffe3c632Sopenharmony_ci      }
2328ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2329ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
2330ffe3c632Sopenharmony_ci      }
2331ffe3c632Sopenharmony_ci    }
2332ffe3c632Sopenharmony_ci    #endif
2333ffe3c632Sopenharmony_ci
2334ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2335ffe3c632Sopenharmony_ci    public int CalculateSize() {
2336ffe3c632Sopenharmony_ci      int size = 0;
2337ffe3c632Sopenharmony_ci      if (Name.Length != 0) {
2338ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2339ffe3c632Sopenharmony_ci      }
2340ffe3c632Sopenharmony_ci      if (Description.Length != 0) {
2341ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
2342ffe3c632Sopenharmony_ci      }
2343ffe3c632Sopenharmony_ci      if (Guid.Length != 0) {
2344ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid);
2345ffe3c632Sopenharmony_ci      }
2346ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2347ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
2348ffe3c632Sopenharmony_ci      }
2349ffe3c632Sopenharmony_ci      return size;
2350ffe3c632Sopenharmony_ci    }
2351ffe3c632Sopenharmony_ci
2352ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2353ffe3c632Sopenharmony_ci    public void MergeFrom(TestJsonName other) {
2354ffe3c632Sopenharmony_ci      if (other == null) {
2355ffe3c632Sopenharmony_ci        return;
2356ffe3c632Sopenharmony_ci      }
2357ffe3c632Sopenharmony_ci      if (other.Name.Length != 0) {
2358ffe3c632Sopenharmony_ci        Name = other.Name;
2359ffe3c632Sopenharmony_ci      }
2360ffe3c632Sopenharmony_ci      if (other.Description.Length != 0) {
2361ffe3c632Sopenharmony_ci        Description = other.Description;
2362ffe3c632Sopenharmony_ci      }
2363ffe3c632Sopenharmony_ci      if (other.Guid.Length != 0) {
2364ffe3c632Sopenharmony_ci        Guid = other.Guid;
2365ffe3c632Sopenharmony_ci      }
2366ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2367ffe3c632Sopenharmony_ci    }
2368ffe3c632Sopenharmony_ci
2369ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2370ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
2371ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2372ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
2373ffe3c632Sopenharmony_ci    #else
2374ffe3c632Sopenharmony_ci      uint tag;
2375ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2376ffe3c632Sopenharmony_ci        switch(tag) {
2377ffe3c632Sopenharmony_ci          default:
2378ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2379ffe3c632Sopenharmony_ci            break;
2380ffe3c632Sopenharmony_ci          case 10: {
2381ffe3c632Sopenharmony_ci            Name = input.ReadString();
2382ffe3c632Sopenharmony_ci            break;
2383ffe3c632Sopenharmony_ci          }
2384ffe3c632Sopenharmony_ci          case 18: {
2385ffe3c632Sopenharmony_ci            Description = input.ReadString();
2386ffe3c632Sopenharmony_ci            break;
2387ffe3c632Sopenharmony_ci          }
2388ffe3c632Sopenharmony_ci          case 26: {
2389ffe3c632Sopenharmony_ci            Guid = input.ReadString();
2390ffe3c632Sopenharmony_ci            break;
2391ffe3c632Sopenharmony_ci          }
2392ffe3c632Sopenharmony_ci        }
2393ffe3c632Sopenharmony_ci      }
2394ffe3c632Sopenharmony_ci    #endif
2395ffe3c632Sopenharmony_ci    }
2396ffe3c632Sopenharmony_ci
2397ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2398ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2399ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2400ffe3c632Sopenharmony_ci      uint tag;
2401ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2402ffe3c632Sopenharmony_ci        switch(tag) {
2403ffe3c632Sopenharmony_ci          default:
2404ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2405ffe3c632Sopenharmony_ci            break;
2406ffe3c632Sopenharmony_ci          case 10: {
2407ffe3c632Sopenharmony_ci            Name = input.ReadString();
2408ffe3c632Sopenharmony_ci            break;
2409ffe3c632Sopenharmony_ci          }
2410ffe3c632Sopenharmony_ci          case 18: {
2411ffe3c632Sopenharmony_ci            Description = input.ReadString();
2412ffe3c632Sopenharmony_ci            break;
2413ffe3c632Sopenharmony_ci          }
2414ffe3c632Sopenharmony_ci          case 26: {
2415ffe3c632Sopenharmony_ci            Guid = input.ReadString();
2416ffe3c632Sopenharmony_ci            break;
2417ffe3c632Sopenharmony_ci          }
2418ffe3c632Sopenharmony_ci        }
2419ffe3c632Sopenharmony_ci      }
2420ffe3c632Sopenharmony_ci    }
2421ffe3c632Sopenharmony_ci    #endif
2422ffe3c632Sopenharmony_ci
2423ffe3c632Sopenharmony_ci  }
2424ffe3c632Sopenharmony_ci
2425ffe3c632Sopenharmony_ci  /// <summary>
2426ffe3c632Sopenharmony_ci  /// Issue 3200: When merging two messages which use the same
2427ffe3c632Sopenharmony_ci  /// oneof case, which is itself a message type, the submessages should
2428ffe3c632Sopenharmony_ci  /// be merged.
2429ffe3c632Sopenharmony_ci  /// </summary>
2430ffe3c632Sopenharmony_ci  public sealed partial class OneofMerging : pb::IMessage<OneofMerging>
2431ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2432ffe3c632Sopenharmony_ci      , pb::IBufferMessage
2433ffe3c632Sopenharmony_ci  #endif
2434ffe3c632Sopenharmony_ci  {
2435ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<OneofMerging> _parser = new pb::MessageParser<OneofMerging>(() => new OneofMerging());
2436ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
2437ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2438ffe3c632Sopenharmony_ci    public static pb::MessageParser<OneofMerging> Parser { get { return _parser; } }
2439ffe3c632Sopenharmony_ci
2440ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2441ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
2442ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[8]; }
2443ffe3c632Sopenharmony_ci    }
2444ffe3c632Sopenharmony_ci
2445ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2446ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
2447ffe3c632Sopenharmony_ci      get { return Descriptor; }
2448ffe3c632Sopenharmony_ci    }
2449ffe3c632Sopenharmony_ci
2450ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2451ffe3c632Sopenharmony_ci    public OneofMerging() {
2452ffe3c632Sopenharmony_ci      OnConstruction();
2453ffe3c632Sopenharmony_ci    }
2454ffe3c632Sopenharmony_ci
2455ffe3c632Sopenharmony_ci    partial void OnConstruction();
2456ffe3c632Sopenharmony_ci
2457ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2458ffe3c632Sopenharmony_ci    public OneofMerging(OneofMerging other) : this() {
2459ffe3c632Sopenharmony_ci      switch (other.ValueCase) {
2460ffe3c632Sopenharmony_ci        case ValueOneofCase.Text:
2461ffe3c632Sopenharmony_ci          Text = other.Text;
2462ffe3c632Sopenharmony_ci          break;
2463ffe3c632Sopenharmony_ci        case ValueOneofCase.Nested:
2464ffe3c632Sopenharmony_ci          Nested = other.Nested.Clone();
2465ffe3c632Sopenharmony_ci          break;
2466ffe3c632Sopenharmony_ci      }
2467ffe3c632Sopenharmony_ci
2468ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2469ffe3c632Sopenharmony_ci    }
2470ffe3c632Sopenharmony_ci
2471ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2472ffe3c632Sopenharmony_ci    public OneofMerging Clone() {
2473ffe3c632Sopenharmony_ci      return new OneofMerging(this);
2474ffe3c632Sopenharmony_ci    }
2475ffe3c632Sopenharmony_ci
2476ffe3c632Sopenharmony_ci    /// <summary>Field number for the "text" field.</summary>
2477ffe3c632Sopenharmony_ci    public const int TextFieldNumber = 1;
2478ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2479ffe3c632Sopenharmony_ci    public string Text {
2480ffe3c632Sopenharmony_ci      get { return valueCase_ == ValueOneofCase.Text ? (string) value_ : ""; }
2481ffe3c632Sopenharmony_ci      set {
2482ffe3c632Sopenharmony_ci        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2483ffe3c632Sopenharmony_ci        valueCase_ = ValueOneofCase.Text;
2484ffe3c632Sopenharmony_ci      }
2485ffe3c632Sopenharmony_ci    }
2486ffe3c632Sopenharmony_ci
2487ffe3c632Sopenharmony_ci    /// <summary>Field number for the "nested" field.</summary>
2488ffe3c632Sopenharmony_ci    public const int NestedFieldNumber = 2;
2489ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2490ffe3c632Sopenharmony_ci    public global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested Nested {
2491ffe3c632Sopenharmony_ci      get { return valueCase_ == ValueOneofCase.Nested ? (global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested) value_ : null; }
2492ffe3c632Sopenharmony_ci      set {
2493ffe3c632Sopenharmony_ci        value_ = value;
2494ffe3c632Sopenharmony_ci        valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Nested;
2495ffe3c632Sopenharmony_ci      }
2496ffe3c632Sopenharmony_ci    }
2497ffe3c632Sopenharmony_ci
2498ffe3c632Sopenharmony_ci    private object value_;
2499ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "value" oneof.</summary>
2500ffe3c632Sopenharmony_ci    public enum ValueOneofCase {
2501ffe3c632Sopenharmony_ci      None = 0,
2502ffe3c632Sopenharmony_ci      Text = 1,
2503ffe3c632Sopenharmony_ci      Nested = 2,
2504ffe3c632Sopenharmony_ci    }
2505ffe3c632Sopenharmony_ci    private ValueOneofCase valueCase_ = ValueOneofCase.None;
2506ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2507ffe3c632Sopenharmony_ci    public ValueOneofCase ValueCase {
2508ffe3c632Sopenharmony_ci      get { return valueCase_; }
2509ffe3c632Sopenharmony_ci    }
2510ffe3c632Sopenharmony_ci
2511ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2512ffe3c632Sopenharmony_ci    public void ClearValue() {
2513ffe3c632Sopenharmony_ci      valueCase_ = ValueOneofCase.None;
2514ffe3c632Sopenharmony_ci      value_ = null;
2515ffe3c632Sopenharmony_ci    }
2516ffe3c632Sopenharmony_ci
2517ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2518ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
2519ffe3c632Sopenharmony_ci      return Equals(other as OneofMerging);
2520ffe3c632Sopenharmony_ci    }
2521ffe3c632Sopenharmony_ci
2522ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2523ffe3c632Sopenharmony_ci    public bool Equals(OneofMerging other) {
2524ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
2525ffe3c632Sopenharmony_ci        return false;
2526ffe3c632Sopenharmony_ci      }
2527ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
2528ffe3c632Sopenharmony_ci        return true;
2529ffe3c632Sopenharmony_ci      }
2530ffe3c632Sopenharmony_ci      if (Text != other.Text) return false;
2531ffe3c632Sopenharmony_ci      if (!object.Equals(Nested, other.Nested)) return false;
2532ffe3c632Sopenharmony_ci      if (ValueCase != other.ValueCase) return false;
2533ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
2534ffe3c632Sopenharmony_ci    }
2535ffe3c632Sopenharmony_ci
2536ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2537ffe3c632Sopenharmony_ci    public override int GetHashCode() {
2538ffe3c632Sopenharmony_ci      int hash = 1;
2539ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Text) hash ^= Text.GetHashCode();
2540ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Nested) hash ^= Nested.GetHashCode();
2541ffe3c632Sopenharmony_ci      hash ^= (int) valueCase_;
2542ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2543ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
2544ffe3c632Sopenharmony_ci      }
2545ffe3c632Sopenharmony_ci      return hash;
2546ffe3c632Sopenharmony_ci    }
2547ffe3c632Sopenharmony_ci
2548ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2549ffe3c632Sopenharmony_ci    public override string ToString() {
2550ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
2551ffe3c632Sopenharmony_ci    }
2552ffe3c632Sopenharmony_ci
2553ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2554ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
2555ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2556ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
2557ffe3c632Sopenharmony_ci    #else
2558ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Text) {
2559ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
2560ffe3c632Sopenharmony_ci        output.WriteString(Text);
2561ffe3c632Sopenharmony_ci      }
2562ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Nested) {
2563ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
2564ffe3c632Sopenharmony_ci        output.WriteMessage(Nested);
2565ffe3c632Sopenharmony_ci      }
2566ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2567ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
2568ffe3c632Sopenharmony_ci      }
2569ffe3c632Sopenharmony_ci    #endif
2570ffe3c632Sopenharmony_ci    }
2571ffe3c632Sopenharmony_ci
2572ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2573ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2574ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2575ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Text) {
2576ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
2577ffe3c632Sopenharmony_ci        output.WriteString(Text);
2578ffe3c632Sopenharmony_ci      }
2579ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Nested) {
2580ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
2581ffe3c632Sopenharmony_ci        output.WriteMessage(Nested);
2582ffe3c632Sopenharmony_ci      }
2583ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2584ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
2585ffe3c632Sopenharmony_ci      }
2586ffe3c632Sopenharmony_ci    }
2587ffe3c632Sopenharmony_ci    #endif
2588ffe3c632Sopenharmony_ci
2589ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2590ffe3c632Sopenharmony_ci    public int CalculateSize() {
2591ffe3c632Sopenharmony_ci      int size = 0;
2592ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Text) {
2593ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
2594ffe3c632Sopenharmony_ci      }
2595ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.Nested) {
2596ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Nested);
2597ffe3c632Sopenharmony_ci      }
2598ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
2599ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
2600ffe3c632Sopenharmony_ci      }
2601ffe3c632Sopenharmony_ci      return size;
2602ffe3c632Sopenharmony_ci    }
2603ffe3c632Sopenharmony_ci
2604ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2605ffe3c632Sopenharmony_ci    public void MergeFrom(OneofMerging other) {
2606ffe3c632Sopenharmony_ci      if (other == null) {
2607ffe3c632Sopenharmony_ci        return;
2608ffe3c632Sopenharmony_ci      }
2609ffe3c632Sopenharmony_ci      switch (other.ValueCase) {
2610ffe3c632Sopenharmony_ci        case ValueOneofCase.Text:
2611ffe3c632Sopenharmony_ci          Text = other.Text;
2612ffe3c632Sopenharmony_ci          break;
2613ffe3c632Sopenharmony_ci        case ValueOneofCase.Nested:
2614ffe3c632Sopenharmony_ci          if (Nested == null) {
2615ffe3c632Sopenharmony_ci            Nested = new global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested();
2616ffe3c632Sopenharmony_ci          }
2617ffe3c632Sopenharmony_ci          Nested.MergeFrom(other.Nested);
2618ffe3c632Sopenharmony_ci          break;
2619ffe3c632Sopenharmony_ci      }
2620ffe3c632Sopenharmony_ci
2621ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2622ffe3c632Sopenharmony_ci    }
2623ffe3c632Sopenharmony_ci
2624ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2625ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
2626ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2627ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
2628ffe3c632Sopenharmony_ci    #else
2629ffe3c632Sopenharmony_ci      uint tag;
2630ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2631ffe3c632Sopenharmony_ci        switch(tag) {
2632ffe3c632Sopenharmony_ci          default:
2633ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2634ffe3c632Sopenharmony_ci            break;
2635ffe3c632Sopenharmony_ci          case 10: {
2636ffe3c632Sopenharmony_ci            Text = input.ReadString();
2637ffe3c632Sopenharmony_ci            break;
2638ffe3c632Sopenharmony_ci          }
2639ffe3c632Sopenharmony_ci          case 18: {
2640ffe3c632Sopenharmony_ci            global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested subBuilder = new global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested();
2641ffe3c632Sopenharmony_ci            if (valueCase_ == ValueOneofCase.Nested) {
2642ffe3c632Sopenharmony_ci              subBuilder.MergeFrom(Nested);
2643ffe3c632Sopenharmony_ci            }
2644ffe3c632Sopenharmony_ci            input.ReadMessage(subBuilder);
2645ffe3c632Sopenharmony_ci            Nested = subBuilder;
2646ffe3c632Sopenharmony_ci            break;
2647ffe3c632Sopenharmony_ci          }
2648ffe3c632Sopenharmony_ci        }
2649ffe3c632Sopenharmony_ci      }
2650ffe3c632Sopenharmony_ci    #endif
2651ffe3c632Sopenharmony_ci    }
2652ffe3c632Sopenharmony_ci
2653ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2654ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2655ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2656ffe3c632Sopenharmony_ci      uint tag;
2657ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
2658ffe3c632Sopenharmony_ci        switch(tag) {
2659ffe3c632Sopenharmony_ci          default:
2660ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2661ffe3c632Sopenharmony_ci            break;
2662ffe3c632Sopenharmony_ci          case 10: {
2663ffe3c632Sopenharmony_ci            Text = input.ReadString();
2664ffe3c632Sopenharmony_ci            break;
2665ffe3c632Sopenharmony_ci          }
2666ffe3c632Sopenharmony_ci          case 18: {
2667ffe3c632Sopenharmony_ci            global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested subBuilder = new global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested();
2668ffe3c632Sopenharmony_ci            if (valueCase_ == ValueOneofCase.Nested) {
2669ffe3c632Sopenharmony_ci              subBuilder.MergeFrom(Nested);
2670ffe3c632Sopenharmony_ci            }
2671ffe3c632Sopenharmony_ci            input.ReadMessage(subBuilder);
2672ffe3c632Sopenharmony_ci            Nested = subBuilder;
2673ffe3c632Sopenharmony_ci            break;
2674ffe3c632Sopenharmony_ci          }
2675ffe3c632Sopenharmony_ci        }
2676ffe3c632Sopenharmony_ci      }
2677ffe3c632Sopenharmony_ci    }
2678ffe3c632Sopenharmony_ci    #endif
2679ffe3c632Sopenharmony_ci
2680ffe3c632Sopenharmony_ci    #region Nested types
2681ffe3c632Sopenharmony_ci    /// <summary>Container for nested types declared in the OneofMerging message type.</summary>
2682ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2683ffe3c632Sopenharmony_ci    public static partial class Types {
2684ffe3c632Sopenharmony_ci      public sealed partial class Nested : pb::IMessage<Nested>
2685ffe3c632Sopenharmony_ci      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2686ffe3c632Sopenharmony_ci          , pb::IBufferMessage
2687ffe3c632Sopenharmony_ci      #endif
2688ffe3c632Sopenharmony_ci      {
2689ffe3c632Sopenharmony_ci        private static readonly pb::MessageParser<Nested> _parser = new pb::MessageParser<Nested>(() => new Nested());
2690ffe3c632Sopenharmony_ci        private pb::UnknownFieldSet _unknownFields;
2691ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2692ffe3c632Sopenharmony_ci        public static pb::MessageParser<Nested> Parser { get { return _parser; } }
2693ffe3c632Sopenharmony_ci
2694ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2695ffe3c632Sopenharmony_ci        public static pbr::MessageDescriptor Descriptor {
2696ffe3c632Sopenharmony_ci          get { return global::UnitTest.Issues.TestProtos.OneofMerging.Descriptor.NestedTypes[0]; }
2697ffe3c632Sopenharmony_ci        }
2698ffe3c632Sopenharmony_ci
2699ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2700ffe3c632Sopenharmony_ci        pbr::MessageDescriptor pb::IMessage.Descriptor {
2701ffe3c632Sopenharmony_ci          get { return Descriptor; }
2702ffe3c632Sopenharmony_ci        }
2703ffe3c632Sopenharmony_ci
2704ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2705ffe3c632Sopenharmony_ci        public Nested() {
2706ffe3c632Sopenharmony_ci          OnConstruction();
2707ffe3c632Sopenharmony_ci        }
2708ffe3c632Sopenharmony_ci
2709ffe3c632Sopenharmony_ci        partial void OnConstruction();
2710ffe3c632Sopenharmony_ci
2711ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2712ffe3c632Sopenharmony_ci        public Nested(Nested other) : this() {
2713ffe3c632Sopenharmony_ci          x_ = other.x_;
2714ffe3c632Sopenharmony_ci          y_ = other.y_;
2715ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2716ffe3c632Sopenharmony_ci        }
2717ffe3c632Sopenharmony_ci
2718ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2719ffe3c632Sopenharmony_ci        public Nested Clone() {
2720ffe3c632Sopenharmony_ci          return new Nested(this);
2721ffe3c632Sopenharmony_ci        }
2722ffe3c632Sopenharmony_ci
2723ffe3c632Sopenharmony_ci        /// <summary>Field number for the "x" field.</summary>
2724ffe3c632Sopenharmony_ci        public const int XFieldNumber = 1;
2725ffe3c632Sopenharmony_ci        private int x_;
2726ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2727ffe3c632Sopenharmony_ci        public int X {
2728ffe3c632Sopenharmony_ci          get { return x_; }
2729ffe3c632Sopenharmony_ci          set {
2730ffe3c632Sopenharmony_ci            x_ = value;
2731ffe3c632Sopenharmony_ci          }
2732ffe3c632Sopenharmony_ci        }
2733ffe3c632Sopenharmony_ci
2734ffe3c632Sopenharmony_ci        /// <summary>Field number for the "y" field.</summary>
2735ffe3c632Sopenharmony_ci        public const int YFieldNumber = 2;
2736ffe3c632Sopenharmony_ci        private int y_;
2737ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2738ffe3c632Sopenharmony_ci        public int Y {
2739ffe3c632Sopenharmony_ci          get { return y_; }
2740ffe3c632Sopenharmony_ci          set {
2741ffe3c632Sopenharmony_ci            y_ = value;
2742ffe3c632Sopenharmony_ci          }
2743ffe3c632Sopenharmony_ci        }
2744ffe3c632Sopenharmony_ci
2745ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2746ffe3c632Sopenharmony_ci        public override bool Equals(object other) {
2747ffe3c632Sopenharmony_ci          return Equals(other as Nested);
2748ffe3c632Sopenharmony_ci        }
2749ffe3c632Sopenharmony_ci
2750ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2751ffe3c632Sopenharmony_ci        public bool Equals(Nested other) {
2752ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, null)) {
2753ffe3c632Sopenharmony_ci            return false;
2754ffe3c632Sopenharmony_ci          }
2755ffe3c632Sopenharmony_ci          if (ReferenceEquals(other, this)) {
2756ffe3c632Sopenharmony_ci            return true;
2757ffe3c632Sopenharmony_ci          }
2758ffe3c632Sopenharmony_ci          if (X != other.X) return false;
2759ffe3c632Sopenharmony_ci          if (Y != other.Y) return false;
2760ffe3c632Sopenharmony_ci          return Equals(_unknownFields, other._unknownFields);
2761ffe3c632Sopenharmony_ci        }
2762ffe3c632Sopenharmony_ci
2763ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2764ffe3c632Sopenharmony_ci        public override int GetHashCode() {
2765ffe3c632Sopenharmony_ci          int hash = 1;
2766ffe3c632Sopenharmony_ci          if (X != 0) hash ^= X.GetHashCode();
2767ffe3c632Sopenharmony_ci          if (Y != 0) hash ^= Y.GetHashCode();
2768ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
2769ffe3c632Sopenharmony_ci            hash ^= _unknownFields.GetHashCode();
2770ffe3c632Sopenharmony_ci          }
2771ffe3c632Sopenharmony_ci          return hash;
2772ffe3c632Sopenharmony_ci        }
2773ffe3c632Sopenharmony_ci
2774ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2775ffe3c632Sopenharmony_ci        public override string ToString() {
2776ffe3c632Sopenharmony_ci          return pb::JsonFormatter.ToDiagnosticString(this);
2777ffe3c632Sopenharmony_ci        }
2778ffe3c632Sopenharmony_ci
2779ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2780ffe3c632Sopenharmony_ci        public void WriteTo(pb::CodedOutputStream output) {
2781ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2782ffe3c632Sopenharmony_ci          output.WriteRawMessage(this);
2783ffe3c632Sopenharmony_ci        #else
2784ffe3c632Sopenharmony_ci          if (X != 0) {
2785ffe3c632Sopenharmony_ci            output.WriteRawTag(8);
2786ffe3c632Sopenharmony_ci            output.WriteInt32(X);
2787ffe3c632Sopenharmony_ci          }
2788ffe3c632Sopenharmony_ci          if (Y != 0) {
2789ffe3c632Sopenharmony_ci            output.WriteRawTag(16);
2790ffe3c632Sopenharmony_ci            output.WriteInt32(Y);
2791ffe3c632Sopenharmony_ci          }
2792ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
2793ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(output);
2794ffe3c632Sopenharmony_ci          }
2795ffe3c632Sopenharmony_ci        #endif
2796ffe3c632Sopenharmony_ci        }
2797ffe3c632Sopenharmony_ci
2798ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2799ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2800ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2801ffe3c632Sopenharmony_ci          if (X != 0) {
2802ffe3c632Sopenharmony_ci            output.WriteRawTag(8);
2803ffe3c632Sopenharmony_ci            output.WriteInt32(X);
2804ffe3c632Sopenharmony_ci          }
2805ffe3c632Sopenharmony_ci          if (Y != 0) {
2806ffe3c632Sopenharmony_ci            output.WriteRawTag(16);
2807ffe3c632Sopenharmony_ci            output.WriteInt32(Y);
2808ffe3c632Sopenharmony_ci          }
2809ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
2810ffe3c632Sopenharmony_ci            _unknownFields.WriteTo(ref output);
2811ffe3c632Sopenharmony_ci          }
2812ffe3c632Sopenharmony_ci        }
2813ffe3c632Sopenharmony_ci        #endif
2814ffe3c632Sopenharmony_ci
2815ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2816ffe3c632Sopenharmony_ci        public int CalculateSize() {
2817ffe3c632Sopenharmony_ci          int size = 0;
2818ffe3c632Sopenharmony_ci          if (X != 0) {
2819ffe3c632Sopenharmony_ci            size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
2820ffe3c632Sopenharmony_ci          }
2821ffe3c632Sopenharmony_ci          if (Y != 0) {
2822ffe3c632Sopenharmony_ci            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
2823ffe3c632Sopenharmony_ci          }
2824ffe3c632Sopenharmony_ci          if (_unknownFields != null) {
2825ffe3c632Sopenharmony_ci            size += _unknownFields.CalculateSize();
2826ffe3c632Sopenharmony_ci          }
2827ffe3c632Sopenharmony_ci          return size;
2828ffe3c632Sopenharmony_ci        }
2829ffe3c632Sopenharmony_ci
2830ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2831ffe3c632Sopenharmony_ci        public void MergeFrom(Nested other) {
2832ffe3c632Sopenharmony_ci          if (other == null) {
2833ffe3c632Sopenharmony_ci            return;
2834ffe3c632Sopenharmony_ci          }
2835ffe3c632Sopenharmony_ci          if (other.X != 0) {
2836ffe3c632Sopenharmony_ci            X = other.X;
2837ffe3c632Sopenharmony_ci          }
2838ffe3c632Sopenharmony_ci          if (other.Y != 0) {
2839ffe3c632Sopenharmony_ci            Y = other.Y;
2840ffe3c632Sopenharmony_ci          }
2841ffe3c632Sopenharmony_ci          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2842ffe3c632Sopenharmony_ci        }
2843ffe3c632Sopenharmony_ci
2844ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2845ffe3c632Sopenharmony_ci        public void MergeFrom(pb::CodedInputStream input) {
2846ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2847ffe3c632Sopenharmony_ci          input.ReadRawMessage(this);
2848ffe3c632Sopenharmony_ci        #else
2849ffe3c632Sopenharmony_ci          uint tag;
2850ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
2851ffe3c632Sopenharmony_ci            switch(tag) {
2852ffe3c632Sopenharmony_ci              default:
2853ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2854ffe3c632Sopenharmony_ci                break;
2855ffe3c632Sopenharmony_ci              case 8: {
2856ffe3c632Sopenharmony_ci                X = input.ReadInt32();
2857ffe3c632Sopenharmony_ci                break;
2858ffe3c632Sopenharmony_ci              }
2859ffe3c632Sopenharmony_ci              case 16: {
2860ffe3c632Sopenharmony_ci                Y = input.ReadInt32();
2861ffe3c632Sopenharmony_ci                break;
2862ffe3c632Sopenharmony_ci              }
2863ffe3c632Sopenharmony_ci            }
2864ffe3c632Sopenharmony_ci          }
2865ffe3c632Sopenharmony_ci        #endif
2866ffe3c632Sopenharmony_ci        }
2867ffe3c632Sopenharmony_ci
2868ffe3c632Sopenharmony_ci        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2869ffe3c632Sopenharmony_ci        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2870ffe3c632Sopenharmony_ci        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2871ffe3c632Sopenharmony_ci          uint tag;
2872ffe3c632Sopenharmony_ci          while ((tag = input.ReadTag()) != 0) {
2873ffe3c632Sopenharmony_ci            switch(tag) {
2874ffe3c632Sopenharmony_ci              default:
2875ffe3c632Sopenharmony_ci                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2876ffe3c632Sopenharmony_ci                break;
2877ffe3c632Sopenharmony_ci              case 8: {
2878ffe3c632Sopenharmony_ci                X = input.ReadInt32();
2879ffe3c632Sopenharmony_ci                break;
2880ffe3c632Sopenharmony_ci              }
2881ffe3c632Sopenharmony_ci              case 16: {
2882ffe3c632Sopenharmony_ci                Y = input.ReadInt32();
2883ffe3c632Sopenharmony_ci                break;
2884ffe3c632Sopenharmony_ci              }
2885ffe3c632Sopenharmony_ci            }
2886ffe3c632Sopenharmony_ci          }
2887ffe3c632Sopenharmony_ci        }
2888ffe3c632Sopenharmony_ci        #endif
2889ffe3c632Sopenharmony_ci
2890ffe3c632Sopenharmony_ci      }
2891ffe3c632Sopenharmony_ci
2892ffe3c632Sopenharmony_ci    }
2893ffe3c632Sopenharmony_ci    #endregion
2894ffe3c632Sopenharmony_ci
2895ffe3c632Sopenharmony_ci  }
2896ffe3c632Sopenharmony_ci
2897ffe3c632Sopenharmony_ci  public sealed partial class NullValueOutsideStruct : pb::IMessage<NullValueOutsideStruct>
2898ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2899ffe3c632Sopenharmony_ci      , pb::IBufferMessage
2900ffe3c632Sopenharmony_ci  #endif
2901ffe3c632Sopenharmony_ci  {
2902ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<NullValueOutsideStruct> _parser = new pb::MessageParser<NullValueOutsideStruct>(() => new NullValueOutsideStruct());
2903ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
2904ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2905ffe3c632Sopenharmony_ci    public static pb::MessageParser<NullValueOutsideStruct> Parser { get { return _parser; } }
2906ffe3c632Sopenharmony_ci
2907ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2908ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
2909ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[9]; }
2910ffe3c632Sopenharmony_ci    }
2911ffe3c632Sopenharmony_ci
2912ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2913ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
2914ffe3c632Sopenharmony_ci      get { return Descriptor; }
2915ffe3c632Sopenharmony_ci    }
2916ffe3c632Sopenharmony_ci
2917ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2918ffe3c632Sopenharmony_ci    public NullValueOutsideStruct() {
2919ffe3c632Sopenharmony_ci      OnConstruction();
2920ffe3c632Sopenharmony_ci    }
2921ffe3c632Sopenharmony_ci
2922ffe3c632Sopenharmony_ci    partial void OnConstruction();
2923ffe3c632Sopenharmony_ci
2924ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2925ffe3c632Sopenharmony_ci    public NullValueOutsideStruct(NullValueOutsideStruct other) : this() {
2926ffe3c632Sopenharmony_ci      switch (other.ValueCase) {
2927ffe3c632Sopenharmony_ci        case ValueOneofCase.StringValue:
2928ffe3c632Sopenharmony_ci          StringValue = other.StringValue;
2929ffe3c632Sopenharmony_ci          break;
2930ffe3c632Sopenharmony_ci        case ValueOneofCase.NullValue:
2931ffe3c632Sopenharmony_ci          NullValue = other.NullValue;
2932ffe3c632Sopenharmony_ci          break;
2933ffe3c632Sopenharmony_ci      }
2934ffe3c632Sopenharmony_ci
2935ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2936ffe3c632Sopenharmony_ci    }
2937ffe3c632Sopenharmony_ci
2938ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2939ffe3c632Sopenharmony_ci    public NullValueOutsideStruct Clone() {
2940ffe3c632Sopenharmony_ci      return new NullValueOutsideStruct(this);
2941ffe3c632Sopenharmony_ci    }
2942ffe3c632Sopenharmony_ci
2943ffe3c632Sopenharmony_ci    /// <summary>Field number for the "string_value" field.</summary>
2944ffe3c632Sopenharmony_ci    public const int StringValueFieldNumber = 1;
2945ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2946ffe3c632Sopenharmony_ci    public string StringValue {
2947ffe3c632Sopenharmony_ci      get { return valueCase_ == ValueOneofCase.StringValue ? (string) value_ : ""; }
2948ffe3c632Sopenharmony_ci      set {
2949ffe3c632Sopenharmony_ci        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2950ffe3c632Sopenharmony_ci        valueCase_ = ValueOneofCase.StringValue;
2951ffe3c632Sopenharmony_ci      }
2952ffe3c632Sopenharmony_ci    }
2953ffe3c632Sopenharmony_ci
2954ffe3c632Sopenharmony_ci    /// <summary>Field number for the "null_value" field.</summary>
2955ffe3c632Sopenharmony_ci    public const int NullValueFieldNumber = 2;
2956ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2957ffe3c632Sopenharmony_ci    public global::Google.Protobuf.WellKnownTypes.NullValue NullValue {
2958ffe3c632Sopenharmony_ci      get { return valueCase_ == ValueOneofCase.NullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) value_ : global::Google.Protobuf.WellKnownTypes.NullValue.NullValue; }
2959ffe3c632Sopenharmony_ci      set {
2960ffe3c632Sopenharmony_ci        value_ = value;
2961ffe3c632Sopenharmony_ci        valueCase_ = ValueOneofCase.NullValue;
2962ffe3c632Sopenharmony_ci      }
2963ffe3c632Sopenharmony_ci    }
2964ffe3c632Sopenharmony_ci
2965ffe3c632Sopenharmony_ci    private object value_;
2966ffe3c632Sopenharmony_ci    /// <summary>Enum of possible cases for the "value" oneof.</summary>
2967ffe3c632Sopenharmony_ci    public enum ValueOneofCase {
2968ffe3c632Sopenharmony_ci      None = 0,
2969ffe3c632Sopenharmony_ci      StringValue = 1,
2970ffe3c632Sopenharmony_ci      NullValue = 2,
2971ffe3c632Sopenharmony_ci    }
2972ffe3c632Sopenharmony_ci    private ValueOneofCase valueCase_ = ValueOneofCase.None;
2973ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2974ffe3c632Sopenharmony_ci    public ValueOneofCase ValueCase {
2975ffe3c632Sopenharmony_ci      get { return valueCase_; }
2976ffe3c632Sopenharmony_ci    }
2977ffe3c632Sopenharmony_ci
2978ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2979ffe3c632Sopenharmony_ci    public void ClearValue() {
2980ffe3c632Sopenharmony_ci      valueCase_ = ValueOneofCase.None;
2981ffe3c632Sopenharmony_ci      value_ = null;
2982ffe3c632Sopenharmony_ci    }
2983ffe3c632Sopenharmony_ci
2984ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2985ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
2986ffe3c632Sopenharmony_ci      return Equals(other as NullValueOutsideStruct);
2987ffe3c632Sopenharmony_ci    }
2988ffe3c632Sopenharmony_ci
2989ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2990ffe3c632Sopenharmony_ci    public bool Equals(NullValueOutsideStruct other) {
2991ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
2992ffe3c632Sopenharmony_ci        return false;
2993ffe3c632Sopenharmony_ci      }
2994ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
2995ffe3c632Sopenharmony_ci        return true;
2996ffe3c632Sopenharmony_ci      }
2997ffe3c632Sopenharmony_ci      if (StringValue != other.StringValue) return false;
2998ffe3c632Sopenharmony_ci      if (NullValue != other.NullValue) return false;
2999ffe3c632Sopenharmony_ci      if (ValueCase != other.ValueCase) return false;
3000ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
3001ffe3c632Sopenharmony_ci    }
3002ffe3c632Sopenharmony_ci
3003ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3004ffe3c632Sopenharmony_ci    public override int GetHashCode() {
3005ffe3c632Sopenharmony_ci      int hash = 1;
3006ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.StringValue) hash ^= StringValue.GetHashCode();
3007ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.NullValue) hash ^= NullValue.GetHashCode();
3008ffe3c632Sopenharmony_ci      hash ^= (int) valueCase_;
3009ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3010ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
3011ffe3c632Sopenharmony_ci      }
3012ffe3c632Sopenharmony_ci      return hash;
3013ffe3c632Sopenharmony_ci    }
3014ffe3c632Sopenharmony_ci
3015ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3016ffe3c632Sopenharmony_ci    public override string ToString() {
3017ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
3018ffe3c632Sopenharmony_ci    }
3019ffe3c632Sopenharmony_ci
3020ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3021ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
3022ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3023ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
3024ffe3c632Sopenharmony_ci    #else
3025ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.StringValue) {
3026ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
3027ffe3c632Sopenharmony_ci        output.WriteString(StringValue);
3028ffe3c632Sopenharmony_ci      }
3029ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.NullValue) {
3030ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
3031ffe3c632Sopenharmony_ci        output.WriteEnum((int) NullValue);
3032ffe3c632Sopenharmony_ci      }
3033ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3034ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
3035ffe3c632Sopenharmony_ci      }
3036ffe3c632Sopenharmony_ci    #endif
3037ffe3c632Sopenharmony_ci    }
3038ffe3c632Sopenharmony_ci
3039ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3040ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3041ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3042ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.StringValue) {
3043ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
3044ffe3c632Sopenharmony_ci        output.WriteString(StringValue);
3045ffe3c632Sopenharmony_ci      }
3046ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.NullValue) {
3047ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
3048ffe3c632Sopenharmony_ci        output.WriteEnum((int) NullValue);
3049ffe3c632Sopenharmony_ci      }
3050ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3051ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
3052ffe3c632Sopenharmony_ci      }
3053ffe3c632Sopenharmony_ci    }
3054ffe3c632Sopenharmony_ci    #endif
3055ffe3c632Sopenharmony_ci
3056ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3057ffe3c632Sopenharmony_ci    public int CalculateSize() {
3058ffe3c632Sopenharmony_ci      int size = 0;
3059ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.StringValue) {
3060ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
3061ffe3c632Sopenharmony_ci      }
3062ffe3c632Sopenharmony_ci      if (valueCase_ == ValueOneofCase.NullValue) {
3063ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue);
3064ffe3c632Sopenharmony_ci      }
3065ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3066ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
3067ffe3c632Sopenharmony_ci      }
3068ffe3c632Sopenharmony_ci      return size;
3069ffe3c632Sopenharmony_ci    }
3070ffe3c632Sopenharmony_ci
3071ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3072ffe3c632Sopenharmony_ci    public void MergeFrom(NullValueOutsideStruct other) {
3073ffe3c632Sopenharmony_ci      if (other == null) {
3074ffe3c632Sopenharmony_ci        return;
3075ffe3c632Sopenharmony_ci      }
3076ffe3c632Sopenharmony_ci      switch (other.ValueCase) {
3077ffe3c632Sopenharmony_ci        case ValueOneofCase.StringValue:
3078ffe3c632Sopenharmony_ci          StringValue = other.StringValue;
3079ffe3c632Sopenharmony_ci          break;
3080ffe3c632Sopenharmony_ci        case ValueOneofCase.NullValue:
3081ffe3c632Sopenharmony_ci          NullValue = other.NullValue;
3082ffe3c632Sopenharmony_ci          break;
3083ffe3c632Sopenharmony_ci      }
3084ffe3c632Sopenharmony_ci
3085ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3086ffe3c632Sopenharmony_ci    }
3087ffe3c632Sopenharmony_ci
3088ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3089ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
3090ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3091ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
3092ffe3c632Sopenharmony_ci    #else
3093ffe3c632Sopenharmony_ci      uint tag;
3094ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3095ffe3c632Sopenharmony_ci        switch(tag) {
3096ffe3c632Sopenharmony_ci          default:
3097ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3098ffe3c632Sopenharmony_ci            break;
3099ffe3c632Sopenharmony_ci          case 10: {
3100ffe3c632Sopenharmony_ci            StringValue = input.ReadString();
3101ffe3c632Sopenharmony_ci            break;
3102ffe3c632Sopenharmony_ci          }
3103ffe3c632Sopenharmony_ci          case 16: {
3104ffe3c632Sopenharmony_ci            value_ = input.ReadEnum();
3105ffe3c632Sopenharmony_ci            valueCase_ = ValueOneofCase.NullValue;
3106ffe3c632Sopenharmony_ci            break;
3107ffe3c632Sopenharmony_ci          }
3108ffe3c632Sopenharmony_ci        }
3109ffe3c632Sopenharmony_ci      }
3110ffe3c632Sopenharmony_ci    #endif
3111ffe3c632Sopenharmony_ci    }
3112ffe3c632Sopenharmony_ci
3113ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3114ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3115ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3116ffe3c632Sopenharmony_ci      uint tag;
3117ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3118ffe3c632Sopenharmony_ci        switch(tag) {
3119ffe3c632Sopenharmony_ci          default:
3120ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3121ffe3c632Sopenharmony_ci            break;
3122ffe3c632Sopenharmony_ci          case 10: {
3123ffe3c632Sopenharmony_ci            StringValue = input.ReadString();
3124ffe3c632Sopenharmony_ci            break;
3125ffe3c632Sopenharmony_ci          }
3126ffe3c632Sopenharmony_ci          case 16: {
3127ffe3c632Sopenharmony_ci            value_ = input.ReadEnum();
3128ffe3c632Sopenharmony_ci            valueCase_ = ValueOneofCase.NullValue;
3129ffe3c632Sopenharmony_ci            break;
3130ffe3c632Sopenharmony_ci          }
3131ffe3c632Sopenharmony_ci        }
3132ffe3c632Sopenharmony_ci      }
3133ffe3c632Sopenharmony_ci    }
3134ffe3c632Sopenharmony_ci    #endif
3135ffe3c632Sopenharmony_ci
3136ffe3c632Sopenharmony_ci  }
3137ffe3c632Sopenharmony_ci
3138ffe3c632Sopenharmony_ci  public sealed partial class NullValueNotInOneof : pb::IMessage<NullValueNotInOneof>
3139ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3140ffe3c632Sopenharmony_ci      , pb::IBufferMessage
3141ffe3c632Sopenharmony_ci  #endif
3142ffe3c632Sopenharmony_ci  {
3143ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<NullValueNotInOneof> _parser = new pb::MessageParser<NullValueNotInOneof>(() => new NullValueNotInOneof());
3144ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
3145ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3146ffe3c632Sopenharmony_ci    public static pb::MessageParser<NullValueNotInOneof> Parser { get { return _parser; } }
3147ffe3c632Sopenharmony_ci
3148ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3149ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
3150ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[10]; }
3151ffe3c632Sopenharmony_ci    }
3152ffe3c632Sopenharmony_ci
3153ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3154ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
3155ffe3c632Sopenharmony_ci      get { return Descriptor; }
3156ffe3c632Sopenharmony_ci    }
3157ffe3c632Sopenharmony_ci
3158ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3159ffe3c632Sopenharmony_ci    public NullValueNotInOneof() {
3160ffe3c632Sopenharmony_ci      OnConstruction();
3161ffe3c632Sopenharmony_ci    }
3162ffe3c632Sopenharmony_ci
3163ffe3c632Sopenharmony_ci    partial void OnConstruction();
3164ffe3c632Sopenharmony_ci
3165ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3166ffe3c632Sopenharmony_ci    public NullValueNotInOneof(NullValueNotInOneof other) : this() {
3167ffe3c632Sopenharmony_ci      nullValue_ = other.nullValue_;
3168ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3169ffe3c632Sopenharmony_ci    }
3170ffe3c632Sopenharmony_ci
3171ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3172ffe3c632Sopenharmony_ci    public NullValueNotInOneof Clone() {
3173ffe3c632Sopenharmony_ci      return new NullValueNotInOneof(this);
3174ffe3c632Sopenharmony_ci    }
3175ffe3c632Sopenharmony_ci
3176ffe3c632Sopenharmony_ci    /// <summary>Field number for the "null_value" field.</summary>
3177ffe3c632Sopenharmony_ci    public const int NullValueFieldNumber = 2;
3178ffe3c632Sopenharmony_ci    private global::Google.Protobuf.WellKnownTypes.NullValue nullValue_ = global::Google.Protobuf.WellKnownTypes.NullValue.NullValue;
3179ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3180ffe3c632Sopenharmony_ci    public global::Google.Protobuf.WellKnownTypes.NullValue NullValue {
3181ffe3c632Sopenharmony_ci      get { return nullValue_; }
3182ffe3c632Sopenharmony_ci      set {
3183ffe3c632Sopenharmony_ci        nullValue_ = value;
3184ffe3c632Sopenharmony_ci      }
3185ffe3c632Sopenharmony_ci    }
3186ffe3c632Sopenharmony_ci
3187ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3188ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
3189ffe3c632Sopenharmony_ci      return Equals(other as NullValueNotInOneof);
3190ffe3c632Sopenharmony_ci    }
3191ffe3c632Sopenharmony_ci
3192ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3193ffe3c632Sopenharmony_ci    public bool Equals(NullValueNotInOneof other) {
3194ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
3195ffe3c632Sopenharmony_ci        return false;
3196ffe3c632Sopenharmony_ci      }
3197ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
3198ffe3c632Sopenharmony_ci        return true;
3199ffe3c632Sopenharmony_ci      }
3200ffe3c632Sopenharmony_ci      if (NullValue != other.NullValue) return false;
3201ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
3202ffe3c632Sopenharmony_ci    }
3203ffe3c632Sopenharmony_ci
3204ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3205ffe3c632Sopenharmony_ci    public override int GetHashCode() {
3206ffe3c632Sopenharmony_ci      int hash = 1;
3207ffe3c632Sopenharmony_ci      if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) hash ^= NullValue.GetHashCode();
3208ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3209ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
3210ffe3c632Sopenharmony_ci      }
3211ffe3c632Sopenharmony_ci      return hash;
3212ffe3c632Sopenharmony_ci    }
3213ffe3c632Sopenharmony_ci
3214ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3215ffe3c632Sopenharmony_ci    public override string ToString() {
3216ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
3217ffe3c632Sopenharmony_ci    }
3218ffe3c632Sopenharmony_ci
3219ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3220ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
3221ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3222ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
3223ffe3c632Sopenharmony_ci    #else
3224ffe3c632Sopenharmony_ci      if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
3225ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
3226ffe3c632Sopenharmony_ci        output.WriteEnum((int) NullValue);
3227ffe3c632Sopenharmony_ci      }
3228ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3229ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
3230ffe3c632Sopenharmony_ci      }
3231ffe3c632Sopenharmony_ci    #endif
3232ffe3c632Sopenharmony_ci    }
3233ffe3c632Sopenharmony_ci
3234ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3235ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3236ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3237ffe3c632Sopenharmony_ci      if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
3238ffe3c632Sopenharmony_ci        output.WriteRawTag(16);
3239ffe3c632Sopenharmony_ci        output.WriteEnum((int) NullValue);
3240ffe3c632Sopenharmony_ci      }
3241ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3242ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
3243ffe3c632Sopenharmony_ci      }
3244ffe3c632Sopenharmony_ci    }
3245ffe3c632Sopenharmony_ci    #endif
3246ffe3c632Sopenharmony_ci
3247ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3248ffe3c632Sopenharmony_ci    public int CalculateSize() {
3249ffe3c632Sopenharmony_ci      int size = 0;
3250ffe3c632Sopenharmony_ci      if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
3251ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue);
3252ffe3c632Sopenharmony_ci      }
3253ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3254ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
3255ffe3c632Sopenharmony_ci      }
3256ffe3c632Sopenharmony_ci      return size;
3257ffe3c632Sopenharmony_ci    }
3258ffe3c632Sopenharmony_ci
3259ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3260ffe3c632Sopenharmony_ci    public void MergeFrom(NullValueNotInOneof other) {
3261ffe3c632Sopenharmony_ci      if (other == null) {
3262ffe3c632Sopenharmony_ci        return;
3263ffe3c632Sopenharmony_ci      }
3264ffe3c632Sopenharmony_ci      if (other.NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
3265ffe3c632Sopenharmony_ci        NullValue = other.NullValue;
3266ffe3c632Sopenharmony_ci      }
3267ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3268ffe3c632Sopenharmony_ci    }
3269ffe3c632Sopenharmony_ci
3270ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3271ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
3272ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3273ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
3274ffe3c632Sopenharmony_ci    #else
3275ffe3c632Sopenharmony_ci      uint tag;
3276ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3277ffe3c632Sopenharmony_ci        switch(tag) {
3278ffe3c632Sopenharmony_ci          default:
3279ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3280ffe3c632Sopenharmony_ci            break;
3281ffe3c632Sopenharmony_ci          case 16: {
3282ffe3c632Sopenharmony_ci            NullValue = (global::Google.Protobuf.WellKnownTypes.NullValue) input.ReadEnum();
3283ffe3c632Sopenharmony_ci            break;
3284ffe3c632Sopenharmony_ci          }
3285ffe3c632Sopenharmony_ci        }
3286ffe3c632Sopenharmony_ci      }
3287ffe3c632Sopenharmony_ci    #endif
3288ffe3c632Sopenharmony_ci    }
3289ffe3c632Sopenharmony_ci
3290ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3291ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3292ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3293ffe3c632Sopenharmony_ci      uint tag;
3294ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3295ffe3c632Sopenharmony_ci        switch(tag) {
3296ffe3c632Sopenharmony_ci          default:
3297ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3298ffe3c632Sopenharmony_ci            break;
3299ffe3c632Sopenharmony_ci          case 16: {
3300ffe3c632Sopenharmony_ci            NullValue = (global::Google.Protobuf.WellKnownTypes.NullValue) input.ReadEnum();
3301ffe3c632Sopenharmony_ci            break;
3302ffe3c632Sopenharmony_ci          }
3303ffe3c632Sopenharmony_ci        }
3304ffe3c632Sopenharmony_ci      }
3305ffe3c632Sopenharmony_ci    }
3306ffe3c632Sopenharmony_ci    #endif
3307ffe3c632Sopenharmony_ci
3308ffe3c632Sopenharmony_ci  }
3309ffe3c632Sopenharmony_ci
3310ffe3c632Sopenharmony_ci  public sealed partial class MixedRegularAndOptional : pb::IMessage<MixedRegularAndOptional>
3311ffe3c632Sopenharmony_ci  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3312ffe3c632Sopenharmony_ci      , pb::IBufferMessage
3313ffe3c632Sopenharmony_ci  #endif
3314ffe3c632Sopenharmony_ci  {
3315ffe3c632Sopenharmony_ci    private static readonly pb::MessageParser<MixedRegularAndOptional> _parser = new pb::MessageParser<MixedRegularAndOptional>(() => new MixedRegularAndOptional());
3316ffe3c632Sopenharmony_ci    private pb::UnknownFieldSet _unknownFields;
3317ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3318ffe3c632Sopenharmony_ci    public static pb::MessageParser<MixedRegularAndOptional> Parser { get { return _parser; } }
3319ffe3c632Sopenharmony_ci
3320ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3321ffe3c632Sopenharmony_ci    public static pbr::MessageDescriptor Descriptor {
3322ffe3c632Sopenharmony_ci      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[11]; }
3323ffe3c632Sopenharmony_ci    }
3324ffe3c632Sopenharmony_ci
3325ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3326ffe3c632Sopenharmony_ci    pbr::MessageDescriptor pb::IMessage.Descriptor {
3327ffe3c632Sopenharmony_ci      get { return Descriptor; }
3328ffe3c632Sopenharmony_ci    }
3329ffe3c632Sopenharmony_ci
3330ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3331ffe3c632Sopenharmony_ci    public MixedRegularAndOptional() {
3332ffe3c632Sopenharmony_ci      OnConstruction();
3333ffe3c632Sopenharmony_ci    }
3334ffe3c632Sopenharmony_ci
3335ffe3c632Sopenharmony_ci    partial void OnConstruction();
3336ffe3c632Sopenharmony_ci
3337ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3338ffe3c632Sopenharmony_ci    public MixedRegularAndOptional(MixedRegularAndOptional other) : this() {
3339ffe3c632Sopenharmony_ci      regularField_ = other.regularField_;
3340ffe3c632Sopenharmony_ci      optionalField_ = other.optionalField_;
3341ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3342ffe3c632Sopenharmony_ci    }
3343ffe3c632Sopenharmony_ci
3344ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3345ffe3c632Sopenharmony_ci    public MixedRegularAndOptional Clone() {
3346ffe3c632Sopenharmony_ci      return new MixedRegularAndOptional(this);
3347ffe3c632Sopenharmony_ci    }
3348ffe3c632Sopenharmony_ci
3349ffe3c632Sopenharmony_ci    /// <summary>Field number for the "regular_field" field.</summary>
3350ffe3c632Sopenharmony_ci    public const int RegularFieldFieldNumber = 1;
3351ffe3c632Sopenharmony_ci    private string regularField_ = "";
3352ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3353ffe3c632Sopenharmony_ci    public string RegularField {
3354ffe3c632Sopenharmony_ci      get { return regularField_; }
3355ffe3c632Sopenharmony_ci      set {
3356ffe3c632Sopenharmony_ci        regularField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3357ffe3c632Sopenharmony_ci      }
3358ffe3c632Sopenharmony_ci    }
3359ffe3c632Sopenharmony_ci
3360ffe3c632Sopenharmony_ci    /// <summary>Field number for the "optional_field" field.</summary>
3361ffe3c632Sopenharmony_ci    public const int OptionalFieldFieldNumber = 2;
3362ffe3c632Sopenharmony_ci    private string optionalField_;
3363ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3364ffe3c632Sopenharmony_ci    public string OptionalField {
3365ffe3c632Sopenharmony_ci      get { return optionalField_ ?? ""; }
3366ffe3c632Sopenharmony_ci      set {
3367ffe3c632Sopenharmony_ci        optionalField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3368ffe3c632Sopenharmony_ci      }
3369ffe3c632Sopenharmony_ci    }
3370ffe3c632Sopenharmony_ci    /// <summary>Gets whether the "optional_field" field is set</summary>
3371ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3372ffe3c632Sopenharmony_ci    public bool HasOptionalField {
3373ffe3c632Sopenharmony_ci      get { return optionalField_ != null; }
3374ffe3c632Sopenharmony_ci    }
3375ffe3c632Sopenharmony_ci    /// <summary>Clears the value of the "optional_field" field</summary>
3376ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3377ffe3c632Sopenharmony_ci    public void ClearOptionalField() {
3378ffe3c632Sopenharmony_ci      optionalField_ = null;
3379ffe3c632Sopenharmony_ci    }
3380ffe3c632Sopenharmony_ci
3381ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3382ffe3c632Sopenharmony_ci    public override bool Equals(object other) {
3383ffe3c632Sopenharmony_ci      return Equals(other as MixedRegularAndOptional);
3384ffe3c632Sopenharmony_ci    }
3385ffe3c632Sopenharmony_ci
3386ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3387ffe3c632Sopenharmony_ci    public bool Equals(MixedRegularAndOptional other) {
3388ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, null)) {
3389ffe3c632Sopenharmony_ci        return false;
3390ffe3c632Sopenharmony_ci      }
3391ffe3c632Sopenharmony_ci      if (ReferenceEquals(other, this)) {
3392ffe3c632Sopenharmony_ci        return true;
3393ffe3c632Sopenharmony_ci      }
3394ffe3c632Sopenharmony_ci      if (RegularField != other.RegularField) return false;
3395ffe3c632Sopenharmony_ci      if (OptionalField != other.OptionalField) return false;
3396ffe3c632Sopenharmony_ci      return Equals(_unknownFields, other._unknownFields);
3397ffe3c632Sopenharmony_ci    }
3398ffe3c632Sopenharmony_ci
3399ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3400ffe3c632Sopenharmony_ci    public override int GetHashCode() {
3401ffe3c632Sopenharmony_ci      int hash = 1;
3402ffe3c632Sopenharmony_ci      if (RegularField.Length != 0) hash ^= RegularField.GetHashCode();
3403ffe3c632Sopenharmony_ci      if (HasOptionalField) hash ^= OptionalField.GetHashCode();
3404ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3405ffe3c632Sopenharmony_ci        hash ^= _unknownFields.GetHashCode();
3406ffe3c632Sopenharmony_ci      }
3407ffe3c632Sopenharmony_ci      return hash;
3408ffe3c632Sopenharmony_ci    }
3409ffe3c632Sopenharmony_ci
3410ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3411ffe3c632Sopenharmony_ci    public override string ToString() {
3412ffe3c632Sopenharmony_ci      return pb::JsonFormatter.ToDiagnosticString(this);
3413ffe3c632Sopenharmony_ci    }
3414ffe3c632Sopenharmony_ci
3415ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3416ffe3c632Sopenharmony_ci    public void WriteTo(pb::CodedOutputStream output) {
3417ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3418ffe3c632Sopenharmony_ci      output.WriteRawMessage(this);
3419ffe3c632Sopenharmony_ci    #else
3420ffe3c632Sopenharmony_ci      if (RegularField.Length != 0) {
3421ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
3422ffe3c632Sopenharmony_ci        output.WriteString(RegularField);
3423ffe3c632Sopenharmony_ci      }
3424ffe3c632Sopenharmony_ci      if (HasOptionalField) {
3425ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
3426ffe3c632Sopenharmony_ci        output.WriteString(OptionalField);
3427ffe3c632Sopenharmony_ci      }
3428ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3429ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(output);
3430ffe3c632Sopenharmony_ci      }
3431ffe3c632Sopenharmony_ci    #endif
3432ffe3c632Sopenharmony_ci    }
3433ffe3c632Sopenharmony_ci
3434ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3435ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3436ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3437ffe3c632Sopenharmony_ci      if (RegularField.Length != 0) {
3438ffe3c632Sopenharmony_ci        output.WriteRawTag(10);
3439ffe3c632Sopenharmony_ci        output.WriteString(RegularField);
3440ffe3c632Sopenharmony_ci      }
3441ffe3c632Sopenharmony_ci      if (HasOptionalField) {
3442ffe3c632Sopenharmony_ci        output.WriteRawTag(18);
3443ffe3c632Sopenharmony_ci        output.WriteString(OptionalField);
3444ffe3c632Sopenharmony_ci      }
3445ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3446ffe3c632Sopenharmony_ci        _unknownFields.WriteTo(ref output);
3447ffe3c632Sopenharmony_ci      }
3448ffe3c632Sopenharmony_ci    }
3449ffe3c632Sopenharmony_ci    #endif
3450ffe3c632Sopenharmony_ci
3451ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3452ffe3c632Sopenharmony_ci    public int CalculateSize() {
3453ffe3c632Sopenharmony_ci      int size = 0;
3454ffe3c632Sopenharmony_ci      if (RegularField.Length != 0) {
3455ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(RegularField);
3456ffe3c632Sopenharmony_ci      }
3457ffe3c632Sopenharmony_ci      if (HasOptionalField) {
3458ffe3c632Sopenharmony_ci        size += 1 + pb::CodedOutputStream.ComputeStringSize(OptionalField);
3459ffe3c632Sopenharmony_ci      }
3460ffe3c632Sopenharmony_ci      if (_unknownFields != null) {
3461ffe3c632Sopenharmony_ci        size += _unknownFields.CalculateSize();
3462ffe3c632Sopenharmony_ci      }
3463ffe3c632Sopenharmony_ci      return size;
3464ffe3c632Sopenharmony_ci    }
3465ffe3c632Sopenharmony_ci
3466ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3467ffe3c632Sopenharmony_ci    public void MergeFrom(MixedRegularAndOptional other) {
3468ffe3c632Sopenharmony_ci      if (other == null) {
3469ffe3c632Sopenharmony_ci        return;
3470ffe3c632Sopenharmony_ci      }
3471ffe3c632Sopenharmony_ci      if (other.RegularField.Length != 0) {
3472ffe3c632Sopenharmony_ci        RegularField = other.RegularField;
3473ffe3c632Sopenharmony_ci      }
3474ffe3c632Sopenharmony_ci      if (other.HasOptionalField) {
3475ffe3c632Sopenharmony_ci        OptionalField = other.OptionalField;
3476ffe3c632Sopenharmony_ci      }
3477ffe3c632Sopenharmony_ci      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3478ffe3c632Sopenharmony_ci    }
3479ffe3c632Sopenharmony_ci
3480ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3481ffe3c632Sopenharmony_ci    public void MergeFrom(pb::CodedInputStream input) {
3482ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3483ffe3c632Sopenharmony_ci      input.ReadRawMessage(this);
3484ffe3c632Sopenharmony_ci    #else
3485ffe3c632Sopenharmony_ci      uint tag;
3486ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3487ffe3c632Sopenharmony_ci        switch(tag) {
3488ffe3c632Sopenharmony_ci          default:
3489ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3490ffe3c632Sopenharmony_ci            break;
3491ffe3c632Sopenharmony_ci          case 10: {
3492ffe3c632Sopenharmony_ci            RegularField = input.ReadString();
3493ffe3c632Sopenharmony_ci            break;
3494ffe3c632Sopenharmony_ci          }
3495ffe3c632Sopenharmony_ci          case 18: {
3496ffe3c632Sopenharmony_ci            OptionalField = input.ReadString();
3497ffe3c632Sopenharmony_ci            break;
3498ffe3c632Sopenharmony_ci          }
3499ffe3c632Sopenharmony_ci        }
3500ffe3c632Sopenharmony_ci      }
3501ffe3c632Sopenharmony_ci    #endif
3502ffe3c632Sopenharmony_ci    }
3503ffe3c632Sopenharmony_ci
3504ffe3c632Sopenharmony_ci    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3505ffe3c632Sopenharmony_ci    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3506ffe3c632Sopenharmony_ci    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3507ffe3c632Sopenharmony_ci      uint tag;
3508ffe3c632Sopenharmony_ci      while ((tag = input.ReadTag()) != 0) {
3509ffe3c632Sopenharmony_ci        switch(tag) {
3510ffe3c632Sopenharmony_ci          default:
3511ffe3c632Sopenharmony_ci            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3512ffe3c632Sopenharmony_ci            break;
3513ffe3c632Sopenharmony_ci          case 10: {
3514ffe3c632Sopenharmony_ci            RegularField = input.ReadString();
3515ffe3c632Sopenharmony_ci            break;
3516ffe3c632Sopenharmony_ci          }
3517ffe3c632Sopenharmony_ci          case 18: {
3518ffe3c632Sopenharmony_ci            OptionalField = input.ReadString();
3519ffe3c632Sopenharmony_ci            break;
3520ffe3c632Sopenharmony_ci          }
3521ffe3c632Sopenharmony_ci        }
3522ffe3c632Sopenharmony_ci      }
3523ffe3c632Sopenharmony_ci    }
3524ffe3c632Sopenharmony_ci    #endif
3525ffe3c632Sopenharmony_ci
3526ffe3c632Sopenharmony_ci  }
3527ffe3c632Sopenharmony_ci
3528ffe3c632Sopenharmony_ci  #endregion
3529ffe3c632Sopenharmony_ci
3530ffe3c632Sopenharmony_ci}
3531ffe3c632Sopenharmony_ci
3532ffe3c632Sopenharmony_ci#endregion Designer generated code
3533