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