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