1ffe3c632Sopenharmony_ci// <auto-generated> 2ffe3c632Sopenharmony_ci// Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci// source: unittest_issue6936_c.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_issue6936_c.proto</summary> 15ffe3c632Sopenharmony_ci public static partial class UnittestIssue6936CReflection { 16ffe3c632Sopenharmony_ci 17ffe3c632Sopenharmony_ci #region Descriptor 18ffe3c632Sopenharmony_ci /// <summary>File descriptor for unittest_issue6936_c.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 UnittestIssue6936CReflection() { 25ffe3c632Sopenharmony_ci byte[] descriptorData = global::System.Convert.FromBase64String( 26ffe3c632Sopenharmony_ci string.Concat( 27ffe3c632Sopenharmony_ci "Chp1bml0dGVzdF9pc3N1ZTY5MzZfYy5wcm90bxIPdW5pdHRlc3RfaXNzdWVz", 28ffe3c632Sopenharmony_ci "Ghp1bml0dGVzdF9pc3N1ZTY5MzZfYS5wcm90bxoadW5pdHRlc3RfaXNzdWU2", 29ffe3c632Sopenharmony_ci "OTM2X2IucHJvdG8iMQoDQmFyEiEKA2ZvbxgBIAEoCzIULnVuaXR0ZXN0X2lz", 30ffe3c632Sopenharmony_ci "c3Vlcy5Gb286B4K1GANiYXJCHaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJv", 31ffe3c632Sopenharmony_ci "dG9zYgZwcm90bzM=")); 32ffe3c632Sopenharmony_ci descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 33ffe3c632Sopenharmony_ci new pbr::FileDescriptor[] { global::UnitTest.Issues.TestProtos.UnittestIssue6936AReflection.Descriptor, global::UnitTest.Issues.TestProtos.UnittestIssue6936BReflection.Descriptor, }, 34ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { 35ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Bar), global::UnitTest.Issues.TestProtos.Bar.Parser, new[]{ "Foo" }, null, null, null, null) 36ffe3c632Sopenharmony_ci })); 37ffe3c632Sopenharmony_ci } 38ffe3c632Sopenharmony_ci #endregion 39ffe3c632Sopenharmony_ci 40ffe3c632Sopenharmony_ci } 41ffe3c632Sopenharmony_ci #region Messages 42ffe3c632Sopenharmony_ci public sealed partial class Bar : pb::IMessage<Bar> 43ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 44ffe3c632Sopenharmony_ci , pb::IBufferMessage 45ffe3c632Sopenharmony_ci #endif 46ffe3c632Sopenharmony_ci { 47ffe3c632Sopenharmony_ci private static readonly pb::MessageParser<Bar> _parser = new pb::MessageParser<Bar>(() => new Bar()); 48ffe3c632Sopenharmony_ci private pb::UnknownFieldSet _unknownFields; 49ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 50ffe3c632Sopenharmony_ci public static pb::MessageParser<Bar> Parser { get { return _parser; } } 51ffe3c632Sopenharmony_ci 52ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 53ffe3c632Sopenharmony_ci public static pbr::MessageDescriptor Descriptor { 54ffe3c632Sopenharmony_ci get { return global::UnitTest.Issues.TestProtos.UnittestIssue6936CReflection.Descriptor.MessageTypes[0]; } 55ffe3c632Sopenharmony_ci } 56ffe3c632Sopenharmony_ci 57ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 58ffe3c632Sopenharmony_ci pbr::MessageDescriptor pb::IMessage.Descriptor { 59ffe3c632Sopenharmony_ci get { return Descriptor; } 60ffe3c632Sopenharmony_ci } 61ffe3c632Sopenharmony_ci 62ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 63ffe3c632Sopenharmony_ci public Bar() { 64ffe3c632Sopenharmony_ci OnConstruction(); 65ffe3c632Sopenharmony_ci } 66ffe3c632Sopenharmony_ci 67ffe3c632Sopenharmony_ci partial void OnConstruction(); 68ffe3c632Sopenharmony_ci 69ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 70ffe3c632Sopenharmony_ci public Bar(Bar other) : this() { 71ffe3c632Sopenharmony_ci foo_ = other.foo_ != null ? other.foo_.Clone() : null; 72ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 73ffe3c632Sopenharmony_ci } 74ffe3c632Sopenharmony_ci 75ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 76ffe3c632Sopenharmony_ci public Bar Clone() { 77ffe3c632Sopenharmony_ci return new Bar(this); 78ffe3c632Sopenharmony_ci } 79ffe3c632Sopenharmony_ci 80ffe3c632Sopenharmony_ci /// <summary>Field number for the "foo" field.</summary> 81ffe3c632Sopenharmony_ci public const int FooFieldNumber = 1; 82ffe3c632Sopenharmony_ci private global::UnitTest.Issues.TestProtos.Foo foo_; 83ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 84ffe3c632Sopenharmony_ci public global::UnitTest.Issues.TestProtos.Foo Foo { 85ffe3c632Sopenharmony_ci get { return foo_; } 86ffe3c632Sopenharmony_ci set { 87ffe3c632Sopenharmony_ci foo_ = value; 88ffe3c632Sopenharmony_ci } 89ffe3c632Sopenharmony_ci } 90ffe3c632Sopenharmony_ci 91ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 92ffe3c632Sopenharmony_ci public override bool Equals(object other) { 93ffe3c632Sopenharmony_ci return Equals(other as Bar); 94ffe3c632Sopenharmony_ci } 95ffe3c632Sopenharmony_ci 96ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 97ffe3c632Sopenharmony_ci public bool Equals(Bar other) { 98ffe3c632Sopenharmony_ci if (ReferenceEquals(other, null)) { 99ffe3c632Sopenharmony_ci return false; 100ffe3c632Sopenharmony_ci } 101ffe3c632Sopenharmony_ci if (ReferenceEquals(other, this)) { 102ffe3c632Sopenharmony_ci return true; 103ffe3c632Sopenharmony_ci } 104ffe3c632Sopenharmony_ci if (!object.Equals(Foo, other.Foo)) return false; 105ffe3c632Sopenharmony_ci return Equals(_unknownFields, other._unknownFields); 106ffe3c632Sopenharmony_ci } 107ffe3c632Sopenharmony_ci 108ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 109ffe3c632Sopenharmony_ci public override int GetHashCode() { 110ffe3c632Sopenharmony_ci int hash = 1; 111ffe3c632Sopenharmony_ci if (foo_ != null) hash ^= Foo.GetHashCode(); 112ffe3c632Sopenharmony_ci if (_unknownFields != null) { 113ffe3c632Sopenharmony_ci hash ^= _unknownFields.GetHashCode(); 114ffe3c632Sopenharmony_ci } 115ffe3c632Sopenharmony_ci return hash; 116ffe3c632Sopenharmony_ci } 117ffe3c632Sopenharmony_ci 118ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 119ffe3c632Sopenharmony_ci public override string ToString() { 120ffe3c632Sopenharmony_ci return pb::JsonFormatter.ToDiagnosticString(this); 121ffe3c632Sopenharmony_ci } 122ffe3c632Sopenharmony_ci 123ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 124ffe3c632Sopenharmony_ci public void WriteTo(pb::CodedOutputStream output) { 125ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 126ffe3c632Sopenharmony_ci output.WriteRawMessage(this); 127ffe3c632Sopenharmony_ci #else 128ffe3c632Sopenharmony_ci if (foo_ != null) { 129ffe3c632Sopenharmony_ci output.WriteRawTag(10); 130ffe3c632Sopenharmony_ci output.WriteMessage(Foo); 131ffe3c632Sopenharmony_ci } 132ffe3c632Sopenharmony_ci if (_unknownFields != null) { 133ffe3c632Sopenharmony_ci _unknownFields.WriteTo(output); 134ffe3c632Sopenharmony_ci } 135ffe3c632Sopenharmony_ci #endif 136ffe3c632Sopenharmony_ci } 137ffe3c632Sopenharmony_ci 138ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 139ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 140ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 141ffe3c632Sopenharmony_ci if (foo_ != null) { 142ffe3c632Sopenharmony_ci output.WriteRawTag(10); 143ffe3c632Sopenharmony_ci output.WriteMessage(Foo); 144ffe3c632Sopenharmony_ci } 145ffe3c632Sopenharmony_ci if (_unknownFields != null) { 146ffe3c632Sopenharmony_ci _unknownFields.WriteTo(ref output); 147ffe3c632Sopenharmony_ci } 148ffe3c632Sopenharmony_ci } 149ffe3c632Sopenharmony_ci #endif 150ffe3c632Sopenharmony_ci 151ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 152ffe3c632Sopenharmony_ci public int CalculateSize() { 153ffe3c632Sopenharmony_ci int size = 0; 154ffe3c632Sopenharmony_ci if (foo_ != null) { 155ffe3c632Sopenharmony_ci size += 1 + pb::CodedOutputStream.ComputeMessageSize(Foo); 156ffe3c632Sopenharmony_ci } 157ffe3c632Sopenharmony_ci if (_unknownFields != null) { 158ffe3c632Sopenharmony_ci size += _unknownFields.CalculateSize(); 159ffe3c632Sopenharmony_ci } 160ffe3c632Sopenharmony_ci return size; 161ffe3c632Sopenharmony_ci } 162ffe3c632Sopenharmony_ci 163ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 164ffe3c632Sopenharmony_ci public void MergeFrom(Bar other) { 165ffe3c632Sopenharmony_ci if (other == null) { 166ffe3c632Sopenharmony_ci return; 167ffe3c632Sopenharmony_ci } 168ffe3c632Sopenharmony_ci if (other.foo_ != null) { 169ffe3c632Sopenharmony_ci if (foo_ == null) { 170ffe3c632Sopenharmony_ci Foo = new global::UnitTest.Issues.TestProtos.Foo(); 171ffe3c632Sopenharmony_ci } 172ffe3c632Sopenharmony_ci Foo.MergeFrom(other.Foo); 173ffe3c632Sopenharmony_ci } 174ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 175ffe3c632Sopenharmony_ci } 176ffe3c632Sopenharmony_ci 177ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 178ffe3c632Sopenharmony_ci public void MergeFrom(pb::CodedInputStream input) { 179ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 180ffe3c632Sopenharmony_ci input.ReadRawMessage(this); 181ffe3c632Sopenharmony_ci #else 182ffe3c632Sopenharmony_ci uint tag; 183ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 184ffe3c632Sopenharmony_ci switch(tag) { 185ffe3c632Sopenharmony_ci default: 186ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 187ffe3c632Sopenharmony_ci break; 188ffe3c632Sopenharmony_ci case 10: { 189ffe3c632Sopenharmony_ci if (foo_ == null) { 190ffe3c632Sopenharmony_ci Foo = new global::UnitTest.Issues.TestProtos.Foo(); 191ffe3c632Sopenharmony_ci } 192ffe3c632Sopenharmony_ci input.ReadMessage(Foo); 193ffe3c632Sopenharmony_ci break; 194ffe3c632Sopenharmony_ci } 195ffe3c632Sopenharmony_ci } 196ffe3c632Sopenharmony_ci } 197ffe3c632Sopenharmony_ci #endif 198ffe3c632Sopenharmony_ci } 199ffe3c632Sopenharmony_ci 200ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 201ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 202ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 203ffe3c632Sopenharmony_ci uint tag; 204ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 205ffe3c632Sopenharmony_ci switch(tag) { 206ffe3c632Sopenharmony_ci default: 207ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 208ffe3c632Sopenharmony_ci break; 209ffe3c632Sopenharmony_ci case 10: { 210ffe3c632Sopenharmony_ci if (foo_ == null) { 211ffe3c632Sopenharmony_ci Foo = new global::UnitTest.Issues.TestProtos.Foo(); 212ffe3c632Sopenharmony_ci } 213ffe3c632Sopenharmony_ci input.ReadMessage(Foo); 214ffe3c632Sopenharmony_ci break; 215ffe3c632Sopenharmony_ci } 216ffe3c632Sopenharmony_ci } 217ffe3c632Sopenharmony_ci } 218ffe3c632Sopenharmony_ci } 219ffe3c632Sopenharmony_ci #endif 220ffe3c632Sopenharmony_ci 221ffe3c632Sopenharmony_ci } 222ffe3c632Sopenharmony_ci 223ffe3c632Sopenharmony_ci #endregion 224ffe3c632Sopenharmony_ci 225ffe3c632Sopenharmony_ci} 226ffe3c632Sopenharmony_ci 227ffe3c632Sopenharmony_ci#endregion Designer generated code 228