1ffe3c632Sopenharmony_ci// <auto-generated> 2ffe3c632Sopenharmony_ci// Generated by the protocol buffer compiler. DO NOT EDIT! 3ffe3c632Sopenharmony_ci// source: unittest_selfreferential_options.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.SelfreferentialOptions { 13ffe3c632Sopenharmony_ci 14ffe3c632Sopenharmony_ci /// <summary>Holder for reflection information generated from unittest_selfreferential_options.proto</summary> 15ffe3c632Sopenharmony_ci public static partial class UnittestSelfreferentialOptionsReflection { 16ffe3c632Sopenharmony_ci 17ffe3c632Sopenharmony_ci #region Descriptor 18ffe3c632Sopenharmony_ci /// <summary>File descriptor for unittest_selfreferential_options.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 UnittestSelfreferentialOptionsReflection() { 25ffe3c632Sopenharmony_ci byte[] descriptorData = global::System.Convert.FromBase64String( 26ffe3c632Sopenharmony_ci string.Concat( 27ffe3c632Sopenharmony_ci "CiZ1bml0dGVzdF9zZWxmcmVmZXJlbnRpYWxfb3B0aW9ucy5wcm90bxIpcHJv", 28ffe3c632Sopenharmony_ci "dG9idWZfdW5pdHRlc3Rfc2VsZnJlZmVyZW50aWFsX29wdGlvbnMaIGdvb2ds", 29ffe3c632Sopenharmony_ci "ZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnByb3RvIkwKCkZvb09wdGlvbnMSHgoH", 30ffe3c632Sopenharmony_ci "aW50X29wdBgBIAEoBUINyj4KCAHAPgLKPgIIAxITCgNmb28YAiABKAVCBso+", 31ffe3c632Sopenharmony_ci "AxDSCSoJCOgHEICAgIACOjkKC2Jhcl9vcHRpb25zEh0uZ29vZ2xlLnByb3Rv", 32ffe3c632Sopenharmony_ci "YnVmLkZpZWxkT3B0aW9ucxjoByABKAVCBMA+0gk6agoLZm9vX29wdGlvbnMS", 33ffe3c632Sopenharmony_ci "HS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGOkHIAEoCzI1LnByb3Rv", 34ffe3c632Sopenharmony_ci "YnVmX3VuaXR0ZXN0X3NlbGZyZWZlcmVudGlhbF9vcHRpb25zLkZvb09wdGlv", 35ffe3c632Sopenharmony_ci "bnM6SwoLZm9vX2ludF9vcHQSNS5wcm90b2J1Zl91bml0dGVzdF9zZWxmcmVm", 36ffe3c632Sopenharmony_ci "ZXJlbnRpYWxfb3B0aW9ucy5Gb29PcHRpb25zGOgHIAEoBTqCAQoLZm9vX2Zv", 37ffe3c632Sopenharmony_ci "b19vcHQSNS5wcm90b2J1Zl91bml0dGVzdF9zZWxmcmVmZXJlbnRpYWxfb3B0", 38ffe3c632Sopenharmony_ci "aW9ucy5Gb29PcHRpb25zGOkHIAEoCzI1LnByb3RvYnVmX3VuaXR0ZXN0X3Nl", 39ffe3c632Sopenharmony_ci "bGZyZWZlcmVudGlhbF9vcHRpb25zLkZvb09wdGlvbnNCNKoCMVVuaXRUZXN0", 40ffe3c632Sopenharmony_ci "Lklzc3Vlcy5UZXN0UHJvdG9zLlNlbGZyZWZlcmVudGlhbE9wdGlvbnM=")); 41ffe3c632Sopenharmony_ci descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 42ffe3c632Sopenharmony_ci new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, 43ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { UnittestSelfreferentialOptionsExtensions.BarOptions, UnittestSelfreferentialOptionsExtensions.FooOptions, UnittestSelfreferentialOptionsExtensions.FooIntOpt, UnittestSelfreferentialOptionsExtensions.FooFooOpt }, new pbr::GeneratedClrTypeInfo[] { 44ffe3c632Sopenharmony_ci new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions), global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions.Parser, new[]{ "IntOpt", "Foo" }, null, null, null, null) 45ffe3c632Sopenharmony_ci })); 46ffe3c632Sopenharmony_ci } 47ffe3c632Sopenharmony_ci #endregion 48ffe3c632Sopenharmony_ci 49ffe3c632Sopenharmony_ci } 50ffe3c632Sopenharmony_ci /// <summary>Holder for extension identifiers generated from the top level of unittest_selfreferential_options.proto</summary> 51ffe3c632Sopenharmony_ci public static partial class UnittestSelfreferentialOptionsExtensions { 52ffe3c632Sopenharmony_ci /// <summary> 53ffe3c632Sopenharmony_ci /// Custom field option used on the definition of that field option. 54ffe3c632Sopenharmony_ci /// </summary> 55ffe3c632Sopenharmony_ci public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, int> BarOptions = 56ffe3c632Sopenharmony_ci new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, int>(1000, pb::FieldCodec.ForInt32(8000, 0)); 57ffe3c632Sopenharmony_ci public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions> FooOptions = 58ffe3c632Sopenharmony_ci new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions>(1001, pb::FieldCodec.ForMessage(8010, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions.Parser)); 59ffe3c632Sopenharmony_ci public static readonly pb::Extension<global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions, int> FooIntOpt = 60ffe3c632Sopenharmony_ci new pb::Extension<global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions, int>(1000, pb::FieldCodec.ForInt32(8000, 0)); 61ffe3c632Sopenharmony_ci public static readonly pb::Extension<global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions> FooFooOpt = 62ffe3c632Sopenharmony_ci new pb::Extension<global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions>(1001, pb::FieldCodec.ForMessage(8010, global::UnitTest.Issues.TestProtos.SelfreferentialOptions.FooOptions.Parser)); 63ffe3c632Sopenharmony_ci } 64ffe3c632Sopenharmony_ci 65ffe3c632Sopenharmony_ci #region Messages 66ffe3c632Sopenharmony_ci public sealed partial class FooOptions : pb::IExtendableMessage<FooOptions> 67ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 68ffe3c632Sopenharmony_ci , pb::IBufferMessage 69ffe3c632Sopenharmony_ci #endif 70ffe3c632Sopenharmony_ci { 71ffe3c632Sopenharmony_ci private static readonly pb::MessageParser<FooOptions> _parser = new pb::MessageParser<FooOptions>(() => new FooOptions()); 72ffe3c632Sopenharmony_ci private pb::UnknownFieldSet _unknownFields; 73ffe3c632Sopenharmony_ci private pb::ExtensionSet<FooOptions> _extensions; 74ffe3c632Sopenharmony_ci private pb::ExtensionSet<FooOptions> _Extensions { get { return _extensions; } } 75ffe3c632Sopenharmony_ci private int _hasBits0; 76ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 77ffe3c632Sopenharmony_ci public static pb::MessageParser<FooOptions> Parser { get { return _parser; } } 78ffe3c632Sopenharmony_ci 79ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 80ffe3c632Sopenharmony_ci public static pbr::MessageDescriptor Descriptor { 81ffe3c632Sopenharmony_ci get { return global::UnitTest.Issues.TestProtos.SelfreferentialOptions.UnittestSelfreferentialOptionsReflection.Descriptor.MessageTypes[0]; } 82ffe3c632Sopenharmony_ci } 83ffe3c632Sopenharmony_ci 84ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 85ffe3c632Sopenharmony_ci pbr::MessageDescriptor pb::IMessage.Descriptor { 86ffe3c632Sopenharmony_ci get { return Descriptor; } 87ffe3c632Sopenharmony_ci } 88ffe3c632Sopenharmony_ci 89ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 90ffe3c632Sopenharmony_ci public FooOptions() { 91ffe3c632Sopenharmony_ci OnConstruction(); 92ffe3c632Sopenharmony_ci } 93ffe3c632Sopenharmony_ci 94ffe3c632Sopenharmony_ci partial void OnConstruction(); 95ffe3c632Sopenharmony_ci 96ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 97ffe3c632Sopenharmony_ci public FooOptions(FooOptions other) : this() { 98ffe3c632Sopenharmony_ci _hasBits0 = other._hasBits0; 99ffe3c632Sopenharmony_ci intOpt_ = other.intOpt_; 100ffe3c632Sopenharmony_ci foo_ = other.foo_; 101ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 102ffe3c632Sopenharmony_ci _extensions = pb::ExtensionSet.Clone(other._extensions); 103ffe3c632Sopenharmony_ci } 104ffe3c632Sopenharmony_ci 105ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 106ffe3c632Sopenharmony_ci public FooOptions Clone() { 107ffe3c632Sopenharmony_ci return new FooOptions(this); 108ffe3c632Sopenharmony_ci } 109ffe3c632Sopenharmony_ci 110ffe3c632Sopenharmony_ci /// <summary>Field number for the "int_opt" field.</summary> 111ffe3c632Sopenharmony_ci public const int IntOptFieldNumber = 1; 112ffe3c632Sopenharmony_ci private readonly static int IntOptDefaultValue = 0; 113ffe3c632Sopenharmony_ci 114ffe3c632Sopenharmony_ci private int intOpt_; 115ffe3c632Sopenharmony_ci /// <summary> 116ffe3c632Sopenharmony_ci /// Custom field option used in definition of the extension message. 117ffe3c632Sopenharmony_ci /// </summary> 118ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 119ffe3c632Sopenharmony_ci public int IntOpt { 120ffe3c632Sopenharmony_ci get { if ((_hasBits0 & 1) != 0) { return intOpt_; } else { return IntOptDefaultValue; } } 121ffe3c632Sopenharmony_ci set { 122ffe3c632Sopenharmony_ci _hasBits0 |= 1; 123ffe3c632Sopenharmony_ci intOpt_ = value; 124ffe3c632Sopenharmony_ci } 125ffe3c632Sopenharmony_ci } 126ffe3c632Sopenharmony_ci /// <summary>Gets whether the "int_opt" field is set</summary> 127ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 128ffe3c632Sopenharmony_ci public bool HasIntOpt { 129ffe3c632Sopenharmony_ci get { return (_hasBits0 & 1) != 0; } 130ffe3c632Sopenharmony_ci } 131ffe3c632Sopenharmony_ci /// <summary>Clears the value of the "int_opt" field</summary> 132ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 133ffe3c632Sopenharmony_ci public void ClearIntOpt() { 134ffe3c632Sopenharmony_ci _hasBits0 &= ~1; 135ffe3c632Sopenharmony_ci } 136ffe3c632Sopenharmony_ci 137ffe3c632Sopenharmony_ci /// <summary>Field number for the "foo" field.</summary> 138ffe3c632Sopenharmony_ci public const int FooFieldNumber = 2; 139ffe3c632Sopenharmony_ci private readonly static int FooDefaultValue = 0; 140ffe3c632Sopenharmony_ci 141ffe3c632Sopenharmony_ci private int foo_; 142ffe3c632Sopenharmony_ci /// <summary> 143ffe3c632Sopenharmony_ci /// Custom field option used in definition of the custom option's message. 144ffe3c632Sopenharmony_ci /// </summary> 145ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 146ffe3c632Sopenharmony_ci public int Foo { 147ffe3c632Sopenharmony_ci get { if ((_hasBits0 & 2) != 0) { return foo_; } else { return FooDefaultValue; } } 148ffe3c632Sopenharmony_ci set { 149ffe3c632Sopenharmony_ci _hasBits0 |= 2; 150ffe3c632Sopenharmony_ci foo_ = value; 151ffe3c632Sopenharmony_ci } 152ffe3c632Sopenharmony_ci } 153ffe3c632Sopenharmony_ci /// <summary>Gets whether the "foo" field is set</summary> 154ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 155ffe3c632Sopenharmony_ci public bool HasFoo { 156ffe3c632Sopenharmony_ci get { return (_hasBits0 & 2) != 0; } 157ffe3c632Sopenharmony_ci } 158ffe3c632Sopenharmony_ci /// <summary>Clears the value of the "foo" field</summary> 159ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 160ffe3c632Sopenharmony_ci public void ClearFoo() { 161ffe3c632Sopenharmony_ci _hasBits0 &= ~2; 162ffe3c632Sopenharmony_ci } 163ffe3c632Sopenharmony_ci 164ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 165ffe3c632Sopenharmony_ci public override bool Equals(object other) { 166ffe3c632Sopenharmony_ci return Equals(other as FooOptions); 167ffe3c632Sopenharmony_ci } 168ffe3c632Sopenharmony_ci 169ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 170ffe3c632Sopenharmony_ci public bool Equals(FooOptions other) { 171ffe3c632Sopenharmony_ci if (ReferenceEquals(other, null)) { 172ffe3c632Sopenharmony_ci return false; 173ffe3c632Sopenharmony_ci } 174ffe3c632Sopenharmony_ci if (ReferenceEquals(other, this)) { 175ffe3c632Sopenharmony_ci return true; 176ffe3c632Sopenharmony_ci } 177ffe3c632Sopenharmony_ci if (IntOpt != other.IntOpt) return false; 178ffe3c632Sopenharmony_ci if (Foo != other.Foo) return false; 179ffe3c632Sopenharmony_ci if (!Equals(_extensions, other._extensions)) { 180ffe3c632Sopenharmony_ci return false; 181ffe3c632Sopenharmony_ci } 182ffe3c632Sopenharmony_ci return Equals(_unknownFields, other._unknownFields); 183ffe3c632Sopenharmony_ci } 184ffe3c632Sopenharmony_ci 185ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 186ffe3c632Sopenharmony_ci public override int GetHashCode() { 187ffe3c632Sopenharmony_ci int hash = 1; 188ffe3c632Sopenharmony_ci if (HasIntOpt) hash ^= IntOpt.GetHashCode(); 189ffe3c632Sopenharmony_ci if (HasFoo) hash ^= Foo.GetHashCode(); 190ffe3c632Sopenharmony_ci if (_extensions != null) { 191ffe3c632Sopenharmony_ci hash ^= _extensions.GetHashCode(); 192ffe3c632Sopenharmony_ci } 193ffe3c632Sopenharmony_ci if (_unknownFields != null) { 194ffe3c632Sopenharmony_ci hash ^= _unknownFields.GetHashCode(); 195ffe3c632Sopenharmony_ci } 196ffe3c632Sopenharmony_ci return hash; 197ffe3c632Sopenharmony_ci } 198ffe3c632Sopenharmony_ci 199ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 200ffe3c632Sopenharmony_ci public override string ToString() { 201ffe3c632Sopenharmony_ci return pb::JsonFormatter.ToDiagnosticString(this); 202ffe3c632Sopenharmony_ci } 203ffe3c632Sopenharmony_ci 204ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 205ffe3c632Sopenharmony_ci public void WriteTo(pb::CodedOutputStream output) { 206ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 207ffe3c632Sopenharmony_ci output.WriteRawMessage(this); 208ffe3c632Sopenharmony_ci #else 209ffe3c632Sopenharmony_ci if (HasIntOpt) { 210ffe3c632Sopenharmony_ci output.WriteRawTag(8); 211ffe3c632Sopenharmony_ci output.WriteInt32(IntOpt); 212ffe3c632Sopenharmony_ci } 213ffe3c632Sopenharmony_ci if (HasFoo) { 214ffe3c632Sopenharmony_ci output.WriteRawTag(16); 215ffe3c632Sopenharmony_ci output.WriteInt32(Foo); 216ffe3c632Sopenharmony_ci } 217ffe3c632Sopenharmony_ci if (_extensions != null) { 218ffe3c632Sopenharmony_ci _extensions.WriteTo(output); 219ffe3c632Sopenharmony_ci } 220ffe3c632Sopenharmony_ci if (_unknownFields != null) { 221ffe3c632Sopenharmony_ci _unknownFields.WriteTo(output); 222ffe3c632Sopenharmony_ci } 223ffe3c632Sopenharmony_ci #endif 224ffe3c632Sopenharmony_ci } 225ffe3c632Sopenharmony_ci 226ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 227ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 228ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 229ffe3c632Sopenharmony_ci if (HasIntOpt) { 230ffe3c632Sopenharmony_ci output.WriteRawTag(8); 231ffe3c632Sopenharmony_ci output.WriteInt32(IntOpt); 232ffe3c632Sopenharmony_ci } 233ffe3c632Sopenharmony_ci if (HasFoo) { 234ffe3c632Sopenharmony_ci output.WriteRawTag(16); 235ffe3c632Sopenharmony_ci output.WriteInt32(Foo); 236ffe3c632Sopenharmony_ci } 237ffe3c632Sopenharmony_ci if (_extensions != null) { 238ffe3c632Sopenharmony_ci _extensions.WriteTo(ref output); 239ffe3c632Sopenharmony_ci } 240ffe3c632Sopenharmony_ci if (_unknownFields != null) { 241ffe3c632Sopenharmony_ci _unknownFields.WriteTo(ref output); 242ffe3c632Sopenharmony_ci } 243ffe3c632Sopenharmony_ci } 244ffe3c632Sopenharmony_ci #endif 245ffe3c632Sopenharmony_ci 246ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 247ffe3c632Sopenharmony_ci public int CalculateSize() { 248ffe3c632Sopenharmony_ci int size = 0; 249ffe3c632Sopenharmony_ci if (HasIntOpt) { 250ffe3c632Sopenharmony_ci size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntOpt); 251ffe3c632Sopenharmony_ci } 252ffe3c632Sopenharmony_ci if (HasFoo) { 253ffe3c632Sopenharmony_ci size += 1 + pb::CodedOutputStream.ComputeInt32Size(Foo); 254ffe3c632Sopenharmony_ci } 255ffe3c632Sopenharmony_ci if (_extensions != null) { 256ffe3c632Sopenharmony_ci size += _extensions.CalculateSize(); 257ffe3c632Sopenharmony_ci } 258ffe3c632Sopenharmony_ci if (_unknownFields != null) { 259ffe3c632Sopenharmony_ci size += _unknownFields.CalculateSize(); 260ffe3c632Sopenharmony_ci } 261ffe3c632Sopenharmony_ci return size; 262ffe3c632Sopenharmony_ci } 263ffe3c632Sopenharmony_ci 264ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 265ffe3c632Sopenharmony_ci public void MergeFrom(FooOptions other) { 266ffe3c632Sopenharmony_ci if (other == null) { 267ffe3c632Sopenharmony_ci return; 268ffe3c632Sopenharmony_ci } 269ffe3c632Sopenharmony_ci if (other.HasIntOpt) { 270ffe3c632Sopenharmony_ci IntOpt = other.IntOpt; 271ffe3c632Sopenharmony_ci } 272ffe3c632Sopenharmony_ci if (other.HasFoo) { 273ffe3c632Sopenharmony_ci Foo = other.Foo; 274ffe3c632Sopenharmony_ci } 275ffe3c632Sopenharmony_ci pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions); 276ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 277ffe3c632Sopenharmony_ci } 278ffe3c632Sopenharmony_ci 279ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 280ffe3c632Sopenharmony_ci public void MergeFrom(pb::CodedInputStream input) { 281ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 282ffe3c632Sopenharmony_ci input.ReadRawMessage(this); 283ffe3c632Sopenharmony_ci #else 284ffe3c632Sopenharmony_ci uint tag; 285ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 286ffe3c632Sopenharmony_ci switch(tag) { 287ffe3c632Sopenharmony_ci default: 288ffe3c632Sopenharmony_ci if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) { 289ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 290ffe3c632Sopenharmony_ci } 291ffe3c632Sopenharmony_ci break; 292ffe3c632Sopenharmony_ci case 8: { 293ffe3c632Sopenharmony_ci IntOpt = input.ReadInt32(); 294ffe3c632Sopenharmony_ci break; 295ffe3c632Sopenharmony_ci } 296ffe3c632Sopenharmony_ci case 16: { 297ffe3c632Sopenharmony_ci Foo = input.ReadInt32(); 298ffe3c632Sopenharmony_ci break; 299ffe3c632Sopenharmony_ci } 300ffe3c632Sopenharmony_ci } 301ffe3c632Sopenharmony_ci } 302ffe3c632Sopenharmony_ci #endif 303ffe3c632Sopenharmony_ci } 304ffe3c632Sopenharmony_ci 305ffe3c632Sopenharmony_ci #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 306ffe3c632Sopenharmony_ci [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 307ffe3c632Sopenharmony_ci void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 308ffe3c632Sopenharmony_ci uint tag; 309ffe3c632Sopenharmony_ci while ((tag = input.ReadTag()) != 0) { 310ffe3c632Sopenharmony_ci switch(tag) { 311ffe3c632Sopenharmony_ci default: 312ffe3c632Sopenharmony_ci if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) { 313ffe3c632Sopenharmony_ci _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 314ffe3c632Sopenharmony_ci } 315ffe3c632Sopenharmony_ci break; 316ffe3c632Sopenharmony_ci case 8: { 317ffe3c632Sopenharmony_ci IntOpt = input.ReadInt32(); 318ffe3c632Sopenharmony_ci break; 319ffe3c632Sopenharmony_ci } 320ffe3c632Sopenharmony_ci case 16: { 321ffe3c632Sopenharmony_ci Foo = input.ReadInt32(); 322ffe3c632Sopenharmony_ci break; 323ffe3c632Sopenharmony_ci } 324ffe3c632Sopenharmony_ci } 325ffe3c632Sopenharmony_ci } 326ffe3c632Sopenharmony_ci } 327ffe3c632Sopenharmony_ci #endif 328ffe3c632Sopenharmony_ci 329ffe3c632Sopenharmony_ci public TValue GetExtension<TValue>(pb::Extension<FooOptions, TValue> extension) { 330ffe3c632Sopenharmony_ci return pb::ExtensionSet.Get(ref _extensions, extension); 331ffe3c632Sopenharmony_ci } 332ffe3c632Sopenharmony_ci public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FooOptions, TValue> extension) { 333ffe3c632Sopenharmony_ci return pb::ExtensionSet.Get(ref _extensions, extension); 334ffe3c632Sopenharmony_ci } 335ffe3c632Sopenharmony_ci public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FooOptions, TValue> extension) { 336ffe3c632Sopenharmony_ci return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension); 337ffe3c632Sopenharmony_ci } 338ffe3c632Sopenharmony_ci public void SetExtension<TValue>(pb::Extension<FooOptions, TValue> extension, TValue value) { 339ffe3c632Sopenharmony_ci pb::ExtensionSet.Set(ref _extensions, extension, value); 340ffe3c632Sopenharmony_ci } 341ffe3c632Sopenharmony_ci public bool HasExtension<TValue>(pb::Extension<FooOptions, TValue> extension) { 342ffe3c632Sopenharmony_ci return pb::ExtensionSet.Has(ref _extensions, extension); 343ffe3c632Sopenharmony_ci } 344ffe3c632Sopenharmony_ci public void ClearExtension<TValue>(pb::Extension<FooOptions, TValue> extension) { 345ffe3c632Sopenharmony_ci pb::ExtensionSet.Clear(ref _extensions, extension); 346ffe3c632Sopenharmony_ci } 347ffe3c632Sopenharmony_ci public void ClearExtension<TValue>(pb::RepeatedExtension<FooOptions, TValue> extension) { 348ffe3c632Sopenharmony_ci pb::ExtensionSet.Clear(ref _extensions, extension); 349ffe3c632Sopenharmony_ci } 350ffe3c632Sopenharmony_ci 351ffe3c632Sopenharmony_ci } 352ffe3c632Sopenharmony_ci 353ffe3c632Sopenharmony_ci #endregion 354ffe3c632Sopenharmony_ci 355ffe3c632Sopenharmony_ci} 356ffe3c632Sopenharmony_ci 357ffe3c632Sopenharmony_ci#endregion Designer generated code 358