Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | |
| 3 | using pb = global::Google.ProtocolBuffers; |
| 4 | using pbc = global::Google.ProtocolBuffers.Collections; |
| 5 | using pbd = global::Google.ProtocolBuffers.Descriptors; |
| 6 | using scg = global::System.Collections.Generic; |
| 7 | namespace Google.ProtocolBuffers.TestProtos { |
| 8 | |
| 9 | public static partial class UnitTestCustomOptionsProtoFile { |
| 10 | |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 11 | #region Extension registration |
| 12 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
| 13 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FileOpt1); |
| 14 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MessageOpt1); |
| 15 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FieldOpt1); |
| 16 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FieldOpt2); |
| 17 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.EnumOpt1); |
| 18 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ServiceOpt1); |
| 19 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MethodOpt1); |
| 20 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.BoolOpt); |
| 21 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Int32Opt); |
| 22 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Int64Opt); |
| 23 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Uint32Opt); |
| 24 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Uint64Opt); |
| 25 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sint32Opt); |
| 26 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sint64Opt); |
| 27 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Fixed32Opt); |
| 28 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Fixed64Opt); |
| 29 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sfixed32Opt); |
| 30 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sfixed64Opt); |
| 31 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FloatOpt); |
| 32 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.DoubleOpt); |
| 33 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.StringOpt); |
| 34 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.BytesOpt); |
| 35 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.EnumOpt); |
| 36 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MessageTypeOpt); |
| 37 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Quux); |
| 38 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Corge); |
| 39 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Grault); |
| 40 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Garply); |
| 41 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt1); |
| 42 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt2); |
| 43 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt3); |
| 44 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt6); |
| 45 | registry.Add(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.ComplexOpt4); |
| 46 | } |
| 47 | #endregion |
| 48 | #region Extensions |
| 49 | public const int FileOpt1FieldNumber = 7736974; |
| 50 | public static pb::GeneratedExtensionBase<ulong> FileOpt1; |
| 51 | public const int MessageOpt1FieldNumber = 7739036; |
| 52 | public static pb::GeneratedExtensionBase<int> MessageOpt1; |
| 53 | public const int FieldOpt1FieldNumber = 7740936; |
| 54 | public static pb::GeneratedExtensionBase<ulong> FieldOpt1; |
| 55 | public const int FieldOpt2FieldNumber = 7753913; |
| 56 | public static pb::GeneratedExtensionBase<int> FieldOpt2; |
| 57 | public const int EnumOpt1FieldNumber = 7753576; |
| 58 | public static pb::GeneratedExtensionBase<int> EnumOpt1; |
| 59 | public const int ServiceOpt1FieldNumber = 7887650; |
| 60 | public static pb::GeneratedExtensionBase<long> ServiceOpt1; |
| 61 | public const int MethodOpt1FieldNumber = 7890860; |
| 62 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.MethodOpt1> MethodOpt1; |
| 63 | public const int BoolOptFieldNumber = 7706090; |
| 64 | public static pb::GeneratedExtensionBase<bool> BoolOpt; |
| 65 | public const int Int32OptFieldNumber = 7705709; |
| 66 | public static pb::GeneratedExtensionBase<int> Int32Opt; |
| 67 | public const int Int64OptFieldNumber = 7705542; |
| 68 | public static pb::GeneratedExtensionBase<long> Int64Opt; |
| 69 | public const int Uint32OptFieldNumber = 7704880; |
| 70 | public static pb::GeneratedExtensionBase<uint> Uint32Opt; |
| 71 | public const int Uint64OptFieldNumber = 7702367; |
| 72 | public static pb::GeneratedExtensionBase<ulong> Uint64Opt; |
| 73 | public const int Sint32OptFieldNumber = 7701568; |
| 74 | public static pb::GeneratedExtensionBase<int> Sint32Opt; |
| 75 | public const int Sint64OptFieldNumber = 7700863; |
| 76 | public static pb::GeneratedExtensionBase<long> Sint64Opt; |
| 77 | public const int Fixed32OptFieldNumber = 7700307; |
| 78 | public static pb::GeneratedExtensionBase<uint> Fixed32Opt; |
| 79 | public const int Fixed64OptFieldNumber = 7700194; |
| 80 | public static pb::GeneratedExtensionBase<ulong> Fixed64Opt; |
| 81 | public const int Sfixed32OptFieldNumber = 7698645; |
| 82 | public static pb::GeneratedExtensionBase<int> Sfixed32Opt; |
| 83 | public const int Sfixed64OptFieldNumber = 7685475; |
| 84 | public static pb::GeneratedExtensionBase<long> Sfixed64Opt; |
| 85 | public const int FloatOptFieldNumber = 7675390; |
| 86 | public static pb::GeneratedExtensionBase<float> FloatOpt; |
| 87 | public const int DoubleOptFieldNumber = 7673293; |
| 88 | public static pb::GeneratedExtensionBase<double> DoubleOpt; |
| 89 | public const int StringOptFieldNumber = 7673285; |
| 90 | public static pb::GeneratedExtensionBase<string> StringOpt; |
| 91 | public const int BytesOptFieldNumber = 7673238; |
| 92 | public static pb::GeneratedExtensionBase<pb::ByteString> BytesOpt; |
| 93 | public const int EnumOptFieldNumber = 7673233; |
| 94 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Types.TestEnumType> EnumOpt; |
| 95 | public const int MessageTypeOptFieldNumber = 7665967; |
| 96 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType> MessageTypeOpt; |
| 97 | public const int QuuxFieldNumber = 7663707; |
| 98 | public static pb::GeneratedExtensionBase<int> Quux; |
| 99 | public const int CorgeFieldNumber = 7663442; |
| 100 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3> Corge; |
| 101 | public const int GraultFieldNumber = 7650927; |
| 102 | public static pb::GeneratedExtensionBase<int> Grault; |
| 103 | public const int GarplyFieldNumber = 7649992; |
| 104 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1> Garply; |
| 105 | public const int ComplexOpt1FieldNumber = 7646756; |
| 106 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1> ComplexOpt1; |
| 107 | public const int ComplexOpt2FieldNumber = 7636949; |
| 108 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2> ComplexOpt2; |
| 109 | public const int ComplexOpt3FieldNumber = 7636463; |
| 110 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3> ComplexOpt3; |
| 111 | public const int ComplexOpt6FieldNumber = 7595468; |
| 112 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOpt6> ComplexOpt6; |
| 113 | #endregion |
| 114 | |
| 115 | #region Static variables |
| 116 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMessageWithCustomOptions__Descriptor; |
| 117 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions, global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions.Builder> internal__static_protobuf_unittest_TestMessageWithCustomOptions__FieldAccessorTable; |
| 118 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionFooRequest__Descriptor; |
| 119 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest.Builder> internal__static_protobuf_unittest_CustomOptionFooRequest__FieldAccessorTable; |
| 120 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionFooResponse__Descriptor; |
| 121 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.Builder> internal__static_protobuf_unittest_CustomOptionFooResponse__FieldAccessorTable; |
| 122 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_DummyMessageContainingEnum__Descriptor; |
| 123 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum, global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Builder> internal__static_protobuf_unittest_DummyMessageContainingEnum__FieldAccessorTable; |
| 124 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__Descriptor; |
| 125 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType, global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType.Builder> internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__FieldAccessorTable; |
| 126 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionMinIntegerValues__Descriptor; |
| 127 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionMinIntegerValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionMinIntegerValues.Builder> internal__static_protobuf_unittest_CustomOptionMinIntegerValues__FieldAccessorTable; |
| 128 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__Descriptor; |
| 129 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionMaxIntegerValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionMaxIntegerValues.Builder> internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__FieldAccessorTable; |
| 130 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionOtherValues__Descriptor; |
| 131 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionOtherValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionOtherValues.Builder> internal__static_protobuf_unittest_CustomOptionOtherValues__FieldAccessorTable; |
| 132 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_SettingRealsFromPositiveInts__Descriptor; |
| 133 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SettingRealsFromPositiveInts, global::Google.ProtocolBuffers.TestProtos.SettingRealsFromPositiveInts.Builder> internal__static_protobuf_unittest_SettingRealsFromPositiveInts__FieldAccessorTable; |
| 134 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_SettingRealsFromNegativeInts__Descriptor; |
| 135 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SettingRealsFromNegativeInts, global::Google.ProtocolBuffers.TestProtos.SettingRealsFromNegativeInts.Builder> internal__static_protobuf_unittest_SettingRealsFromNegativeInts__FieldAccessorTable; |
| 136 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOptionType1__Descriptor; |
| 137 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.Builder> internal__static_protobuf_unittest_ComplexOptionType1__FieldAccessorTable; |
| 138 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOptionType2__Descriptor; |
| 139 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Builder> internal__static_protobuf_unittest_ComplexOptionType2__FieldAccessorTable; |
| 140 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__Descriptor; |
| 141 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Builder> internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__FieldAccessorTable; |
| 142 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOptionType3__Descriptor; |
| 143 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Builder> internal__static_protobuf_unittest_ComplexOptionType3__FieldAccessorTable; |
| 144 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__Descriptor; |
| 145 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.Builder> internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__FieldAccessorTable; |
| 146 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_ComplexOpt6__Descriptor; |
| 147 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOpt6, global::Google.ProtocolBuffers.TestProtos.ComplexOpt6.Builder> internal__static_protobuf_unittest_ComplexOpt6__FieldAccessorTable; |
| 148 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_VariousComplexOptions__Descriptor; |
| 149 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.VariousComplexOptions, global::Google.ProtocolBuffers.TestProtos.VariousComplexOptions.Builder> internal__static_protobuf_unittest_VariousComplexOptions__FieldAccessorTable; |
| 150 | #endregion |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 151 | #region Descriptor |
| 152 | public static pbd::FileDescriptor Descriptor { |
| 153 | get { return descriptor; } |
| 154 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 155 | private static pbd::FileDescriptor descriptor; |
| 156 | |
| 157 | static UnitTestCustomOptionsProtoFile() { |
| 158 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 159 | "Ci1nb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfY3VzdG9tX29wdGlvbnMucHJv" + |
| 160 | "dG8SEXByb3RvYnVmX3VuaXR0ZXN0GiRnb29nbGUvcHJvdG9idWYvY3NoYXJw" + |
| 161 | "X29wdGlvbnMucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9kZXNjcmlwdG9yLnBy" + |
| 162 | "b3RvIoYBChxUZXN0TWVzc2FnZVdpdGhDdXN0b21PcHRpb25zEh4KBmZpZWxk" + |
| 163 | "MRgBIAEoCUIOCAHB4MMdLeF1CgIAAAAiNAoGQW5FbnVtEg8KC0FORU5VTV9W" + |
| 164 | "QUwxEAESDwoLQU5FTlVNX1ZBTDIQAhoIxfbJHev8//86EAgA4OnCHcj/////" + |
| 165 | "/////wEiGAoWQ3VzdG9tT3B0aW9uRm9vUmVxdWVzdCIZChdDdXN0b21PcHRp" + |
| 166 | "b25Gb29SZXNwb25zZSJtChpEdW1teU1lc3NhZ2VDb250YWluaW5nRW51bSJP" + |
| 167 | "CgxUZXN0RW51bVR5cGUSGgoWVEVTVF9PUFRJT05fRU5VTV9UWVBFMRAWEiMK" + |
| 168 | "FlRFU1RfT1BUSU9OX0VOVU1fVFlQRTIQ6f//////////ASIhCh9EdW1teU1l" + |
| 169 | "c3NhZ2VJbnZhbGlkQXNPcHRpb25UeXBlIooBChxDdXN0b21PcHRpb25NaW5J" + |
| 170 | "bnRlZ2VyVmFsdWVzOmqZ1qgdAAAAAAAAAICtja8dAAAAgJHurx0AAAAAAAAA" + |
| 171 | "AJ31rx0AAAAA+JewHf///////////wGAxLAd/////w/49bAdAICTsh0AsLyy" + |
| 172 | "HYCAgICAgICAgAHoxrIdgICAgPj/////AdDesh0AIpEBChxDdXN0b21PcHRp" + |
| 173 | "b25NYXhJbnRlZ2VyVmFsdWVzOnGZ1qgd/////////3+tja8d////f5Hurx3/" + |
| 174 | "/////////531rx3/////+JewHf7//////////wGAxLAd/v///w/49bAd////" + |
| 175 | "////////AYCTsh3/////D7C8sh3//////////3/oxrId/////wfQ3rIdASJu" + |
| 176 | "ChdDdXN0b21PcHRpb25PdGhlclZhbHVlczpTiNmiHen//////////wGy2aId" + |
| 177 | "C0hlbGxvAFdvcmxkqtyiHQ5IZWxsbywgIldvcmxkIuncoh37WYxCysDzP/Xf" + |
| 178 | "ox3nh0VB6MayHZz//////////wEiNAocU2V0dGluZ1JlYWxzRnJvbVBvc2l0" + |
| 179 | "aXZlSW50czoU6dyiHQAAAAAAQGNA9d+jHQAAQEEiNAocU2V0dGluZ1JlYWxz" + |
| 180 | "RnJvbU5lZ2F0aXZlSW50czoU6dyiHQAAAAAAQGPA9d+jHQAAQMEiKwoSQ29t" + |
| 181 | "cGxleE9wdGlvblR5cGUxEgsKA2ZvbxgBIAEoBSoICGQQgICAgAIiwQIKEkNv" + |
| 182 | "bXBsZXhPcHRpb25UeXBlMhIyCgNiYXIYASABKAsyJS5wcm90b2J1Zl91bml0" + |
| 183 | "dGVzdC5Db21wbGV4T3B0aW9uVHlwZTESCwoDYmF6GAIgASgFEkYKBGZyZWQY" + |
| 184 | "AyABKAsyOC5wcm90b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIu" + |
| 185 | "Q29tcGxleE9wdGlvblR5cGU0GpcBChJDb21wbGV4T3B0aW9uVHlwZTQSDQoF" + |
| 186 | "d2FsZG8YASABKAUycgoMY29tcGxleF9vcHQ0Eh8uZ29vZ2xlLnByb3RvYnVm" + |
| 187 | "Lk1lc3NhZ2VPcHRpb25zGIr10QMgASgLMjgucHJvdG9idWZfdW5pdHRlc3Qu" + |
| 188 | "Q29tcGxleE9wdGlvblR5cGUyLkNvbXBsZXhPcHRpb25UeXBlNCoICGQQgICA" + |
| 189 | "gAIinAEKEkNvbXBsZXhPcHRpb25UeXBlMxILCgNxdXgYASABKAUSVAoSY29t" + |
| 190 | "cGxleG9wdGlvbnR5cGU1GAIgASgKMjgucHJvdG9idWZfdW5pdHRlc3QuQ29t" + |
| 191 | "cGxleE9wdGlvblR5cGUzLkNvbXBsZXhPcHRpb25UeXBlNRojChJDb21wbGV4" + |
| 192 | "T3B0aW9uVHlwZTUSDQoFcGx1Z2gYAyABKAUiHwoLQ29tcGxleE9wdDYSEAoF" + |
| 193 | "eHl6enkY37/PAyABKAUi0AEKFVZhcmlvdXNDb21wbGV4T3B0aW9uczq2AePc" + |
| 194 | "/Bz4/fscGOTc/BzSqI8dAwizD/rekB0CCAn63pAdBBMYFhSq/ZAdAxDbB6r9" + |
| 195 | "kB0G+OaXHY4Fqv2QHQUKAwjnBar9kB0ICgbYhZ4dzw+q/ZAdCgoIkvWdHQMI" + |
| 196 | "2A+q/ZAdCMKslx0DCOUFqv2QHQvCrJcdBtiFnh3OD6r9kB0NwqyXHQiS9Z0d" + |
| 197 | "AwjJEKr9kB0FGgMIwQKi4pUdAggqouKVHQbYhZ4dxAKi4pUdCJL1nR0DCOwG" + |
| 198 | "KjYKCk1ldGhvZE9wdDESEwoPTUVUSE9ET1BUMV9WQUwxEAESEwoPTUVUSE9E" + |
| 199 | "T1BUMV9WQUwyEAIyjgEKHFRlc3RTZXJ2aWNlV2l0aEN1c3RvbU9wdGlvbnMS" + |
| 200 | "YwoDRm9vEikucHJvdG9idWZfdW5pdHRlc3QuQ3VzdG9tT3B0aW9uRm9vUmVx" + |
| 201 | "dWVzdBoqLnByb3RvYnVmX3VuaXR0ZXN0LkN1c3RvbU9wdGlvbkZvb1Jlc3Bv" + |
| 202 | "bnNlIgXg+oweAhoJkLKLHtPbgMtJOjIKCWZpbGVfb3B0MRIcLmdvb2dsZS5w" + |
| 203 | "cm90b2J1Zi5GaWxlT3B0aW9ucxiOndgDIAEoBDo4CgxtZXNzYWdlX29wdDES" + |
| 204 | "Hy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYnK3YAyABKAU6NAoK" + |
| 205 | "ZmllbGRfb3B0MRIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYiLzY" + |
| 206 | "AyABKAY6OAoKZmllbGRfb3B0MhIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9w" + |
| 207 | "dGlvbnMYuaHZAyABKAU6AjQyOjIKCWVudW1fb3B0MRIcLmdvb2dsZS5wcm90" + |
| 208 | "b2J1Zi5FbnVtT3B0aW9ucxjontkDIAEoDzo4CgxzZXJ2aWNlX29wdDESHy5n" + |
| 209 | "b29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMYorbhAyABKBI6VQoLbWV0" + |
| 210 | "aG9kX29wdDESHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxisz+ED" + |
| 211 | "IAEoDjIdLnByb3RvYnVmX3VuaXR0ZXN0Lk1ldGhvZE9wdDE6NAoIYm9vbF9v" + |
| 212 | "cHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY6qvWAyABKAg6" + |
| 213 | "NQoJaW50MzJfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25z" + |
| 214 | "GO2o1gMgASgFOjUKCWludDY0X29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNz" + |
| 215 | "YWdlT3B0aW9ucxjGp9YDIAEoAzo2Cgp1aW50MzJfb3B0Eh8uZ29vZ2xlLnBy" + |
| 216 | "b3RvYnVmLk1lc3NhZ2VPcHRpb25zGLCi1gMgASgNOjYKCnVpbnQ2NF9vcHQS" + |
| 217 | "Hy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY347WAyABKAQ6NgoK" + |
| 218 | "c2ludDMyX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjA" + |
| 219 | "iNYDIAEoETo2CgpzaW50NjRfb3B0Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3Nh" + |
| 220 | "Z2VPcHRpb25zGP+C1gMgASgSOjcKC2ZpeGVkMzJfb3B0Eh8uZ29vZ2xlLnBy" + |
| 221 | "b3RvYnVmLk1lc3NhZ2VPcHRpb25zGNP+1QMgASgHOjcKC2ZpeGVkNjRfb3B0" + |
| 222 | "Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGOL91QMgASgGOjgK" + |
| 223 | "DHNmaXhlZDMyX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9u" + |
| 224 | "cxjV8dUDIAEoDzo4CgxzZml4ZWQ2NF9vcHQSHy5nb29nbGUucHJvdG9idWYu" + |
| 225 | "TWVzc2FnZU9wdGlvbnMY44rVAyABKBA6NQoJZmxvYXRfb3B0Eh8uZ29vZ2xl" + |
| 226 | "LnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGP671AMgASgCOjYKCmRvdWJsZV9v" + |
| 227 | "cHQSHy5nb29nbGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMYzavUAyABKAE6" + |
| 228 | "NgoKc3RyaW5nX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9u" + |
| 229 | "cxjFq9QDIAEoCTo1CglieXRlc19vcHQSHy5nb29nbGUucHJvdG9idWYuTWVz" + |
| 230 | "c2FnZU9wdGlvbnMYlqvUAyABKAw6cAoIZW51bV9vcHQSHy5nb29nbGUucHJv" + |
| 231 | "dG9idWYuTWVzc2FnZU9wdGlvbnMYkavUAyABKA4yOi5wcm90b2J1Zl91bml0" + |
| 232 | "dGVzdC5EdW1teU1lc3NhZ2VDb250YWluaW5nRW51bS5UZXN0RW51bVR5cGU6" + |
| 233 | "cAoQbWVzc2FnZV90eXBlX29wdBIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdl" + |
| 234 | "T3B0aW9ucxiv8tMDIAEoCzIyLnByb3RvYnVmX3VuaXR0ZXN0LkR1bW15TWVz" + |
| 235 | "c2FnZUludmFsaWRBc09wdGlvblR5cGU6NgoEcXV1eBIlLnByb3RvYnVmX3Vu" + |
| 236 | "aXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBlMRjb4NMDIAEoBTpeCgVjb3JnZRIl" + |
| 237 | "LnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBlMRjS3tMDIAEo" + |
| 238 | "CzIlLnByb3RvYnVmX3VuaXR0ZXN0LkNvbXBsZXhPcHRpb25UeXBlMzo4CgZn" + |
| 239 | "cmF1bHQSJS5wcm90b2J1Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTIY" + |
| 240 | "7/zSAyABKAU6XwoGZ2FycGx5EiUucHJvdG9idWZfdW5pdHRlc3QuQ29tcGxl" + |
| 241 | "eE9wdGlvblR5cGUyGMj10gMgASgLMiUucHJvdG9idWZfdW5pdHRlc3QuQ29t" + |
| 242 | "cGxleE9wdGlvblR5cGUxOl8KDGNvbXBsZXhfb3B0MRIfLmdvb2dsZS5wcm90" + |
| 243 | "b2J1Zi5NZXNzYWdlT3B0aW9ucxik3NIDIAEoCzIlLnByb3RvYnVmX3VuaXR0" + |
| 244 | "ZXN0LkNvbXBsZXhPcHRpb25UeXBlMTpfCgxjb21wbGV4X29wdDISHy5nb29n" + |
| 245 | "bGUucHJvdG9idWYuTWVzc2FnZU9wdGlvbnMY1Y/SAyABKAsyJS5wcm90b2J1" + |
| 246 | "Zl91bml0dGVzdC5Db21wbGV4T3B0aW9uVHlwZTI6XwoMY29tcGxleF9vcHQz" + |
| 247 | "Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGO+L0gMgASgLMiUu" + |
| 248 | "cHJvdG9idWZfdW5pdHRlc3QuQ29tcGxleE9wdGlvblR5cGUzOlcKC2NvbXBs" + |
| 249 | "ZXhvcHQ2Eh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGMzLzwMg" + |
| 250 | "ASgKMh4ucHJvdG9idWZfdW5pdHRlc3QuQ29tcGxleE9wdDZCT8I+QwohR29v" + |
| 251 | "Z2xlLlByb3RvY29sQnVmZmVycy5UZXN0UHJvdG9zEh5Vbml0VGVzdEN1c3Rv" + |
| 252 | "bU9wdGlvbnNQcm90b0ZpbGXw6MEd6q3A5SQ="); |
| 253 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { |
| 254 | descriptor = root; |
| 255 | internal__static_protobuf_unittest_TestMessageWithCustomOptions__Descriptor = Descriptor.MessageTypes[0]; |
| 256 | internal__static_protobuf_unittest_TestMessageWithCustomOptions__FieldAccessorTable = |
| 257 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions, global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions.Builder>(internal__static_protobuf_unittest_TestMessageWithCustomOptions__Descriptor, |
| 258 | new string[] { "Field1", }); |
| 259 | internal__static_protobuf_unittest_CustomOptionFooRequest__Descriptor = Descriptor.MessageTypes[1]; |
| 260 | internal__static_protobuf_unittest_CustomOptionFooRequest__FieldAccessorTable = |
| 261 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest.Builder>(internal__static_protobuf_unittest_CustomOptionFooRequest__Descriptor, |
| 262 | new string[] { }); |
| 263 | internal__static_protobuf_unittest_CustomOptionFooResponse__Descriptor = Descriptor.MessageTypes[2]; |
| 264 | internal__static_protobuf_unittest_CustomOptionFooResponse__FieldAccessorTable = |
| 265 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.Builder>(internal__static_protobuf_unittest_CustomOptionFooResponse__Descriptor, |
| 266 | new string[] { }); |
| 267 | internal__static_protobuf_unittest_DummyMessageContainingEnum__Descriptor = Descriptor.MessageTypes[3]; |
| 268 | internal__static_protobuf_unittest_DummyMessageContainingEnum__FieldAccessorTable = |
| 269 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum, global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Builder>(internal__static_protobuf_unittest_DummyMessageContainingEnum__Descriptor, |
| 270 | new string[] { }); |
| 271 | internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__Descriptor = Descriptor.MessageTypes[4]; |
| 272 | internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__FieldAccessorTable = |
| 273 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType, global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType.Builder>(internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__Descriptor, |
| 274 | new string[] { }); |
| 275 | internal__static_protobuf_unittest_CustomOptionMinIntegerValues__Descriptor = Descriptor.MessageTypes[5]; |
| 276 | internal__static_protobuf_unittest_CustomOptionMinIntegerValues__FieldAccessorTable = |
| 277 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionMinIntegerValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionMinIntegerValues.Builder>(internal__static_protobuf_unittest_CustomOptionMinIntegerValues__Descriptor, |
| 278 | new string[] { }); |
| 279 | internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__Descriptor = Descriptor.MessageTypes[6]; |
| 280 | internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__FieldAccessorTable = |
| 281 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionMaxIntegerValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionMaxIntegerValues.Builder>(internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__Descriptor, |
| 282 | new string[] { }); |
| 283 | internal__static_protobuf_unittest_CustomOptionOtherValues__Descriptor = Descriptor.MessageTypes[7]; |
| 284 | internal__static_protobuf_unittest_CustomOptionOtherValues__FieldAccessorTable = |
| 285 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionOtherValues, global::Google.ProtocolBuffers.TestProtos.CustomOptionOtherValues.Builder>(internal__static_protobuf_unittest_CustomOptionOtherValues__Descriptor, |
| 286 | new string[] { }); |
| 287 | internal__static_protobuf_unittest_SettingRealsFromPositiveInts__Descriptor = Descriptor.MessageTypes[8]; |
| 288 | internal__static_protobuf_unittest_SettingRealsFromPositiveInts__FieldAccessorTable = |
| 289 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SettingRealsFromPositiveInts, global::Google.ProtocolBuffers.TestProtos.SettingRealsFromPositiveInts.Builder>(internal__static_protobuf_unittest_SettingRealsFromPositiveInts__Descriptor, |
| 290 | new string[] { }); |
| 291 | internal__static_protobuf_unittest_SettingRealsFromNegativeInts__Descriptor = Descriptor.MessageTypes[9]; |
| 292 | internal__static_protobuf_unittest_SettingRealsFromNegativeInts__FieldAccessorTable = |
| 293 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.SettingRealsFromNegativeInts, global::Google.ProtocolBuffers.TestProtos.SettingRealsFromNegativeInts.Builder>(internal__static_protobuf_unittest_SettingRealsFromNegativeInts__Descriptor, |
| 294 | new string[] { }); |
| 295 | internal__static_protobuf_unittest_ComplexOptionType1__Descriptor = Descriptor.MessageTypes[10]; |
| 296 | internal__static_protobuf_unittest_ComplexOptionType1__FieldAccessorTable = |
| 297 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.Builder>(internal__static_protobuf_unittest_ComplexOptionType1__Descriptor, |
| 298 | new string[] { "Foo", }); |
| 299 | internal__static_protobuf_unittest_ComplexOptionType2__Descriptor = Descriptor.MessageTypes[11]; |
| 300 | internal__static_protobuf_unittest_ComplexOptionType2__FieldAccessorTable = |
| 301 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Builder>(internal__static_protobuf_unittest_ComplexOptionType2__Descriptor, |
| 302 | new string[] { "Bar", "Baz", "Fred", }); |
| 303 | internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__Descriptor = internal__static_protobuf_unittest_ComplexOptionType2__Descriptor.NestedTypes[0]; |
| 304 | internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__FieldAccessorTable = |
| 305 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Builder>(internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__Descriptor, |
| 306 | new string[] { "Waldo", }); |
| 307 | global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.ComplexOpt4 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Descriptor.Extensions[0]); |
| 308 | internal__static_protobuf_unittest_ComplexOptionType3__Descriptor = Descriptor.MessageTypes[12]; |
| 309 | internal__static_protobuf_unittest_ComplexOptionType3__FieldAccessorTable = |
| 310 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Builder>(internal__static_protobuf_unittest_ComplexOptionType3__Descriptor, |
| 311 | new string[] { "Qux", "ComplexOptionType5", }); |
| 312 | internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__Descriptor = internal__static_protobuf_unittest_ComplexOptionType3__Descriptor.NestedTypes[0]; |
| 313 | internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__FieldAccessorTable = |
| 314 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5, global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.Builder>(internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__Descriptor, |
| 315 | new string[] { "Plugh", }); |
| 316 | internal__static_protobuf_unittest_ComplexOpt6__Descriptor = Descriptor.MessageTypes[13]; |
| 317 | internal__static_protobuf_unittest_ComplexOpt6__FieldAccessorTable = |
| 318 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ComplexOpt6, global::Google.ProtocolBuffers.TestProtos.ComplexOpt6.Builder>(internal__static_protobuf_unittest_ComplexOpt6__Descriptor, |
| 319 | new string[] { "Xyzzy", }); |
| 320 | internal__static_protobuf_unittest_VariousComplexOptions__Descriptor = Descriptor.MessageTypes[14]; |
| 321 | internal__static_protobuf_unittest_VariousComplexOptions__FieldAccessorTable = |
| 322 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.VariousComplexOptions, global::Google.ProtocolBuffers.TestProtos.VariousComplexOptions.Builder>(internal__static_protobuf_unittest_VariousComplexOptions__Descriptor, |
| 323 | new string[] { }); |
| 324 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FileOpt1 = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[0]); |
| 325 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MessageOpt1 = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[1]); |
| 326 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FieldOpt1 = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[2]); |
| 327 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FieldOpt2 = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[3]); |
| 328 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.EnumOpt1 = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[4]); |
| 329 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ServiceOpt1 = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[5]); |
| 330 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MethodOpt1 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.MethodOpt1>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[6]); |
| 331 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.BoolOpt = pb::GeneratedSingleExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[7]); |
| 332 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Int32Opt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[8]); |
| 333 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Int64Opt = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[9]); |
| 334 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Uint32Opt = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[10]); |
| 335 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Uint64Opt = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[11]); |
| 336 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sint32Opt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[12]); |
| 337 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sint64Opt = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[13]); |
| 338 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Fixed32Opt = pb::GeneratedSingleExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[14]); |
| 339 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Fixed64Opt = pb::GeneratedSingleExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[15]); |
| 340 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sfixed32Opt = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[16]); |
| 341 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Sfixed64Opt = pb::GeneratedSingleExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[17]); |
| 342 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.FloatOpt = pb::GeneratedSingleExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[18]); |
| 343 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.DoubleOpt = pb::GeneratedSingleExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[19]); |
| 344 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.StringOpt = pb::GeneratedSingleExtension<string>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[20]); |
| 345 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.BytesOpt = pb::GeneratedSingleExtension<pb::ByteString>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[21]); |
| 346 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.EnumOpt = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Types.TestEnumType>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[22]); |
| 347 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.MessageTypeOpt = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[23]); |
| 348 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Quux = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[24]); |
| 349 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Corge = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[25]); |
| 350 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Grault = pb::GeneratedSingleExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[26]); |
| 351 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Garply = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[27]); |
| 352 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt1 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[28]); |
| 353 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt2 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[29]); |
| 354 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt3 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[30]); |
| 355 | global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.ComplexOpt6 = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.ComplexOpt6>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor.Extensions[31]); |
| 356 | pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); |
| 357 | RegisterAllExtensions(registry); |
| 358 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry); |
| 359 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.RegisterAllExtensions(registry); |
| 360 | return registry; |
| 361 | }; |
| 362 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
| 363 | new pbd::FileDescriptor[] { |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 364 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, |
| 365 | global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 366 | }, assigner); |
| 367 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 368 | #endregion |
| 369 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 370 | } |
| 371 | #region Enums |
| 372 | public enum MethodOpt1 { |
| 373 | METHODOPT1_VAL1 = 1, |
| 374 | METHODOPT1_VAL2 = 2, |
| 375 | } |
| 376 | |
| 377 | #endregion |
| 378 | |
| 379 | #region Messages |
| 380 | public sealed partial class TestMessageWithCustomOptions : pb::GeneratedMessage<TestMessageWithCustomOptions, TestMessageWithCustomOptions.Builder> { |
| 381 | private static readonly TestMessageWithCustomOptions defaultInstance = new Builder().BuildPartial(); |
| 382 | public static TestMessageWithCustomOptions DefaultInstance { |
| 383 | get { return defaultInstance; } |
| 384 | } |
| 385 | |
| 386 | public override TestMessageWithCustomOptions DefaultInstanceForType { |
| 387 | get { return defaultInstance; } |
| 388 | } |
| 389 | |
| 390 | protected override TestMessageWithCustomOptions ThisMessage { |
| 391 | get { return this; } |
| 392 | } |
| 393 | |
| 394 | public static pbd::MessageDescriptor Descriptor { |
| 395 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_TestMessageWithCustomOptions__Descriptor; } |
| 396 | } |
| 397 | |
| 398 | protected override pb::FieldAccess.FieldAccessorTable<TestMessageWithCustomOptions, TestMessageWithCustomOptions.Builder> InternalFieldAccessors { |
| 399 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_TestMessageWithCustomOptions__FieldAccessorTable; } |
| 400 | } |
| 401 | |
| 402 | #region Nested types |
| 403 | public static class Types { |
| 404 | public enum AnEnum { |
| 405 | ANENUM_VAL1 = 1, |
| 406 | ANENUM_VAL2 = 2, |
| 407 | } |
| 408 | |
| 409 | } |
| 410 | #endregion |
| 411 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 412 | public const int Field1FieldNumber = 1; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 413 | private bool hasField1; |
| 414 | private string field1_ = ""; |
| 415 | public bool HasField1 { |
| 416 | get { return hasField1; } |
| 417 | } |
| 418 | public string Field1 { |
| 419 | get { return field1_; } |
| 420 | } |
| 421 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 422 | public override bool IsInitialized { |
| 423 | get { |
| 424 | return true; |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | public override void WriteTo(pb::CodedOutputStream output) { |
| 429 | if (HasField1) { |
| 430 | output.WriteString(1, Field1); |
| 431 | } |
| 432 | UnknownFields.WriteTo(output); |
| 433 | } |
| 434 | |
| 435 | private int memoizedSerializedSize = -1; |
| 436 | public override int SerializedSize { |
| 437 | get { |
| 438 | int size = memoizedSerializedSize; |
| 439 | if (size != -1) return size; |
| 440 | |
| 441 | size = 0; |
| 442 | if (HasField1) { |
| 443 | size += pb::CodedOutputStream.ComputeStringSize(1, Field1); |
| 444 | } |
| 445 | size += UnknownFields.SerializedSize; |
| 446 | memoizedSerializedSize = size; |
| 447 | return size; |
| 448 | } |
| 449 | } |
| 450 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 451 | public static TestMessageWithCustomOptions ParseFrom(pb::ByteString data) { |
| 452 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 453 | } |
| 454 | public static TestMessageWithCustomOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 455 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 456 | } |
| 457 | public static TestMessageWithCustomOptions ParseFrom(byte[] data) { |
| 458 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 459 | } |
| 460 | public static TestMessageWithCustomOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 461 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 462 | } |
| 463 | public static TestMessageWithCustomOptions ParseFrom(global::System.IO.Stream input) { |
| 464 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 465 | } |
| 466 | public static TestMessageWithCustomOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 467 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 468 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 469 | public static TestMessageWithCustomOptions ParseDelimitedFrom(global::System.IO.Stream input) { |
| 470 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 471 | } |
| 472 | public static TestMessageWithCustomOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 473 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 474 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 475 | public static TestMessageWithCustomOptions ParseFrom(pb::CodedInputStream input) { |
| 476 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 477 | } |
| 478 | public static TestMessageWithCustomOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 479 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 480 | } |
| 481 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 482 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 483 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 484 | public static Builder CreateBuilder(TestMessageWithCustomOptions prototype) { |
| 485 | return (Builder) new Builder().MergeFrom(prototype); |
| 486 | } |
| 487 | |
| 488 | public sealed partial class Builder : pb::GeneratedBuilder<TestMessageWithCustomOptions, Builder> { |
| 489 | protected override Builder ThisBuilder { |
| 490 | get { return this; } |
| 491 | } |
| 492 | public Builder() {} |
| 493 | |
| 494 | TestMessageWithCustomOptions result = new TestMessageWithCustomOptions(); |
| 495 | |
| 496 | protected override TestMessageWithCustomOptions MessageBeingBuilt { |
| 497 | get { return result; } |
| 498 | } |
| 499 | |
| 500 | public override Builder Clear() { |
| 501 | result = new TestMessageWithCustomOptions(); |
| 502 | return this; |
| 503 | } |
| 504 | |
| 505 | public override Builder Clone() { |
| 506 | return new Builder().MergeFrom(result); |
| 507 | } |
| 508 | |
| 509 | public override pbd::MessageDescriptor DescriptorForType { |
| 510 | get { return TestMessageWithCustomOptions.Descriptor; } |
| 511 | } |
| 512 | |
| 513 | public override TestMessageWithCustomOptions DefaultInstanceForType { |
| 514 | get { return TestMessageWithCustomOptions.DefaultInstance; } |
| 515 | } |
| 516 | |
| 517 | public override TestMessageWithCustomOptions BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 518 | if (result == null) { |
| 519 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 520 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 521 | TestMessageWithCustomOptions returnMe = result; |
| 522 | result = null; |
| 523 | return returnMe; |
| 524 | } |
| 525 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 526 | public override Builder MergeFrom(pb::IMessage other) { |
| 527 | if (other is TestMessageWithCustomOptions) { |
| 528 | return MergeFrom((TestMessageWithCustomOptions) other); |
| 529 | } else { |
| 530 | base.MergeFrom(other); |
| 531 | return this; |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | public override Builder MergeFrom(TestMessageWithCustomOptions other) { |
| 536 | if (other == TestMessageWithCustomOptions.DefaultInstance) return this; |
| 537 | if (other.HasField1) { |
| 538 | Field1 = other.Field1; |
| 539 | } |
| 540 | this.MergeUnknownFields(other.UnknownFields); |
| 541 | return this; |
| 542 | } |
| 543 | |
| 544 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 545 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 546 | } |
| 547 | |
| 548 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 549 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 550 | while (true) { |
| 551 | uint tag = input.ReadTag(); |
| 552 | switch (tag) { |
| 553 | case 0: { |
| 554 | if (unknownFields != null) { |
| 555 | this.UnknownFields = unknownFields.Build(); |
| 556 | } |
| 557 | return this; |
| 558 | } |
| 559 | default: { |
| 560 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 561 | if (unknownFields != null) { |
| 562 | this.UnknownFields = unknownFields.Build(); |
| 563 | } |
| 564 | return this; |
| 565 | } |
| 566 | if (unknownFields == null) { |
| 567 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 568 | } |
| 569 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 570 | break; |
| 571 | } |
| 572 | case 10: { |
| 573 | Field1 = input.ReadString(); |
| 574 | break; |
| 575 | } |
| 576 | } |
| 577 | } |
| 578 | } |
| 579 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 580 | |
| 581 | public bool HasField1 { |
| 582 | get { return result.HasField1; } |
| 583 | } |
| 584 | public string Field1 { |
| 585 | get { return result.Field1; } |
| 586 | set { SetField1(value); } |
| 587 | } |
| 588 | public Builder SetField1(string value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 589 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 590 | result.hasField1 = true; |
| 591 | result.field1_ = value; |
| 592 | return this; |
| 593 | } |
| 594 | public Builder ClearField1() { |
| 595 | result.hasField1 = false; |
| 596 | result.field1_ = ""; |
| 597 | return this; |
| 598 | } |
| 599 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 600 | static TestMessageWithCustomOptions() { |
| 601 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 602 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 603 | } |
| 604 | |
| 605 | public sealed partial class CustomOptionFooRequest : pb::GeneratedMessage<CustomOptionFooRequest, CustomOptionFooRequest.Builder> { |
| 606 | private static readonly CustomOptionFooRequest defaultInstance = new Builder().BuildPartial(); |
| 607 | public static CustomOptionFooRequest DefaultInstance { |
| 608 | get { return defaultInstance; } |
| 609 | } |
| 610 | |
| 611 | public override CustomOptionFooRequest DefaultInstanceForType { |
| 612 | get { return defaultInstance; } |
| 613 | } |
| 614 | |
| 615 | protected override CustomOptionFooRequest ThisMessage { |
| 616 | get { return this; } |
| 617 | } |
| 618 | |
| 619 | public static pbd::MessageDescriptor Descriptor { |
| 620 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionFooRequest__Descriptor; } |
| 621 | } |
| 622 | |
| 623 | protected override pb::FieldAccess.FieldAccessorTable<CustomOptionFooRequest, CustomOptionFooRequest.Builder> InternalFieldAccessors { |
| 624 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionFooRequest__FieldAccessorTable; } |
| 625 | } |
| 626 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 627 | public override bool IsInitialized { |
| 628 | get { |
| 629 | return true; |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | public override void WriteTo(pb::CodedOutputStream output) { |
| 634 | UnknownFields.WriteTo(output); |
| 635 | } |
| 636 | |
| 637 | private int memoizedSerializedSize = -1; |
| 638 | public override int SerializedSize { |
| 639 | get { |
| 640 | int size = memoizedSerializedSize; |
| 641 | if (size != -1) return size; |
| 642 | |
| 643 | size = 0; |
| 644 | size += UnknownFields.SerializedSize; |
| 645 | memoizedSerializedSize = size; |
| 646 | return size; |
| 647 | } |
| 648 | } |
| 649 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 650 | public static CustomOptionFooRequest ParseFrom(pb::ByteString data) { |
| 651 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 652 | } |
| 653 | public static CustomOptionFooRequest ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 654 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 655 | } |
| 656 | public static CustomOptionFooRequest ParseFrom(byte[] data) { |
| 657 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 658 | } |
| 659 | public static CustomOptionFooRequest ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 660 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 661 | } |
| 662 | public static CustomOptionFooRequest ParseFrom(global::System.IO.Stream input) { |
| 663 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 664 | } |
| 665 | public static CustomOptionFooRequest ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 666 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 667 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 668 | public static CustomOptionFooRequest ParseDelimitedFrom(global::System.IO.Stream input) { |
| 669 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 670 | } |
| 671 | public static CustomOptionFooRequest ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 672 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 673 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 674 | public static CustomOptionFooRequest ParseFrom(pb::CodedInputStream input) { |
| 675 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 676 | } |
| 677 | public static CustomOptionFooRequest ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 678 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 679 | } |
| 680 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 681 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 682 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 683 | public static Builder CreateBuilder(CustomOptionFooRequest prototype) { |
| 684 | return (Builder) new Builder().MergeFrom(prototype); |
| 685 | } |
| 686 | |
| 687 | public sealed partial class Builder : pb::GeneratedBuilder<CustomOptionFooRequest, Builder> { |
| 688 | protected override Builder ThisBuilder { |
| 689 | get { return this; } |
| 690 | } |
| 691 | public Builder() {} |
| 692 | |
| 693 | CustomOptionFooRequest result = new CustomOptionFooRequest(); |
| 694 | |
| 695 | protected override CustomOptionFooRequest MessageBeingBuilt { |
| 696 | get { return result; } |
| 697 | } |
| 698 | |
| 699 | public override Builder Clear() { |
| 700 | result = new CustomOptionFooRequest(); |
| 701 | return this; |
| 702 | } |
| 703 | |
| 704 | public override Builder Clone() { |
| 705 | return new Builder().MergeFrom(result); |
| 706 | } |
| 707 | |
| 708 | public override pbd::MessageDescriptor DescriptorForType { |
| 709 | get { return CustomOptionFooRequest.Descriptor; } |
| 710 | } |
| 711 | |
| 712 | public override CustomOptionFooRequest DefaultInstanceForType { |
| 713 | get { return CustomOptionFooRequest.DefaultInstance; } |
| 714 | } |
| 715 | |
| 716 | public override CustomOptionFooRequest BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 717 | if (result == null) { |
| 718 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 719 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 720 | CustomOptionFooRequest returnMe = result; |
| 721 | result = null; |
| 722 | return returnMe; |
| 723 | } |
| 724 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 725 | public override Builder MergeFrom(pb::IMessage other) { |
| 726 | if (other is CustomOptionFooRequest) { |
| 727 | return MergeFrom((CustomOptionFooRequest) other); |
| 728 | } else { |
| 729 | base.MergeFrom(other); |
| 730 | return this; |
| 731 | } |
| 732 | } |
| 733 | |
| 734 | public override Builder MergeFrom(CustomOptionFooRequest other) { |
| 735 | if (other == CustomOptionFooRequest.DefaultInstance) return this; |
| 736 | this.MergeUnknownFields(other.UnknownFields); |
| 737 | return this; |
| 738 | } |
| 739 | |
| 740 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 741 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 742 | } |
| 743 | |
| 744 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 745 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 746 | while (true) { |
| 747 | uint tag = input.ReadTag(); |
| 748 | switch (tag) { |
| 749 | case 0: { |
| 750 | if (unknownFields != null) { |
| 751 | this.UnknownFields = unknownFields.Build(); |
| 752 | } |
| 753 | return this; |
| 754 | } |
| 755 | default: { |
| 756 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 757 | if (unknownFields != null) { |
| 758 | this.UnknownFields = unknownFields.Build(); |
| 759 | } |
| 760 | return this; |
| 761 | } |
| 762 | if (unknownFields == null) { |
| 763 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 764 | } |
| 765 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 766 | break; |
| 767 | } |
| 768 | } |
| 769 | } |
| 770 | } |
| 771 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 772 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 773 | static CustomOptionFooRequest() { |
| 774 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 775 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 776 | } |
| 777 | |
| 778 | public sealed partial class CustomOptionFooResponse : pb::GeneratedMessage<CustomOptionFooResponse, CustomOptionFooResponse.Builder> { |
| 779 | private static readonly CustomOptionFooResponse defaultInstance = new Builder().BuildPartial(); |
| 780 | public static CustomOptionFooResponse DefaultInstance { |
| 781 | get { return defaultInstance; } |
| 782 | } |
| 783 | |
| 784 | public override CustomOptionFooResponse DefaultInstanceForType { |
| 785 | get { return defaultInstance; } |
| 786 | } |
| 787 | |
| 788 | protected override CustomOptionFooResponse ThisMessage { |
| 789 | get { return this; } |
| 790 | } |
| 791 | |
| 792 | public static pbd::MessageDescriptor Descriptor { |
| 793 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionFooResponse__Descriptor; } |
| 794 | } |
| 795 | |
| 796 | protected override pb::FieldAccess.FieldAccessorTable<CustomOptionFooResponse, CustomOptionFooResponse.Builder> InternalFieldAccessors { |
| 797 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionFooResponse__FieldAccessorTable; } |
| 798 | } |
| 799 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 800 | public override bool IsInitialized { |
| 801 | get { |
| 802 | return true; |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | public override void WriteTo(pb::CodedOutputStream output) { |
| 807 | UnknownFields.WriteTo(output); |
| 808 | } |
| 809 | |
| 810 | private int memoizedSerializedSize = -1; |
| 811 | public override int SerializedSize { |
| 812 | get { |
| 813 | int size = memoizedSerializedSize; |
| 814 | if (size != -1) return size; |
| 815 | |
| 816 | size = 0; |
| 817 | size += UnknownFields.SerializedSize; |
| 818 | memoizedSerializedSize = size; |
| 819 | return size; |
| 820 | } |
| 821 | } |
| 822 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 823 | public static CustomOptionFooResponse ParseFrom(pb::ByteString data) { |
| 824 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 825 | } |
| 826 | public static CustomOptionFooResponse ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 827 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 828 | } |
| 829 | public static CustomOptionFooResponse ParseFrom(byte[] data) { |
| 830 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 831 | } |
| 832 | public static CustomOptionFooResponse ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 833 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 834 | } |
| 835 | public static CustomOptionFooResponse ParseFrom(global::System.IO.Stream input) { |
| 836 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 837 | } |
| 838 | public static CustomOptionFooResponse ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 839 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 840 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 841 | public static CustomOptionFooResponse ParseDelimitedFrom(global::System.IO.Stream input) { |
| 842 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 843 | } |
| 844 | public static CustomOptionFooResponse ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 845 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 846 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 847 | public static CustomOptionFooResponse ParseFrom(pb::CodedInputStream input) { |
| 848 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 849 | } |
| 850 | public static CustomOptionFooResponse ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 851 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 852 | } |
| 853 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 854 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 855 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 856 | public static Builder CreateBuilder(CustomOptionFooResponse prototype) { |
| 857 | return (Builder) new Builder().MergeFrom(prototype); |
| 858 | } |
| 859 | |
| 860 | public sealed partial class Builder : pb::GeneratedBuilder<CustomOptionFooResponse, Builder> { |
| 861 | protected override Builder ThisBuilder { |
| 862 | get { return this; } |
| 863 | } |
| 864 | public Builder() {} |
| 865 | |
| 866 | CustomOptionFooResponse result = new CustomOptionFooResponse(); |
| 867 | |
| 868 | protected override CustomOptionFooResponse MessageBeingBuilt { |
| 869 | get { return result; } |
| 870 | } |
| 871 | |
| 872 | public override Builder Clear() { |
| 873 | result = new CustomOptionFooResponse(); |
| 874 | return this; |
| 875 | } |
| 876 | |
| 877 | public override Builder Clone() { |
| 878 | return new Builder().MergeFrom(result); |
| 879 | } |
| 880 | |
| 881 | public override pbd::MessageDescriptor DescriptorForType { |
| 882 | get { return CustomOptionFooResponse.Descriptor; } |
| 883 | } |
| 884 | |
| 885 | public override CustomOptionFooResponse DefaultInstanceForType { |
| 886 | get { return CustomOptionFooResponse.DefaultInstance; } |
| 887 | } |
| 888 | |
| 889 | public override CustomOptionFooResponse BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 890 | if (result == null) { |
| 891 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 892 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 893 | CustomOptionFooResponse returnMe = result; |
| 894 | result = null; |
| 895 | return returnMe; |
| 896 | } |
| 897 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 898 | public override Builder MergeFrom(pb::IMessage other) { |
| 899 | if (other is CustomOptionFooResponse) { |
| 900 | return MergeFrom((CustomOptionFooResponse) other); |
| 901 | } else { |
| 902 | base.MergeFrom(other); |
| 903 | return this; |
| 904 | } |
| 905 | } |
| 906 | |
| 907 | public override Builder MergeFrom(CustomOptionFooResponse other) { |
| 908 | if (other == CustomOptionFooResponse.DefaultInstance) return this; |
| 909 | this.MergeUnknownFields(other.UnknownFields); |
| 910 | return this; |
| 911 | } |
| 912 | |
| 913 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 914 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 915 | } |
| 916 | |
| 917 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 918 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 919 | while (true) { |
| 920 | uint tag = input.ReadTag(); |
| 921 | switch (tag) { |
| 922 | case 0: { |
| 923 | if (unknownFields != null) { |
| 924 | this.UnknownFields = unknownFields.Build(); |
| 925 | } |
| 926 | return this; |
| 927 | } |
| 928 | default: { |
| 929 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 930 | if (unknownFields != null) { |
| 931 | this.UnknownFields = unknownFields.Build(); |
| 932 | } |
| 933 | return this; |
| 934 | } |
| 935 | if (unknownFields == null) { |
| 936 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 937 | } |
| 938 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 939 | break; |
| 940 | } |
| 941 | } |
| 942 | } |
| 943 | } |
| 944 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 945 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 946 | static CustomOptionFooResponse() { |
| 947 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 948 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 949 | } |
| 950 | |
| 951 | public sealed partial class DummyMessageContainingEnum : pb::GeneratedMessage<DummyMessageContainingEnum, DummyMessageContainingEnum.Builder> { |
| 952 | private static readonly DummyMessageContainingEnum defaultInstance = new Builder().BuildPartial(); |
| 953 | public static DummyMessageContainingEnum DefaultInstance { |
| 954 | get { return defaultInstance; } |
| 955 | } |
| 956 | |
| 957 | public override DummyMessageContainingEnum DefaultInstanceForType { |
| 958 | get { return defaultInstance; } |
| 959 | } |
| 960 | |
| 961 | protected override DummyMessageContainingEnum ThisMessage { |
| 962 | get { return this; } |
| 963 | } |
| 964 | |
| 965 | public static pbd::MessageDescriptor Descriptor { |
| 966 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_DummyMessageContainingEnum__Descriptor; } |
| 967 | } |
| 968 | |
| 969 | protected override pb::FieldAccess.FieldAccessorTable<DummyMessageContainingEnum, DummyMessageContainingEnum.Builder> InternalFieldAccessors { |
| 970 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_DummyMessageContainingEnum__FieldAccessorTable; } |
| 971 | } |
| 972 | |
| 973 | #region Nested types |
| 974 | public static class Types { |
| 975 | public enum TestEnumType { |
| 976 | TEST_OPTION_ENUM_TYPE1 = 22, |
| 977 | TEST_OPTION_ENUM_TYPE2 = -23, |
| 978 | } |
| 979 | |
| 980 | } |
| 981 | #endregion |
| 982 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 983 | public override bool IsInitialized { |
| 984 | get { |
| 985 | return true; |
| 986 | } |
| 987 | } |
| 988 | |
| 989 | public override void WriteTo(pb::CodedOutputStream output) { |
| 990 | UnknownFields.WriteTo(output); |
| 991 | } |
| 992 | |
| 993 | private int memoizedSerializedSize = -1; |
| 994 | public override int SerializedSize { |
| 995 | get { |
| 996 | int size = memoizedSerializedSize; |
| 997 | if (size != -1) return size; |
| 998 | |
| 999 | size = 0; |
| 1000 | size += UnknownFields.SerializedSize; |
| 1001 | memoizedSerializedSize = size; |
| 1002 | return size; |
| 1003 | } |
| 1004 | } |
| 1005 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1006 | public static DummyMessageContainingEnum ParseFrom(pb::ByteString data) { |
| 1007 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1008 | } |
| 1009 | public static DummyMessageContainingEnum ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1010 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1011 | } |
| 1012 | public static DummyMessageContainingEnum ParseFrom(byte[] data) { |
| 1013 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1014 | } |
| 1015 | public static DummyMessageContainingEnum ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1016 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1017 | } |
| 1018 | public static DummyMessageContainingEnum ParseFrom(global::System.IO.Stream input) { |
| 1019 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1020 | } |
| 1021 | public static DummyMessageContainingEnum ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1022 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1023 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1024 | public static DummyMessageContainingEnum ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1025 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1026 | } |
| 1027 | public static DummyMessageContainingEnum ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1028 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1029 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1030 | public static DummyMessageContainingEnum ParseFrom(pb::CodedInputStream input) { |
| 1031 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1032 | } |
| 1033 | public static DummyMessageContainingEnum ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1034 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1035 | } |
| 1036 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1037 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1038 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1039 | public static Builder CreateBuilder(DummyMessageContainingEnum prototype) { |
| 1040 | return (Builder) new Builder().MergeFrom(prototype); |
| 1041 | } |
| 1042 | |
| 1043 | public sealed partial class Builder : pb::GeneratedBuilder<DummyMessageContainingEnum, Builder> { |
| 1044 | protected override Builder ThisBuilder { |
| 1045 | get { return this; } |
| 1046 | } |
| 1047 | public Builder() {} |
| 1048 | |
| 1049 | DummyMessageContainingEnum result = new DummyMessageContainingEnum(); |
| 1050 | |
| 1051 | protected override DummyMessageContainingEnum MessageBeingBuilt { |
| 1052 | get { return result; } |
| 1053 | } |
| 1054 | |
| 1055 | public override Builder Clear() { |
| 1056 | result = new DummyMessageContainingEnum(); |
| 1057 | return this; |
| 1058 | } |
| 1059 | |
| 1060 | public override Builder Clone() { |
| 1061 | return new Builder().MergeFrom(result); |
| 1062 | } |
| 1063 | |
| 1064 | public override pbd::MessageDescriptor DescriptorForType { |
| 1065 | get { return DummyMessageContainingEnum.Descriptor; } |
| 1066 | } |
| 1067 | |
| 1068 | public override DummyMessageContainingEnum DefaultInstanceForType { |
| 1069 | get { return DummyMessageContainingEnum.DefaultInstance; } |
| 1070 | } |
| 1071 | |
| 1072 | public override DummyMessageContainingEnum BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1073 | if (result == null) { |
| 1074 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1075 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1076 | DummyMessageContainingEnum returnMe = result; |
| 1077 | result = null; |
| 1078 | return returnMe; |
| 1079 | } |
| 1080 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1081 | public override Builder MergeFrom(pb::IMessage other) { |
| 1082 | if (other is DummyMessageContainingEnum) { |
| 1083 | return MergeFrom((DummyMessageContainingEnum) other); |
| 1084 | } else { |
| 1085 | base.MergeFrom(other); |
| 1086 | return this; |
| 1087 | } |
| 1088 | } |
| 1089 | |
| 1090 | public override Builder MergeFrom(DummyMessageContainingEnum other) { |
| 1091 | if (other == DummyMessageContainingEnum.DefaultInstance) return this; |
| 1092 | this.MergeUnknownFields(other.UnknownFields); |
| 1093 | return this; |
| 1094 | } |
| 1095 | |
| 1096 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1097 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1098 | } |
| 1099 | |
| 1100 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1101 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1102 | while (true) { |
| 1103 | uint tag = input.ReadTag(); |
| 1104 | switch (tag) { |
| 1105 | case 0: { |
| 1106 | if (unknownFields != null) { |
| 1107 | this.UnknownFields = unknownFields.Build(); |
| 1108 | } |
| 1109 | return this; |
| 1110 | } |
| 1111 | default: { |
| 1112 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1113 | if (unknownFields != null) { |
| 1114 | this.UnknownFields = unknownFields.Build(); |
| 1115 | } |
| 1116 | return this; |
| 1117 | } |
| 1118 | if (unknownFields == null) { |
| 1119 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1120 | } |
| 1121 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1122 | break; |
| 1123 | } |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1128 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1129 | static DummyMessageContainingEnum() { |
| 1130 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1131 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1132 | } |
| 1133 | |
| 1134 | public sealed partial class DummyMessageInvalidAsOptionType : pb::GeneratedMessage<DummyMessageInvalidAsOptionType, DummyMessageInvalidAsOptionType.Builder> { |
| 1135 | private static readonly DummyMessageInvalidAsOptionType defaultInstance = new Builder().BuildPartial(); |
| 1136 | public static DummyMessageInvalidAsOptionType DefaultInstance { |
| 1137 | get { return defaultInstance; } |
| 1138 | } |
| 1139 | |
| 1140 | public override DummyMessageInvalidAsOptionType DefaultInstanceForType { |
| 1141 | get { return defaultInstance; } |
| 1142 | } |
| 1143 | |
| 1144 | protected override DummyMessageInvalidAsOptionType ThisMessage { |
| 1145 | get { return this; } |
| 1146 | } |
| 1147 | |
| 1148 | public static pbd::MessageDescriptor Descriptor { |
| 1149 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__Descriptor; } |
| 1150 | } |
| 1151 | |
| 1152 | protected override pb::FieldAccess.FieldAccessorTable<DummyMessageInvalidAsOptionType, DummyMessageInvalidAsOptionType.Builder> InternalFieldAccessors { |
| 1153 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__FieldAccessorTable; } |
| 1154 | } |
| 1155 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1156 | public override bool IsInitialized { |
| 1157 | get { |
| 1158 | return true; |
| 1159 | } |
| 1160 | } |
| 1161 | |
| 1162 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1163 | UnknownFields.WriteTo(output); |
| 1164 | } |
| 1165 | |
| 1166 | private int memoizedSerializedSize = -1; |
| 1167 | public override int SerializedSize { |
| 1168 | get { |
| 1169 | int size = memoizedSerializedSize; |
| 1170 | if (size != -1) return size; |
| 1171 | |
| 1172 | size = 0; |
| 1173 | size += UnknownFields.SerializedSize; |
| 1174 | memoizedSerializedSize = size; |
| 1175 | return size; |
| 1176 | } |
| 1177 | } |
| 1178 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1179 | public static DummyMessageInvalidAsOptionType ParseFrom(pb::ByteString data) { |
| 1180 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1181 | } |
| 1182 | public static DummyMessageInvalidAsOptionType ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1183 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1184 | } |
| 1185 | public static DummyMessageInvalidAsOptionType ParseFrom(byte[] data) { |
| 1186 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1187 | } |
| 1188 | public static DummyMessageInvalidAsOptionType ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1189 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1190 | } |
| 1191 | public static DummyMessageInvalidAsOptionType ParseFrom(global::System.IO.Stream input) { |
| 1192 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1193 | } |
| 1194 | public static DummyMessageInvalidAsOptionType ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1195 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1196 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1197 | public static DummyMessageInvalidAsOptionType ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1198 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1199 | } |
| 1200 | public static DummyMessageInvalidAsOptionType ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1201 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1202 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1203 | public static DummyMessageInvalidAsOptionType ParseFrom(pb::CodedInputStream input) { |
| 1204 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1205 | } |
| 1206 | public static DummyMessageInvalidAsOptionType ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1207 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1208 | } |
| 1209 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1210 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1211 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1212 | public static Builder CreateBuilder(DummyMessageInvalidAsOptionType prototype) { |
| 1213 | return (Builder) new Builder().MergeFrom(prototype); |
| 1214 | } |
| 1215 | |
| 1216 | public sealed partial class Builder : pb::GeneratedBuilder<DummyMessageInvalidAsOptionType, Builder> { |
| 1217 | protected override Builder ThisBuilder { |
| 1218 | get { return this; } |
| 1219 | } |
| 1220 | public Builder() {} |
| 1221 | |
| 1222 | DummyMessageInvalidAsOptionType result = new DummyMessageInvalidAsOptionType(); |
| 1223 | |
| 1224 | protected override DummyMessageInvalidAsOptionType MessageBeingBuilt { |
| 1225 | get { return result; } |
| 1226 | } |
| 1227 | |
| 1228 | public override Builder Clear() { |
| 1229 | result = new DummyMessageInvalidAsOptionType(); |
| 1230 | return this; |
| 1231 | } |
| 1232 | |
| 1233 | public override Builder Clone() { |
| 1234 | return new Builder().MergeFrom(result); |
| 1235 | } |
| 1236 | |
| 1237 | public override pbd::MessageDescriptor DescriptorForType { |
| 1238 | get { return DummyMessageInvalidAsOptionType.Descriptor; } |
| 1239 | } |
| 1240 | |
| 1241 | public override DummyMessageInvalidAsOptionType DefaultInstanceForType { |
| 1242 | get { return DummyMessageInvalidAsOptionType.DefaultInstance; } |
| 1243 | } |
| 1244 | |
| 1245 | public override DummyMessageInvalidAsOptionType BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1246 | if (result == null) { |
| 1247 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1248 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1249 | DummyMessageInvalidAsOptionType returnMe = result; |
| 1250 | result = null; |
| 1251 | return returnMe; |
| 1252 | } |
| 1253 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1254 | public override Builder MergeFrom(pb::IMessage other) { |
| 1255 | if (other is DummyMessageInvalidAsOptionType) { |
| 1256 | return MergeFrom((DummyMessageInvalidAsOptionType) other); |
| 1257 | } else { |
| 1258 | base.MergeFrom(other); |
| 1259 | return this; |
| 1260 | } |
| 1261 | } |
| 1262 | |
| 1263 | public override Builder MergeFrom(DummyMessageInvalidAsOptionType other) { |
| 1264 | if (other == DummyMessageInvalidAsOptionType.DefaultInstance) return this; |
| 1265 | this.MergeUnknownFields(other.UnknownFields); |
| 1266 | return this; |
| 1267 | } |
| 1268 | |
| 1269 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1270 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1271 | } |
| 1272 | |
| 1273 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1274 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1275 | while (true) { |
| 1276 | uint tag = input.ReadTag(); |
| 1277 | switch (tag) { |
| 1278 | case 0: { |
| 1279 | if (unknownFields != null) { |
| 1280 | this.UnknownFields = unknownFields.Build(); |
| 1281 | } |
| 1282 | return this; |
| 1283 | } |
| 1284 | default: { |
| 1285 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1286 | if (unknownFields != null) { |
| 1287 | this.UnknownFields = unknownFields.Build(); |
| 1288 | } |
| 1289 | return this; |
| 1290 | } |
| 1291 | if (unknownFields == null) { |
| 1292 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1293 | } |
| 1294 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1295 | break; |
| 1296 | } |
| 1297 | } |
| 1298 | } |
| 1299 | } |
| 1300 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1301 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1302 | static DummyMessageInvalidAsOptionType() { |
| 1303 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1304 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1305 | } |
| 1306 | |
| 1307 | public sealed partial class CustomOptionMinIntegerValues : pb::GeneratedMessage<CustomOptionMinIntegerValues, CustomOptionMinIntegerValues.Builder> { |
| 1308 | private static readonly CustomOptionMinIntegerValues defaultInstance = new Builder().BuildPartial(); |
| 1309 | public static CustomOptionMinIntegerValues DefaultInstance { |
| 1310 | get { return defaultInstance; } |
| 1311 | } |
| 1312 | |
| 1313 | public override CustomOptionMinIntegerValues DefaultInstanceForType { |
| 1314 | get { return defaultInstance; } |
| 1315 | } |
| 1316 | |
| 1317 | protected override CustomOptionMinIntegerValues ThisMessage { |
| 1318 | get { return this; } |
| 1319 | } |
| 1320 | |
| 1321 | public static pbd::MessageDescriptor Descriptor { |
| 1322 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionMinIntegerValues__Descriptor; } |
| 1323 | } |
| 1324 | |
| 1325 | protected override pb::FieldAccess.FieldAccessorTable<CustomOptionMinIntegerValues, CustomOptionMinIntegerValues.Builder> InternalFieldAccessors { |
| 1326 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionMinIntegerValues__FieldAccessorTable; } |
| 1327 | } |
| 1328 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1329 | public override bool IsInitialized { |
| 1330 | get { |
| 1331 | return true; |
| 1332 | } |
| 1333 | } |
| 1334 | |
| 1335 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1336 | UnknownFields.WriteTo(output); |
| 1337 | } |
| 1338 | |
| 1339 | private int memoizedSerializedSize = -1; |
| 1340 | public override int SerializedSize { |
| 1341 | get { |
| 1342 | int size = memoizedSerializedSize; |
| 1343 | if (size != -1) return size; |
| 1344 | |
| 1345 | size = 0; |
| 1346 | size += UnknownFields.SerializedSize; |
| 1347 | memoizedSerializedSize = size; |
| 1348 | return size; |
| 1349 | } |
| 1350 | } |
| 1351 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1352 | public static CustomOptionMinIntegerValues ParseFrom(pb::ByteString data) { |
| 1353 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1354 | } |
| 1355 | public static CustomOptionMinIntegerValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1356 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1357 | } |
| 1358 | public static CustomOptionMinIntegerValues ParseFrom(byte[] data) { |
| 1359 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1360 | } |
| 1361 | public static CustomOptionMinIntegerValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1362 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1363 | } |
| 1364 | public static CustomOptionMinIntegerValues ParseFrom(global::System.IO.Stream input) { |
| 1365 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1366 | } |
| 1367 | public static CustomOptionMinIntegerValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1368 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1369 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1370 | public static CustomOptionMinIntegerValues ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1371 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1372 | } |
| 1373 | public static CustomOptionMinIntegerValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1374 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1375 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1376 | public static CustomOptionMinIntegerValues ParseFrom(pb::CodedInputStream input) { |
| 1377 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1378 | } |
| 1379 | public static CustomOptionMinIntegerValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1380 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1381 | } |
| 1382 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1383 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1384 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1385 | public static Builder CreateBuilder(CustomOptionMinIntegerValues prototype) { |
| 1386 | return (Builder) new Builder().MergeFrom(prototype); |
| 1387 | } |
| 1388 | |
| 1389 | public sealed partial class Builder : pb::GeneratedBuilder<CustomOptionMinIntegerValues, Builder> { |
| 1390 | protected override Builder ThisBuilder { |
| 1391 | get { return this; } |
| 1392 | } |
| 1393 | public Builder() {} |
| 1394 | |
| 1395 | CustomOptionMinIntegerValues result = new CustomOptionMinIntegerValues(); |
| 1396 | |
| 1397 | protected override CustomOptionMinIntegerValues MessageBeingBuilt { |
| 1398 | get { return result; } |
| 1399 | } |
| 1400 | |
| 1401 | public override Builder Clear() { |
| 1402 | result = new CustomOptionMinIntegerValues(); |
| 1403 | return this; |
| 1404 | } |
| 1405 | |
| 1406 | public override Builder Clone() { |
| 1407 | return new Builder().MergeFrom(result); |
| 1408 | } |
| 1409 | |
| 1410 | public override pbd::MessageDescriptor DescriptorForType { |
| 1411 | get { return CustomOptionMinIntegerValues.Descriptor; } |
| 1412 | } |
| 1413 | |
| 1414 | public override CustomOptionMinIntegerValues DefaultInstanceForType { |
| 1415 | get { return CustomOptionMinIntegerValues.DefaultInstance; } |
| 1416 | } |
| 1417 | |
| 1418 | public override CustomOptionMinIntegerValues BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1419 | if (result == null) { |
| 1420 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1421 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1422 | CustomOptionMinIntegerValues returnMe = result; |
| 1423 | result = null; |
| 1424 | return returnMe; |
| 1425 | } |
| 1426 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1427 | public override Builder MergeFrom(pb::IMessage other) { |
| 1428 | if (other is CustomOptionMinIntegerValues) { |
| 1429 | return MergeFrom((CustomOptionMinIntegerValues) other); |
| 1430 | } else { |
| 1431 | base.MergeFrom(other); |
| 1432 | return this; |
| 1433 | } |
| 1434 | } |
| 1435 | |
| 1436 | public override Builder MergeFrom(CustomOptionMinIntegerValues other) { |
| 1437 | if (other == CustomOptionMinIntegerValues.DefaultInstance) return this; |
| 1438 | this.MergeUnknownFields(other.UnknownFields); |
| 1439 | return this; |
| 1440 | } |
| 1441 | |
| 1442 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1443 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1444 | } |
| 1445 | |
| 1446 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1447 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1448 | while (true) { |
| 1449 | uint tag = input.ReadTag(); |
| 1450 | switch (tag) { |
| 1451 | case 0: { |
| 1452 | if (unknownFields != null) { |
| 1453 | this.UnknownFields = unknownFields.Build(); |
| 1454 | } |
| 1455 | return this; |
| 1456 | } |
| 1457 | default: { |
| 1458 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1459 | if (unknownFields != null) { |
| 1460 | this.UnknownFields = unknownFields.Build(); |
| 1461 | } |
| 1462 | return this; |
| 1463 | } |
| 1464 | if (unknownFields == null) { |
| 1465 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1466 | } |
| 1467 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1468 | break; |
| 1469 | } |
| 1470 | } |
| 1471 | } |
| 1472 | } |
| 1473 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1474 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1475 | static CustomOptionMinIntegerValues() { |
| 1476 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1477 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1478 | } |
| 1479 | |
| 1480 | public sealed partial class CustomOptionMaxIntegerValues : pb::GeneratedMessage<CustomOptionMaxIntegerValues, CustomOptionMaxIntegerValues.Builder> { |
| 1481 | private static readonly CustomOptionMaxIntegerValues defaultInstance = new Builder().BuildPartial(); |
| 1482 | public static CustomOptionMaxIntegerValues DefaultInstance { |
| 1483 | get { return defaultInstance; } |
| 1484 | } |
| 1485 | |
| 1486 | public override CustomOptionMaxIntegerValues DefaultInstanceForType { |
| 1487 | get { return defaultInstance; } |
| 1488 | } |
| 1489 | |
| 1490 | protected override CustomOptionMaxIntegerValues ThisMessage { |
| 1491 | get { return this; } |
| 1492 | } |
| 1493 | |
| 1494 | public static pbd::MessageDescriptor Descriptor { |
| 1495 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__Descriptor; } |
| 1496 | } |
| 1497 | |
| 1498 | protected override pb::FieldAccess.FieldAccessorTable<CustomOptionMaxIntegerValues, CustomOptionMaxIntegerValues.Builder> InternalFieldAccessors { |
| 1499 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionMaxIntegerValues__FieldAccessorTable; } |
| 1500 | } |
| 1501 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1502 | public override bool IsInitialized { |
| 1503 | get { |
| 1504 | return true; |
| 1505 | } |
| 1506 | } |
| 1507 | |
| 1508 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1509 | UnknownFields.WriteTo(output); |
| 1510 | } |
| 1511 | |
| 1512 | private int memoizedSerializedSize = -1; |
| 1513 | public override int SerializedSize { |
| 1514 | get { |
| 1515 | int size = memoizedSerializedSize; |
| 1516 | if (size != -1) return size; |
| 1517 | |
| 1518 | size = 0; |
| 1519 | size += UnknownFields.SerializedSize; |
| 1520 | memoizedSerializedSize = size; |
| 1521 | return size; |
| 1522 | } |
| 1523 | } |
| 1524 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1525 | public static CustomOptionMaxIntegerValues ParseFrom(pb::ByteString data) { |
| 1526 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1527 | } |
| 1528 | public static CustomOptionMaxIntegerValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1529 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1530 | } |
| 1531 | public static CustomOptionMaxIntegerValues ParseFrom(byte[] data) { |
| 1532 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1533 | } |
| 1534 | public static CustomOptionMaxIntegerValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1535 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1536 | } |
| 1537 | public static CustomOptionMaxIntegerValues ParseFrom(global::System.IO.Stream input) { |
| 1538 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1539 | } |
| 1540 | public static CustomOptionMaxIntegerValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1541 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1542 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1543 | public static CustomOptionMaxIntegerValues ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1544 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1545 | } |
| 1546 | public static CustomOptionMaxIntegerValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1547 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1548 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1549 | public static CustomOptionMaxIntegerValues ParseFrom(pb::CodedInputStream input) { |
| 1550 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1551 | } |
| 1552 | public static CustomOptionMaxIntegerValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1553 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1554 | } |
| 1555 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1556 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1557 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1558 | public static Builder CreateBuilder(CustomOptionMaxIntegerValues prototype) { |
| 1559 | return (Builder) new Builder().MergeFrom(prototype); |
| 1560 | } |
| 1561 | |
| 1562 | public sealed partial class Builder : pb::GeneratedBuilder<CustomOptionMaxIntegerValues, Builder> { |
| 1563 | protected override Builder ThisBuilder { |
| 1564 | get { return this; } |
| 1565 | } |
| 1566 | public Builder() {} |
| 1567 | |
| 1568 | CustomOptionMaxIntegerValues result = new CustomOptionMaxIntegerValues(); |
| 1569 | |
| 1570 | protected override CustomOptionMaxIntegerValues MessageBeingBuilt { |
| 1571 | get { return result; } |
| 1572 | } |
| 1573 | |
| 1574 | public override Builder Clear() { |
| 1575 | result = new CustomOptionMaxIntegerValues(); |
| 1576 | return this; |
| 1577 | } |
| 1578 | |
| 1579 | public override Builder Clone() { |
| 1580 | return new Builder().MergeFrom(result); |
| 1581 | } |
| 1582 | |
| 1583 | public override pbd::MessageDescriptor DescriptorForType { |
| 1584 | get { return CustomOptionMaxIntegerValues.Descriptor; } |
| 1585 | } |
| 1586 | |
| 1587 | public override CustomOptionMaxIntegerValues DefaultInstanceForType { |
| 1588 | get { return CustomOptionMaxIntegerValues.DefaultInstance; } |
| 1589 | } |
| 1590 | |
| 1591 | public override CustomOptionMaxIntegerValues BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1592 | if (result == null) { |
| 1593 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1594 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1595 | CustomOptionMaxIntegerValues returnMe = result; |
| 1596 | result = null; |
| 1597 | return returnMe; |
| 1598 | } |
| 1599 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1600 | public override Builder MergeFrom(pb::IMessage other) { |
| 1601 | if (other is CustomOptionMaxIntegerValues) { |
| 1602 | return MergeFrom((CustomOptionMaxIntegerValues) other); |
| 1603 | } else { |
| 1604 | base.MergeFrom(other); |
| 1605 | return this; |
| 1606 | } |
| 1607 | } |
| 1608 | |
| 1609 | public override Builder MergeFrom(CustomOptionMaxIntegerValues other) { |
| 1610 | if (other == CustomOptionMaxIntegerValues.DefaultInstance) return this; |
| 1611 | this.MergeUnknownFields(other.UnknownFields); |
| 1612 | return this; |
| 1613 | } |
| 1614 | |
| 1615 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1616 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1617 | } |
| 1618 | |
| 1619 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1620 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1621 | while (true) { |
| 1622 | uint tag = input.ReadTag(); |
| 1623 | switch (tag) { |
| 1624 | case 0: { |
| 1625 | if (unknownFields != null) { |
| 1626 | this.UnknownFields = unknownFields.Build(); |
| 1627 | } |
| 1628 | return this; |
| 1629 | } |
| 1630 | default: { |
| 1631 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1632 | if (unknownFields != null) { |
| 1633 | this.UnknownFields = unknownFields.Build(); |
| 1634 | } |
| 1635 | return this; |
| 1636 | } |
| 1637 | if (unknownFields == null) { |
| 1638 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1639 | } |
| 1640 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1641 | break; |
| 1642 | } |
| 1643 | } |
| 1644 | } |
| 1645 | } |
| 1646 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1647 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1648 | static CustomOptionMaxIntegerValues() { |
| 1649 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1650 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1651 | } |
| 1652 | |
| 1653 | public sealed partial class CustomOptionOtherValues : pb::GeneratedMessage<CustomOptionOtherValues, CustomOptionOtherValues.Builder> { |
| 1654 | private static readonly CustomOptionOtherValues defaultInstance = new Builder().BuildPartial(); |
| 1655 | public static CustomOptionOtherValues DefaultInstance { |
| 1656 | get { return defaultInstance; } |
| 1657 | } |
| 1658 | |
| 1659 | public override CustomOptionOtherValues DefaultInstanceForType { |
| 1660 | get { return defaultInstance; } |
| 1661 | } |
| 1662 | |
| 1663 | protected override CustomOptionOtherValues ThisMessage { |
| 1664 | get { return this; } |
| 1665 | } |
| 1666 | |
| 1667 | public static pbd::MessageDescriptor Descriptor { |
| 1668 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionOtherValues__Descriptor; } |
| 1669 | } |
| 1670 | |
| 1671 | protected override pb::FieldAccess.FieldAccessorTable<CustomOptionOtherValues, CustomOptionOtherValues.Builder> InternalFieldAccessors { |
| 1672 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_CustomOptionOtherValues__FieldAccessorTable; } |
| 1673 | } |
| 1674 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1675 | public override bool IsInitialized { |
| 1676 | get { |
| 1677 | return true; |
| 1678 | } |
| 1679 | } |
| 1680 | |
| 1681 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1682 | UnknownFields.WriteTo(output); |
| 1683 | } |
| 1684 | |
| 1685 | private int memoizedSerializedSize = -1; |
| 1686 | public override int SerializedSize { |
| 1687 | get { |
| 1688 | int size = memoizedSerializedSize; |
| 1689 | if (size != -1) return size; |
| 1690 | |
| 1691 | size = 0; |
| 1692 | size += UnknownFields.SerializedSize; |
| 1693 | memoizedSerializedSize = size; |
| 1694 | return size; |
| 1695 | } |
| 1696 | } |
| 1697 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1698 | public static CustomOptionOtherValues ParseFrom(pb::ByteString data) { |
| 1699 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1700 | } |
| 1701 | public static CustomOptionOtherValues ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1702 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1703 | } |
| 1704 | public static CustomOptionOtherValues ParseFrom(byte[] data) { |
| 1705 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1706 | } |
| 1707 | public static CustomOptionOtherValues ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1708 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1709 | } |
| 1710 | public static CustomOptionOtherValues ParseFrom(global::System.IO.Stream input) { |
| 1711 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1712 | } |
| 1713 | public static CustomOptionOtherValues ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1714 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1715 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1716 | public static CustomOptionOtherValues ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1717 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1718 | } |
| 1719 | public static CustomOptionOtherValues ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1720 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1721 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1722 | public static CustomOptionOtherValues ParseFrom(pb::CodedInputStream input) { |
| 1723 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1724 | } |
| 1725 | public static CustomOptionOtherValues ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1726 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1727 | } |
| 1728 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1729 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1730 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1731 | public static Builder CreateBuilder(CustomOptionOtherValues prototype) { |
| 1732 | return (Builder) new Builder().MergeFrom(prototype); |
| 1733 | } |
| 1734 | |
| 1735 | public sealed partial class Builder : pb::GeneratedBuilder<CustomOptionOtherValues, Builder> { |
| 1736 | protected override Builder ThisBuilder { |
| 1737 | get { return this; } |
| 1738 | } |
| 1739 | public Builder() {} |
| 1740 | |
| 1741 | CustomOptionOtherValues result = new CustomOptionOtherValues(); |
| 1742 | |
| 1743 | protected override CustomOptionOtherValues MessageBeingBuilt { |
| 1744 | get { return result; } |
| 1745 | } |
| 1746 | |
| 1747 | public override Builder Clear() { |
| 1748 | result = new CustomOptionOtherValues(); |
| 1749 | return this; |
| 1750 | } |
| 1751 | |
| 1752 | public override Builder Clone() { |
| 1753 | return new Builder().MergeFrom(result); |
| 1754 | } |
| 1755 | |
| 1756 | public override pbd::MessageDescriptor DescriptorForType { |
| 1757 | get { return CustomOptionOtherValues.Descriptor; } |
| 1758 | } |
| 1759 | |
| 1760 | public override CustomOptionOtherValues DefaultInstanceForType { |
| 1761 | get { return CustomOptionOtherValues.DefaultInstance; } |
| 1762 | } |
| 1763 | |
| 1764 | public override CustomOptionOtherValues BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1765 | if (result == null) { |
| 1766 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1767 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1768 | CustomOptionOtherValues returnMe = result; |
| 1769 | result = null; |
| 1770 | return returnMe; |
| 1771 | } |
| 1772 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1773 | public override Builder MergeFrom(pb::IMessage other) { |
| 1774 | if (other is CustomOptionOtherValues) { |
| 1775 | return MergeFrom((CustomOptionOtherValues) other); |
| 1776 | } else { |
| 1777 | base.MergeFrom(other); |
| 1778 | return this; |
| 1779 | } |
| 1780 | } |
| 1781 | |
| 1782 | public override Builder MergeFrom(CustomOptionOtherValues other) { |
| 1783 | if (other == CustomOptionOtherValues.DefaultInstance) return this; |
| 1784 | this.MergeUnknownFields(other.UnknownFields); |
| 1785 | return this; |
| 1786 | } |
| 1787 | |
| 1788 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1789 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1790 | } |
| 1791 | |
| 1792 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1793 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1794 | while (true) { |
| 1795 | uint tag = input.ReadTag(); |
| 1796 | switch (tag) { |
| 1797 | case 0: { |
| 1798 | if (unknownFields != null) { |
| 1799 | this.UnknownFields = unknownFields.Build(); |
| 1800 | } |
| 1801 | return this; |
| 1802 | } |
| 1803 | default: { |
| 1804 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1805 | if (unknownFields != null) { |
| 1806 | this.UnknownFields = unknownFields.Build(); |
| 1807 | } |
| 1808 | return this; |
| 1809 | } |
| 1810 | if (unknownFields == null) { |
| 1811 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1812 | } |
| 1813 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1814 | break; |
| 1815 | } |
| 1816 | } |
| 1817 | } |
| 1818 | } |
| 1819 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1820 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1821 | static CustomOptionOtherValues() { |
| 1822 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1823 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1824 | } |
| 1825 | |
| 1826 | public sealed partial class SettingRealsFromPositiveInts : pb::GeneratedMessage<SettingRealsFromPositiveInts, SettingRealsFromPositiveInts.Builder> { |
| 1827 | private static readonly SettingRealsFromPositiveInts defaultInstance = new Builder().BuildPartial(); |
| 1828 | public static SettingRealsFromPositiveInts DefaultInstance { |
| 1829 | get { return defaultInstance; } |
| 1830 | } |
| 1831 | |
| 1832 | public override SettingRealsFromPositiveInts DefaultInstanceForType { |
| 1833 | get { return defaultInstance; } |
| 1834 | } |
| 1835 | |
| 1836 | protected override SettingRealsFromPositiveInts ThisMessage { |
| 1837 | get { return this; } |
| 1838 | } |
| 1839 | |
| 1840 | public static pbd::MessageDescriptor Descriptor { |
| 1841 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_SettingRealsFromPositiveInts__Descriptor; } |
| 1842 | } |
| 1843 | |
| 1844 | protected override pb::FieldAccess.FieldAccessorTable<SettingRealsFromPositiveInts, SettingRealsFromPositiveInts.Builder> InternalFieldAccessors { |
| 1845 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_SettingRealsFromPositiveInts__FieldAccessorTable; } |
| 1846 | } |
| 1847 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1848 | public override bool IsInitialized { |
| 1849 | get { |
| 1850 | return true; |
| 1851 | } |
| 1852 | } |
| 1853 | |
| 1854 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1855 | UnknownFields.WriteTo(output); |
| 1856 | } |
| 1857 | |
| 1858 | private int memoizedSerializedSize = -1; |
| 1859 | public override int SerializedSize { |
| 1860 | get { |
| 1861 | int size = memoizedSerializedSize; |
| 1862 | if (size != -1) return size; |
| 1863 | |
| 1864 | size = 0; |
| 1865 | size += UnknownFields.SerializedSize; |
| 1866 | memoizedSerializedSize = size; |
| 1867 | return size; |
| 1868 | } |
| 1869 | } |
| 1870 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1871 | public static SettingRealsFromPositiveInts ParseFrom(pb::ByteString data) { |
| 1872 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1873 | } |
| 1874 | public static SettingRealsFromPositiveInts ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1875 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1876 | } |
| 1877 | public static SettingRealsFromPositiveInts ParseFrom(byte[] data) { |
| 1878 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1879 | } |
| 1880 | public static SettingRealsFromPositiveInts ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1881 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1882 | } |
| 1883 | public static SettingRealsFromPositiveInts ParseFrom(global::System.IO.Stream input) { |
| 1884 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1885 | } |
| 1886 | public static SettingRealsFromPositiveInts ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1887 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1888 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1889 | public static SettingRealsFromPositiveInts ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1890 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1891 | } |
| 1892 | public static SettingRealsFromPositiveInts ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1893 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1894 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1895 | public static SettingRealsFromPositiveInts ParseFrom(pb::CodedInputStream input) { |
| 1896 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1897 | } |
| 1898 | public static SettingRealsFromPositiveInts ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1899 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1900 | } |
| 1901 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 1902 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1903 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1904 | public static Builder CreateBuilder(SettingRealsFromPositiveInts prototype) { |
| 1905 | return (Builder) new Builder().MergeFrom(prototype); |
| 1906 | } |
| 1907 | |
| 1908 | public sealed partial class Builder : pb::GeneratedBuilder<SettingRealsFromPositiveInts, Builder> { |
| 1909 | protected override Builder ThisBuilder { |
| 1910 | get { return this; } |
| 1911 | } |
| 1912 | public Builder() {} |
| 1913 | |
| 1914 | SettingRealsFromPositiveInts result = new SettingRealsFromPositiveInts(); |
| 1915 | |
| 1916 | protected override SettingRealsFromPositiveInts MessageBeingBuilt { |
| 1917 | get { return result; } |
| 1918 | } |
| 1919 | |
| 1920 | public override Builder Clear() { |
| 1921 | result = new SettingRealsFromPositiveInts(); |
| 1922 | return this; |
| 1923 | } |
| 1924 | |
| 1925 | public override Builder Clone() { |
| 1926 | return new Builder().MergeFrom(result); |
| 1927 | } |
| 1928 | |
| 1929 | public override pbd::MessageDescriptor DescriptorForType { |
| 1930 | get { return SettingRealsFromPositiveInts.Descriptor; } |
| 1931 | } |
| 1932 | |
| 1933 | public override SettingRealsFromPositiveInts DefaultInstanceForType { |
| 1934 | get { return SettingRealsFromPositiveInts.DefaultInstance; } |
| 1935 | } |
| 1936 | |
| 1937 | public override SettingRealsFromPositiveInts BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 1938 | if (result == null) { |
| 1939 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1940 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1941 | SettingRealsFromPositiveInts returnMe = result; |
| 1942 | result = null; |
| 1943 | return returnMe; |
| 1944 | } |
| 1945 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 1946 | public override Builder MergeFrom(pb::IMessage other) { |
| 1947 | if (other is SettingRealsFromPositiveInts) { |
| 1948 | return MergeFrom((SettingRealsFromPositiveInts) other); |
| 1949 | } else { |
| 1950 | base.MergeFrom(other); |
| 1951 | return this; |
| 1952 | } |
| 1953 | } |
| 1954 | |
| 1955 | public override Builder MergeFrom(SettingRealsFromPositiveInts other) { |
| 1956 | if (other == SettingRealsFromPositiveInts.DefaultInstance) return this; |
| 1957 | this.MergeUnknownFields(other.UnknownFields); |
| 1958 | return this; |
| 1959 | } |
| 1960 | |
| 1961 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1962 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1963 | } |
| 1964 | |
| 1965 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1966 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 1967 | while (true) { |
| 1968 | uint tag = input.ReadTag(); |
| 1969 | switch (tag) { |
| 1970 | case 0: { |
| 1971 | if (unknownFields != null) { |
| 1972 | this.UnknownFields = unknownFields.Build(); |
| 1973 | } |
| 1974 | return this; |
| 1975 | } |
| 1976 | default: { |
| 1977 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1978 | if (unknownFields != null) { |
| 1979 | this.UnknownFields = unknownFields.Build(); |
| 1980 | } |
| 1981 | return this; |
| 1982 | } |
| 1983 | if (unknownFields == null) { |
| 1984 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 1985 | } |
| 1986 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 1987 | break; |
| 1988 | } |
| 1989 | } |
| 1990 | } |
| 1991 | } |
| 1992 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1993 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 1994 | static SettingRealsFromPositiveInts() { |
| 1995 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 1996 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 1997 | } |
| 1998 | |
| 1999 | public sealed partial class SettingRealsFromNegativeInts : pb::GeneratedMessage<SettingRealsFromNegativeInts, SettingRealsFromNegativeInts.Builder> { |
| 2000 | private static readonly SettingRealsFromNegativeInts defaultInstance = new Builder().BuildPartial(); |
| 2001 | public static SettingRealsFromNegativeInts DefaultInstance { |
| 2002 | get { return defaultInstance; } |
| 2003 | } |
| 2004 | |
| 2005 | public override SettingRealsFromNegativeInts DefaultInstanceForType { |
| 2006 | get { return defaultInstance; } |
| 2007 | } |
| 2008 | |
| 2009 | protected override SettingRealsFromNegativeInts ThisMessage { |
| 2010 | get { return this; } |
| 2011 | } |
| 2012 | |
| 2013 | public static pbd::MessageDescriptor Descriptor { |
| 2014 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_SettingRealsFromNegativeInts__Descriptor; } |
| 2015 | } |
| 2016 | |
| 2017 | protected override pb::FieldAccess.FieldAccessorTable<SettingRealsFromNegativeInts, SettingRealsFromNegativeInts.Builder> InternalFieldAccessors { |
| 2018 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_SettingRealsFromNegativeInts__FieldAccessorTable; } |
| 2019 | } |
| 2020 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2021 | public override bool IsInitialized { |
| 2022 | get { |
| 2023 | return true; |
| 2024 | } |
| 2025 | } |
| 2026 | |
| 2027 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2028 | UnknownFields.WriteTo(output); |
| 2029 | } |
| 2030 | |
| 2031 | private int memoizedSerializedSize = -1; |
| 2032 | public override int SerializedSize { |
| 2033 | get { |
| 2034 | int size = memoizedSerializedSize; |
| 2035 | if (size != -1) return size; |
| 2036 | |
| 2037 | size = 0; |
| 2038 | size += UnknownFields.SerializedSize; |
| 2039 | memoizedSerializedSize = size; |
| 2040 | return size; |
| 2041 | } |
| 2042 | } |
| 2043 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2044 | public static SettingRealsFromNegativeInts ParseFrom(pb::ByteString data) { |
| 2045 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2046 | } |
| 2047 | public static SettingRealsFromNegativeInts ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2048 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2049 | } |
| 2050 | public static SettingRealsFromNegativeInts ParseFrom(byte[] data) { |
| 2051 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2052 | } |
| 2053 | public static SettingRealsFromNegativeInts ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2054 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2055 | } |
| 2056 | public static SettingRealsFromNegativeInts ParseFrom(global::System.IO.Stream input) { |
| 2057 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2058 | } |
| 2059 | public static SettingRealsFromNegativeInts ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2060 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2061 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2062 | public static SettingRealsFromNegativeInts ParseDelimitedFrom(global::System.IO.Stream input) { |
| 2063 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 2064 | } |
| 2065 | public static SettingRealsFromNegativeInts ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2066 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 2067 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2068 | public static SettingRealsFromNegativeInts ParseFrom(pb::CodedInputStream input) { |
| 2069 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2070 | } |
| 2071 | public static SettingRealsFromNegativeInts ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2072 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2073 | } |
| 2074 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 2075 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2076 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2077 | public static Builder CreateBuilder(SettingRealsFromNegativeInts prototype) { |
| 2078 | return (Builder) new Builder().MergeFrom(prototype); |
| 2079 | } |
| 2080 | |
| 2081 | public sealed partial class Builder : pb::GeneratedBuilder<SettingRealsFromNegativeInts, Builder> { |
| 2082 | protected override Builder ThisBuilder { |
| 2083 | get { return this; } |
| 2084 | } |
| 2085 | public Builder() {} |
| 2086 | |
| 2087 | SettingRealsFromNegativeInts result = new SettingRealsFromNegativeInts(); |
| 2088 | |
| 2089 | protected override SettingRealsFromNegativeInts MessageBeingBuilt { |
| 2090 | get { return result; } |
| 2091 | } |
| 2092 | |
| 2093 | public override Builder Clear() { |
| 2094 | result = new SettingRealsFromNegativeInts(); |
| 2095 | return this; |
| 2096 | } |
| 2097 | |
| 2098 | public override Builder Clone() { |
| 2099 | return new Builder().MergeFrom(result); |
| 2100 | } |
| 2101 | |
| 2102 | public override pbd::MessageDescriptor DescriptorForType { |
| 2103 | get { return SettingRealsFromNegativeInts.Descriptor; } |
| 2104 | } |
| 2105 | |
| 2106 | public override SettingRealsFromNegativeInts DefaultInstanceForType { |
| 2107 | get { return SettingRealsFromNegativeInts.DefaultInstance; } |
| 2108 | } |
| 2109 | |
| 2110 | public override SettingRealsFromNegativeInts BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2111 | if (result == null) { |
| 2112 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 2113 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2114 | SettingRealsFromNegativeInts returnMe = result; |
| 2115 | result = null; |
| 2116 | return returnMe; |
| 2117 | } |
| 2118 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2119 | public override Builder MergeFrom(pb::IMessage other) { |
| 2120 | if (other is SettingRealsFromNegativeInts) { |
| 2121 | return MergeFrom((SettingRealsFromNegativeInts) other); |
| 2122 | } else { |
| 2123 | base.MergeFrom(other); |
| 2124 | return this; |
| 2125 | } |
| 2126 | } |
| 2127 | |
| 2128 | public override Builder MergeFrom(SettingRealsFromNegativeInts other) { |
| 2129 | if (other == SettingRealsFromNegativeInts.DefaultInstance) return this; |
| 2130 | this.MergeUnknownFields(other.UnknownFields); |
| 2131 | return this; |
| 2132 | } |
| 2133 | |
| 2134 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2135 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2136 | } |
| 2137 | |
| 2138 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2139 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 2140 | while (true) { |
| 2141 | uint tag = input.ReadTag(); |
| 2142 | switch (tag) { |
| 2143 | case 0: { |
| 2144 | if (unknownFields != null) { |
| 2145 | this.UnknownFields = unknownFields.Build(); |
| 2146 | } |
| 2147 | return this; |
| 2148 | } |
| 2149 | default: { |
| 2150 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 2151 | if (unknownFields != null) { |
| 2152 | this.UnknownFields = unknownFields.Build(); |
| 2153 | } |
| 2154 | return this; |
| 2155 | } |
| 2156 | if (unknownFields == null) { |
| 2157 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2158 | } |
| 2159 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 2160 | break; |
| 2161 | } |
| 2162 | } |
| 2163 | } |
| 2164 | } |
| 2165 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2166 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 2167 | static SettingRealsFromNegativeInts() { |
| 2168 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 2169 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2170 | } |
| 2171 | |
| 2172 | public sealed partial class ComplexOptionType1 : pb::ExtendableMessage<ComplexOptionType1, ComplexOptionType1.Builder> { |
| 2173 | private static readonly ComplexOptionType1 defaultInstance = new Builder().BuildPartial(); |
| 2174 | public static ComplexOptionType1 DefaultInstance { |
| 2175 | get { return defaultInstance; } |
| 2176 | } |
| 2177 | |
| 2178 | public override ComplexOptionType1 DefaultInstanceForType { |
| 2179 | get { return defaultInstance; } |
| 2180 | } |
| 2181 | |
| 2182 | protected override ComplexOptionType1 ThisMessage { |
| 2183 | get { return this; } |
| 2184 | } |
| 2185 | |
| 2186 | public static pbd::MessageDescriptor Descriptor { |
| 2187 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType1__Descriptor; } |
| 2188 | } |
| 2189 | |
| 2190 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOptionType1, ComplexOptionType1.Builder> InternalFieldAccessors { |
| 2191 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType1__FieldAccessorTable; } |
| 2192 | } |
| 2193 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2194 | public const int FooFieldNumber = 1; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2195 | private bool hasFoo; |
| 2196 | private int foo_ = 0; |
| 2197 | public bool HasFoo { |
| 2198 | get { return hasFoo; } |
| 2199 | } |
| 2200 | public int Foo { |
| 2201 | get { return foo_; } |
| 2202 | } |
| 2203 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2204 | public override bool IsInitialized { |
| 2205 | get { |
| 2206 | if (!ExtensionsAreInitialized) return false; |
| 2207 | return true; |
| 2208 | } |
| 2209 | } |
| 2210 | |
| 2211 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2212 | pb::ExtendableMessage<ComplexOptionType1, ComplexOptionType1.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 2213 | if (HasFoo) { |
| 2214 | output.WriteInt32(1, Foo); |
| 2215 | } |
| 2216 | extensionWriter.WriteUntil(536870912, output); |
| 2217 | UnknownFields.WriteTo(output); |
| 2218 | } |
| 2219 | |
| 2220 | private int memoizedSerializedSize = -1; |
| 2221 | public override int SerializedSize { |
| 2222 | get { |
| 2223 | int size = memoizedSerializedSize; |
| 2224 | if (size != -1) return size; |
| 2225 | |
| 2226 | size = 0; |
| 2227 | if (HasFoo) { |
| 2228 | size += pb::CodedOutputStream.ComputeInt32Size(1, Foo); |
| 2229 | } |
| 2230 | size += ExtensionsSerializedSize; |
| 2231 | size += UnknownFields.SerializedSize; |
| 2232 | memoizedSerializedSize = size; |
| 2233 | return size; |
| 2234 | } |
| 2235 | } |
| 2236 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2237 | public static ComplexOptionType1 ParseFrom(pb::ByteString data) { |
| 2238 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2239 | } |
| 2240 | public static ComplexOptionType1 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2241 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2242 | } |
| 2243 | public static ComplexOptionType1 ParseFrom(byte[] data) { |
| 2244 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2245 | } |
| 2246 | public static ComplexOptionType1 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2247 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2248 | } |
| 2249 | public static ComplexOptionType1 ParseFrom(global::System.IO.Stream input) { |
| 2250 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2251 | } |
| 2252 | public static ComplexOptionType1 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2253 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2254 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2255 | public static ComplexOptionType1 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 2256 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 2257 | } |
| 2258 | public static ComplexOptionType1 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2259 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 2260 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2261 | public static ComplexOptionType1 ParseFrom(pb::CodedInputStream input) { |
| 2262 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2263 | } |
| 2264 | public static ComplexOptionType1 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2265 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2266 | } |
| 2267 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 2268 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2269 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2270 | public static Builder CreateBuilder(ComplexOptionType1 prototype) { |
| 2271 | return (Builder) new Builder().MergeFrom(prototype); |
| 2272 | } |
| 2273 | |
| 2274 | public sealed partial class Builder : pb::ExtendableBuilder<ComplexOptionType1, Builder> { |
| 2275 | protected override Builder ThisBuilder { |
| 2276 | get { return this; } |
| 2277 | } |
| 2278 | public Builder() {} |
| 2279 | |
| 2280 | ComplexOptionType1 result = new ComplexOptionType1(); |
| 2281 | |
| 2282 | protected override ComplexOptionType1 MessageBeingBuilt { |
| 2283 | get { return result; } |
| 2284 | } |
| 2285 | |
| 2286 | public override Builder Clear() { |
| 2287 | result = new ComplexOptionType1(); |
| 2288 | return this; |
| 2289 | } |
| 2290 | |
| 2291 | public override Builder Clone() { |
| 2292 | return new Builder().MergeFrom(result); |
| 2293 | } |
| 2294 | |
| 2295 | public override pbd::MessageDescriptor DescriptorForType { |
| 2296 | get { return ComplexOptionType1.Descriptor; } |
| 2297 | } |
| 2298 | |
| 2299 | public override ComplexOptionType1 DefaultInstanceForType { |
| 2300 | get { return ComplexOptionType1.DefaultInstance; } |
| 2301 | } |
| 2302 | |
| 2303 | public override ComplexOptionType1 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2304 | if (result == null) { |
| 2305 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 2306 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2307 | ComplexOptionType1 returnMe = result; |
| 2308 | result = null; |
| 2309 | return returnMe; |
| 2310 | } |
| 2311 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2312 | public override Builder MergeFrom(pb::IMessage other) { |
| 2313 | if (other is ComplexOptionType1) { |
| 2314 | return MergeFrom((ComplexOptionType1) other); |
| 2315 | } else { |
| 2316 | base.MergeFrom(other); |
| 2317 | return this; |
| 2318 | } |
| 2319 | } |
| 2320 | |
| 2321 | public override Builder MergeFrom(ComplexOptionType1 other) { |
| 2322 | if (other == ComplexOptionType1.DefaultInstance) return this; |
| 2323 | if (other.HasFoo) { |
| 2324 | Foo = other.Foo; |
| 2325 | } |
| 2326 | this.MergeExtensionFields(other); |
| 2327 | this.MergeUnknownFields(other.UnknownFields); |
| 2328 | return this; |
| 2329 | } |
| 2330 | |
| 2331 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2332 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2333 | } |
| 2334 | |
| 2335 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2336 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 2337 | while (true) { |
| 2338 | uint tag = input.ReadTag(); |
| 2339 | switch (tag) { |
| 2340 | case 0: { |
| 2341 | if (unknownFields != null) { |
| 2342 | this.UnknownFields = unknownFields.Build(); |
| 2343 | } |
| 2344 | return this; |
| 2345 | } |
| 2346 | default: { |
| 2347 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 2348 | if (unknownFields != null) { |
| 2349 | this.UnknownFields = unknownFields.Build(); |
| 2350 | } |
| 2351 | return this; |
| 2352 | } |
| 2353 | if (unknownFields == null) { |
| 2354 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2355 | } |
| 2356 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 2357 | break; |
| 2358 | } |
| 2359 | case 8: { |
| 2360 | Foo = input.ReadInt32(); |
| 2361 | break; |
| 2362 | } |
| 2363 | } |
| 2364 | } |
| 2365 | } |
| 2366 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2367 | |
| 2368 | public bool HasFoo { |
| 2369 | get { return result.HasFoo; } |
| 2370 | } |
| 2371 | public int Foo { |
| 2372 | get { return result.Foo; } |
| 2373 | set { SetFoo(value); } |
| 2374 | } |
| 2375 | public Builder SetFoo(int value) { |
| 2376 | result.hasFoo = true; |
| 2377 | result.foo_ = value; |
| 2378 | return this; |
| 2379 | } |
| 2380 | public Builder ClearFoo() { |
| 2381 | result.hasFoo = false; |
| 2382 | result.foo_ = 0; |
| 2383 | return this; |
| 2384 | } |
| 2385 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 2386 | static ComplexOptionType1() { |
| 2387 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 2388 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2389 | } |
| 2390 | |
| 2391 | public sealed partial class ComplexOptionType2 : pb::ExtendableMessage<ComplexOptionType2, ComplexOptionType2.Builder> { |
| 2392 | private static readonly ComplexOptionType2 defaultInstance = new Builder().BuildPartial(); |
| 2393 | public static ComplexOptionType2 DefaultInstance { |
| 2394 | get { return defaultInstance; } |
| 2395 | } |
| 2396 | |
| 2397 | public override ComplexOptionType2 DefaultInstanceForType { |
| 2398 | get { return defaultInstance; } |
| 2399 | } |
| 2400 | |
| 2401 | protected override ComplexOptionType2 ThisMessage { |
| 2402 | get { return this; } |
| 2403 | } |
| 2404 | |
| 2405 | public static pbd::MessageDescriptor Descriptor { |
| 2406 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType2__Descriptor; } |
| 2407 | } |
| 2408 | |
| 2409 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOptionType2, ComplexOptionType2.Builder> InternalFieldAccessors { |
| 2410 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType2__FieldAccessorTable; } |
| 2411 | } |
| 2412 | |
| 2413 | #region Nested types |
| 2414 | public static class Types { |
| 2415 | public sealed partial class ComplexOptionType4 : pb::GeneratedMessage<ComplexOptionType4, ComplexOptionType4.Builder> { |
| 2416 | private static readonly ComplexOptionType4 defaultInstance = new Builder().BuildPartial(); |
| 2417 | public static ComplexOptionType4 DefaultInstance { |
| 2418 | get { return defaultInstance; } |
| 2419 | } |
| 2420 | |
| 2421 | public override ComplexOptionType4 DefaultInstanceForType { |
| 2422 | get { return defaultInstance; } |
| 2423 | } |
| 2424 | |
| 2425 | protected override ComplexOptionType4 ThisMessage { |
| 2426 | get { return this; } |
| 2427 | } |
| 2428 | |
| 2429 | public static pbd::MessageDescriptor Descriptor { |
| 2430 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__Descriptor; } |
| 2431 | } |
| 2432 | |
| 2433 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOptionType4, ComplexOptionType4.Builder> InternalFieldAccessors { |
| 2434 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4__FieldAccessorTable; } |
| 2435 | } |
| 2436 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2437 | public const int ComplexOpt4FieldNumber = 7633546; |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 2438 | public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4> ComplexOpt4; |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2439 | public const int WaldoFieldNumber = 1; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2440 | private bool hasWaldo; |
| 2441 | private int waldo_ = 0; |
| 2442 | public bool HasWaldo { |
| 2443 | get { return hasWaldo; } |
| 2444 | } |
| 2445 | public int Waldo { |
| 2446 | get { return waldo_; } |
| 2447 | } |
| 2448 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2449 | public override bool IsInitialized { |
| 2450 | get { |
| 2451 | return true; |
| 2452 | } |
| 2453 | } |
| 2454 | |
| 2455 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2456 | if (HasWaldo) { |
| 2457 | output.WriteInt32(1, Waldo); |
| 2458 | } |
| 2459 | UnknownFields.WriteTo(output); |
| 2460 | } |
| 2461 | |
| 2462 | private int memoizedSerializedSize = -1; |
| 2463 | public override int SerializedSize { |
| 2464 | get { |
| 2465 | int size = memoizedSerializedSize; |
| 2466 | if (size != -1) return size; |
| 2467 | |
| 2468 | size = 0; |
| 2469 | if (HasWaldo) { |
| 2470 | size += pb::CodedOutputStream.ComputeInt32Size(1, Waldo); |
| 2471 | } |
| 2472 | size += UnknownFields.SerializedSize; |
| 2473 | memoizedSerializedSize = size; |
| 2474 | return size; |
| 2475 | } |
| 2476 | } |
| 2477 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2478 | public static ComplexOptionType4 ParseFrom(pb::ByteString data) { |
| 2479 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2480 | } |
| 2481 | public static ComplexOptionType4 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2482 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2483 | } |
| 2484 | public static ComplexOptionType4 ParseFrom(byte[] data) { |
| 2485 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2486 | } |
| 2487 | public static ComplexOptionType4 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2488 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2489 | } |
| 2490 | public static ComplexOptionType4 ParseFrom(global::System.IO.Stream input) { |
| 2491 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2492 | } |
| 2493 | public static ComplexOptionType4 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2494 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2495 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2496 | public static ComplexOptionType4 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 2497 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 2498 | } |
| 2499 | public static ComplexOptionType4 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2500 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 2501 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2502 | public static ComplexOptionType4 ParseFrom(pb::CodedInputStream input) { |
| 2503 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2504 | } |
| 2505 | public static ComplexOptionType4 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2506 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2507 | } |
| 2508 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 2509 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2510 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2511 | public static Builder CreateBuilder(ComplexOptionType4 prototype) { |
| 2512 | return (Builder) new Builder().MergeFrom(prototype); |
| 2513 | } |
| 2514 | |
| 2515 | public sealed partial class Builder : pb::GeneratedBuilder<ComplexOptionType4, Builder> { |
| 2516 | protected override Builder ThisBuilder { |
| 2517 | get { return this; } |
| 2518 | } |
| 2519 | public Builder() {} |
| 2520 | |
| 2521 | ComplexOptionType4 result = new ComplexOptionType4(); |
| 2522 | |
| 2523 | protected override ComplexOptionType4 MessageBeingBuilt { |
| 2524 | get { return result; } |
| 2525 | } |
| 2526 | |
| 2527 | public override Builder Clear() { |
| 2528 | result = new ComplexOptionType4(); |
| 2529 | return this; |
| 2530 | } |
| 2531 | |
| 2532 | public override Builder Clone() { |
| 2533 | return new Builder().MergeFrom(result); |
| 2534 | } |
| 2535 | |
| 2536 | public override pbd::MessageDescriptor DescriptorForType { |
| 2537 | get { return ComplexOptionType4.Descriptor; } |
| 2538 | } |
| 2539 | |
| 2540 | public override ComplexOptionType4 DefaultInstanceForType { |
| 2541 | get { return ComplexOptionType4.DefaultInstance; } |
| 2542 | } |
| 2543 | |
| 2544 | public override ComplexOptionType4 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2545 | if (result == null) { |
| 2546 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 2547 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2548 | ComplexOptionType4 returnMe = result; |
| 2549 | result = null; |
| 2550 | return returnMe; |
| 2551 | } |
| 2552 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2553 | public override Builder MergeFrom(pb::IMessage other) { |
| 2554 | if (other is ComplexOptionType4) { |
| 2555 | return MergeFrom((ComplexOptionType4) other); |
| 2556 | } else { |
| 2557 | base.MergeFrom(other); |
| 2558 | return this; |
| 2559 | } |
| 2560 | } |
| 2561 | |
| 2562 | public override Builder MergeFrom(ComplexOptionType4 other) { |
| 2563 | if (other == ComplexOptionType4.DefaultInstance) return this; |
| 2564 | if (other.HasWaldo) { |
| 2565 | Waldo = other.Waldo; |
| 2566 | } |
| 2567 | this.MergeUnknownFields(other.UnknownFields); |
| 2568 | return this; |
| 2569 | } |
| 2570 | |
| 2571 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2572 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2573 | } |
| 2574 | |
| 2575 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2576 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 2577 | while (true) { |
| 2578 | uint tag = input.ReadTag(); |
| 2579 | switch (tag) { |
| 2580 | case 0: { |
| 2581 | if (unknownFields != null) { |
| 2582 | this.UnknownFields = unknownFields.Build(); |
| 2583 | } |
| 2584 | return this; |
| 2585 | } |
| 2586 | default: { |
| 2587 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 2588 | if (unknownFields != null) { |
| 2589 | this.UnknownFields = unknownFields.Build(); |
| 2590 | } |
| 2591 | return this; |
| 2592 | } |
| 2593 | if (unknownFields == null) { |
| 2594 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2595 | } |
| 2596 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 2597 | break; |
| 2598 | } |
| 2599 | case 8: { |
| 2600 | Waldo = input.ReadInt32(); |
| 2601 | break; |
| 2602 | } |
| 2603 | } |
| 2604 | } |
| 2605 | } |
| 2606 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2607 | |
| 2608 | public bool HasWaldo { |
| 2609 | get { return result.HasWaldo; } |
| 2610 | } |
| 2611 | public int Waldo { |
| 2612 | get { return result.Waldo; } |
| 2613 | set { SetWaldo(value); } |
| 2614 | } |
| 2615 | public Builder SetWaldo(int value) { |
| 2616 | result.hasWaldo = true; |
| 2617 | result.waldo_ = value; |
| 2618 | return this; |
| 2619 | } |
| 2620 | public Builder ClearWaldo() { |
| 2621 | result.hasWaldo = false; |
| 2622 | result.waldo_ = 0; |
| 2623 | return this; |
| 2624 | } |
| 2625 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 2626 | static ComplexOptionType4() { |
| 2627 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 2628 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2629 | } |
| 2630 | |
| 2631 | } |
| 2632 | #endregion |
| 2633 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2634 | public const int BarFieldNumber = 1; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2635 | private bool hasBar; |
| 2636 | private global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1 bar_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.DefaultInstance; |
| 2637 | public bool HasBar { |
| 2638 | get { return hasBar; } |
| 2639 | } |
| 2640 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1 Bar { |
| 2641 | get { return bar_; } |
| 2642 | } |
| 2643 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2644 | public const int BazFieldNumber = 2; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2645 | private bool hasBaz; |
| 2646 | private int baz_ = 0; |
| 2647 | public bool HasBaz { |
| 2648 | get { return hasBaz; } |
| 2649 | } |
| 2650 | public int Baz { |
| 2651 | get { return baz_; } |
| 2652 | } |
| 2653 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 2654 | public const int FredFieldNumber = 3; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2655 | private bool hasFred; |
| 2656 | private global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 fred_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.DefaultInstance; |
| 2657 | public bool HasFred { |
| 2658 | get { return hasFred; } |
| 2659 | } |
| 2660 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred { |
| 2661 | get { return fred_; } |
| 2662 | } |
| 2663 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2664 | public override bool IsInitialized { |
| 2665 | get { |
| 2666 | if (HasFred) { |
| 2667 | if (!Fred.IsInitialized) return false; |
| 2668 | } |
| 2669 | if (!ExtensionsAreInitialized) return false; |
| 2670 | return true; |
| 2671 | } |
| 2672 | } |
| 2673 | |
| 2674 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2675 | pb::ExtendableMessage<ComplexOptionType2, ComplexOptionType2.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 2676 | if (HasBar) { |
| 2677 | output.WriteMessage(1, Bar); |
| 2678 | } |
| 2679 | if (HasBaz) { |
| 2680 | output.WriteInt32(2, Baz); |
| 2681 | } |
| 2682 | if (HasFred) { |
| 2683 | output.WriteMessage(3, Fred); |
| 2684 | } |
| 2685 | extensionWriter.WriteUntil(536870912, output); |
| 2686 | UnknownFields.WriteTo(output); |
| 2687 | } |
| 2688 | |
| 2689 | private int memoizedSerializedSize = -1; |
| 2690 | public override int SerializedSize { |
| 2691 | get { |
| 2692 | int size = memoizedSerializedSize; |
| 2693 | if (size != -1) return size; |
| 2694 | |
| 2695 | size = 0; |
| 2696 | if (HasBar) { |
| 2697 | size += pb::CodedOutputStream.ComputeMessageSize(1, Bar); |
| 2698 | } |
| 2699 | if (HasBaz) { |
| 2700 | size += pb::CodedOutputStream.ComputeInt32Size(2, Baz); |
| 2701 | } |
| 2702 | if (HasFred) { |
| 2703 | size += pb::CodedOutputStream.ComputeMessageSize(3, Fred); |
| 2704 | } |
| 2705 | size += ExtensionsSerializedSize; |
| 2706 | size += UnknownFields.SerializedSize; |
| 2707 | memoizedSerializedSize = size; |
| 2708 | return size; |
| 2709 | } |
| 2710 | } |
| 2711 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2712 | public static ComplexOptionType2 ParseFrom(pb::ByteString data) { |
| 2713 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2714 | } |
| 2715 | public static ComplexOptionType2 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2716 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2717 | } |
| 2718 | public static ComplexOptionType2 ParseFrom(byte[] data) { |
| 2719 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2720 | } |
| 2721 | public static ComplexOptionType2 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2722 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2723 | } |
| 2724 | public static ComplexOptionType2 ParseFrom(global::System.IO.Stream input) { |
| 2725 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2726 | } |
| 2727 | public static ComplexOptionType2 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2728 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2729 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2730 | public static ComplexOptionType2 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 2731 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 2732 | } |
| 2733 | public static ComplexOptionType2 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2734 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 2735 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2736 | public static ComplexOptionType2 ParseFrom(pb::CodedInputStream input) { |
| 2737 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2738 | } |
| 2739 | public static ComplexOptionType2 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2740 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2741 | } |
| 2742 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 2743 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2744 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2745 | public static Builder CreateBuilder(ComplexOptionType2 prototype) { |
| 2746 | return (Builder) new Builder().MergeFrom(prototype); |
| 2747 | } |
| 2748 | |
| 2749 | public sealed partial class Builder : pb::ExtendableBuilder<ComplexOptionType2, Builder> { |
| 2750 | protected override Builder ThisBuilder { |
| 2751 | get { return this; } |
| 2752 | } |
| 2753 | public Builder() {} |
| 2754 | |
| 2755 | ComplexOptionType2 result = new ComplexOptionType2(); |
| 2756 | |
| 2757 | protected override ComplexOptionType2 MessageBeingBuilt { |
| 2758 | get { return result; } |
| 2759 | } |
| 2760 | |
| 2761 | public override Builder Clear() { |
| 2762 | result = new ComplexOptionType2(); |
| 2763 | return this; |
| 2764 | } |
| 2765 | |
| 2766 | public override Builder Clone() { |
| 2767 | return new Builder().MergeFrom(result); |
| 2768 | } |
| 2769 | |
| 2770 | public override pbd::MessageDescriptor DescriptorForType { |
| 2771 | get { return ComplexOptionType2.Descriptor; } |
| 2772 | } |
| 2773 | |
| 2774 | public override ComplexOptionType2 DefaultInstanceForType { |
| 2775 | get { return ComplexOptionType2.DefaultInstance; } |
| 2776 | } |
| 2777 | |
| 2778 | public override ComplexOptionType2 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 2779 | if (result == null) { |
| 2780 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 2781 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2782 | ComplexOptionType2 returnMe = result; |
| 2783 | result = null; |
| 2784 | return returnMe; |
| 2785 | } |
| 2786 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 2787 | public override Builder MergeFrom(pb::IMessage other) { |
| 2788 | if (other is ComplexOptionType2) { |
| 2789 | return MergeFrom((ComplexOptionType2) other); |
| 2790 | } else { |
| 2791 | base.MergeFrom(other); |
| 2792 | return this; |
| 2793 | } |
| 2794 | } |
| 2795 | |
| 2796 | public override Builder MergeFrom(ComplexOptionType2 other) { |
| 2797 | if (other == ComplexOptionType2.DefaultInstance) return this; |
| 2798 | if (other.HasBar) { |
| 2799 | MergeBar(other.Bar); |
| 2800 | } |
| 2801 | if (other.HasBaz) { |
| 2802 | Baz = other.Baz; |
| 2803 | } |
| 2804 | if (other.HasFred) { |
| 2805 | MergeFred(other.Fred); |
| 2806 | } |
| 2807 | this.MergeExtensionFields(other); |
| 2808 | this.MergeUnknownFields(other.UnknownFields); |
| 2809 | return this; |
| 2810 | } |
| 2811 | |
| 2812 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 2813 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 2814 | } |
| 2815 | |
| 2816 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2817 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 2818 | while (true) { |
| 2819 | uint tag = input.ReadTag(); |
| 2820 | switch (tag) { |
| 2821 | case 0: { |
| 2822 | if (unknownFields != null) { |
| 2823 | this.UnknownFields = unknownFields.Build(); |
| 2824 | } |
| 2825 | return this; |
| 2826 | } |
| 2827 | default: { |
| 2828 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 2829 | if (unknownFields != null) { |
| 2830 | this.UnknownFields = unknownFields.Build(); |
| 2831 | } |
| 2832 | return this; |
| 2833 | } |
| 2834 | if (unknownFields == null) { |
| 2835 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 2836 | } |
| 2837 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 2838 | break; |
| 2839 | } |
| 2840 | case 10: { |
| 2841 | global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.CreateBuilder(); |
| 2842 | if (HasBar) { |
| 2843 | subBuilder.MergeFrom(Bar); |
| 2844 | } |
| 2845 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2846 | Bar = subBuilder.BuildPartial(); |
| 2847 | break; |
| 2848 | } |
| 2849 | case 16: { |
| 2850 | Baz = input.ReadInt32(); |
| 2851 | break; |
| 2852 | } |
| 2853 | case 26: { |
| 2854 | global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.CreateBuilder(); |
| 2855 | if (HasFred) { |
| 2856 | subBuilder.MergeFrom(Fred); |
| 2857 | } |
| 2858 | input.ReadMessage(subBuilder, extensionRegistry); |
| 2859 | Fred = subBuilder.BuildPartial(); |
| 2860 | break; |
| 2861 | } |
| 2862 | } |
| 2863 | } |
| 2864 | } |
| 2865 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2866 | |
| 2867 | public bool HasBar { |
| 2868 | get { return result.HasBar; } |
| 2869 | } |
| 2870 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1 Bar { |
| 2871 | get { return result.Bar; } |
| 2872 | set { SetBar(value); } |
| 2873 | } |
| 2874 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2875 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2876 | result.hasBar = true; |
| 2877 | result.bar_ = value; |
| 2878 | return this; |
| 2879 | } |
| 2880 | public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2881 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2882 | result.hasBar = true; |
| 2883 | result.bar_ = builderForValue.Build(); |
| 2884 | return this; |
| 2885 | } |
| 2886 | public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2887 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2888 | if (result.HasBar && |
| 2889 | result.bar_ != global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.DefaultInstance) { |
| 2890 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial(); |
| 2891 | } else { |
| 2892 | result.bar_ = value; |
| 2893 | } |
| 2894 | result.hasBar = true; |
| 2895 | return this; |
| 2896 | } |
| 2897 | public Builder ClearBar() { |
| 2898 | result.hasBar = false; |
| 2899 | result.bar_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType1.DefaultInstance; |
| 2900 | return this; |
| 2901 | } |
| 2902 | |
| 2903 | public bool HasBaz { |
| 2904 | get { return result.HasBaz; } |
| 2905 | } |
| 2906 | public int Baz { |
| 2907 | get { return result.Baz; } |
| 2908 | set { SetBaz(value); } |
| 2909 | } |
| 2910 | public Builder SetBaz(int value) { |
| 2911 | result.hasBaz = true; |
| 2912 | result.baz_ = value; |
| 2913 | return this; |
| 2914 | } |
| 2915 | public Builder ClearBaz() { |
| 2916 | result.hasBaz = false; |
| 2917 | result.baz_ = 0; |
| 2918 | return this; |
| 2919 | } |
| 2920 | |
| 2921 | public bool HasFred { |
| 2922 | get { return result.HasFred; } |
| 2923 | } |
| 2924 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 Fred { |
| 2925 | get { return result.Fred; } |
| 2926 | set { SetFred(value); } |
| 2927 | } |
| 2928 | public Builder SetFred(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2929 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2930 | result.hasFred = true; |
| 2931 | result.fred_ = value; |
| 2932 | return this; |
| 2933 | } |
| 2934 | public Builder SetFred(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2935 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2936 | result.hasFred = true; |
| 2937 | result.fred_ = builderForValue.Build(); |
| 2938 | return this; |
| 2939 | } |
| 2940 | public Builder MergeFred(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 2941 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2942 | if (result.HasFred && |
| 2943 | result.fred_ != global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.DefaultInstance) { |
| 2944 | result.fred_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.CreateBuilder(result.fred_).MergeFrom(value).BuildPartial(); |
| 2945 | } else { |
| 2946 | result.fred_ = value; |
| 2947 | } |
| 2948 | result.hasFred = true; |
| 2949 | return this; |
| 2950 | } |
| 2951 | public Builder ClearFred() { |
| 2952 | result.hasFred = false; |
| 2953 | result.fred_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType2.Types.ComplexOptionType4.DefaultInstance; |
| 2954 | return this; |
| 2955 | } |
| 2956 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 2957 | static ComplexOptionType2() { |
| 2958 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 2959 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 2960 | } |
| 2961 | |
| 2962 | public sealed partial class ComplexOptionType3 : pb::GeneratedMessage<ComplexOptionType3, ComplexOptionType3.Builder> { |
| 2963 | private static readonly ComplexOptionType3 defaultInstance = new Builder().BuildPartial(); |
| 2964 | public static ComplexOptionType3 DefaultInstance { |
| 2965 | get { return defaultInstance; } |
| 2966 | } |
| 2967 | |
| 2968 | public override ComplexOptionType3 DefaultInstanceForType { |
| 2969 | get { return defaultInstance; } |
| 2970 | } |
| 2971 | |
| 2972 | protected override ComplexOptionType3 ThisMessage { |
| 2973 | get { return this; } |
| 2974 | } |
| 2975 | |
| 2976 | public static pbd::MessageDescriptor Descriptor { |
| 2977 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType3__Descriptor; } |
| 2978 | } |
| 2979 | |
| 2980 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOptionType3, ComplexOptionType3.Builder> InternalFieldAccessors { |
| 2981 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType3__FieldAccessorTable; } |
| 2982 | } |
| 2983 | |
| 2984 | #region Nested types |
| 2985 | public static class Types { |
| 2986 | public sealed partial class ComplexOptionType5 : pb::GeneratedMessage<ComplexOptionType5, ComplexOptionType5.Builder> { |
| 2987 | private static readonly ComplexOptionType5 defaultInstance = new Builder().BuildPartial(); |
| 2988 | public static ComplexOptionType5 DefaultInstance { |
| 2989 | get { return defaultInstance; } |
| 2990 | } |
| 2991 | |
| 2992 | public override ComplexOptionType5 DefaultInstanceForType { |
| 2993 | get { return defaultInstance; } |
| 2994 | } |
| 2995 | |
| 2996 | protected override ComplexOptionType5 ThisMessage { |
| 2997 | get { return this; } |
| 2998 | } |
| 2999 | |
| 3000 | public static pbd::MessageDescriptor Descriptor { |
| 3001 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__Descriptor; } |
| 3002 | } |
| 3003 | |
| 3004 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOptionType5, ComplexOptionType5.Builder> InternalFieldAccessors { |
| 3005 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5__FieldAccessorTable; } |
| 3006 | } |
| 3007 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 3008 | public const int PlughFieldNumber = 3; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3009 | private bool hasPlugh; |
| 3010 | private int plugh_ = 0; |
| 3011 | public bool HasPlugh { |
| 3012 | get { return hasPlugh; } |
| 3013 | } |
| 3014 | public int Plugh { |
| 3015 | get { return plugh_; } |
| 3016 | } |
| 3017 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3018 | public override bool IsInitialized { |
| 3019 | get { |
| 3020 | return true; |
| 3021 | } |
| 3022 | } |
| 3023 | |
| 3024 | public override void WriteTo(pb::CodedOutputStream output) { |
| 3025 | if (HasPlugh) { |
| 3026 | output.WriteInt32(3, Plugh); |
| 3027 | } |
| 3028 | UnknownFields.WriteTo(output); |
| 3029 | } |
| 3030 | |
| 3031 | private int memoizedSerializedSize = -1; |
| 3032 | public override int SerializedSize { |
| 3033 | get { |
| 3034 | int size = memoizedSerializedSize; |
| 3035 | if (size != -1) return size; |
| 3036 | |
| 3037 | size = 0; |
| 3038 | if (HasPlugh) { |
| 3039 | size += pb::CodedOutputStream.ComputeInt32Size(3, Plugh); |
| 3040 | } |
| 3041 | size += UnknownFields.SerializedSize; |
| 3042 | memoizedSerializedSize = size; |
| 3043 | return size; |
| 3044 | } |
| 3045 | } |
| 3046 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3047 | public static ComplexOptionType5 ParseFrom(pb::ByteString data) { |
| 3048 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3049 | } |
| 3050 | public static ComplexOptionType5 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 3051 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3052 | } |
| 3053 | public static ComplexOptionType5 ParseFrom(byte[] data) { |
| 3054 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3055 | } |
| 3056 | public static ComplexOptionType5 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 3057 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3058 | } |
| 3059 | public static ComplexOptionType5 ParseFrom(global::System.IO.Stream input) { |
| 3060 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3061 | } |
| 3062 | public static ComplexOptionType5 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3063 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3064 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3065 | public static ComplexOptionType5 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 3066 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 3067 | } |
| 3068 | public static ComplexOptionType5 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3069 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 3070 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3071 | public static ComplexOptionType5 ParseFrom(pb::CodedInputStream input) { |
| 3072 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3073 | } |
| 3074 | public static ComplexOptionType5 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3075 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3076 | } |
| 3077 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 3078 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3079 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 3080 | public static Builder CreateBuilder(ComplexOptionType5 prototype) { |
| 3081 | return (Builder) new Builder().MergeFrom(prototype); |
| 3082 | } |
| 3083 | |
| 3084 | public sealed partial class Builder : pb::GeneratedBuilder<ComplexOptionType5, Builder> { |
| 3085 | protected override Builder ThisBuilder { |
| 3086 | get { return this; } |
| 3087 | } |
| 3088 | public Builder() {} |
| 3089 | |
| 3090 | ComplexOptionType5 result = new ComplexOptionType5(); |
| 3091 | |
| 3092 | protected override ComplexOptionType5 MessageBeingBuilt { |
| 3093 | get { return result; } |
| 3094 | } |
| 3095 | |
| 3096 | public override Builder Clear() { |
| 3097 | result = new ComplexOptionType5(); |
| 3098 | return this; |
| 3099 | } |
| 3100 | |
| 3101 | public override Builder Clone() { |
| 3102 | return new Builder().MergeFrom(result); |
| 3103 | } |
| 3104 | |
| 3105 | public override pbd::MessageDescriptor DescriptorForType { |
| 3106 | get { return ComplexOptionType5.Descriptor; } |
| 3107 | } |
| 3108 | |
| 3109 | public override ComplexOptionType5 DefaultInstanceForType { |
| 3110 | get { return ComplexOptionType5.DefaultInstance; } |
| 3111 | } |
| 3112 | |
| 3113 | public override ComplexOptionType5 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3114 | if (result == null) { |
| 3115 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 3116 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3117 | ComplexOptionType5 returnMe = result; |
| 3118 | result = null; |
| 3119 | return returnMe; |
| 3120 | } |
| 3121 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3122 | public override Builder MergeFrom(pb::IMessage other) { |
| 3123 | if (other is ComplexOptionType5) { |
| 3124 | return MergeFrom((ComplexOptionType5) other); |
| 3125 | } else { |
| 3126 | base.MergeFrom(other); |
| 3127 | return this; |
| 3128 | } |
| 3129 | } |
| 3130 | |
| 3131 | public override Builder MergeFrom(ComplexOptionType5 other) { |
| 3132 | if (other == ComplexOptionType5.DefaultInstance) return this; |
| 3133 | if (other.HasPlugh) { |
| 3134 | Plugh = other.Plugh; |
| 3135 | } |
| 3136 | this.MergeUnknownFields(other.UnknownFields); |
| 3137 | return this; |
| 3138 | } |
| 3139 | |
| 3140 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 3141 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 3142 | } |
| 3143 | |
| 3144 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3145 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 3146 | while (true) { |
| 3147 | uint tag = input.ReadTag(); |
| 3148 | switch (tag) { |
| 3149 | case 0: { |
| 3150 | if (unknownFields != null) { |
| 3151 | this.UnknownFields = unknownFields.Build(); |
| 3152 | } |
| 3153 | return this; |
| 3154 | } |
| 3155 | default: { |
| 3156 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 3157 | if (unknownFields != null) { |
| 3158 | this.UnknownFields = unknownFields.Build(); |
| 3159 | } |
| 3160 | return this; |
| 3161 | } |
| 3162 | if (unknownFields == null) { |
| 3163 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 3164 | } |
| 3165 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 3166 | break; |
| 3167 | } |
| 3168 | case 24: { |
| 3169 | Plugh = input.ReadInt32(); |
| 3170 | break; |
| 3171 | } |
| 3172 | } |
| 3173 | } |
| 3174 | } |
| 3175 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3176 | |
| 3177 | public bool HasPlugh { |
| 3178 | get { return result.HasPlugh; } |
| 3179 | } |
| 3180 | public int Plugh { |
| 3181 | get { return result.Plugh; } |
| 3182 | set { SetPlugh(value); } |
| 3183 | } |
| 3184 | public Builder SetPlugh(int value) { |
| 3185 | result.hasPlugh = true; |
| 3186 | result.plugh_ = value; |
| 3187 | return this; |
| 3188 | } |
| 3189 | public Builder ClearPlugh() { |
| 3190 | result.hasPlugh = false; |
| 3191 | result.plugh_ = 0; |
| 3192 | return this; |
| 3193 | } |
| 3194 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 3195 | static ComplexOptionType5() { |
| 3196 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 3197 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3198 | } |
| 3199 | |
| 3200 | } |
| 3201 | #endregion |
| 3202 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 3203 | public const int QuxFieldNumber = 1; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3204 | private bool hasQux; |
| 3205 | private int qux_ = 0; |
| 3206 | public bool HasQux { |
| 3207 | get { return hasQux; } |
| 3208 | } |
| 3209 | public int Qux { |
| 3210 | get { return qux_; } |
| 3211 | } |
| 3212 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 3213 | public const int ComplexOptionType5FieldNumber = 2; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3214 | private bool hasComplexOptionType5; |
| 3215 | private global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5 complexOptionType5_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.DefaultInstance; |
| 3216 | public bool HasComplexOptionType5 { |
| 3217 | get { return hasComplexOptionType5; } |
| 3218 | } |
| 3219 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5 ComplexOptionType5 { |
| 3220 | get { return complexOptionType5_; } |
| 3221 | } |
| 3222 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3223 | public override bool IsInitialized { |
| 3224 | get { |
| 3225 | return true; |
| 3226 | } |
| 3227 | } |
| 3228 | |
| 3229 | public override void WriteTo(pb::CodedOutputStream output) { |
| 3230 | if (HasQux) { |
| 3231 | output.WriteInt32(1, Qux); |
| 3232 | } |
| 3233 | if (HasComplexOptionType5) { |
| 3234 | output.WriteGroup(2, ComplexOptionType5); |
| 3235 | } |
| 3236 | UnknownFields.WriteTo(output); |
| 3237 | } |
| 3238 | |
| 3239 | private int memoizedSerializedSize = -1; |
| 3240 | public override int SerializedSize { |
| 3241 | get { |
| 3242 | int size = memoizedSerializedSize; |
| 3243 | if (size != -1) return size; |
| 3244 | |
| 3245 | size = 0; |
| 3246 | if (HasQux) { |
| 3247 | size += pb::CodedOutputStream.ComputeInt32Size(1, Qux); |
| 3248 | } |
| 3249 | if (HasComplexOptionType5) { |
| 3250 | size += pb::CodedOutputStream.ComputeGroupSize(2, ComplexOptionType5); |
| 3251 | } |
| 3252 | size += UnknownFields.SerializedSize; |
| 3253 | memoizedSerializedSize = size; |
| 3254 | return size; |
| 3255 | } |
| 3256 | } |
| 3257 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3258 | public static ComplexOptionType3 ParseFrom(pb::ByteString data) { |
| 3259 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3260 | } |
| 3261 | public static ComplexOptionType3 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 3262 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3263 | } |
| 3264 | public static ComplexOptionType3 ParseFrom(byte[] data) { |
| 3265 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3266 | } |
| 3267 | public static ComplexOptionType3 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 3268 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3269 | } |
| 3270 | public static ComplexOptionType3 ParseFrom(global::System.IO.Stream input) { |
| 3271 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3272 | } |
| 3273 | public static ComplexOptionType3 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3274 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3275 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3276 | public static ComplexOptionType3 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 3277 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 3278 | } |
| 3279 | public static ComplexOptionType3 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3280 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 3281 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3282 | public static ComplexOptionType3 ParseFrom(pb::CodedInputStream input) { |
| 3283 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3284 | } |
| 3285 | public static ComplexOptionType3 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3286 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3287 | } |
| 3288 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 3289 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3290 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 3291 | public static Builder CreateBuilder(ComplexOptionType3 prototype) { |
| 3292 | return (Builder) new Builder().MergeFrom(prototype); |
| 3293 | } |
| 3294 | |
| 3295 | public sealed partial class Builder : pb::GeneratedBuilder<ComplexOptionType3, Builder> { |
| 3296 | protected override Builder ThisBuilder { |
| 3297 | get { return this; } |
| 3298 | } |
| 3299 | public Builder() {} |
| 3300 | |
| 3301 | ComplexOptionType3 result = new ComplexOptionType3(); |
| 3302 | |
| 3303 | protected override ComplexOptionType3 MessageBeingBuilt { |
| 3304 | get { return result; } |
| 3305 | } |
| 3306 | |
| 3307 | public override Builder Clear() { |
| 3308 | result = new ComplexOptionType3(); |
| 3309 | return this; |
| 3310 | } |
| 3311 | |
| 3312 | public override Builder Clone() { |
| 3313 | return new Builder().MergeFrom(result); |
| 3314 | } |
| 3315 | |
| 3316 | public override pbd::MessageDescriptor DescriptorForType { |
| 3317 | get { return ComplexOptionType3.Descriptor; } |
| 3318 | } |
| 3319 | |
| 3320 | public override ComplexOptionType3 DefaultInstanceForType { |
| 3321 | get { return ComplexOptionType3.DefaultInstance; } |
| 3322 | } |
| 3323 | |
| 3324 | public override ComplexOptionType3 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3325 | if (result == null) { |
| 3326 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 3327 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3328 | ComplexOptionType3 returnMe = result; |
| 3329 | result = null; |
| 3330 | return returnMe; |
| 3331 | } |
| 3332 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3333 | public override Builder MergeFrom(pb::IMessage other) { |
| 3334 | if (other is ComplexOptionType3) { |
| 3335 | return MergeFrom((ComplexOptionType3) other); |
| 3336 | } else { |
| 3337 | base.MergeFrom(other); |
| 3338 | return this; |
| 3339 | } |
| 3340 | } |
| 3341 | |
| 3342 | public override Builder MergeFrom(ComplexOptionType3 other) { |
| 3343 | if (other == ComplexOptionType3.DefaultInstance) return this; |
| 3344 | if (other.HasQux) { |
| 3345 | Qux = other.Qux; |
| 3346 | } |
| 3347 | if (other.HasComplexOptionType5) { |
| 3348 | MergeComplexOptionType5(other.ComplexOptionType5); |
| 3349 | } |
| 3350 | this.MergeUnknownFields(other.UnknownFields); |
| 3351 | return this; |
| 3352 | } |
| 3353 | |
| 3354 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 3355 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 3356 | } |
| 3357 | |
| 3358 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3359 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 3360 | while (true) { |
| 3361 | uint tag = input.ReadTag(); |
| 3362 | switch (tag) { |
| 3363 | case 0: { |
| 3364 | if (unknownFields != null) { |
| 3365 | this.UnknownFields = unknownFields.Build(); |
| 3366 | } |
| 3367 | return this; |
| 3368 | } |
| 3369 | default: { |
| 3370 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 3371 | if (unknownFields != null) { |
| 3372 | this.UnknownFields = unknownFields.Build(); |
| 3373 | } |
| 3374 | return this; |
| 3375 | } |
| 3376 | if (unknownFields == null) { |
| 3377 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 3378 | } |
| 3379 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 3380 | break; |
| 3381 | } |
| 3382 | case 8: { |
| 3383 | Qux = input.ReadInt32(); |
| 3384 | break; |
| 3385 | } |
| 3386 | case 19: { |
| 3387 | global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.CreateBuilder(); |
| 3388 | if (HasComplexOptionType5) { |
| 3389 | subBuilder.MergeFrom(ComplexOptionType5); |
| 3390 | } |
| 3391 | input.ReadGroup(2, subBuilder, extensionRegistry); |
| 3392 | ComplexOptionType5 = subBuilder.BuildPartial(); |
| 3393 | break; |
| 3394 | } |
| 3395 | } |
| 3396 | } |
| 3397 | } |
| 3398 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3399 | |
| 3400 | public bool HasQux { |
| 3401 | get { return result.HasQux; } |
| 3402 | } |
| 3403 | public int Qux { |
| 3404 | get { return result.Qux; } |
| 3405 | set { SetQux(value); } |
| 3406 | } |
| 3407 | public Builder SetQux(int value) { |
| 3408 | result.hasQux = true; |
| 3409 | result.qux_ = value; |
| 3410 | return this; |
| 3411 | } |
| 3412 | public Builder ClearQux() { |
| 3413 | result.hasQux = false; |
| 3414 | result.qux_ = 0; |
| 3415 | return this; |
| 3416 | } |
| 3417 | |
| 3418 | public bool HasComplexOptionType5 { |
| 3419 | get { return result.HasComplexOptionType5; } |
| 3420 | } |
| 3421 | public global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5 ComplexOptionType5 { |
| 3422 | get { return result.ComplexOptionType5; } |
| 3423 | set { SetComplexOptionType5(value); } |
| 3424 | } |
| 3425 | public Builder SetComplexOptionType5(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3426 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3427 | result.hasComplexOptionType5 = true; |
| 3428 | result.complexOptionType5_ = value; |
| 3429 | return this; |
| 3430 | } |
| 3431 | public Builder SetComplexOptionType5(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.Builder builderForValue) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3432 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3433 | result.hasComplexOptionType5 = true; |
| 3434 | result.complexOptionType5_ = builderForValue.Build(); |
| 3435 | return this; |
| 3436 | } |
| 3437 | public Builder MergeComplexOptionType5(global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5 value) { |
Jon Skeet | 642a814 | 2009-01-27 12:25:21 +0000 | [diff] [blame] | 3438 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3439 | if (result.HasComplexOptionType5 && |
| 3440 | result.complexOptionType5_ != global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.DefaultInstance) { |
| 3441 | result.complexOptionType5_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.CreateBuilder(result.complexOptionType5_).MergeFrom(value).BuildPartial(); |
| 3442 | } else { |
| 3443 | result.complexOptionType5_ = value; |
| 3444 | } |
| 3445 | result.hasComplexOptionType5 = true; |
| 3446 | return this; |
| 3447 | } |
| 3448 | public Builder ClearComplexOptionType5() { |
| 3449 | result.hasComplexOptionType5 = false; |
| 3450 | result.complexOptionType5_ = global::Google.ProtocolBuffers.TestProtos.ComplexOptionType3.Types.ComplexOptionType5.DefaultInstance; |
| 3451 | return this; |
| 3452 | } |
| 3453 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 3454 | static ComplexOptionType3() { |
| 3455 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 3456 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3457 | } |
| 3458 | |
| 3459 | public sealed partial class ComplexOpt6 : pb::GeneratedMessage<ComplexOpt6, ComplexOpt6.Builder> { |
| 3460 | private static readonly ComplexOpt6 defaultInstance = new Builder().BuildPartial(); |
| 3461 | public static ComplexOpt6 DefaultInstance { |
| 3462 | get { return defaultInstance; } |
| 3463 | } |
| 3464 | |
| 3465 | public override ComplexOpt6 DefaultInstanceForType { |
| 3466 | get { return defaultInstance; } |
| 3467 | } |
| 3468 | |
| 3469 | protected override ComplexOpt6 ThisMessage { |
| 3470 | get { return this; } |
| 3471 | } |
| 3472 | |
| 3473 | public static pbd::MessageDescriptor Descriptor { |
| 3474 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOpt6__Descriptor; } |
| 3475 | } |
| 3476 | |
| 3477 | protected override pb::FieldAccess.FieldAccessorTable<ComplexOpt6, ComplexOpt6.Builder> InternalFieldAccessors { |
| 3478 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_ComplexOpt6__FieldAccessorTable; } |
| 3479 | } |
| 3480 | |
Jon Skeet | 7ee85c4 | 2009-05-28 21:11:15 +0100 | [diff] [blame] | 3481 | public const int XyzzyFieldNumber = 7593951; |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3482 | private bool hasXyzzy; |
| 3483 | private int xyzzy_ = 0; |
| 3484 | public bool HasXyzzy { |
| 3485 | get { return hasXyzzy; } |
| 3486 | } |
| 3487 | public int Xyzzy { |
| 3488 | get { return xyzzy_; } |
| 3489 | } |
| 3490 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3491 | public override bool IsInitialized { |
| 3492 | get { |
| 3493 | return true; |
| 3494 | } |
| 3495 | } |
| 3496 | |
| 3497 | public override void WriteTo(pb::CodedOutputStream output) { |
| 3498 | if (HasXyzzy) { |
| 3499 | output.WriteInt32(7593951, Xyzzy); |
| 3500 | } |
| 3501 | UnknownFields.WriteTo(output); |
| 3502 | } |
| 3503 | |
| 3504 | private int memoizedSerializedSize = -1; |
| 3505 | public override int SerializedSize { |
| 3506 | get { |
| 3507 | int size = memoizedSerializedSize; |
| 3508 | if (size != -1) return size; |
| 3509 | |
| 3510 | size = 0; |
| 3511 | if (HasXyzzy) { |
| 3512 | size += pb::CodedOutputStream.ComputeInt32Size(7593951, Xyzzy); |
| 3513 | } |
| 3514 | size += UnknownFields.SerializedSize; |
| 3515 | memoizedSerializedSize = size; |
| 3516 | return size; |
| 3517 | } |
| 3518 | } |
| 3519 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3520 | public static ComplexOpt6 ParseFrom(pb::ByteString data) { |
| 3521 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3522 | } |
| 3523 | public static ComplexOpt6 ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 3524 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3525 | } |
| 3526 | public static ComplexOpt6 ParseFrom(byte[] data) { |
| 3527 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3528 | } |
| 3529 | public static ComplexOpt6 ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 3530 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3531 | } |
| 3532 | public static ComplexOpt6 ParseFrom(global::System.IO.Stream input) { |
| 3533 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3534 | } |
| 3535 | public static ComplexOpt6 ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3536 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3537 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3538 | public static ComplexOpt6 ParseDelimitedFrom(global::System.IO.Stream input) { |
| 3539 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 3540 | } |
| 3541 | public static ComplexOpt6 ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3542 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 3543 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3544 | public static ComplexOpt6 ParseFrom(pb::CodedInputStream input) { |
| 3545 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3546 | } |
| 3547 | public static ComplexOpt6 ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3548 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3549 | } |
| 3550 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 3551 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3552 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 3553 | public static Builder CreateBuilder(ComplexOpt6 prototype) { |
| 3554 | return (Builder) new Builder().MergeFrom(prototype); |
| 3555 | } |
| 3556 | |
| 3557 | public sealed partial class Builder : pb::GeneratedBuilder<ComplexOpt6, Builder> { |
| 3558 | protected override Builder ThisBuilder { |
| 3559 | get { return this; } |
| 3560 | } |
| 3561 | public Builder() {} |
| 3562 | |
| 3563 | ComplexOpt6 result = new ComplexOpt6(); |
| 3564 | |
| 3565 | protected override ComplexOpt6 MessageBeingBuilt { |
| 3566 | get { return result; } |
| 3567 | } |
| 3568 | |
| 3569 | public override Builder Clear() { |
| 3570 | result = new ComplexOpt6(); |
| 3571 | return this; |
| 3572 | } |
| 3573 | |
| 3574 | public override Builder Clone() { |
| 3575 | return new Builder().MergeFrom(result); |
| 3576 | } |
| 3577 | |
| 3578 | public override pbd::MessageDescriptor DescriptorForType { |
| 3579 | get { return ComplexOpt6.Descriptor; } |
| 3580 | } |
| 3581 | |
| 3582 | public override ComplexOpt6 DefaultInstanceForType { |
| 3583 | get { return ComplexOpt6.DefaultInstance; } |
| 3584 | } |
| 3585 | |
| 3586 | public override ComplexOpt6 BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3587 | if (result == null) { |
| 3588 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 3589 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3590 | ComplexOpt6 returnMe = result; |
| 3591 | result = null; |
| 3592 | return returnMe; |
| 3593 | } |
| 3594 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3595 | public override Builder MergeFrom(pb::IMessage other) { |
| 3596 | if (other is ComplexOpt6) { |
| 3597 | return MergeFrom((ComplexOpt6) other); |
| 3598 | } else { |
| 3599 | base.MergeFrom(other); |
| 3600 | return this; |
| 3601 | } |
| 3602 | } |
| 3603 | |
| 3604 | public override Builder MergeFrom(ComplexOpt6 other) { |
| 3605 | if (other == ComplexOpt6.DefaultInstance) return this; |
| 3606 | if (other.HasXyzzy) { |
| 3607 | Xyzzy = other.Xyzzy; |
| 3608 | } |
| 3609 | this.MergeUnknownFields(other.UnknownFields); |
| 3610 | return this; |
| 3611 | } |
| 3612 | |
| 3613 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 3614 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 3615 | } |
| 3616 | |
| 3617 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3618 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 3619 | while (true) { |
| 3620 | uint tag = input.ReadTag(); |
| 3621 | switch (tag) { |
| 3622 | case 0: { |
| 3623 | if (unknownFields != null) { |
| 3624 | this.UnknownFields = unknownFields.Build(); |
| 3625 | } |
| 3626 | return this; |
| 3627 | } |
| 3628 | default: { |
| 3629 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 3630 | if (unknownFields != null) { |
| 3631 | this.UnknownFields = unknownFields.Build(); |
| 3632 | } |
| 3633 | return this; |
| 3634 | } |
| 3635 | if (unknownFields == null) { |
| 3636 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 3637 | } |
| 3638 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 3639 | break; |
| 3640 | } |
| 3641 | case 60751608: { |
| 3642 | Xyzzy = input.ReadInt32(); |
| 3643 | break; |
| 3644 | } |
| 3645 | } |
| 3646 | } |
| 3647 | } |
| 3648 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3649 | |
| 3650 | public bool HasXyzzy { |
| 3651 | get { return result.HasXyzzy; } |
| 3652 | } |
| 3653 | public int Xyzzy { |
| 3654 | get { return result.Xyzzy; } |
| 3655 | set { SetXyzzy(value); } |
| 3656 | } |
| 3657 | public Builder SetXyzzy(int value) { |
| 3658 | result.hasXyzzy = true; |
| 3659 | result.xyzzy_ = value; |
| 3660 | return this; |
| 3661 | } |
| 3662 | public Builder ClearXyzzy() { |
| 3663 | result.hasXyzzy = false; |
| 3664 | result.xyzzy_ = 0; |
| 3665 | return this; |
| 3666 | } |
| 3667 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 3668 | static ComplexOpt6() { |
| 3669 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 3670 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3671 | } |
| 3672 | |
| 3673 | public sealed partial class VariousComplexOptions : pb::GeneratedMessage<VariousComplexOptions, VariousComplexOptions.Builder> { |
| 3674 | private static readonly VariousComplexOptions defaultInstance = new Builder().BuildPartial(); |
| 3675 | public static VariousComplexOptions DefaultInstance { |
| 3676 | get { return defaultInstance; } |
| 3677 | } |
| 3678 | |
| 3679 | public override VariousComplexOptions DefaultInstanceForType { |
| 3680 | get { return defaultInstance; } |
| 3681 | } |
| 3682 | |
| 3683 | protected override VariousComplexOptions ThisMessage { |
| 3684 | get { return this; } |
| 3685 | } |
| 3686 | |
| 3687 | public static pbd::MessageDescriptor Descriptor { |
| 3688 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_VariousComplexOptions__Descriptor; } |
| 3689 | } |
| 3690 | |
| 3691 | protected override pb::FieldAccess.FieldAccessorTable<VariousComplexOptions, VariousComplexOptions.Builder> InternalFieldAccessors { |
| 3692 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.internal__static_protobuf_unittest_VariousComplexOptions__FieldAccessorTable; } |
| 3693 | } |
| 3694 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3695 | public override bool IsInitialized { |
| 3696 | get { |
| 3697 | return true; |
| 3698 | } |
| 3699 | } |
| 3700 | |
| 3701 | public override void WriteTo(pb::CodedOutputStream output) { |
| 3702 | UnknownFields.WriteTo(output); |
| 3703 | } |
| 3704 | |
| 3705 | private int memoizedSerializedSize = -1; |
| 3706 | public override int SerializedSize { |
| 3707 | get { |
| 3708 | int size = memoizedSerializedSize; |
| 3709 | if (size != -1) return size; |
| 3710 | |
| 3711 | size = 0; |
| 3712 | size += UnknownFields.SerializedSize; |
| 3713 | memoizedSerializedSize = size; |
| 3714 | return size; |
| 3715 | } |
| 3716 | } |
| 3717 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3718 | public static VariousComplexOptions ParseFrom(pb::ByteString data) { |
| 3719 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3720 | } |
| 3721 | public static VariousComplexOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 3722 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3723 | } |
| 3724 | public static VariousComplexOptions ParseFrom(byte[] data) { |
| 3725 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 3726 | } |
| 3727 | public static VariousComplexOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 3728 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 3729 | } |
| 3730 | public static VariousComplexOptions ParseFrom(global::System.IO.Stream input) { |
| 3731 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3732 | } |
| 3733 | public static VariousComplexOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3734 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3735 | } |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3736 | public static VariousComplexOptions ParseDelimitedFrom(global::System.IO.Stream input) { |
| 3737 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 3738 | } |
| 3739 | public static VariousComplexOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 3740 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 3741 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3742 | public static VariousComplexOptions ParseFrom(pb::CodedInputStream input) { |
| 3743 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 3744 | } |
| 3745 | public static VariousComplexOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3746 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 3747 | } |
| 3748 | public static Builder CreateBuilder() { return new Builder(); } |
Jon Skeet | e81a9d7 | 2009-02-24 16:50:56 +0000 | [diff] [blame] | 3749 | public override Builder ToBuilder() { return CreateBuilder(this); } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3750 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 3751 | public static Builder CreateBuilder(VariousComplexOptions prototype) { |
| 3752 | return (Builder) new Builder().MergeFrom(prototype); |
| 3753 | } |
| 3754 | |
| 3755 | public sealed partial class Builder : pb::GeneratedBuilder<VariousComplexOptions, Builder> { |
| 3756 | protected override Builder ThisBuilder { |
| 3757 | get { return this; } |
| 3758 | } |
| 3759 | public Builder() {} |
| 3760 | |
| 3761 | VariousComplexOptions result = new VariousComplexOptions(); |
| 3762 | |
| 3763 | protected override VariousComplexOptions MessageBeingBuilt { |
| 3764 | get { return result; } |
| 3765 | } |
| 3766 | |
| 3767 | public override Builder Clear() { |
| 3768 | result = new VariousComplexOptions(); |
| 3769 | return this; |
| 3770 | } |
| 3771 | |
| 3772 | public override Builder Clone() { |
| 3773 | return new Builder().MergeFrom(result); |
| 3774 | } |
| 3775 | |
| 3776 | public override pbd::MessageDescriptor DescriptorForType { |
| 3777 | get { return VariousComplexOptions.Descriptor; } |
| 3778 | } |
| 3779 | |
| 3780 | public override VariousComplexOptions DefaultInstanceForType { |
| 3781 | get { return VariousComplexOptions.DefaultInstance; } |
| 3782 | } |
| 3783 | |
| 3784 | public override VariousComplexOptions BuildPartial() { |
Jon Skeet | 2e6dc12 | 2009-05-29 06:34:52 +0100 | [diff] [blame] | 3785 | if (result == null) { |
| 3786 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 3787 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3788 | VariousComplexOptions returnMe = result; |
| 3789 | result = null; |
| 3790 | return returnMe; |
| 3791 | } |
| 3792 | |
Jon Skeet | 0864d30 | 2009-06-05 20:10:32 +0100 | [diff] [blame^] | 3793 | public override Builder MergeFrom(pb::IMessage other) { |
| 3794 | if (other is VariousComplexOptions) { |
| 3795 | return MergeFrom((VariousComplexOptions) other); |
| 3796 | } else { |
| 3797 | base.MergeFrom(other); |
| 3798 | return this; |
| 3799 | } |
| 3800 | } |
| 3801 | |
| 3802 | public override Builder MergeFrom(VariousComplexOptions other) { |
| 3803 | if (other == VariousComplexOptions.DefaultInstance) return this; |
| 3804 | this.MergeUnknownFields(other.UnknownFields); |
| 3805 | return this; |
| 3806 | } |
| 3807 | |
| 3808 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 3809 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 3810 | } |
| 3811 | |
| 3812 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3813 | pb::UnknownFieldSet.Builder unknownFields = null; |
| 3814 | while (true) { |
| 3815 | uint tag = input.ReadTag(); |
| 3816 | switch (tag) { |
| 3817 | case 0: { |
| 3818 | if (unknownFields != null) { |
| 3819 | this.UnknownFields = unknownFields.Build(); |
| 3820 | } |
| 3821 | return this; |
| 3822 | } |
| 3823 | default: { |
| 3824 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 3825 | if (unknownFields != null) { |
| 3826 | this.UnknownFields = unknownFields.Build(); |
| 3827 | } |
| 3828 | return this; |
| 3829 | } |
| 3830 | if (unknownFields == null) { |
| 3831 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
| 3832 | } |
| 3833 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); |
| 3834 | break; |
| 3835 | } |
| 3836 | } |
| 3837 | } |
| 3838 | } |
| 3839 | |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3840 | } |
Jon Skeet | df67f14 | 2009-06-05 19:29:36 +0100 | [diff] [blame] | 3841 | static VariousComplexOptions() { |
| 3842 | pbd::FileDescriptor descriptor = global::Google.ProtocolBuffers.TestProtos.UnitTestCustomOptionsProtoFile.Descriptor; |
| 3843 | } |
Jon Skeet | 6803686 | 2008-10-22 13:30:34 +0100 | [diff] [blame] | 3844 | } |
| 3845 | |
| 3846 | #endregion |
| 3847 | |
| 3848 | #region Services |
| 3849 | public abstract class TestServiceWithCustomOptions : pb::IService { |
| 3850 | public abstract void Foo( |
| 3851 | pb::IRpcController controller, |
| 3852 | global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest request, |
| 3853 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse> done); |
| 3854 | |
| 3855 | public static pbd::ServiceDescriptor Descriptor { |
| 3856 | get { return UnitTestCustomOptionsProtoFile.Descriptor.Services[0]; } |
| 3857 | } |
| 3858 | public pbd::ServiceDescriptor DescriptorForType { |
| 3859 | get { return Descriptor; } |
| 3860 | } |
| 3861 | |
| 3862 | public void CallMethod( |
| 3863 | pbd::MethodDescriptor method, |
| 3864 | pb::IRpcController controller, |
| 3865 | pb::IMessage request, |
| 3866 | global::System.Action<pb::IMessage> done) { |
| 3867 | if (method.Service != Descriptor) { |
| 3868 | throw new global::System.ArgumentException( |
| 3869 | "Service.CallMethod() given method descriptor for wrong service type."); |
| 3870 | } |
| 3871 | switch(method.Index) { |
| 3872 | case 0: |
| 3873 | this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest) request, |
| 3874 | pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse>( |
| 3875 | done)); |
| 3876 | return; |
| 3877 | default: |
| 3878 | throw new global::System.InvalidOperationException("Can't get here."); |
| 3879 | } |
| 3880 | } |
| 3881 | |
| 3882 | public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) { |
| 3883 | if (method.Service != Descriptor) { |
| 3884 | throw new global::System.ArgumentException( |
| 3885 | "Service.GetRequestPrototype() given method descriptor for wrong service type."); |
| 3886 | } |
| 3887 | switch(method.Index) { |
| 3888 | case 0: |
| 3889 | return global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest.DefaultInstance; |
| 3890 | default: |
| 3891 | throw new global::System.InvalidOperationException("Can't get here."); |
| 3892 | } |
| 3893 | } |
| 3894 | |
| 3895 | public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) { |
| 3896 | if (method.Service != Descriptor) { |
| 3897 | throw new global::System.ArgumentException( |
| 3898 | "Service.GetResponsePrototype() given method descriptor for wrong service type."); |
| 3899 | } |
| 3900 | switch(method.Index) { |
| 3901 | case 0: |
| 3902 | return global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.DefaultInstance; |
| 3903 | default: |
| 3904 | throw new global::System.InvalidOperationException("Can't get here."); |
| 3905 | } |
| 3906 | } |
| 3907 | |
| 3908 | public static Stub CreateStub(pb::IRpcChannel channel) { |
| 3909 | return new Stub(channel); |
| 3910 | } |
| 3911 | |
| 3912 | public class Stub : global::Google.ProtocolBuffers.TestProtos.TestServiceWithCustomOptions { |
| 3913 | internal Stub(pb::IRpcChannel channel) { |
| 3914 | this.channel = channel; |
| 3915 | } |
| 3916 | |
| 3917 | private readonly pb::IRpcChannel channel; |
| 3918 | |
| 3919 | public pb::IRpcChannel Channel { |
| 3920 | get { return channel; } |
| 3921 | } |
| 3922 | |
| 3923 | public override void Foo( |
| 3924 | pb::IRpcController controller, |
| 3925 | global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest request, |
| 3926 | global::System.Action<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse> done) { |
| 3927 | channel.CallMethod(Descriptor.Methods[0], |
| 3928 | controller, request, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.DefaultInstance, |
| 3929 | pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.DefaultInstance)); |
| 3930 | } |
| 3931 | } |
| 3932 | } |
| 3933 | #endregion |
| 3934 | |
| 3935 | } |