| // <auto-generated> | |
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |
| // source: conformance/test_protos/test_messages_edition2026.proto | |
| // </auto-generated> | |
| #pragma warning disable 1591, 0612, 3021, 8981 | |
| #region Designer generated code | |
| using pb = global::Google.Protobuf; | |
| using pbc = global::Google.Protobuf.Collections; | |
| using pbr = global::Google.Protobuf.Reflection; | |
| using scg = global::System.Collections.Generic; | |
| namespace ProtobufTestMessages.Editions { | |
| /// <summary>Holder for reflection information generated from conformance/test_protos/test_messages_edition2026.proto</summary> | |
| public static partial class TestMessagesEdition2026Reflection { | |
| #region Descriptor | |
| /// <summary>File descriptor for conformance/test_protos/test_messages_edition2026.proto</summary> | |
| public static pbr::FileDescriptor Descriptor { | |
| get { return descriptor; } | |
| } | |
| private static pbr::FileDescriptor descriptor; | |
| static TestMessagesEdition2026Reflection() { | |
| byte[] descriptorData = global::System.Convert.FromBase64String( | |
| string.Concat( | |
| "Cjdjb25mb3JtYW5jZS90ZXN0X3Byb3Rvcy90ZXN0X21lc3NhZ2VzX2VkaXRp", | |
| "b24yMDI2LnByb3RvEh9wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25z", | |
| "Gixnb29nbGUvcHJvdG9idWYvanNvbl9lbnVtdmFsdWVfb3B0aW9ucy5wcm90", | |
| "byLOBgoXVGVzdEFsbFR5cGVzRWRpdGlvbjIwMjYSFgoOb3B0aW9uYWxfaW50", | |
| "MzIYASABKAUSVgoVb3B0aW9uYWxfZm9yZWlnbl9lbnVtGAIgASgOMjcucHJv", | |
| "dG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0aW9ucy5Gb3JlaWduRW51bUVkaXRp", | |
| "b24yMDI2ElYKFXJlcGVhdGVkX2ZvcmVpZ25fZW51bRgDIAMoDjI3LnByb3Rv", | |
| "YnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMuRm9yZWlnbkVudW1FZGl0aW9u", | |
| "MjAyNhJzChdtYXBfc3RyaW5nX2ZvcmVpZ25fZW51bRgEIAMoCzJSLnByb3Rv", | |
| "YnVmX3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMuVGVzdEFsbFR5cGVzRWRpdGlv", | |
| "bjIwMjYuTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeRJkCg9tYXBfaW50MzJf", | |
| "aW50MzIYBSADKAsySy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLmVkaXRpb25z", | |
| "LlRlc3RBbGxUeXBlc0VkaXRpb24yMDI2Lk1hcEludDMySW50MzJFbnRyeRJj", | |
| "ChpvcHRpb25hbF9lbXB0eV9vcHRpb25fZW51bRgGIAEoDjI/LnByb3RvYnVm", | |
| "X3Rlc3RfbWVzc2FnZXMuZWRpdGlvbnMuRW51bU9ubHlFbXB0eU9wdGlvbkVk", | |
| "aXRpb24yMDI2En8KKW9wdGlvbmFsX2VtcHR5X29wdGlvbl9iZWZvcmVfZW1w", | |
| "dHlfc3RyaW5nGAcgASgOMkwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0", | |
| "aW9ucy5FbnVtRW1wdHlPcHRpb25CZWZvcmVFbXB0eVN0cmluZ0VkaXRpb24y", | |
| "MDI2GnQKGU1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSCwoDa2V5GAEgASgJ", | |
| "EkYKBXZhbHVlGAIgASgOMjcucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5lZGl0", | |
| "aW9ucy5Gb3JlaWduRW51bUVkaXRpb24yMDI2OgI4ARo0ChJNYXBJbnQzMklu", | |
| "dDMyRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASrWBQoW", | |
| "Rm9yZWlnbkVudW1FZGl0aW9uMjAyNhIgChxGT1JFSUdOX0VOVU1fRURJVElP", | |
| "TjIwMjZfRk9PEAASMAocRk9SRUlHTl9FTlVNX0VESVRJT04yMDI2X0JBUhAB", | |
| "Gg6yPgsKCWN1c3RvbUJhchIwChxGT1JFSUdOX0VOVU1fRURJVElPTjIwMjZf", | |
| "QkFaEAIaDrI+CwoJY3VzdG9tQmF6EikKHkZPUkVJR05fRU5VTV9FRElUSU9O", | |
| "MjAyNl9FTVBUWRADGgWyPgIKABI0CiBGT1JFSUdOX0VOVU1fRURJVElPTjIw", | |
| "MjZfRVNDQVBFUxAEGg6yPgsKCWUic2MJYXAKZRI0Ch5GT1JFSUdOX0VOVU1f", | |
| "RURJVElPTjIwMjZfQUxJQVMQBRoQsj4NCgtjdXN0b21BbGlhcxI4CiJGT1JF", | |
| "SUdOX0VOVU1fRURJVElPTjIwMjZfQUxJQVNfVE9PEAUaELI+DQoLY3VzdG9t", | |
| "QWxpYXMSLAogRk9SRUlHTl9FTlVNX0VESVRJT04yMDI2X05VTUVSSUMQBhoG", | |
| "sj4DCgE2Ei4KJUZPUkVJR05fRU5VTV9FRElUSU9OMjAyNl9FTVBUWV9PUFRJ", | |
| "T04QBxoDsj4AEjIKKUZPUkVJR05fRU5VTV9FRElUSU9OMjAyNl9FTVBUWV9P", | |
| "UFRJT05fVFdPEAgaA7I+ABI0CitGT1JFSUdOX0VOVU1fRURJVElPTjIwMjZf", | |
| "QUxJQVNfRU1QVFlfT1BUSU9OEAkaA7I+ABIqCiZGT1JFSUdOX0VOVU1fRURJ", | |
| "VElPTjIwMjZfQUxJQVNfT01JVFRFRBAJEjAKLEZPUkVJR05fRU5VTV9FRElU", | |
| "SU9OMjAyNl9BTElBU19PTUlUVEVEX0ZJUlNUEAoSOwoyRk9SRUlHTl9FTlVN", | |
| "X0VESVRJT04yMDI2X0FMSUFTX0VNUFRZX09QVElPTl9TRUNPTkQQChoDsj4A", | |
| "GgIQASqKAQoeRW51bU9ubHlFbXB0eU9wdGlvbkVkaXRpb24yMDI2EjcKLkVO", | |
| "VU1fT05MWV9FTVBUWV9PUFRJT05fRURJVElPTjIwMjZfVU5TUEVDSUZJRUQQ", | |
| "ABoDsj4AEi8KJkVOVU1fT05MWV9FTVBUWV9PUFRJT05fRURJVElPTjIwMjZf", | |
| "Rk9PEAEaA7I+ACqRAgorRW51bUVtcHR5T3B0aW9uQmVmb3JlRW1wdHlTdHJp", | |
| "bmdFZGl0aW9uMjAyNhJBCj1FTlVNX0VNUFRZX09QVElPTl9CRUZPUkVfRU1Q", | |
| "VFlfU1RSSU5HX0VESVRJT04yMDI2X1VOU1BFQ0lGSUVEEAASTQpERU5VTV9F", | |
| "TVBUWV9PUFRJT05fQkVGT1JFX0VNUFRZX1NUUklOR19FRElUSU9OMjAyNl9F", | |
| "TVBUWV9PUFRJT05fRklSU1QQARoDsj4AElAKRUVOVU1fRU1QVFlfT1BUSU9O", | |
| "X0JFRk9SRV9FTVBUWV9TVFJJTkdfRURJVElPTjIwMjZfRU1QVFlfU1RSSU5H", | |
| "X1NFQ09ORBACGgWyPgIKAEI3Cipjb20uZ29vZ2xlLnByb3RvYnVmX3Rlc3Rf", | |
| "bWVzc2FnZXMuZWRpdGlvbnOiAghFZGl0aW9uc2IIZWRpdGlvbnNw6gc=")); | |
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |
| new pbr::FileDescriptor[] { global::Pb.Enumvalue.JsonEnumvalueOptionsReflection.Descriptor, }, | |
| new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ProtobufTestMessages.Editions.ForeignEnumEdition2026), typeof(global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026), typeof(global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026), }, null, new pbr::GeneratedClrTypeInfo[] { | |
| new pbr::GeneratedClrTypeInfo(typeof(global::ProtobufTestMessages.Editions.TestAllTypesEdition2026), global::ProtobufTestMessages.Editions.TestAllTypesEdition2026.Parser, new[]{ "OptionalInt32", "OptionalForeignEnum", "RepeatedForeignEnum", "MapStringForeignEnum", "MapInt32Int32", "OptionalEmptyOptionEnum", "OptionalEmptyOptionBeforeEmptyString" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }) | |
| })); | |
| } | |
| #endregion | |
| } | |
| #region Enums | |
| public enum ForeignEnumEdition2026 { | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_FOO")] Foo = 0, | |
| /** | |
| * <summary> | |
| * Values with a custom JSON name, for testing the (pb.enumvalue.json) | |
| * option in JSON serialization. | |
| * </summary> | |
| */ | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_BAR")] Bar = 1, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_BAZ")] Baz = 2, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_EMPTY")] Empty = 3, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ESCAPES")] Escapes = 4, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS")] Alias = 5, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS_TOO", PreferredAlias = false)] AliasToo = 5, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_NUMERIC")] Numeric = 6, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_EMPTY_OPTION")] EmptyOption = 7, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_EMPTY_OPTION_TWO")] EmptyOptionTwo = 8, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS_EMPTY_OPTION")] AliasEmptyOption = 9, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS_OMITTED", PreferredAlias = false)] AliasOmitted = 9, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS_OMITTED_FIRST")] AliasOmittedFirst = 10, | |
| [pbr::OriginalName("FOREIGN_ENUM_EDITION2026_ALIAS_EMPTY_OPTION_SECOND", PreferredAlias = false)] AliasEmptyOptionSecond = 10, | |
| } | |
| public enum EnumOnlyEmptyOptionEdition2026 { | |
| [pbr::OriginalName("ENUM_ONLY_EMPTY_OPTION_EDITION2026_UNSPECIFIED")] Unspecified = 0, | |
| [pbr::OriginalName("ENUM_ONLY_EMPTY_OPTION_EDITION2026_FOO")] Foo = 1, | |
| } | |
| public enum EnumEmptyOptionBeforeEmptyStringEdition2026 { | |
| [pbr::OriginalName("ENUM_EMPTY_OPTION_BEFORE_EMPTY_STRING_EDITION2026_UNSPECIFIED")] Unspecified = 0, | |
| [pbr::OriginalName("ENUM_EMPTY_OPTION_BEFORE_EMPTY_STRING_EDITION2026_EMPTY_OPTION_FIRST")] EmptyOptionFirst = 1, | |
| [pbr::OriginalName("ENUM_EMPTY_OPTION_BEFORE_EMPTY_STRING_EDITION2026_EMPTY_STRING_SECOND")] EmptyStringSecond = 2, | |
| } | |
| #endregion | |
| #region Messages | |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] | |
| public sealed partial class TestAllTypesEdition2026 : pb::IMessage<TestAllTypesEdition2026> | |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |
| , pb::IBufferMessage | |
| #endif | |
| { | |
| private static readonly pb::MessageParser<TestAllTypesEdition2026> _parser = new pb::MessageParser<TestAllTypesEdition2026>(() => new TestAllTypesEdition2026()); | |
| private pb::UnknownFieldSet _unknownFields; | |
| private int _hasBits0; | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public static pb::MessageParser<TestAllTypesEdition2026> Parser { get { return _parser; } } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public static pbr::MessageDescriptor Descriptor { | |
| get { return global::ProtobufTestMessages.Editions.TestMessagesEdition2026Reflection.Descriptor.MessageTypes[0]; } | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| get { return Descriptor; } | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public TestAllTypesEdition2026() { | |
| OnConstruction(); | |
| } | |
| partial void OnConstruction(); | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public TestAllTypesEdition2026(TestAllTypesEdition2026 other) : this() { | |
| _hasBits0 = other._hasBits0; | |
| optionalInt32_ = other.optionalInt32_; | |
| optionalForeignEnum_ = other.optionalForeignEnum_; | |
| repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone(); | |
| mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone(); | |
| mapInt32Int32_ = other.mapInt32Int32_.Clone(); | |
| optionalEmptyOptionEnum_ = other.optionalEmptyOptionEnum_; | |
| optionalEmptyOptionBeforeEmptyString_ = other.optionalEmptyOptionBeforeEmptyString_; | |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public TestAllTypesEdition2026 Clone() { | |
| return new TestAllTypesEdition2026(this); | |
| } | |
| /// <summary>Field number for the "optional_int32" field.</summary> | |
| public const int OptionalInt32FieldNumber = 1; | |
| private readonly static int OptionalInt32DefaultValue = 0; | |
| private int optionalInt32_; | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public int OptionalInt32 { | |
| get { if ((_hasBits0 & 1) != 0) { return optionalInt32_; } else { return OptionalInt32DefaultValue; } } | |
| set { | |
| _hasBits0 |= 1; | |
| optionalInt32_ = value; | |
| } | |
| } | |
| /// <summary>Gets whether the "optional_int32" field is set</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public bool HasOptionalInt32 { | |
| get { return (_hasBits0 & 1) != 0; } | |
| } | |
| /// <summary>Clears the value of the "optional_int32" field</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void ClearOptionalInt32() { | |
| _hasBits0 &= ~1; | |
| } | |
| /// <summary>Field number for the "optional_foreign_enum" field.</summary> | |
| public const int OptionalForeignEnumFieldNumber = 2; | |
| private readonly static global::ProtobufTestMessages.Editions.ForeignEnumEdition2026 OptionalForeignEnumDefaultValue = global::ProtobufTestMessages.Editions.ForeignEnumEdition2026.Foo; | |
| private global::ProtobufTestMessages.Editions.ForeignEnumEdition2026 optionalForeignEnum_; | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public global::ProtobufTestMessages.Editions.ForeignEnumEdition2026 OptionalForeignEnum { | |
| get { if ((_hasBits0 & 2) != 0) { return optionalForeignEnum_; } else { return OptionalForeignEnumDefaultValue; } } | |
| set { | |
| _hasBits0 |= 2; | |
| optionalForeignEnum_ = value; | |
| } | |
| } | |
| /// <summary>Gets whether the "optional_foreign_enum" field is set</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public bool HasOptionalForeignEnum { | |
| get { return (_hasBits0 & 2) != 0; } | |
| } | |
| /// <summary>Clears the value of the "optional_foreign_enum" field</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void ClearOptionalForeignEnum() { | |
| _hasBits0 &= ~2; | |
| } | |
| /// <summary>Field number for the "repeated_foreign_enum" field.</summary> | |
| public const int RepeatedForeignEnumFieldNumber = 3; | |
| private static readonly pb::FieldCodec<global::ProtobufTestMessages.Editions.ForeignEnumEdition2026> _repeated_repeatedForeignEnum_codec | |
| = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::ProtobufTestMessages.Editions.ForeignEnumEdition2026) x); | |
| private readonly pbc::RepeatedField<global::ProtobufTestMessages.Editions.ForeignEnumEdition2026> repeatedForeignEnum_ = new pbc::RepeatedField<global::ProtobufTestMessages.Editions.ForeignEnumEdition2026>(); | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public pbc::RepeatedField<global::ProtobufTestMessages.Editions.ForeignEnumEdition2026> RepeatedForeignEnum { | |
| get { return repeatedForeignEnum_; } | |
| } | |
| /// <summary>Field number for the "map_string_foreign_enum" field.</summary> | |
| public const int MapStringForeignEnumFieldNumber = 4; | |
| private static readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026>.Codec _map_mapStringForeignEnum_codec | |
| = new pbc::MapField<string, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::ProtobufTestMessages.Editions.ForeignEnumEdition2026) x, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026.Foo), 34); | |
| private readonly pbc::MapField<string, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026> mapStringForeignEnum_ = new pbc::MapField<string, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026>(); | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public pbc::MapField<string, global::ProtobufTestMessages.Editions.ForeignEnumEdition2026> MapStringForeignEnum { | |
| get { return mapStringForeignEnum_; } | |
| } | |
| /// <summary>Field number for the "map_int32_int32" field.</summary> | |
| public const int MapInt32Int32FieldNumber = 5; | |
| private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec | |
| = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 42); | |
| private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public pbc::MapField<int, int> MapInt32Int32 { | |
| get { return mapInt32Int32_; } | |
| } | |
| /// <summary>Field number for the "optional_empty_option_enum" field.</summary> | |
| public const int OptionalEmptyOptionEnumFieldNumber = 6; | |
| private readonly static global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026 OptionalEmptyOptionEnumDefaultValue = global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026.Unspecified; | |
| private global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026 optionalEmptyOptionEnum_; | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026 OptionalEmptyOptionEnum { | |
| get { if ((_hasBits0 & 4) != 0) { return optionalEmptyOptionEnum_; } else { return OptionalEmptyOptionEnumDefaultValue; } } | |
| set { | |
| _hasBits0 |= 4; | |
| optionalEmptyOptionEnum_ = value; | |
| } | |
| } | |
| /// <summary>Gets whether the "optional_empty_option_enum" field is set</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public bool HasOptionalEmptyOptionEnum { | |
| get { return (_hasBits0 & 4) != 0; } | |
| } | |
| /// <summary>Clears the value of the "optional_empty_option_enum" field</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void ClearOptionalEmptyOptionEnum() { | |
| _hasBits0 &= ~4; | |
| } | |
| /// <summary>Field number for the "optional_empty_option_before_empty_string" field.</summary> | |
| public const int OptionalEmptyOptionBeforeEmptyStringFieldNumber = 7; | |
| private readonly static global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026 OptionalEmptyOptionBeforeEmptyStringDefaultValue = global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026.Unspecified; | |
| private global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026 optionalEmptyOptionBeforeEmptyString_; | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026 OptionalEmptyOptionBeforeEmptyString { | |
| get { if ((_hasBits0 & 8) != 0) { return optionalEmptyOptionBeforeEmptyString_; } else { return OptionalEmptyOptionBeforeEmptyStringDefaultValue; } } | |
| set { | |
| _hasBits0 |= 8; | |
| optionalEmptyOptionBeforeEmptyString_ = value; | |
| } | |
| } | |
| /// <summary>Gets whether the "optional_empty_option_before_empty_string" field is set</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public bool HasOptionalEmptyOptionBeforeEmptyString { | |
| get { return (_hasBits0 & 8) != 0; } | |
| } | |
| /// <summary>Clears the value of the "optional_empty_option_before_empty_string" field</summary> | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void ClearOptionalEmptyOptionBeforeEmptyString() { | |
| _hasBits0 &= ~8; | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public override bool Equals(object other) { | |
| return Equals(other as TestAllTypesEdition2026); | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public bool Equals(TestAllTypesEdition2026 other) { | |
| if (ReferenceEquals(other, null)) { | |
| return false; | |
| } | |
| if (ReferenceEquals(other, this)) { | |
| return true; | |
| } | |
| if (OptionalInt32 != other.OptionalInt32) return false; | |
| if (OptionalForeignEnum != other.OptionalForeignEnum) return false; | |
| if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false; | |
| if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false; | |
| if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false; | |
| if (OptionalEmptyOptionEnum != other.OptionalEmptyOptionEnum) return false; | |
| if (OptionalEmptyOptionBeforeEmptyString != other.OptionalEmptyOptionBeforeEmptyString) return false; | |
| return Equals(_unknownFields, other._unknownFields); | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public override int GetHashCode() { | |
| int hash = 1; | |
| if (HasOptionalInt32) hash ^= OptionalInt32.GetHashCode(); | |
| if (HasOptionalForeignEnum) hash ^= OptionalForeignEnum.GetHashCode(); | |
| hash ^= repeatedForeignEnum_.GetHashCode(); | |
| hash ^= MapStringForeignEnum.GetHashCode(); | |
| hash ^= MapInt32Int32.GetHashCode(); | |
| if (HasOptionalEmptyOptionEnum) hash ^= OptionalEmptyOptionEnum.GetHashCode(); | |
| if (HasOptionalEmptyOptionBeforeEmptyString) hash ^= OptionalEmptyOptionBeforeEmptyString.GetHashCode(); | |
| if (_unknownFields != null) { | |
| hash ^= _unknownFields.GetHashCode(); | |
| } | |
| return hash; | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public override string ToString() { | |
| return pb::JsonFormatter.ToDiagnosticString(this); | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void WriteTo(pb::CodedOutputStream output) { | |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |
| output.WriteRawMessage(this); | |
| #else | |
| if (HasOptionalInt32) { | |
| output.WriteRawTag(8); | |
| output.WriteInt32(OptionalInt32); | |
| } | |
| if (HasOptionalForeignEnum) { | |
| output.WriteRawTag(16); | |
| output.WriteEnum((int) OptionalForeignEnum); | |
| } | |
| repeatedForeignEnum_.WriteTo(output, _repeated_repeatedForeignEnum_codec); | |
| mapStringForeignEnum_.WriteTo(output, _map_mapStringForeignEnum_codec); | |
| mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec); | |
| if (HasOptionalEmptyOptionEnum) { | |
| output.WriteRawTag(48); | |
| output.WriteEnum((int) OptionalEmptyOptionEnum); | |
| } | |
| if (HasOptionalEmptyOptionBeforeEmptyString) { | |
| output.WriteRawTag(56); | |
| output.WriteEnum((int) OptionalEmptyOptionBeforeEmptyString); | |
| } | |
| if (_unknownFields != null) { | |
| _unknownFields.WriteTo(output); | |
| } | |
| #endif | |
| } | |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { | |
| if (HasOptionalInt32) { | |
| output.WriteRawTag(8); | |
| output.WriteInt32(OptionalInt32); | |
| } | |
| if (HasOptionalForeignEnum) { | |
| output.WriteRawTag(16); | |
| output.WriteEnum((int) OptionalForeignEnum); | |
| } | |
| repeatedForeignEnum_.WriteTo(ref output, _repeated_repeatedForeignEnum_codec); | |
| mapStringForeignEnum_.WriteTo(ref output, _map_mapStringForeignEnum_codec); | |
| mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec); | |
| if (HasOptionalEmptyOptionEnum) { | |
| output.WriteRawTag(48); | |
| output.WriteEnum((int) OptionalEmptyOptionEnum); | |
| } | |
| if (HasOptionalEmptyOptionBeforeEmptyString) { | |
| output.WriteRawTag(56); | |
| output.WriteEnum((int) OptionalEmptyOptionBeforeEmptyString); | |
| } | |
| if (_unknownFields != null) { | |
| _unknownFields.WriteTo(ref output); | |
| } | |
| } | |
| #endif | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public int CalculateSize() { | |
| int size = 0; | |
| if (HasOptionalInt32) { | |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(OptionalInt32); | |
| } | |
| if (HasOptionalForeignEnum) { | |
| size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalForeignEnum); | |
| } | |
| size += repeatedForeignEnum_.CalculateSize(_repeated_repeatedForeignEnum_codec); | |
| size += mapStringForeignEnum_.CalculateSize(_map_mapStringForeignEnum_codec); | |
| size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec); | |
| if (HasOptionalEmptyOptionEnum) { | |
| size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEmptyOptionEnum); | |
| } | |
| if (HasOptionalEmptyOptionBeforeEmptyString) { | |
| size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptionalEmptyOptionBeforeEmptyString); | |
| } | |
| if (_unknownFields != null) { | |
| size += _unknownFields.CalculateSize(); | |
| } | |
| return size; | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void MergeFrom(TestAllTypesEdition2026 other) { | |
| if (other == null) { | |
| return; | |
| } | |
| if (other.HasOptionalInt32) { | |
| OptionalInt32 = other.OptionalInt32; | |
| } | |
| if (other.HasOptionalForeignEnum) { | |
| OptionalForeignEnum = other.OptionalForeignEnum; | |
| } | |
| repeatedForeignEnum_.Add(other.repeatedForeignEnum_); | |
| mapStringForeignEnum_.MergeFrom(other.mapStringForeignEnum_); | |
| mapInt32Int32_.MergeFrom(other.mapInt32Int32_); | |
| if (other.HasOptionalEmptyOptionEnum) { | |
| OptionalEmptyOptionEnum = other.OptionalEmptyOptionEnum; | |
| } | |
| if (other.HasOptionalEmptyOptionBeforeEmptyString) { | |
| OptionalEmptyOptionBeforeEmptyString = other.OptionalEmptyOptionBeforeEmptyString; | |
| } | |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); | |
| } | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| public void MergeFrom(pb::CodedInputStream input) { | |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |
| input.ReadRawMessage(this); | |
| #else | |
| uint tag; | |
| while ((tag = input.ReadTag()) != 0) { | |
| if ((tag & 7) == 4) { | |
| // Abort on any end group tag. | |
| return; | |
| } | |
| switch(tag) { | |
| default: | |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); | |
| break; | |
| case 8: { | |
| OptionalInt32 = input.ReadInt32(); | |
| break; | |
| } | |
| case 16: { | |
| OptionalForeignEnum = (global::ProtobufTestMessages.Editions.ForeignEnumEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| case 26: | |
| case 24: { | |
| repeatedForeignEnum_.AddEntriesFrom(input, _repeated_repeatedForeignEnum_codec); | |
| break; | |
| } | |
| case 34: { | |
| mapStringForeignEnum_.AddEntriesFrom(input, _map_mapStringForeignEnum_codec); | |
| break; | |
| } | |
| case 42: { | |
| mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec); | |
| break; | |
| } | |
| case 48: { | |
| OptionalEmptyOptionEnum = (global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| case 56: { | |
| OptionalEmptyOptionBeforeEmptyString = (global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| } | |
| } | |
| #endif | |
| } | |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { | |
| uint tag; | |
| while ((tag = input.ReadTag()) != 0) { | |
| if ((tag & 7) == 4) { | |
| // Abort on any end group tag. | |
| return; | |
| } | |
| switch(tag) { | |
| default: | |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); | |
| break; | |
| case 8: { | |
| OptionalInt32 = input.ReadInt32(); | |
| break; | |
| } | |
| case 16: { | |
| OptionalForeignEnum = (global::ProtobufTestMessages.Editions.ForeignEnumEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| case 26: | |
| case 24: { | |
| repeatedForeignEnum_.AddEntriesFrom(ref input, _repeated_repeatedForeignEnum_codec); | |
| break; | |
| } | |
| case 34: { | |
| mapStringForeignEnum_.AddEntriesFrom(ref input, _map_mapStringForeignEnum_codec); | |
| break; | |
| } | |
| case 42: { | |
| mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec); | |
| break; | |
| } | |
| case 48: { | |
| OptionalEmptyOptionEnum = (global::ProtobufTestMessages.Editions.EnumOnlyEmptyOptionEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| case 56: { | |
| OptionalEmptyOptionBeforeEmptyString = (global::ProtobufTestMessages.Editions.EnumEmptyOptionBeforeEmptyStringEdition2026) input.ReadEnum(); | |
| break; | |
| } | |
| } | |
| } | |
| } | |
| #endif | |
| } | |
| #endregion | |
| } | |
| #endregion Designer generated code |