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