csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1 | // Generated by ProtoGen, Version=0.9.0.0, Culture=neutral, PublicKeyToken=8fd7408b07f8d2cd. DO NOT EDIT! |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [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 UnitTestLiteProtoFile { |
| 10 | |
| 11 | #region Extension registration |
| 12 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { |
| 13 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite); |
| 14 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite); |
| 15 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite); |
| 16 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite); |
| 17 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite); |
| 18 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite); |
| 19 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite); |
| 20 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite); |
| 21 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite); |
| 22 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite); |
| 23 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite); |
| 24 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite); |
| 25 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite); |
| 26 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite); |
| 27 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite); |
| 28 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite); |
| 29 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite); |
| 30 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite); |
| 31 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite); |
| 32 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite); |
| 33 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite); |
| 34 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite); |
| 35 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite); |
| 36 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite); |
| 37 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite); |
| 38 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite); |
| 39 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite); |
| 40 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite); |
| 41 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite); |
| 42 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite); |
| 43 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite); |
| 44 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite); |
| 45 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite); |
| 46 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite); |
| 47 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite); |
| 48 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite); |
| 49 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite); |
| 50 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite); |
| 51 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite); |
| 52 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite); |
| 53 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite); |
| 54 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite); |
| 55 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite); |
| 56 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite); |
| 57 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite); |
| 58 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite); |
| 59 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite); |
| 60 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite); |
| 61 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite); |
| 62 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite); |
| 63 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite); |
| 64 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite); |
| 65 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite); |
| 66 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite); |
| 67 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite); |
| 68 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite); |
| 69 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite); |
| 70 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite); |
| 71 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite); |
| 72 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite); |
| 73 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite); |
| 74 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite); |
| 75 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite); |
| 76 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite); |
| 77 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite); |
| 78 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite); |
| 79 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite); |
| 80 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite); |
| 81 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite); |
| 82 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite); |
| 83 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite); |
| 84 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite); |
| 85 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite); |
| 86 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite); |
| 87 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite); |
| 88 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite); |
| 89 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite); |
| 90 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite); |
| 91 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite); |
| 92 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite); |
| 93 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite); |
| 94 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite); |
| 95 | registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension); |
| 96 | } |
| 97 | #endregion |
| 98 | #region Extensions |
| 99 | public const int OptionalInt32ExtensionLiteFieldNumber = 1; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 100 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 101 | public const int OptionalInt64ExtensionLiteFieldNumber = 2; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 102 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 103 | public const int OptionalUint32ExtensionLiteFieldNumber = 3; |
| 104 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 105 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 106 | public const int OptionalUint64ExtensionLiteFieldNumber = 4; |
| 107 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 108 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 109 | public const int OptionalSint32ExtensionLiteFieldNumber = 5; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 110 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 111 | public const int OptionalSint64ExtensionLiteFieldNumber = 6; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 112 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 113 | public const int OptionalFixed32ExtensionLiteFieldNumber = 7; |
| 114 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 115 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 116 | public const int OptionalFixed64ExtensionLiteFieldNumber = 8; |
| 117 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 118 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 119 | public const int OptionalSfixed32ExtensionLiteFieldNumber = 9; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 120 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 121 | public const int OptionalSfixed64ExtensionLiteFieldNumber = 10; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 122 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 123 | public const int OptionalFloatExtensionLiteFieldNumber = 11; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 124 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 125 | public const int OptionalDoubleExtensionLiteFieldNumber = 12; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 126 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 127 | public const int OptionalBoolExtensionLiteFieldNumber = 13; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 128 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 129 | public const int OptionalStringExtensionLiteFieldNumber = 14; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 130 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 131 | public const int OptionalBytesExtensionLiteFieldNumber = 15; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 132 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 133 | public const int OptionalGroupExtensionLiteFieldNumber = 16; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 134 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 135 | public const int OptionalNestedMessageExtensionLiteFieldNumber = 18; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 136 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 137 | public const int OptionalForeignMessageExtensionLiteFieldNumber = 19; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 138 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 139 | public const int OptionalImportMessageExtensionLiteFieldNumber = 20; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 140 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 141 | public const int OptionalNestedEnumExtensionLiteFieldNumber = 21; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 142 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 143 | public const int OptionalForeignEnumExtensionLiteFieldNumber = 22; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 144 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 145 | public const int OptionalImportEnumExtensionLiteFieldNumber = 23; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 146 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 147 | public const int OptionalStringPieceExtensionLiteFieldNumber = 24; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 148 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 149 | public const int OptionalCordExtensionLiteFieldNumber = 25; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 150 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 151 | public const int RepeatedInt32ExtensionLiteFieldNumber = 31; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 152 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 153 | public const int RepeatedInt64ExtensionLiteFieldNumber = 32; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 154 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 155 | public const int RepeatedUint32ExtensionLiteFieldNumber = 33; |
| 156 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 157 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 158 | public const int RepeatedUint64ExtensionLiteFieldNumber = 34; |
| 159 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 160 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 161 | public const int RepeatedSint32ExtensionLiteFieldNumber = 35; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 162 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 163 | public const int RepeatedSint64ExtensionLiteFieldNumber = 36; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 164 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 165 | public const int RepeatedFixed32ExtensionLiteFieldNumber = 37; |
| 166 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 167 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 168 | public const int RepeatedFixed64ExtensionLiteFieldNumber = 38; |
| 169 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 170 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 171 | public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 172 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 173 | public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 174 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 175 | public const int RepeatedFloatExtensionLiteFieldNumber = 41; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 176 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 177 | public const int RepeatedDoubleExtensionLiteFieldNumber = 42; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 178 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 179 | public const int RepeatedBoolExtensionLiteFieldNumber = 43; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 180 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 181 | public const int RepeatedStringExtensionLiteFieldNumber = 44; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 182 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 183 | public const int RepeatedBytesExtensionLiteFieldNumber = 45; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 184 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 185 | public const int RepeatedGroupExtensionLiteFieldNumber = 46; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 186 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 187 | public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 188 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 189 | public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 190 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 191 | public const int RepeatedImportMessageExtensionLiteFieldNumber = 50; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 192 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 193 | public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 194 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 195 | public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 196 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 197 | public const int RepeatedImportEnumExtensionLiteFieldNumber = 53; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 198 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 199 | public const int RepeatedStringPieceExtensionLiteFieldNumber = 54; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 200 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 201 | public const int RepeatedCordExtensionLiteFieldNumber = 55; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 202 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 203 | public const int DefaultInt32ExtensionLiteFieldNumber = 61; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 204 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 205 | public const int DefaultInt64ExtensionLiteFieldNumber = 62; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 206 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 207 | public const int DefaultUint32ExtensionLiteFieldNumber = 63; |
| 208 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 209 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 210 | public const int DefaultUint64ExtensionLiteFieldNumber = 64; |
| 211 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 212 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 213 | public const int DefaultSint32ExtensionLiteFieldNumber = 65; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 214 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 215 | public const int DefaultSint64ExtensionLiteFieldNumber = 66; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 216 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 217 | public const int DefaultFixed32ExtensionLiteFieldNumber = 67; |
| 218 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 219 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 220 | public const int DefaultFixed64ExtensionLiteFieldNumber = 68; |
| 221 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 222 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 223 | public const int DefaultSfixed32ExtensionLiteFieldNumber = 69; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 224 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 225 | public const int DefaultSfixed64ExtensionLiteFieldNumber = 70; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 226 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 227 | public const int DefaultFloatExtensionLiteFieldNumber = 71; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 228 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 229 | public const int DefaultDoubleExtensionLiteFieldNumber = 72; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 230 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 231 | public const int DefaultBoolExtensionLiteFieldNumber = 73; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 232 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 233 | public const int DefaultStringExtensionLiteFieldNumber = 74; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 234 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 235 | public const int DefaultBytesExtensionLiteFieldNumber = 75; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 236 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 237 | public const int DefaultNestedEnumExtensionLiteFieldNumber = 81; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 238 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 239 | public const int DefaultForeignEnumExtensionLiteFieldNumber = 82; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 240 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 241 | public const int DefaultImportEnumExtensionLiteFieldNumber = 83; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 242 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 243 | public const int DefaultStringPieceExtensionLiteFieldNumber = 84; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 244 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 245 | public const int DefaultCordExtensionLiteFieldNumber = 85; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 246 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 247 | public const int PackedInt32ExtensionLiteFieldNumber = 90; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 248 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 249 | public const int PackedInt64ExtensionLiteFieldNumber = 91; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 250 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 251 | public const int PackedUint32ExtensionLiteFieldNumber = 92; |
| 252 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 253 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 254 | public const int PackedUint64ExtensionLiteFieldNumber = 93; |
| 255 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 256 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 257 | public const int PackedSint32ExtensionLiteFieldNumber = 94; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 258 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 259 | public const int PackedSint64ExtensionLiteFieldNumber = 95; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 260 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 261 | public const int PackedFixed32ExtensionLiteFieldNumber = 96; |
| 262 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 263 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 264 | public const int PackedFixed64ExtensionLiteFieldNumber = 97; |
| 265 | [global::System.CLSCompliant(false)] |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 266 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 267 | public const int PackedSfixed32ExtensionLiteFieldNumber = 98; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 268 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 269 | public const int PackedSfixed64ExtensionLiteFieldNumber = 99; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 270 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 271 | public const int PackedFloatExtensionLiteFieldNumber = 100; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 272 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 273 | public const int PackedDoubleExtensionLiteFieldNumber = 101; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 274 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 275 | public const int PackedBoolExtensionLiteFieldNumber = 102; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 276 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 277 | public const int PackedEnumExtensionLiteFieldNumber = 103; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 278 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 279 | #endregion |
| 280 | |
| 281 | #region Static variables |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 282 | #endregion |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 283 | #region Extensions |
| 284 | internal static readonly object Descriptor; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 285 | static UnitTestLiteProtoFile() { |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 286 | Descriptor = null; |
| 287 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension = |
| 288 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 289 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 290 | default(int), |
| 291 | null, |
| 292 | null, |
| 293 | 0, |
| 294 | pbd::FieldType.Int32); |
| 295 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite = |
| 296 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 297 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 298 | default(int), |
| 299 | null, |
| 300 | null, |
| 301 | 0, |
| 302 | pbd::FieldType.Int32); |
| 303 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite = |
| 304 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 305 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 306 | default(long), |
| 307 | null, |
| 308 | null, |
| 309 | 1, |
| 310 | pbd::FieldType.Int64); |
| 311 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite = |
| 312 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 313 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 314 | default(uint), |
| 315 | null, |
| 316 | null, |
| 317 | 2, |
| 318 | pbd::FieldType.UInt32); |
| 319 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite = |
| 320 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 321 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 322 | default(ulong), |
| 323 | null, |
| 324 | null, |
| 325 | 3, |
| 326 | pbd::FieldType.UInt64); |
| 327 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite = |
| 328 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 329 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 330 | default(int), |
| 331 | null, |
| 332 | null, |
| 333 | 4, |
| 334 | pbd::FieldType.SInt32); |
| 335 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite = |
| 336 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 337 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 338 | default(long), |
| 339 | null, |
| 340 | null, |
| 341 | 5, |
| 342 | pbd::FieldType.SInt64); |
| 343 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite = |
| 344 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 345 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 346 | default(uint), |
| 347 | null, |
| 348 | null, |
| 349 | 6, |
| 350 | pbd::FieldType.Fixed32); |
| 351 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite = |
| 352 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 353 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 354 | default(ulong), |
| 355 | null, |
| 356 | null, |
| 357 | 7, |
| 358 | pbd::FieldType.Fixed64); |
| 359 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite = |
| 360 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 361 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 362 | default(int), |
| 363 | null, |
| 364 | null, |
| 365 | 8, |
| 366 | pbd::FieldType.SFixed32); |
| 367 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite = |
| 368 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 369 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 370 | default(long), |
| 371 | null, |
| 372 | null, |
| 373 | 9, |
| 374 | pbd::FieldType.SFixed64); |
| 375 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite = |
| 376 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| 377 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 378 | default(float), |
| 379 | null, |
| 380 | null, |
| 381 | 10, |
| 382 | pbd::FieldType.Float); |
| 383 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite = |
| 384 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| 385 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 386 | default(double), |
| 387 | null, |
| 388 | null, |
| 389 | 11, |
| 390 | pbd::FieldType.Double); |
| 391 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite = |
| 392 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| 393 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 394 | default(bool), |
| 395 | null, |
| 396 | null, |
| 397 | 12, |
| 398 | pbd::FieldType.Bool); |
| 399 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite = |
| 400 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 401 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 402 | null, |
| 403 | null, |
| 404 | null, |
| 405 | 13, |
| 406 | pbd::FieldType.String); |
| 407 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite = |
| 408 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| 409 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 410 | null, |
| 411 | null, |
| 412 | null, |
| 413 | 14, |
| 414 | pbd::FieldType.Bytes); |
| 415 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite = |
| 416 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>( |
| 417 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 418 | null, |
| 419 | global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance, |
| 420 | null, |
| 421 | 15, |
| 422 | pbd::FieldType.Group); |
| 423 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite = |
| 424 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>( |
| 425 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 426 | null, |
| 427 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, |
| 428 | null, |
| 429 | 16, |
| 430 | pbd::FieldType.Message); |
| 431 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite = |
| 432 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>( |
| 433 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 434 | null, |
| 435 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, |
| 436 | null, |
| 437 | 17, |
| 438 | pbd::FieldType.Message); |
| 439 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite = |
| 440 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>( |
| 441 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 442 | null, |
| 443 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, |
| 444 | null, |
| 445 | 18, |
| 446 | pbd::FieldType.Message); |
| 447 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite = |
| 448 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| 449 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 450 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), |
| 451 | null, |
| 452 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| 453 | 19, |
| 454 | pbd::FieldType.Enum); |
| 455 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite = |
| 456 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| 457 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 458 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), |
| 459 | null, |
| 460 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| 461 | 20, |
| 462 | pbd::FieldType.Enum); |
| 463 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite = |
| 464 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| 465 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 466 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), |
| 467 | null, |
| 468 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| 469 | 21, |
| 470 | pbd::FieldType.Enum); |
| 471 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite = |
| 472 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 473 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 474 | null, |
| 475 | null, |
| 476 | null, |
| 477 | 22, |
| 478 | pbd::FieldType.String); |
| 479 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite = |
| 480 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 481 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 482 | null, |
| 483 | null, |
| 484 | null, |
| 485 | 23, |
| 486 | pbd::FieldType.String); |
| 487 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite = |
| 488 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 489 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 490 | default(int), |
| 491 | null, |
| 492 | null, |
| 493 | 24, |
| 494 | pbd::FieldType.Int32, |
| 495 | false); |
| 496 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite = |
| 497 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 498 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 499 | default(long), |
| 500 | null, |
| 501 | null, |
| 502 | 25, |
| 503 | pbd::FieldType.Int64, |
| 504 | false); |
| 505 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite = |
| 506 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 507 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 508 | default(uint), |
| 509 | null, |
| 510 | null, |
| 511 | 26, |
| 512 | pbd::FieldType.UInt32, |
| 513 | false); |
| 514 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite = |
| 515 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 516 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 517 | default(ulong), |
| 518 | null, |
| 519 | null, |
| 520 | 27, |
| 521 | pbd::FieldType.UInt64, |
| 522 | false); |
| 523 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite = |
| 524 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 525 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 526 | default(int), |
| 527 | null, |
| 528 | null, |
| 529 | 28, |
| 530 | pbd::FieldType.SInt32, |
| 531 | false); |
| 532 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite = |
| 533 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 534 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 535 | default(long), |
| 536 | null, |
| 537 | null, |
| 538 | 29, |
| 539 | pbd::FieldType.SInt64, |
| 540 | false); |
| 541 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite = |
| 542 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 543 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 544 | default(uint), |
| 545 | null, |
| 546 | null, |
| 547 | 30, |
| 548 | pbd::FieldType.Fixed32, |
| 549 | false); |
| 550 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite = |
| 551 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 552 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 553 | default(ulong), |
| 554 | null, |
| 555 | null, |
| 556 | 31, |
| 557 | pbd::FieldType.Fixed64, |
| 558 | false); |
| 559 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite = |
| 560 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 561 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 562 | default(int), |
| 563 | null, |
| 564 | null, |
| 565 | 32, |
| 566 | pbd::FieldType.SFixed32, |
| 567 | false); |
| 568 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite = |
| 569 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 570 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 571 | default(long), |
| 572 | null, |
| 573 | null, |
| 574 | 33, |
| 575 | pbd::FieldType.SFixed64, |
| 576 | false); |
| 577 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite = |
| 578 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| 579 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 580 | default(float), |
| 581 | null, |
| 582 | null, |
| 583 | 34, |
| 584 | pbd::FieldType.Float, |
| 585 | false); |
| 586 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite = |
| 587 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| 588 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 589 | default(double), |
| 590 | null, |
| 591 | null, |
| 592 | 35, |
| 593 | pbd::FieldType.Double, |
| 594 | false); |
| 595 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite = |
| 596 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| 597 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 598 | default(bool), |
| 599 | null, |
| 600 | null, |
| 601 | 36, |
| 602 | pbd::FieldType.Bool, |
| 603 | false); |
| 604 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite = |
| 605 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 606 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 607 | null, |
| 608 | null, |
| 609 | null, |
| 610 | 37, |
| 611 | pbd::FieldType.String, |
| 612 | false); |
| 613 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite = |
| 614 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| 615 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 616 | null, |
| 617 | null, |
| 618 | null, |
| 619 | 38, |
| 620 | pbd::FieldType.Bytes, |
| 621 | false); |
| 622 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite = |
| 623 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>( |
| 624 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 625 | null, |
| 626 | global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance, |
| 627 | null, |
| 628 | 39, |
| 629 | pbd::FieldType.Group, |
| 630 | false); |
| 631 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite = |
| 632 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>( |
| 633 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 634 | null, |
| 635 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, |
| 636 | null, |
| 637 | 40, |
| 638 | pbd::FieldType.Message, |
| 639 | false); |
| 640 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite = |
| 641 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>( |
| 642 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 643 | null, |
| 644 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, |
| 645 | null, |
| 646 | 41, |
| 647 | pbd::FieldType.Message, |
| 648 | false); |
| 649 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite = |
| 650 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>( |
| 651 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 652 | null, |
| 653 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, |
| 654 | null, |
| 655 | 42, |
| 656 | pbd::FieldType.Message, |
| 657 | false); |
| 658 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite = |
| 659 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| 660 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 661 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), |
| 662 | null, |
| 663 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| 664 | 43, |
| 665 | pbd::FieldType.Enum, |
| 666 | false); |
| 667 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite = |
| 668 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| 669 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 670 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), |
| 671 | null, |
| 672 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| 673 | 44, |
| 674 | pbd::FieldType.Enum, |
| 675 | false); |
| 676 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite = |
| 677 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| 678 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 679 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), |
| 680 | null, |
| 681 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| 682 | 45, |
| 683 | pbd::FieldType.Enum, |
| 684 | false); |
| 685 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite = |
| 686 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 687 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 688 | null, |
| 689 | null, |
| 690 | null, |
| 691 | 46, |
| 692 | pbd::FieldType.String, |
| 693 | false); |
| 694 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite = |
| 695 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 696 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 697 | null, |
| 698 | null, |
| 699 | null, |
| 700 | 47, |
| 701 | pbd::FieldType.String, |
| 702 | false); |
| 703 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite = |
| 704 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 705 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 706 | 41, |
| 707 | null, |
| 708 | null, |
| 709 | 48, |
| 710 | pbd::FieldType.Int32); |
| 711 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite = |
| 712 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 713 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 714 | 42L, |
| 715 | null, |
| 716 | null, |
| 717 | 49, |
| 718 | pbd::FieldType.Int64); |
| 719 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite = |
| 720 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 721 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 722 | 43, |
| 723 | null, |
| 724 | null, |
| 725 | 50, |
| 726 | pbd::FieldType.UInt32); |
| 727 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite = |
| 728 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 729 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 730 | 44UL, |
| 731 | null, |
| 732 | null, |
| 733 | 51, |
| 734 | pbd::FieldType.UInt64); |
| 735 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite = |
| 736 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 737 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 738 | -45, |
| 739 | null, |
| 740 | null, |
| 741 | 52, |
| 742 | pbd::FieldType.SInt32); |
| 743 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite = |
| 744 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 745 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 746 | 46, |
| 747 | null, |
| 748 | null, |
| 749 | 53, |
| 750 | pbd::FieldType.SInt64); |
| 751 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite = |
| 752 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>( |
| 753 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 754 | 47, |
| 755 | null, |
| 756 | null, |
| 757 | 54, |
| 758 | pbd::FieldType.Fixed32); |
| 759 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite = |
| 760 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>( |
| 761 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 762 | 48, |
| 763 | null, |
| 764 | null, |
| 765 | 55, |
| 766 | pbd::FieldType.Fixed64); |
| 767 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite = |
| 768 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>( |
| 769 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 770 | 49, |
| 771 | null, |
| 772 | null, |
| 773 | 56, |
| 774 | pbd::FieldType.SFixed32); |
| 775 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite = |
| 776 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>( |
| 777 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 778 | -50, |
| 779 | null, |
| 780 | null, |
| 781 | 57, |
| 782 | pbd::FieldType.SFixed64); |
| 783 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite = |
| 784 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>( |
| 785 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 786 | 51.5F, |
| 787 | null, |
| 788 | null, |
| 789 | 58, |
| 790 | pbd::FieldType.Float); |
| 791 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite = |
| 792 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>( |
| 793 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 794 | 52000D, |
| 795 | null, |
| 796 | null, |
| 797 | 59, |
| 798 | pbd::FieldType.Double); |
| 799 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite = |
| 800 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>( |
| 801 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 802 | true, |
| 803 | null, |
| 804 | null, |
| 805 | 60, |
| 806 | pbd::FieldType.Bool); |
| 807 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite = |
| 808 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 809 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 810 | "hello", |
| 811 | null, |
| 812 | null, |
| 813 | 61, |
| 814 | pbd::FieldType.String); |
| 815 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite = |
| 816 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>( |
| 817 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 818 | ByteString.FromBase64("d29ybGQ="), |
| 819 | null, |
| 820 | null, |
| 821 | 62, |
| 822 | pbd::FieldType.Bytes); |
| 823 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite = |
| 824 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>( |
| 825 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 826 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR, |
| 827 | null, |
| 828 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(), |
| 829 | 63, |
| 830 | pbd::FieldType.Enum); |
| 831 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite = |
| 832 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| 833 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 834 | global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR, |
| 835 | null, |
| 836 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| 837 | 64, |
| 838 | pbd::FieldType.Enum); |
| 839 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite = |
| 840 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>( |
| 841 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 842 | global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR, |
| 843 | null, |
| 844 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(), |
| 845 | 65, |
| 846 | pbd::FieldType.Enum); |
| 847 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite = |
| 848 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 849 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 850 | "abc", |
| 851 | null, |
| 852 | null, |
| 853 | 66, |
| 854 | pbd::FieldType.String); |
| 855 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite = |
| 856 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>( |
| 857 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance, |
| 858 | "123", |
| 859 | null, |
| 860 | null, |
| 861 | 67, |
| 862 | pbd::FieldType.String); |
| 863 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite = |
| 864 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| 865 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 866 | default(int), |
| 867 | null, |
| 868 | null, |
| 869 | 68, |
| 870 | pbd::FieldType.Int32, |
| 871 | true); |
| 872 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite = |
| 873 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| 874 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 875 | default(long), |
| 876 | null, |
| 877 | null, |
| 878 | 69, |
| 879 | pbd::FieldType.Int64, |
| 880 | true); |
| 881 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite = |
| 882 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( |
| 883 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 884 | default(uint), |
| 885 | null, |
| 886 | null, |
| 887 | 70, |
| 888 | pbd::FieldType.UInt32, |
| 889 | true); |
| 890 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite = |
| 891 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( |
| 892 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 893 | default(ulong), |
| 894 | null, |
| 895 | null, |
| 896 | 71, |
| 897 | pbd::FieldType.UInt64, |
| 898 | true); |
| 899 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite = |
| 900 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| 901 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 902 | default(int), |
| 903 | null, |
| 904 | null, |
| 905 | 72, |
| 906 | pbd::FieldType.SInt32, |
| 907 | true); |
| 908 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite = |
| 909 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| 910 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 911 | default(long), |
| 912 | null, |
| 913 | null, |
| 914 | 73, |
| 915 | pbd::FieldType.SInt64, |
| 916 | true); |
| 917 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite = |
| 918 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>( |
| 919 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 920 | default(uint), |
| 921 | null, |
| 922 | null, |
| 923 | 74, |
| 924 | pbd::FieldType.Fixed32, |
| 925 | true); |
| 926 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite = |
| 927 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>( |
| 928 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 929 | default(ulong), |
| 930 | null, |
| 931 | null, |
| 932 | 75, |
| 933 | pbd::FieldType.Fixed64, |
| 934 | true); |
| 935 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite = |
| 936 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>( |
| 937 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 938 | default(int), |
| 939 | null, |
| 940 | null, |
| 941 | 76, |
| 942 | pbd::FieldType.SFixed32, |
| 943 | true); |
| 944 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite = |
| 945 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>( |
| 946 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 947 | default(long), |
| 948 | null, |
| 949 | null, |
| 950 | 77, |
| 951 | pbd::FieldType.SFixed64, |
| 952 | true); |
| 953 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite = |
| 954 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>( |
| 955 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 956 | default(float), |
| 957 | null, |
| 958 | null, |
| 959 | 78, |
| 960 | pbd::FieldType.Float, |
| 961 | true); |
| 962 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite = |
| 963 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>( |
| 964 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 965 | default(double), |
| 966 | null, |
| 967 | null, |
| 968 | 79, |
| 969 | pbd::FieldType.Double, |
| 970 | true); |
| 971 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite = |
| 972 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>( |
| 973 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 974 | default(bool), |
| 975 | null, |
| 976 | null, |
| 977 | 80, |
| 978 | pbd::FieldType.Bool, |
| 979 | true); |
| 980 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite = |
| 981 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>( |
| 982 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance, |
| 983 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), |
| 984 | null, |
| 985 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(), |
| 986 | 81, |
| 987 | pbd::FieldType.Enum, |
| 988 | true); |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 989 | } |
| 990 | #endregion |
| 991 | |
| 992 | } |
| 993 | #region Enums |
| 994 | public enum ForeignEnumLite { |
| 995 | FOREIGN_LITE_FOO = 4, |
| 996 | FOREIGN_LITE_BAR = 5, |
| 997 | FOREIGN_LITE_BAZ = 6, |
| 998 | } |
| 999 | |
| 1000 | #endregion |
| 1001 | |
| 1002 | #region Messages |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1003 | public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1004 | private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial(); |
| 1005 | public static TestAllTypesLite DefaultInstance { |
| 1006 | get { return defaultInstance; } |
| 1007 | } |
| 1008 | |
| 1009 | public override TestAllTypesLite DefaultInstanceForType { |
| 1010 | get { return defaultInstance; } |
| 1011 | } |
| 1012 | |
| 1013 | protected override TestAllTypesLite ThisMessage { |
| 1014 | get { return this; } |
| 1015 | } |
| 1016 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1017 | #region Nested types |
| 1018 | public static class Types { |
| 1019 | public enum NestedEnum { |
| 1020 | FOO = 1, |
| 1021 | BAR = 2, |
| 1022 | BAZ = 3, |
| 1023 | } |
| 1024 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1025 | public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1026 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial(); |
| 1027 | public static NestedMessage DefaultInstance { |
| 1028 | get { return defaultInstance; } |
| 1029 | } |
| 1030 | |
| 1031 | public override NestedMessage DefaultInstanceForType { |
| 1032 | get { return defaultInstance; } |
| 1033 | } |
| 1034 | |
| 1035 | protected override NestedMessage ThisMessage { |
| 1036 | get { return this; } |
| 1037 | } |
| 1038 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1039 | public const int BbFieldNumber = 1; |
| 1040 | private bool hasBb; |
| 1041 | private int bb_ = 0; |
| 1042 | public bool HasBb { |
| 1043 | get { return hasBb; } |
| 1044 | } |
| 1045 | public int Bb { |
| 1046 | get { return bb_; } |
| 1047 | } |
| 1048 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1049 | public override bool IsInitialized { |
| 1050 | get { |
| 1051 | return true; |
| 1052 | } |
| 1053 | } |
| 1054 | |
| 1055 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1056 | int size = SerializedSize; |
| 1057 | if (HasBb) { |
| 1058 | output.WriteInt32(1, Bb); |
| 1059 | } |
| 1060 | } |
| 1061 | |
| 1062 | private int memoizedSerializedSize = -1; |
| 1063 | public override int SerializedSize { |
| 1064 | get { |
| 1065 | int size = memoizedSerializedSize; |
| 1066 | if (size != -1) return size; |
| 1067 | |
| 1068 | size = 0; |
| 1069 | if (HasBb) { |
| 1070 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb); |
| 1071 | } |
| 1072 | memoizedSerializedSize = size; |
| 1073 | return size; |
| 1074 | } |
| 1075 | } |
| 1076 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1077 | public static NestedMessage ParseFrom(pb::ByteString data) { |
| 1078 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1079 | } |
| 1080 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1081 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1082 | } |
| 1083 | public static NestedMessage ParseFrom(byte[] data) { |
| 1084 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1085 | } |
| 1086 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1087 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1088 | } |
| 1089 | public static NestedMessage ParseFrom(global::System.IO.Stream input) { |
| 1090 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1091 | } |
| 1092 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1093 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1094 | } |
| 1095 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1096 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1097 | } |
| 1098 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1099 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1100 | } |
| 1101 | public static NestedMessage ParseFrom(pb::CodedInputStream input) { |
| 1102 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1103 | } |
| 1104 | public static NestedMessage ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1105 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1106 | } |
| 1107 | public static Builder CreateBuilder() { return new Builder(); } |
| 1108 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 1109 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1110 | public static Builder CreateBuilder(NestedMessage prototype) { |
| 1111 | return (Builder) new Builder().MergeFrom(prototype); |
| 1112 | } |
| 1113 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1114 | public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1115 | protected override Builder ThisBuilder { |
| 1116 | get { return this; } |
| 1117 | } |
| 1118 | public Builder() {} |
| 1119 | |
| 1120 | NestedMessage result = new NestedMessage(); |
| 1121 | |
| 1122 | protected override NestedMessage MessageBeingBuilt { |
| 1123 | get { return result; } |
| 1124 | } |
| 1125 | |
| 1126 | public override Builder Clear() { |
| 1127 | result = new NestedMessage(); |
| 1128 | return this; |
| 1129 | } |
| 1130 | |
| 1131 | public override Builder Clone() { |
| 1132 | return new Builder().MergeFrom(result); |
| 1133 | } |
| 1134 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1135 | public override NestedMessage DefaultInstanceForType { |
| 1136 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; } |
| 1137 | } |
| 1138 | |
| 1139 | public override NestedMessage BuildPartial() { |
| 1140 | if (result == null) { |
| 1141 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1142 | } |
| 1143 | NestedMessage returnMe = result; |
| 1144 | result = null; |
| 1145 | return returnMe; |
| 1146 | } |
| 1147 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1148 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 1149 | if (other is NestedMessage) { |
| 1150 | return MergeFrom((NestedMessage) other); |
| 1151 | } else { |
| 1152 | base.MergeFrom(other); |
| 1153 | return this; |
| 1154 | } |
| 1155 | } |
| 1156 | |
| 1157 | public override Builder MergeFrom(NestedMessage other) { |
| 1158 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this; |
| 1159 | if (other.HasBb) { |
| 1160 | Bb = other.Bb; |
| 1161 | } |
| 1162 | return this; |
| 1163 | } |
| 1164 | |
| 1165 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1166 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1167 | } |
| 1168 | |
| 1169 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1170 | while (true) { |
| 1171 | uint tag = input.ReadTag(); |
| 1172 | switch (tag) { |
| 1173 | case 0: { |
| 1174 | return this; |
| 1175 | } |
| 1176 | default: { |
| 1177 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1178 | return this; |
| 1179 | } |
| 1180 | ParseUnknownField(input, extensionRegistry, tag); |
| 1181 | break; |
| 1182 | } |
| 1183 | case 8: { |
| 1184 | Bb = input.ReadInt32(); |
| 1185 | break; |
| 1186 | } |
| 1187 | } |
| 1188 | } |
| 1189 | } |
| 1190 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1191 | |
| 1192 | public bool HasBb { |
| 1193 | get { return result.HasBb; } |
| 1194 | } |
| 1195 | public int Bb { |
| 1196 | get { return result.Bb; } |
| 1197 | set { SetBb(value); } |
| 1198 | } |
| 1199 | public Builder SetBb(int value) { |
| 1200 | result.hasBb = true; |
| 1201 | result.bb_ = value; |
| 1202 | return this; |
| 1203 | } |
| 1204 | public Builder ClearBb() { |
| 1205 | result.hasBb = false; |
| 1206 | result.bb_ = 0; |
| 1207 | return this; |
| 1208 | } |
| 1209 | } |
| 1210 | static NestedMessage() { |
| 1211 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 1212 | } |
| 1213 | } |
| 1214 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1215 | public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1216 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial(); |
| 1217 | public static OptionalGroup DefaultInstance { |
| 1218 | get { return defaultInstance; } |
| 1219 | } |
| 1220 | |
| 1221 | public override OptionalGroup DefaultInstanceForType { |
| 1222 | get { return defaultInstance; } |
| 1223 | } |
| 1224 | |
| 1225 | protected override OptionalGroup ThisMessage { |
| 1226 | get { return this; } |
| 1227 | } |
| 1228 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1229 | public const int AFieldNumber = 17; |
| 1230 | private bool hasA; |
| 1231 | private int a_ = 0; |
| 1232 | public bool HasA { |
| 1233 | get { return hasA; } |
| 1234 | } |
| 1235 | public int A { |
| 1236 | get { return a_; } |
| 1237 | } |
| 1238 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1239 | public override bool IsInitialized { |
| 1240 | get { |
| 1241 | return true; |
| 1242 | } |
| 1243 | } |
| 1244 | |
| 1245 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1246 | int size = SerializedSize; |
| 1247 | if (HasA) { |
| 1248 | output.WriteInt32(17, A); |
| 1249 | } |
| 1250 | } |
| 1251 | |
| 1252 | private int memoizedSerializedSize = -1; |
| 1253 | public override int SerializedSize { |
| 1254 | get { |
| 1255 | int size = memoizedSerializedSize; |
| 1256 | if (size != -1) return size; |
| 1257 | |
| 1258 | size = 0; |
| 1259 | if (HasA) { |
| 1260 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 1261 | } |
| 1262 | memoizedSerializedSize = size; |
| 1263 | return size; |
| 1264 | } |
| 1265 | } |
| 1266 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1267 | public static OptionalGroup ParseFrom(pb::ByteString data) { |
| 1268 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1269 | } |
| 1270 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1271 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1272 | } |
| 1273 | public static OptionalGroup ParseFrom(byte[] data) { |
| 1274 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1275 | } |
| 1276 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1277 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1278 | } |
| 1279 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) { |
| 1280 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1281 | } |
| 1282 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1283 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1284 | } |
| 1285 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1286 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1287 | } |
| 1288 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1289 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1290 | } |
| 1291 | public static OptionalGroup ParseFrom(pb::CodedInputStream input) { |
| 1292 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1293 | } |
| 1294 | public static OptionalGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1295 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1296 | } |
| 1297 | public static Builder CreateBuilder() { return new Builder(); } |
| 1298 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 1299 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1300 | public static Builder CreateBuilder(OptionalGroup prototype) { |
| 1301 | return (Builder) new Builder().MergeFrom(prototype); |
| 1302 | } |
| 1303 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1304 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1305 | protected override Builder ThisBuilder { |
| 1306 | get { return this; } |
| 1307 | } |
| 1308 | public Builder() {} |
| 1309 | |
| 1310 | OptionalGroup result = new OptionalGroup(); |
| 1311 | |
| 1312 | protected override OptionalGroup MessageBeingBuilt { |
| 1313 | get { return result; } |
| 1314 | } |
| 1315 | |
| 1316 | public override Builder Clear() { |
| 1317 | result = new OptionalGroup(); |
| 1318 | return this; |
| 1319 | } |
| 1320 | |
| 1321 | public override Builder Clone() { |
| 1322 | return new Builder().MergeFrom(result); |
| 1323 | } |
| 1324 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1325 | public override OptionalGroup DefaultInstanceForType { |
| 1326 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; } |
| 1327 | } |
| 1328 | |
| 1329 | public override OptionalGroup BuildPartial() { |
| 1330 | if (result == null) { |
| 1331 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1332 | } |
| 1333 | OptionalGroup returnMe = result; |
| 1334 | result = null; |
| 1335 | return returnMe; |
| 1336 | } |
| 1337 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1338 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 1339 | if (other is OptionalGroup) { |
| 1340 | return MergeFrom((OptionalGroup) other); |
| 1341 | } else { |
| 1342 | base.MergeFrom(other); |
| 1343 | return this; |
| 1344 | } |
| 1345 | } |
| 1346 | |
| 1347 | public override Builder MergeFrom(OptionalGroup other) { |
| 1348 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this; |
| 1349 | if (other.HasA) { |
| 1350 | A = other.A; |
| 1351 | } |
| 1352 | return this; |
| 1353 | } |
| 1354 | |
| 1355 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1356 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1357 | } |
| 1358 | |
| 1359 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1360 | while (true) { |
| 1361 | uint tag = input.ReadTag(); |
| 1362 | switch (tag) { |
| 1363 | case 0: { |
| 1364 | return this; |
| 1365 | } |
| 1366 | default: { |
| 1367 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1368 | return this; |
| 1369 | } |
| 1370 | ParseUnknownField(input, extensionRegistry, tag); |
| 1371 | break; |
| 1372 | } |
| 1373 | case 136: { |
| 1374 | A = input.ReadInt32(); |
| 1375 | break; |
| 1376 | } |
| 1377 | } |
| 1378 | } |
| 1379 | } |
| 1380 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1381 | |
| 1382 | public bool HasA { |
| 1383 | get { return result.HasA; } |
| 1384 | } |
| 1385 | public int A { |
| 1386 | get { return result.A; } |
| 1387 | set { SetA(value); } |
| 1388 | } |
| 1389 | public Builder SetA(int value) { |
| 1390 | result.hasA = true; |
| 1391 | result.a_ = value; |
| 1392 | return this; |
| 1393 | } |
| 1394 | public Builder ClearA() { |
| 1395 | result.hasA = false; |
| 1396 | result.a_ = 0; |
| 1397 | return this; |
| 1398 | } |
| 1399 | } |
| 1400 | static OptionalGroup() { |
| 1401 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 1402 | } |
| 1403 | } |
| 1404 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1405 | public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1406 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial(); |
| 1407 | public static RepeatedGroup DefaultInstance { |
| 1408 | get { return defaultInstance; } |
| 1409 | } |
| 1410 | |
| 1411 | public override RepeatedGroup DefaultInstanceForType { |
| 1412 | get { return defaultInstance; } |
| 1413 | } |
| 1414 | |
| 1415 | protected override RepeatedGroup ThisMessage { |
| 1416 | get { return this; } |
| 1417 | } |
| 1418 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1419 | public const int AFieldNumber = 47; |
| 1420 | private bool hasA; |
| 1421 | private int a_ = 0; |
| 1422 | public bool HasA { |
| 1423 | get { return hasA; } |
| 1424 | } |
| 1425 | public int A { |
| 1426 | get { return a_; } |
| 1427 | } |
| 1428 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1429 | public override bool IsInitialized { |
| 1430 | get { |
| 1431 | return true; |
| 1432 | } |
| 1433 | } |
| 1434 | |
| 1435 | public override void WriteTo(pb::CodedOutputStream output) { |
| 1436 | int size = SerializedSize; |
| 1437 | if (HasA) { |
| 1438 | output.WriteInt32(47, A); |
| 1439 | } |
| 1440 | } |
| 1441 | |
| 1442 | private int memoizedSerializedSize = -1; |
| 1443 | public override int SerializedSize { |
| 1444 | get { |
| 1445 | int size = memoizedSerializedSize; |
| 1446 | if (size != -1) return size; |
| 1447 | |
| 1448 | size = 0; |
| 1449 | if (HasA) { |
| 1450 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 1451 | } |
| 1452 | memoizedSerializedSize = size; |
| 1453 | return size; |
| 1454 | } |
| 1455 | } |
| 1456 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1457 | public static RepeatedGroup ParseFrom(pb::ByteString data) { |
| 1458 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1459 | } |
| 1460 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 1461 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1462 | } |
| 1463 | public static RepeatedGroup ParseFrom(byte[] data) { |
| 1464 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 1465 | } |
| 1466 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 1467 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 1468 | } |
| 1469 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) { |
| 1470 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1471 | } |
| 1472 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1473 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1474 | } |
| 1475 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) { |
| 1476 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 1477 | } |
| 1478 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 1479 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 1480 | } |
| 1481 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input) { |
| 1482 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 1483 | } |
| 1484 | public static RepeatedGroup ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1485 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 1486 | } |
| 1487 | public static Builder CreateBuilder() { return new Builder(); } |
| 1488 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 1489 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 1490 | public static Builder CreateBuilder(RepeatedGroup prototype) { |
| 1491 | return (Builder) new Builder().MergeFrom(prototype); |
| 1492 | } |
| 1493 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1494 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1495 | protected override Builder ThisBuilder { |
| 1496 | get { return this; } |
| 1497 | } |
| 1498 | public Builder() {} |
| 1499 | |
| 1500 | RepeatedGroup result = new RepeatedGroup(); |
| 1501 | |
| 1502 | protected override RepeatedGroup MessageBeingBuilt { |
| 1503 | get { return result; } |
| 1504 | } |
| 1505 | |
| 1506 | public override Builder Clear() { |
| 1507 | result = new RepeatedGroup(); |
| 1508 | return this; |
| 1509 | } |
| 1510 | |
| 1511 | public override Builder Clone() { |
| 1512 | return new Builder().MergeFrom(result); |
| 1513 | } |
| 1514 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1515 | public override RepeatedGroup DefaultInstanceForType { |
| 1516 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; } |
| 1517 | } |
| 1518 | |
| 1519 | public override RepeatedGroup BuildPartial() { |
| 1520 | if (result == null) { |
| 1521 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 1522 | } |
| 1523 | RepeatedGroup returnMe = result; |
| 1524 | result = null; |
| 1525 | return returnMe; |
| 1526 | } |
| 1527 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 1528 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 1529 | if (other is RepeatedGroup) { |
| 1530 | return MergeFrom((RepeatedGroup) other); |
| 1531 | } else { |
| 1532 | base.MergeFrom(other); |
| 1533 | return this; |
| 1534 | } |
| 1535 | } |
| 1536 | |
| 1537 | public override Builder MergeFrom(RepeatedGroup other) { |
| 1538 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this; |
| 1539 | if (other.HasA) { |
| 1540 | A = other.A; |
| 1541 | } |
| 1542 | return this; |
| 1543 | } |
| 1544 | |
| 1545 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 1546 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 1547 | } |
| 1548 | |
| 1549 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 1550 | while (true) { |
| 1551 | uint tag = input.ReadTag(); |
| 1552 | switch (tag) { |
| 1553 | case 0: { |
| 1554 | return this; |
| 1555 | } |
| 1556 | default: { |
| 1557 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 1558 | return this; |
| 1559 | } |
| 1560 | ParseUnknownField(input, extensionRegistry, tag); |
| 1561 | break; |
| 1562 | } |
| 1563 | case 376: { |
| 1564 | A = input.ReadInt32(); |
| 1565 | break; |
| 1566 | } |
| 1567 | } |
| 1568 | } |
| 1569 | } |
| 1570 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 1571 | |
| 1572 | public bool HasA { |
| 1573 | get { return result.HasA; } |
| 1574 | } |
| 1575 | public int A { |
| 1576 | get { return result.A; } |
| 1577 | set { SetA(value); } |
| 1578 | } |
| 1579 | public Builder SetA(int value) { |
| 1580 | result.hasA = true; |
| 1581 | result.a_ = value; |
| 1582 | return this; |
| 1583 | } |
| 1584 | public Builder ClearA() { |
| 1585 | result.hasA = false; |
| 1586 | result.a_ = 0; |
| 1587 | return this; |
| 1588 | } |
| 1589 | } |
| 1590 | static RepeatedGroup() { |
| 1591 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 1592 | } |
| 1593 | } |
| 1594 | |
| 1595 | } |
| 1596 | #endregion |
| 1597 | |
| 1598 | public const int OptionalInt32FieldNumber = 1; |
| 1599 | private bool hasOptionalInt32; |
| 1600 | private int optionalInt32_ = 0; |
| 1601 | public bool HasOptionalInt32 { |
| 1602 | get { return hasOptionalInt32; } |
| 1603 | } |
| 1604 | public int OptionalInt32 { |
| 1605 | get { return optionalInt32_; } |
| 1606 | } |
| 1607 | |
| 1608 | public const int OptionalInt64FieldNumber = 2; |
| 1609 | private bool hasOptionalInt64; |
| 1610 | private long optionalInt64_ = 0L; |
| 1611 | public bool HasOptionalInt64 { |
| 1612 | get { return hasOptionalInt64; } |
| 1613 | } |
| 1614 | public long OptionalInt64 { |
| 1615 | get { return optionalInt64_; } |
| 1616 | } |
| 1617 | |
| 1618 | public const int OptionalUint32FieldNumber = 3; |
| 1619 | private bool hasOptionalUint32; |
| 1620 | private uint optionalUint32_ = 0; |
| 1621 | public bool HasOptionalUint32 { |
| 1622 | get { return hasOptionalUint32; } |
| 1623 | } |
| 1624 | [global::System.CLSCompliant(false)] |
| 1625 | public uint OptionalUint32 { |
| 1626 | get { return optionalUint32_; } |
| 1627 | } |
| 1628 | |
| 1629 | public const int OptionalUint64FieldNumber = 4; |
| 1630 | private bool hasOptionalUint64; |
| 1631 | private ulong optionalUint64_ = 0UL; |
| 1632 | public bool HasOptionalUint64 { |
| 1633 | get { return hasOptionalUint64; } |
| 1634 | } |
| 1635 | [global::System.CLSCompliant(false)] |
| 1636 | public ulong OptionalUint64 { |
| 1637 | get { return optionalUint64_; } |
| 1638 | } |
| 1639 | |
| 1640 | public const int OptionalSint32FieldNumber = 5; |
| 1641 | private bool hasOptionalSint32; |
| 1642 | private int optionalSint32_ = 0; |
| 1643 | public bool HasOptionalSint32 { |
| 1644 | get { return hasOptionalSint32; } |
| 1645 | } |
| 1646 | public int OptionalSint32 { |
| 1647 | get { return optionalSint32_; } |
| 1648 | } |
| 1649 | |
| 1650 | public const int OptionalSint64FieldNumber = 6; |
| 1651 | private bool hasOptionalSint64; |
| 1652 | private long optionalSint64_ = 0; |
| 1653 | public bool HasOptionalSint64 { |
| 1654 | get { return hasOptionalSint64; } |
| 1655 | } |
| 1656 | public long OptionalSint64 { |
| 1657 | get { return optionalSint64_; } |
| 1658 | } |
| 1659 | |
| 1660 | public const int OptionalFixed32FieldNumber = 7; |
| 1661 | private bool hasOptionalFixed32; |
| 1662 | private uint optionalFixed32_ = 0; |
| 1663 | public bool HasOptionalFixed32 { |
| 1664 | get { return hasOptionalFixed32; } |
| 1665 | } |
| 1666 | [global::System.CLSCompliant(false)] |
| 1667 | public uint OptionalFixed32 { |
| 1668 | get { return optionalFixed32_; } |
| 1669 | } |
| 1670 | |
| 1671 | public const int OptionalFixed64FieldNumber = 8; |
| 1672 | private bool hasOptionalFixed64; |
| 1673 | private ulong optionalFixed64_ = 0; |
| 1674 | public bool HasOptionalFixed64 { |
| 1675 | get { return hasOptionalFixed64; } |
| 1676 | } |
| 1677 | [global::System.CLSCompliant(false)] |
| 1678 | public ulong OptionalFixed64 { |
| 1679 | get { return optionalFixed64_; } |
| 1680 | } |
| 1681 | |
| 1682 | public const int OptionalSfixed32FieldNumber = 9; |
| 1683 | private bool hasOptionalSfixed32; |
| 1684 | private int optionalSfixed32_ = 0; |
| 1685 | public bool HasOptionalSfixed32 { |
| 1686 | get { return hasOptionalSfixed32; } |
| 1687 | } |
| 1688 | public int OptionalSfixed32 { |
| 1689 | get { return optionalSfixed32_; } |
| 1690 | } |
| 1691 | |
| 1692 | public const int OptionalSfixed64FieldNumber = 10; |
| 1693 | private bool hasOptionalSfixed64; |
| 1694 | private long optionalSfixed64_ = 0; |
| 1695 | public bool HasOptionalSfixed64 { |
| 1696 | get { return hasOptionalSfixed64; } |
| 1697 | } |
| 1698 | public long OptionalSfixed64 { |
| 1699 | get { return optionalSfixed64_; } |
| 1700 | } |
| 1701 | |
| 1702 | public const int OptionalFloatFieldNumber = 11; |
| 1703 | private bool hasOptionalFloat; |
| 1704 | private float optionalFloat_ = 0F; |
| 1705 | public bool HasOptionalFloat { |
| 1706 | get { return hasOptionalFloat; } |
| 1707 | } |
| 1708 | public float OptionalFloat { |
| 1709 | get { return optionalFloat_; } |
| 1710 | } |
| 1711 | |
| 1712 | public const int OptionalDoubleFieldNumber = 12; |
| 1713 | private bool hasOptionalDouble; |
| 1714 | private double optionalDouble_ = 0D; |
| 1715 | public bool HasOptionalDouble { |
| 1716 | get { return hasOptionalDouble; } |
| 1717 | } |
| 1718 | public double OptionalDouble { |
| 1719 | get { return optionalDouble_; } |
| 1720 | } |
| 1721 | |
| 1722 | public const int OptionalBoolFieldNumber = 13; |
| 1723 | private bool hasOptionalBool; |
| 1724 | private bool optionalBool_ = false; |
| 1725 | public bool HasOptionalBool { |
| 1726 | get { return hasOptionalBool; } |
| 1727 | } |
| 1728 | public bool OptionalBool { |
| 1729 | get { return optionalBool_; } |
| 1730 | } |
| 1731 | |
| 1732 | public const int OptionalStringFieldNumber = 14; |
| 1733 | private bool hasOptionalString; |
| 1734 | private string optionalString_ = ""; |
| 1735 | public bool HasOptionalString { |
| 1736 | get { return hasOptionalString; } |
| 1737 | } |
| 1738 | public string OptionalString { |
| 1739 | get { return optionalString_; } |
| 1740 | } |
| 1741 | |
| 1742 | public const int OptionalBytesFieldNumber = 15; |
| 1743 | private bool hasOptionalBytes; |
| 1744 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty; |
| 1745 | public bool HasOptionalBytes { |
| 1746 | get { return hasOptionalBytes; } |
| 1747 | } |
| 1748 | public pb::ByteString OptionalBytes { |
| 1749 | get { return optionalBytes_; } |
| 1750 | } |
| 1751 | |
| 1752 | public const int OptionalGroupFieldNumber = 16; |
| 1753 | private bool hasOptionalGroup; |
| 1754 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; |
| 1755 | public bool HasOptionalGroup { |
| 1756 | get { return hasOptionalGroup; } |
| 1757 | } |
| 1758 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup { |
| 1759 | get { return optionalGroup_; } |
| 1760 | } |
| 1761 | |
| 1762 | public const int OptionalNestedMessageFieldNumber = 18; |
| 1763 | private bool hasOptionalNestedMessage; |
| 1764 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; |
| 1765 | public bool HasOptionalNestedMessage { |
| 1766 | get { return hasOptionalNestedMessage; } |
| 1767 | } |
| 1768 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage { |
| 1769 | get { return optionalNestedMessage_; } |
| 1770 | } |
| 1771 | |
| 1772 | public const int OptionalForeignMessageFieldNumber = 19; |
| 1773 | private bool hasOptionalForeignMessage; |
| 1774 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; |
| 1775 | public bool HasOptionalForeignMessage { |
| 1776 | get { return hasOptionalForeignMessage; } |
| 1777 | } |
| 1778 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage { |
| 1779 | get { return optionalForeignMessage_; } |
| 1780 | } |
| 1781 | |
| 1782 | public const int OptionalImportMessageFieldNumber = 20; |
| 1783 | private bool hasOptionalImportMessage; |
| 1784 | private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance; |
| 1785 | public bool HasOptionalImportMessage { |
| 1786 | get { return hasOptionalImportMessage; } |
| 1787 | } |
| 1788 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage { |
| 1789 | get { return optionalImportMessage_; } |
| 1790 | } |
| 1791 | |
| 1792 | public const int OptionalNestedEnumFieldNumber = 21; |
| 1793 | private bool hasOptionalNestedEnum; |
| 1794 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO; |
| 1795 | public bool HasOptionalNestedEnum { |
| 1796 | get { return hasOptionalNestedEnum; } |
| 1797 | } |
| 1798 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum { |
| 1799 | get { return optionalNestedEnum_; } |
| 1800 | } |
| 1801 | |
| 1802 | public const int OptionalForeignEnumFieldNumber = 22; |
| 1803 | private bool hasOptionalForeignEnum; |
| 1804 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO; |
| 1805 | public bool HasOptionalForeignEnum { |
| 1806 | get { return hasOptionalForeignEnum; } |
| 1807 | } |
| 1808 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum { |
| 1809 | get { return optionalForeignEnum_; } |
| 1810 | } |
| 1811 | |
| 1812 | public const int OptionalImportEnumFieldNumber = 23; |
| 1813 | private bool hasOptionalImportEnum; |
| 1814 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO; |
| 1815 | public bool HasOptionalImportEnum { |
| 1816 | get { return hasOptionalImportEnum; } |
| 1817 | } |
| 1818 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum { |
| 1819 | get { return optionalImportEnum_; } |
| 1820 | } |
| 1821 | |
| 1822 | public const int OptionalStringPieceFieldNumber = 24; |
| 1823 | private bool hasOptionalStringPiece; |
| 1824 | private string optionalStringPiece_ = ""; |
| 1825 | public bool HasOptionalStringPiece { |
| 1826 | get { return hasOptionalStringPiece; } |
| 1827 | } |
| 1828 | public string OptionalStringPiece { |
| 1829 | get { return optionalStringPiece_; } |
| 1830 | } |
| 1831 | |
| 1832 | public const int OptionalCordFieldNumber = 25; |
| 1833 | private bool hasOptionalCord; |
| 1834 | private string optionalCord_ = ""; |
| 1835 | public bool HasOptionalCord { |
| 1836 | get { return hasOptionalCord; } |
| 1837 | } |
| 1838 | public string OptionalCord { |
| 1839 | get { return optionalCord_; } |
| 1840 | } |
| 1841 | |
| 1842 | public const int RepeatedInt32FieldNumber = 31; |
| 1843 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>(); |
| 1844 | public scg::IList<int> RepeatedInt32List { |
| 1845 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); } |
| 1846 | } |
| 1847 | public int RepeatedInt32Count { |
| 1848 | get { return repeatedInt32_.Count; } |
| 1849 | } |
| 1850 | public int GetRepeatedInt32(int index) { |
| 1851 | return repeatedInt32_[index]; |
| 1852 | } |
| 1853 | |
| 1854 | public const int RepeatedInt64FieldNumber = 32; |
| 1855 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>(); |
| 1856 | public scg::IList<long> RepeatedInt64List { |
| 1857 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); } |
| 1858 | } |
| 1859 | public int RepeatedInt64Count { |
| 1860 | get { return repeatedInt64_.Count; } |
| 1861 | } |
| 1862 | public long GetRepeatedInt64(int index) { |
| 1863 | return repeatedInt64_[index]; |
| 1864 | } |
| 1865 | |
| 1866 | public const int RepeatedUint32FieldNumber = 33; |
| 1867 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>(); |
| 1868 | [global::System.CLSCompliant(false)] |
| 1869 | public scg::IList<uint> RepeatedUint32List { |
| 1870 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); } |
| 1871 | } |
| 1872 | public int RepeatedUint32Count { |
| 1873 | get { return repeatedUint32_.Count; } |
| 1874 | } |
| 1875 | [global::System.CLSCompliant(false)] |
| 1876 | public uint GetRepeatedUint32(int index) { |
| 1877 | return repeatedUint32_[index]; |
| 1878 | } |
| 1879 | |
| 1880 | public const int RepeatedUint64FieldNumber = 34; |
| 1881 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>(); |
| 1882 | [global::System.CLSCompliant(false)] |
| 1883 | public scg::IList<ulong> RepeatedUint64List { |
| 1884 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); } |
| 1885 | } |
| 1886 | public int RepeatedUint64Count { |
| 1887 | get { return repeatedUint64_.Count; } |
| 1888 | } |
| 1889 | [global::System.CLSCompliant(false)] |
| 1890 | public ulong GetRepeatedUint64(int index) { |
| 1891 | return repeatedUint64_[index]; |
| 1892 | } |
| 1893 | |
| 1894 | public const int RepeatedSint32FieldNumber = 35; |
| 1895 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>(); |
| 1896 | public scg::IList<int> RepeatedSint32List { |
| 1897 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); } |
| 1898 | } |
| 1899 | public int RepeatedSint32Count { |
| 1900 | get { return repeatedSint32_.Count; } |
| 1901 | } |
| 1902 | public int GetRepeatedSint32(int index) { |
| 1903 | return repeatedSint32_[index]; |
| 1904 | } |
| 1905 | |
| 1906 | public const int RepeatedSint64FieldNumber = 36; |
| 1907 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>(); |
| 1908 | public scg::IList<long> RepeatedSint64List { |
| 1909 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); } |
| 1910 | } |
| 1911 | public int RepeatedSint64Count { |
| 1912 | get { return repeatedSint64_.Count; } |
| 1913 | } |
| 1914 | public long GetRepeatedSint64(int index) { |
| 1915 | return repeatedSint64_[index]; |
| 1916 | } |
| 1917 | |
| 1918 | public const int RepeatedFixed32FieldNumber = 37; |
| 1919 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>(); |
| 1920 | [global::System.CLSCompliant(false)] |
| 1921 | public scg::IList<uint> RepeatedFixed32List { |
| 1922 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); } |
| 1923 | } |
| 1924 | public int RepeatedFixed32Count { |
| 1925 | get { return repeatedFixed32_.Count; } |
| 1926 | } |
| 1927 | [global::System.CLSCompliant(false)] |
| 1928 | public uint GetRepeatedFixed32(int index) { |
| 1929 | return repeatedFixed32_[index]; |
| 1930 | } |
| 1931 | |
| 1932 | public const int RepeatedFixed64FieldNumber = 38; |
| 1933 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 1934 | [global::System.CLSCompliant(false)] |
| 1935 | public scg::IList<ulong> RepeatedFixed64List { |
| 1936 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); } |
| 1937 | } |
| 1938 | public int RepeatedFixed64Count { |
| 1939 | get { return repeatedFixed64_.Count; } |
| 1940 | } |
| 1941 | [global::System.CLSCompliant(false)] |
| 1942 | public ulong GetRepeatedFixed64(int index) { |
| 1943 | return repeatedFixed64_[index]; |
| 1944 | } |
| 1945 | |
| 1946 | public const int RepeatedSfixed32FieldNumber = 39; |
| 1947 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>(); |
| 1948 | public scg::IList<int> RepeatedSfixed32List { |
| 1949 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); } |
| 1950 | } |
| 1951 | public int RepeatedSfixed32Count { |
| 1952 | get { return repeatedSfixed32_.Count; } |
| 1953 | } |
| 1954 | public int GetRepeatedSfixed32(int index) { |
| 1955 | return repeatedSfixed32_[index]; |
| 1956 | } |
| 1957 | |
| 1958 | public const int RepeatedSfixed64FieldNumber = 40; |
| 1959 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>(); |
| 1960 | public scg::IList<long> RepeatedSfixed64List { |
| 1961 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); } |
| 1962 | } |
| 1963 | public int RepeatedSfixed64Count { |
| 1964 | get { return repeatedSfixed64_.Count; } |
| 1965 | } |
| 1966 | public long GetRepeatedSfixed64(int index) { |
| 1967 | return repeatedSfixed64_[index]; |
| 1968 | } |
| 1969 | |
| 1970 | public const int RepeatedFloatFieldNumber = 41; |
| 1971 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>(); |
| 1972 | public scg::IList<float> RepeatedFloatList { |
| 1973 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); } |
| 1974 | } |
| 1975 | public int RepeatedFloatCount { |
| 1976 | get { return repeatedFloat_.Count; } |
| 1977 | } |
| 1978 | public float GetRepeatedFloat(int index) { |
| 1979 | return repeatedFloat_[index]; |
| 1980 | } |
| 1981 | |
| 1982 | public const int RepeatedDoubleFieldNumber = 42; |
| 1983 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>(); |
| 1984 | public scg::IList<double> RepeatedDoubleList { |
| 1985 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); } |
| 1986 | } |
| 1987 | public int RepeatedDoubleCount { |
| 1988 | get { return repeatedDouble_.Count; } |
| 1989 | } |
| 1990 | public double GetRepeatedDouble(int index) { |
| 1991 | return repeatedDouble_[index]; |
| 1992 | } |
| 1993 | |
| 1994 | public const int RepeatedBoolFieldNumber = 43; |
| 1995 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>(); |
| 1996 | public scg::IList<bool> RepeatedBoolList { |
| 1997 | get { return pbc::Lists.AsReadOnly(repeatedBool_); } |
| 1998 | } |
| 1999 | public int RepeatedBoolCount { |
| 2000 | get { return repeatedBool_.Count; } |
| 2001 | } |
| 2002 | public bool GetRepeatedBool(int index) { |
| 2003 | return repeatedBool_[index]; |
| 2004 | } |
| 2005 | |
| 2006 | public const int RepeatedStringFieldNumber = 44; |
| 2007 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>(); |
| 2008 | public scg::IList<string> RepeatedStringList { |
| 2009 | get { return pbc::Lists.AsReadOnly(repeatedString_); } |
| 2010 | } |
| 2011 | public int RepeatedStringCount { |
| 2012 | get { return repeatedString_.Count; } |
| 2013 | } |
| 2014 | public string GetRepeatedString(int index) { |
| 2015 | return repeatedString_[index]; |
| 2016 | } |
| 2017 | |
| 2018 | public const int RepeatedBytesFieldNumber = 45; |
| 2019 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>(); |
| 2020 | public scg::IList<pb::ByteString> RepeatedBytesList { |
| 2021 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); } |
| 2022 | } |
| 2023 | public int RepeatedBytesCount { |
| 2024 | get { return repeatedBytes_.Count; } |
| 2025 | } |
| 2026 | public pb::ByteString GetRepeatedBytes(int index) { |
| 2027 | return repeatedBytes_[index]; |
| 2028 | } |
| 2029 | |
| 2030 | public const int RepeatedGroupFieldNumber = 46; |
| 2031 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>(); |
| 2032 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList { |
| 2033 | get { return repeatedGroup_; } |
| 2034 | } |
| 2035 | public int RepeatedGroupCount { |
| 2036 | get { return repeatedGroup_.Count; } |
| 2037 | } |
| 2038 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 2039 | return repeatedGroup_[index]; |
| 2040 | } |
| 2041 | |
| 2042 | public const int RepeatedNestedMessageFieldNumber = 48; |
| 2043 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(); |
| 2044 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList { |
| 2045 | get { return repeatedNestedMessage_; } |
| 2046 | } |
| 2047 | public int RepeatedNestedMessageCount { |
| 2048 | get { return repeatedNestedMessage_.Count; } |
| 2049 | } |
| 2050 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 2051 | return repeatedNestedMessage_[index]; |
| 2052 | } |
| 2053 | |
| 2054 | public const int RepeatedForeignMessageFieldNumber = 49; |
| 2055 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(); |
| 2056 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList { |
| 2057 | get { return repeatedForeignMessage_; } |
| 2058 | } |
| 2059 | public int RepeatedForeignMessageCount { |
| 2060 | get { return repeatedForeignMessage_.Count; } |
| 2061 | } |
| 2062 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) { |
| 2063 | return repeatedForeignMessage_[index]; |
| 2064 | } |
| 2065 | |
| 2066 | public const int RepeatedImportMessageFieldNumber = 50; |
| 2067 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(); |
| 2068 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList { |
| 2069 | get { return repeatedImportMessage_; } |
| 2070 | } |
| 2071 | public int RepeatedImportMessageCount { |
| 2072 | get { return repeatedImportMessage_.Count; } |
| 2073 | } |
| 2074 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) { |
| 2075 | return repeatedImportMessage_[index]; |
| 2076 | } |
| 2077 | |
| 2078 | public const int RepeatedNestedEnumFieldNumber = 51; |
| 2079 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(); |
| 2080 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList { |
| 2081 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); } |
| 2082 | } |
| 2083 | public int RepeatedNestedEnumCount { |
| 2084 | get { return repeatedNestedEnum_.Count; } |
| 2085 | } |
| 2086 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 2087 | return repeatedNestedEnum_[index]; |
| 2088 | } |
| 2089 | |
| 2090 | public const int RepeatedForeignEnumFieldNumber = 52; |
| 2091 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(); |
| 2092 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList { |
| 2093 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); } |
| 2094 | } |
| 2095 | public int RepeatedForeignEnumCount { |
| 2096 | get { return repeatedForeignEnum_.Count; } |
| 2097 | } |
| 2098 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) { |
| 2099 | return repeatedForeignEnum_[index]; |
| 2100 | } |
| 2101 | |
| 2102 | public const int RepeatedImportEnumFieldNumber = 53; |
| 2103 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(); |
| 2104 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList { |
| 2105 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); } |
| 2106 | } |
| 2107 | public int RepeatedImportEnumCount { |
| 2108 | get { return repeatedImportEnum_.Count; } |
| 2109 | } |
| 2110 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) { |
| 2111 | return repeatedImportEnum_[index]; |
| 2112 | } |
| 2113 | |
| 2114 | public const int RepeatedStringPieceFieldNumber = 54; |
| 2115 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>(); |
| 2116 | public scg::IList<string> RepeatedStringPieceList { |
| 2117 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); } |
| 2118 | } |
| 2119 | public int RepeatedStringPieceCount { |
| 2120 | get { return repeatedStringPiece_.Count; } |
| 2121 | } |
| 2122 | public string GetRepeatedStringPiece(int index) { |
| 2123 | return repeatedStringPiece_[index]; |
| 2124 | } |
| 2125 | |
| 2126 | public const int RepeatedCordFieldNumber = 55; |
| 2127 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>(); |
| 2128 | public scg::IList<string> RepeatedCordList { |
| 2129 | get { return pbc::Lists.AsReadOnly(repeatedCord_); } |
| 2130 | } |
| 2131 | public int RepeatedCordCount { |
| 2132 | get { return repeatedCord_.Count; } |
| 2133 | } |
| 2134 | public string GetRepeatedCord(int index) { |
| 2135 | return repeatedCord_[index]; |
| 2136 | } |
| 2137 | |
| 2138 | public const int DefaultInt32FieldNumber = 61; |
| 2139 | private bool hasDefaultInt32; |
| 2140 | private int defaultInt32_ = 41; |
| 2141 | public bool HasDefaultInt32 { |
| 2142 | get { return hasDefaultInt32; } |
| 2143 | } |
| 2144 | public int DefaultInt32 { |
| 2145 | get { return defaultInt32_; } |
| 2146 | } |
| 2147 | |
| 2148 | public const int DefaultInt64FieldNumber = 62; |
| 2149 | private bool hasDefaultInt64; |
| 2150 | private long defaultInt64_ = 42L; |
| 2151 | public bool HasDefaultInt64 { |
| 2152 | get { return hasDefaultInt64; } |
| 2153 | } |
| 2154 | public long DefaultInt64 { |
| 2155 | get { return defaultInt64_; } |
| 2156 | } |
| 2157 | |
| 2158 | public const int DefaultUint32FieldNumber = 63; |
| 2159 | private bool hasDefaultUint32; |
| 2160 | private uint defaultUint32_ = 43; |
| 2161 | public bool HasDefaultUint32 { |
| 2162 | get { return hasDefaultUint32; } |
| 2163 | } |
| 2164 | [global::System.CLSCompliant(false)] |
| 2165 | public uint DefaultUint32 { |
| 2166 | get { return defaultUint32_; } |
| 2167 | } |
| 2168 | |
| 2169 | public const int DefaultUint64FieldNumber = 64; |
| 2170 | private bool hasDefaultUint64; |
| 2171 | private ulong defaultUint64_ = 44UL; |
| 2172 | public bool HasDefaultUint64 { |
| 2173 | get { return hasDefaultUint64; } |
| 2174 | } |
| 2175 | [global::System.CLSCompliant(false)] |
| 2176 | public ulong DefaultUint64 { |
| 2177 | get { return defaultUint64_; } |
| 2178 | } |
| 2179 | |
| 2180 | public const int DefaultSint32FieldNumber = 65; |
| 2181 | private bool hasDefaultSint32; |
| 2182 | private int defaultSint32_ = -45; |
| 2183 | public bool HasDefaultSint32 { |
| 2184 | get { return hasDefaultSint32; } |
| 2185 | } |
| 2186 | public int DefaultSint32 { |
| 2187 | get { return defaultSint32_; } |
| 2188 | } |
| 2189 | |
| 2190 | public const int DefaultSint64FieldNumber = 66; |
| 2191 | private bool hasDefaultSint64; |
| 2192 | private long defaultSint64_ = 46; |
| 2193 | public bool HasDefaultSint64 { |
| 2194 | get { return hasDefaultSint64; } |
| 2195 | } |
| 2196 | public long DefaultSint64 { |
| 2197 | get { return defaultSint64_; } |
| 2198 | } |
| 2199 | |
| 2200 | public const int DefaultFixed32FieldNumber = 67; |
| 2201 | private bool hasDefaultFixed32; |
| 2202 | private uint defaultFixed32_ = 47; |
| 2203 | public bool HasDefaultFixed32 { |
| 2204 | get { return hasDefaultFixed32; } |
| 2205 | } |
| 2206 | [global::System.CLSCompliant(false)] |
| 2207 | public uint DefaultFixed32 { |
| 2208 | get { return defaultFixed32_; } |
| 2209 | } |
| 2210 | |
| 2211 | public const int DefaultFixed64FieldNumber = 68; |
| 2212 | private bool hasDefaultFixed64; |
| 2213 | private ulong defaultFixed64_ = 48; |
| 2214 | public bool HasDefaultFixed64 { |
| 2215 | get { return hasDefaultFixed64; } |
| 2216 | } |
| 2217 | [global::System.CLSCompliant(false)] |
| 2218 | public ulong DefaultFixed64 { |
| 2219 | get { return defaultFixed64_; } |
| 2220 | } |
| 2221 | |
| 2222 | public const int DefaultSfixed32FieldNumber = 69; |
| 2223 | private bool hasDefaultSfixed32; |
| 2224 | private int defaultSfixed32_ = 49; |
| 2225 | public bool HasDefaultSfixed32 { |
| 2226 | get { return hasDefaultSfixed32; } |
| 2227 | } |
| 2228 | public int DefaultSfixed32 { |
| 2229 | get { return defaultSfixed32_; } |
| 2230 | } |
| 2231 | |
| 2232 | public const int DefaultSfixed64FieldNumber = 70; |
| 2233 | private bool hasDefaultSfixed64; |
| 2234 | private long defaultSfixed64_ = -50; |
| 2235 | public bool HasDefaultSfixed64 { |
| 2236 | get { return hasDefaultSfixed64; } |
| 2237 | } |
| 2238 | public long DefaultSfixed64 { |
| 2239 | get { return defaultSfixed64_; } |
| 2240 | } |
| 2241 | |
| 2242 | public const int DefaultFloatFieldNumber = 71; |
| 2243 | private bool hasDefaultFloat; |
| 2244 | private float defaultFloat_ = 51.5F; |
| 2245 | public bool HasDefaultFloat { |
| 2246 | get { return hasDefaultFloat; } |
| 2247 | } |
| 2248 | public float DefaultFloat { |
| 2249 | get { return defaultFloat_; } |
| 2250 | } |
| 2251 | |
| 2252 | public const int DefaultDoubleFieldNumber = 72; |
| 2253 | private bool hasDefaultDouble; |
| 2254 | private double defaultDouble_ = 52000D; |
| 2255 | public bool HasDefaultDouble { |
| 2256 | get { return hasDefaultDouble; } |
| 2257 | } |
| 2258 | public double DefaultDouble { |
| 2259 | get { return defaultDouble_; } |
| 2260 | } |
| 2261 | |
| 2262 | public const int DefaultBoolFieldNumber = 73; |
| 2263 | private bool hasDefaultBool; |
| 2264 | private bool defaultBool_ = true; |
| 2265 | public bool HasDefaultBool { |
| 2266 | get { return hasDefaultBool; } |
| 2267 | } |
| 2268 | public bool DefaultBool { |
| 2269 | get { return defaultBool_; } |
| 2270 | } |
| 2271 | |
| 2272 | public const int DefaultStringFieldNumber = 74; |
| 2273 | private bool hasDefaultString; |
| 2274 | private string defaultString_ = "hello"; |
| 2275 | public bool HasDefaultString { |
| 2276 | get { return hasDefaultString; } |
| 2277 | } |
| 2278 | public string DefaultString { |
| 2279 | get { return defaultString_; } |
| 2280 | } |
| 2281 | |
| 2282 | public const int DefaultBytesFieldNumber = 75; |
| 2283 | private bool hasDefaultBytes; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 2284 | private pb::ByteString defaultBytes_ = ByteString.FromBase64("d29ybGQ="); |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 2285 | public bool HasDefaultBytes { |
| 2286 | get { return hasDefaultBytes; } |
| 2287 | } |
| 2288 | public pb::ByteString DefaultBytes { |
| 2289 | get { return defaultBytes_; } |
| 2290 | } |
| 2291 | |
| 2292 | public const int DefaultNestedEnumFieldNumber = 81; |
| 2293 | private bool hasDefaultNestedEnum; |
| 2294 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR; |
| 2295 | public bool HasDefaultNestedEnum { |
| 2296 | get { return hasDefaultNestedEnum; } |
| 2297 | } |
| 2298 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum { |
| 2299 | get { return defaultNestedEnum_; } |
| 2300 | } |
| 2301 | |
| 2302 | public const int DefaultForeignEnumFieldNumber = 82; |
| 2303 | private bool hasDefaultForeignEnum; |
| 2304 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR; |
| 2305 | public bool HasDefaultForeignEnum { |
| 2306 | get { return hasDefaultForeignEnum; } |
| 2307 | } |
| 2308 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum { |
| 2309 | get { return defaultForeignEnum_; } |
| 2310 | } |
| 2311 | |
| 2312 | public const int DefaultImportEnumFieldNumber = 83; |
| 2313 | private bool hasDefaultImportEnum; |
| 2314 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR; |
| 2315 | public bool HasDefaultImportEnum { |
| 2316 | get { return hasDefaultImportEnum; } |
| 2317 | } |
| 2318 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum { |
| 2319 | get { return defaultImportEnum_; } |
| 2320 | } |
| 2321 | |
| 2322 | public const int DefaultStringPieceFieldNumber = 84; |
| 2323 | private bool hasDefaultStringPiece; |
| 2324 | private string defaultStringPiece_ = "abc"; |
| 2325 | public bool HasDefaultStringPiece { |
| 2326 | get { return hasDefaultStringPiece; } |
| 2327 | } |
| 2328 | public string DefaultStringPiece { |
| 2329 | get { return defaultStringPiece_; } |
| 2330 | } |
| 2331 | |
| 2332 | public const int DefaultCordFieldNumber = 85; |
| 2333 | private bool hasDefaultCord; |
| 2334 | private string defaultCord_ = "123"; |
| 2335 | public bool HasDefaultCord { |
| 2336 | get { return hasDefaultCord; } |
| 2337 | } |
| 2338 | public string DefaultCord { |
| 2339 | get { return defaultCord_; } |
| 2340 | } |
| 2341 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 2342 | public override bool IsInitialized { |
| 2343 | get { |
| 2344 | return true; |
| 2345 | } |
| 2346 | } |
| 2347 | |
| 2348 | public override void WriteTo(pb::CodedOutputStream output) { |
| 2349 | int size = SerializedSize; |
| 2350 | if (HasOptionalInt32) { |
| 2351 | output.WriteInt32(1, OptionalInt32); |
| 2352 | } |
| 2353 | if (HasOptionalInt64) { |
| 2354 | output.WriteInt64(2, OptionalInt64); |
| 2355 | } |
| 2356 | if (HasOptionalUint32) { |
| 2357 | output.WriteUInt32(3, OptionalUint32); |
| 2358 | } |
| 2359 | if (HasOptionalUint64) { |
| 2360 | output.WriteUInt64(4, OptionalUint64); |
| 2361 | } |
| 2362 | if (HasOptionalSint32) { |
| 2363 | output.WriteSInt32(5, OptionalSint32); |
| 2364 | } |
| 2365 | if (HasOptionalSint64) { |
| 2366 | output.WriteSInt64(6, OptionalSint64); |
| 2367 | } |
| 2368 | if (HasOptionalFixed32) { |
| 2369 | output.WriteFixed32(7, OptionalFixed32); |
| 2370 | } |
| 2371 | if (HasOptionalFixed64) { |
| 2372 | output.WriteFixed64(8, OptionalFixed64); |
| 2373 | } |
| 2374 | if (HasOptionalSfixed32) { |
| 2375 | output.WriteSFixed32(9, OptionalSfixed32); |
| 2376 | } |
| 2377 | if (HasOptionalSfixed64) { |
| 2378 | output.WriteSFixed64(10, OptionalSfixed64); |
| 2379 | } |
| 2380 | if (HasOptionalFloat) { |
| 2381 | output.WriteFloat(11, OptionalFloat); |
| 2382 | } |
| 2383 | if (HasOptionalDouble) { |
| 2384 | output.WriteDouble(12, OptionalDouble); |
| 2385 | } |
| 2386 | if (HasOptionalBool) { |
| 2387 | output.WriteBool(13, OptionalBool); |
| 2388 | } |
| 2389 | if (HasOptionalString) { |
| 2390 | output.WriteString(14, OptionalString); |
| 2391 | } |
| 2392 | if (HasOptionalBytes) { |
| 2393 | output.WriteBytes(15, OptionalBytes); |
| 2394 | } |
| 2395 | if (HasOptionalGroup) { |
| 2396 | output.WriteGroup(16, OptionalGroup); |
| 2397 | } |
| 2398 | if (HasOptionalNestedMessage) { |
| 2399 | output.WriteMessage(18, OptionalNestedMessage); |
| 2400 | } |
| 2401 | if (HasOptionalForeignMessage) { |
| 2402 | output.WriteMessage(19, OptionalForeignMessage); |
| 2403 | } |
| 2404 | if (HasOptionalImportMessage) { |
| 2405 | output.WriteMessage(20, OptionalImportMessage); |
| 2406 | } |
| 2407 | if (HasOptionalNestedEnum) { |
| 2408 | output.WriteEnum(21, (int) OptionalNestedEnum); |
| 2409 | } |
| 2410 | if (HasOptionalForeignEnum) { |
| 2411 | output.WriteEnum(22, (int) OptionalForeignEnum); |
| 2412 | } |
| 2413 | if (HasOptionalImportEnum) { |
| 2414 | output.WriteEnum(23, (int) OptionalImportEnum); |
| 2415 | } |
| 2416 | if (HasOptionalStringPiece) { |
| 2417 | output.WriteString(24, OptionalStringPiece); |
| 2418 | } |
| 2419 | if (HasOptionalCord) { |
| 2420 | output.WriteString(25, OptionalCord); |
| 2421 | } |
| 2422 | if (repeatedInt32_.Count > 0) { |
| 2423 | foreach (int element in repeatedInt32_) { |
| 2424 | output.WriteInt32(31, element); |
| 2425 | } |
| 2426 | } |
| 2427 | if (repeatedInt64_.Count > 0) { |
| 2428 | foreach (long element in repeatedInt64_) { |
| 2429 | output.WriteInt64(32, element); |
| 2430 | } |
| 2431 | } |
| 2432 | if (repeatedUint32_.Count > 0) { |
| 2433 | foreach (uint element in repeatedUint32_) { |
| 2434 | output.WriteUInt32(33, element); |
| 2435 | } |
| 2436 | } |
| 2437 | if (repeatedUint64_.Count > 0) { |
| 2438 | foreach (ulong element in repeatedUint64_) { |
| 2439 | output.WriteUInt64(34, element); |
| 2440 | } |
| 2441 | } |
| 2442 | if (repeatedSint32_.Count > 0) { |
| 2443 | foreach (int element in repeatedSint32_) { |
| 2444 | output.WriteSInt32(35, element); |
| 2445 | } |
| 2446 | } |
| 2447 | if (repeatedSint64_.Count > 0) { |
| 2448 | foreach (long element in repeatedSint64_) { |
| 2449 | output.WriteSInt64(36, element); |
| 2450 | } |
| 2451 | } |
| 2452 | if (repeatedFixed32_.Count > 0) { |
| 2453 | foreach (uint element in repeatedFixed32_) { |
| 2454 | output.WriteFixed32(37, element); |
| 2455 | } |
| 2456 | } |
| 2457 | if (repeatedFixed64_.Count > 0) { |
| 2458 | foreach (ulong element in repeatedFixed64_) { |
| 2459 | output.WriteFixed64(38, element); |
| 2460 | } |
| 2461 | } |
| 2462 | if (repeatedSfixed32_.Count > 0) { |
| 2463 | foreach (int element in repeatedSfixed32_) { |
| 2464 | output.WriteSFixed32(39, element); |
| 2465 | } |
| 2466 | } |
| 2467 | if (repeatedSfixed64_.Count > 0) { |
| 2468 | foreach (long element in repeatedSfixed64_) { |
| 2469 | output.WriteSFixed64(40, element); |
| 2470 | } |
| 2471 | } |
| 2472 | if (repeatedFloat_.Count > 0) { |
| 2473 | foreach (float element in repeatedFloat_) { |
| 2474 | output.WriteFloat(41, element); |
| 2475 | } |
| 2476 | } |
| 2477 | if (repeatedDouble_.Count > 0) { |
| 2478 | foreach (double element in repeatedDouble_) { |
| 2479 | output.WriteDouble(42, element); |
| 2480 | } |
| 2481 | } |
| 2482 | if (repeatedBool_.Count > 0) { |
| 2483 | foreach (bool element in repeatedBool_) { |
| 2484 | output.WriteBool(43, element); |
| 2485 | } |
| 2486 | } |
| 2487 | if (repeatedString_.Count > 0) { |
| 2488 | foreach (string element in repeatedString_) { |
| 2489 | output.WriteString(44, element); |
| 2490 | } |
| 2491 | } |
| 2492 | if (repeatedBytes_.Count > 0) { |
| 2493 | foreach (pb::ByteString element in repeatedBytes_) { |
| 2494 | output.WriteBytes(45, element); |
| 2495 | } |
| 2496 | } |
| 2497 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2498 | output.WriteGroup(46, element); |
| 2499 | } |
| 2500 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2501 | output.WriteMessage(48, element); |
| 2502 | } |
| 2503 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) { |
| 2504 | output.WriteMessage(49, element); |
| 2505 | } |
| 2506 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) { |
| 2507 | output.WriteMessage(50, element); |
| 2508 | } |
| 2509 | if (repeatedNestedEnum_.Count > 0) { |
| 2510 | foreach (int element in repeatedNestedEnum_) { |
| 2511 | output.WriteEnum(51, element); |
| 2512 | } |
| 2513 | } |
| 2514 | if (repeatedForeignEnum_.Count > 0) { |
| 2515 | foreach (int element in repeatedForeignEnum_) { |
| 2516 | output.WriteEnum(52, element); |
| 2517 | } |
| 2518 | } |
| 2519 | if (repeatedImportEnum_.Count > 0) { |
| 2520 | foreach (int element in repeatedImportEnum_) { |
| 2521 | output.WriteEnum(53, element); |
| 2522 | } |
| 2523 | } |
| 2524 | if (repeatedStringPiece_.Count > 0) { |
| 2525 | foreach (string element in repeatedStringPiece_) { |
| 2526 | output.WriteString(54, element); |
| 2527 | } |
| 2528 | } |
| 2529 | if (repeatedCord_.Count > 0) { |
| 2530 | foreach (string element in repeatedCord_) { |
| 2531 | output.WriteString(55, element); |
| 2532 | } |
| 2533 | } |
| 2534 | if (HasDefaultInt32) { |
| 2535 | output.WriteInt32(61, DefaultInt32); |
| 2536 | } |
| 2537 | if (HasDefaultInt64) { |
| 2538 | output.WriteInt64(62, DefaultInt64); |
| 2539 | } |
| 2540 | if (HasDefaultUint32) { |
| 2541 | output.WriteUInt32(63, DefaultUint32); |
| 2542 | } |
| 2543 | if (HasDefaultUint64) { |
| 2544 | output.WriteUInt64(64, DefaultUint64); |
| 2545 | } |
| 2546 | if (HasDefaultSint32) { |
| 2547 | output.WriteSInt32(65, DefaultSint32); |
| 2548 | } |
| 2549 | if (HasDefaultSint64) { |
| 2550 | output.WriteSInt64(66, DefaultSint64); |
| 2551 | } |
| 2552 | if (HasDefaultFixed32) { |
| 2553 | output.WriteFixed32(67, DefaultFixed32); |
| 2554 | } |
| 2555 | if (HasDefaultFixed64) { |
| 2556 | output.WriteFixed64(68, DefaultFixed64); |
| 2557 | } |
| 2558 | if (HasDefaultSfixed32) { |
| 2559 | output.WriteSFixed32(69, DefaultSfixed32); |
| 2560 | } |
| 2561 | if (HasDefaultSfixed64) { |
| 2562 | output.WriteSFixed64(70, DefaultSfixed64); |
| 2563 | } |
| 2564 | if (HasDefaultFloat) { |
| 2565 | output.WriteFloat(71, DefaultFloat); |
| 2566 | } |
| 2567 | if (HasDefaultDouble) { |
| 2568 | output.WriteDouble(72, DefaultDouble); |
| 2569 | } |
| 2570 | if (HasDefaultBool) { |
| 2571 | output.WriteBool(73, DefaultBool); |
| 2572 | } |
| 2573 | if (HasDefaultString) { |
| 2574 | output.WriteString(74, DefaultString); |
| 2575 | } |
| 2576 | if (HasDefaultBytes) { |
| 2577 | output.WriteBytes(75, DefaultBytes); |
| 2578 | } |
| 2579 | if (HasDefaultNestedEnum) { |
| 2580 | output.WriteEnum(81, (int) DefaultNestedEnum); |
| 2581 | } |
| 2582 | if (HasDefaultForeignEnum) { |
| 2583 | output.WriteEnum(82, (int) DefaultForeignEnum); |
| 2584 | } |
| 2585 | if (HasDefaultImportEnum) { |
| 2586 | output.WriteEnum(83, (int) DefaultImportEnum); |
| 2587 | } |
| 2588 | if (HasDefaultStringPiece) { |
| 2589 | output.WriteString(84, DefaultStringPiece); |
| 2590 | } |
| 2591 | if (HasDefaultCord) { |
| 2592 | output.WriteString(85, DefaultCord); |
| 2593 | } |
| 2594 | } |
| 2595 | |
| 2596 | private int memoizedSerializedSize = -1; |
| 2597 | public override int SerializedSize { |
| 2598 | get { |
| 2599 | int size = memoizedSerializedSize; |
| 2600 | if (size != -1) return size; |
| 2601 | |
| 2602 | size = 0; |
| 2603 | if (HasOptionalInt32) { |
| 2604 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32); |
| 2605 | } |
| 2606 | if (HasOptionalInt64) { |
| 2607 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64); |
| 2608 | } |
| 2609 | if (HasOptionalUint32) { |
| 2610 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32); |
| 2611 | } |
| 2612 | if (HasOptionalUint64) { |
| 2613 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64); |
| 2614 | } |
| 2615 | if (HasOptionalSint32) { |
| 2616 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32); |
| 2617 | } |
| 2618 | if (HasOptionalSint64) { |
| 2619 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64); |
| 2620 | } |
| 2621 | if (HasOptionalFixed32) { |
| 2622 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32); |
| 2623 | } |
| 2624 | if (HasOptionalFixed64) { |
| 2625 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64); |
| 2626 | } |
| 2627 | if (HasOptionalSfixed32) { |
| 2628 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32); |
| 2629 | } |
| 2630 | if (HasOptionalSfixed64) { |
| 2631 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64); |
| 2632 | } |
| 2633 | if (HasOptionalFloat) { |
| 2634 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat); |
| 2635 | } |
| 2636 | if (HasOptionalDouble) { |
| 2637 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble); |
| 2638 | } |
| 2639 | if (HasOptionalBool) { |
| 2640 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool); |
| 2641 | } |
| 2642 | if (HasOptionalString) { |
| 2643 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString); |
| 2644 | } |
| 2645 | if (HasOptionalBytes) { |
| 2646 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes); |
| 2647 | } |
| 2648 | if (HasOptionalGroup) { |
| 2649 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup); |
| 2650 | } |
| 2651 | if (HasOptionalNestedMessage) { |
| 2652 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage); |
| 2653 | } |
| 2654 | if (HasOptionalForeignMessage) { |
| 2655 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage); |
| 2656 | } |
| 2657 | if (HasOptionalImportMessage) { |
| 2658 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage); |
| 2659 | } |
| 2660 | if (HasOptionalNestedEnum) { |
| 2661 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum); |
| 2662 | } |
| 2663 | if (HasOptionalForeignEnum) { |
| 2664 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum); |
| 2665 | } |
| 2666 | if (HasOptionalImportEnum) { |
| 2667 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum); |
| 2668 | } |
| 2669 | if (HasOptionalStringPiece) { |
| 2670 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece); |
| 2671 | } |
| 2672 | if (HasOptionalCord) { |
| 2673 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord); |
| 2674 | } |
| 2675 | { |
| 2676 | int dataSize = 0; |
| 2677 | foreach (int element in RepeatedInt32List) { |
| 2678 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 2679 | } |
| 2680 | size += dataSize; |
| 2681 | size += 2 * repeatedInt32_.Count; |
| 2682 | } |
| 2683 | { |
| 2684 | int dataSize = 0; |
| 2685 | foreach (long element in RepeatedInt64List) { |
| 2686 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| 2687 | } |
| 2688 | size += dataSize; |
| 2689 | size += 2 * repeatedInt64_.Count; |
| 2690 | } |
| 2691 | { |
| 2692 | int dataSize = 0; |
| 2693 | foreach (uint element in RepeatedUint32List) { |
| 2694 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| 2695 | } |
| 2696 | size += dataSize; |
| 2697 | size += 2 * repeatedUint32_.Count; |
| 2698 | } |
| 2699 | { |
| 2700 | int dataSize = 0; |
| 2701 | foreach (ulong element in RepeatedUint64List) { |
| 2702 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| 2703 | } |
| 2704 | size += dataSize; |
| 2705 | size += 2 * repeatedUint64_.Count; |
| 2706 | } |
| 2707 | { |
| 2708 | int dataSize = 0; |
| 2709 | foreach (int element in RepeatedSint32List) { |
| 2710 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| 2711 | } |
| 2712 | size += dataSize; |
| 2713 | size += 2 * repeatedSint32_.Count; |
| 2714 | } |
| 2715 | { |
| 2716 | int dataSize = 0; |
| 2717 | foreach (long element in RepeatedSint64List) { |
| 2718 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| 2719 | } |
| 2720 | size += dataSize; |
| 2721 | size += 2 * repeatedSint64_.Count; |
| 2722 | } |
| 2723 | { |
| 2724 | int dataSize = 0; |
| 2725 | dataSize = 4 * repeatedFixed32_.Count; |
| 2726 | size += dataSize; |
| 2727 | size += 2 * repeatedFixed32_.Count; |
| 2728 | } |
| 2729 | { |
| 2730 | int dataSize = 0; |
| 2731 | dataSize = 8 * repeatedFixed64_.Count; |
| 2732 | size += dataSize; |
| 2733 | size += 2 * repeatedFixed64_.Count; |
| 2734 | } |
| 2735 | { |
| 2736 | int dataSize = 0; |
| 2737 | dataSize = 4 * repeatedSfixed32_.Count; |
| 2738 | size += dataSize; |
| 2739 | size += 2 * repeatedSfixed32_.Count; |
| 2740 | } |
| 2741 | { |
| 2742 | int dataSize = 0; |
| 2743 | dataSize = 8 * repeatedSfixed64_.Count; |
| 2744 | size += dataSize; |
| 2745 | size += 2 * repeatedSfixed64_.Count; |
| 2746 | } |
| 2747 | { |
| 2748 | int dataSize = 0; |
| 2749 | dataSize = 4 * repeatedFloat_.Count; |
| 2750 | size += dataSize; |
| 2751 | size += 2 * repeatedFloat_.Count; |
| 2752 | } |
| 2753 | { |
| 2754 | int dataSize = 0; |
| 2755 | dataSize = 8 * repeatedDouble_.Count; |
| 2756 | size += dataSize; |
| 2757 | size += 2 * repeatedDouble_.Count; |
| 2758 | } |
| 2759 | { |
| 2760 | int dataSize = 0; |
| 2761 | dataSize = 1 * repeatedBool_.Count; |
| 2762 | size += dataSize; |
| 2763 | size += 2 * repeatedBool_.Count; |
| 2764 | } |
| 2765 | { |
| 2766 | int dataSize = 0; |
| 2767 | foreach (string element in RepeatedStringList) { |
| 2768 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2769 | } |
| 2770 | size += dataSize; |
| 2771 | size += 2 * repeatedString_.Count; |
| 2772 | } |
| 2773 | { |
| 2774 | int dataSize = 0; |
| 2775 | foreach (pb::ByteString element in RepeatedBytesList) { |
| 2776 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element); |
| 2777 | } |
| 2778 | size += dataSize; |
| 2779 | size += 2 * repeatedBytes_.Count; |
| 2780 | } |
| 2781 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) { |
| 2782 | size += pb::CodedOutputStream.ComputeGroupSize(46, element); |
| 2783 | } |
| 2784 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) { |
| 2785 | size += pb::CodedOutputStream.ComputeMessageSize(48, element); |
| 2786 | } |
| 2787 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) { |
| 2788 | size += pb::CodedOutputStream.ComputeMessageSize(49, element); |
| 2789 | } |
| 2790 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) { |
| 2791 | size += pb::CodedOutputStream.ComputeMessageSize(50, element); |
| 2792 | } |
| 2793 | { |
| 2794 | int dataSize = 0; |
| 2795 | if (repeatedNestedEnum_.Count > 0) { |
| 2796 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) { |
| 2797 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2798 | } |
| 2799 | size += dataSize; |
| 2800 | size += 2 * repeatedNestedEnum_.Count; |
| 2801 | } |
| 2802 | } |
| 2803 | { |
| 2804 | int dataSize = 0; |
| 2805 | if (repeatedForeignEnum_.Count > 0) { |
| 2806 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) { |
| 2807 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2808 | } |
| 2809 | size += dataSize; |
| 2810 | size += 2 * repeatedForeignEnum_.Count; |
| 2811 | } |
| 2812 | } |
| 2813 | { |
| 2814 | int dataSize = 0; |
| 2815 | if (repeatedImportEnum_.Count > 0) { |
| 2816 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) { |
| 2817 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 2818 | } |
| 2819 | size += dataSize; |
| 2820 | size += 2 * repeatedImportEnum_.Count; |
| 2821 | } |
| 2822 | } |
| 2823 | { |
| 2824 | int dataSize = 0; |
| 2825 | foreach (string element in RepeatedStringPieceList) { |
| 2826 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2827 | } |
| 2828 | size += dataSize; |
| 2829 | size += 2 * repeatedStringPiece_.Count; |
| 2830 | } |
| 2831 | { |
| 2832 | int dataSize = 0; |
| 2833 | foreach (string element in RepeatedCordList) { |
| 2834 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element); |
| 2835 | } |
| 2836 | size += dataSize; |
| 2837 | size += 2 * repeatedCord_.Count; |
| 2838 | } |
| 2839 | if (HasDefaultInt32) { |
| 2840 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32); |
| 2841 | } |
| 2842 | if (HasDefaultInt64) { |
| 2843 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64); |
| 2844 | } |
| 2845 | if (HasDefaultUint32) { |
| 2846 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32); |
| 2847 | } |
| 2848 | if (HasDefaultUint64) { |
| 2849 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64); |
| 2850 | } |
| 2851 | if (HasDefaultSint32) { |
| 2852 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32); |
| 2853 | } |
| 2854 | if (HasDefaultSint64) { |
| 2855 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64); |
| 2856 | } |
| 2857 | if (HasDefaultFixed32) { |
| 2858 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32); |
| 2859 | } |
| 2860 | if (HasDefaultFixed64) { |
| 2861 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64); |
| 2862 | } |
| 2863 | if (HasDefaultSfixed32) { |
| 2864 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32); |
| 2865 | } |
| 2866 | if (HasDefaultSfixed64) { |
| 2867 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64); |
| 2868 | } |
| 2869 | if (HasDefaultFloat) { |
| 2870 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat); |
| 2871 | } |
| 2872 | if (HasDefaultDouble) { |
| 2873 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble); |
| 2874 | } |
| 2875 | if (HasDefaultBool) { |
| 2876 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool); |
| 2877 | } |
| 2878 | if (HasDefaultString) { |
| 2879 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString); |
| 2880 | } |
| 2881 | if (HasDefaultBytes) { |
| 2882 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes); |
| 2883 | } |
| 2884 | if (HasDefaultNestedEnum) { |
| 2885 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum); |
| 2886 | } |
| 2887 | if (HasDefaultForeignEnum) { |
| 2888 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum); |
| 2889 | } |
| 2890 | if (HasDefaultImportEnum) { |
| 2891 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum); |
| 2892 | } |
| 2893 | if (HasDefaultStringPiece) { |
| 2894 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece); |
| 2895 | } |
| 2896 | if (HasDefaultCord) { |
| 2897 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord); |
| 2898 | } |
| 2899 | memoizedSerializedSize = size; |
| 2900 | return size; |
| 2901 | } |
| 2902 | } |
| 2903 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 2904 | public static TestAllTypesLite ParseFrom(pb::ByteString data) { |
| 2905 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2906 | } |
| 2907 | public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 2908 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2909 | } |
| 2910 | public static TestAllTypesLite ParseFrom(byte[] data) { |
| 2911 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 2912 | } |
| 2913 | public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 2914 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 2915 | } |
| 2916 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) { |
| 2917 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2918 | } |
| 2919 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2920 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2921 | } |
| 2922 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 2923 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 2924 | } |
| 2925 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 2926 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 2927 | } |
| 2928 | public static TestAllTypesLite ParseFrom(pb::CodedInputStream input) { |
| 2929 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 2930 | } |
| 2931 | public static TestAllTypesLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 2932 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 2933 | } |
| 2934 | public static Builder CreateBuilder() { return new Builder(); } |
| 2935 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 2936 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 2937 | public static Builder CreateBuilder(TestAllTypesLite prototype) { |
| 2938 | return (Builder) new Builder().MergeFrom(prototype); |
| 2939 | } |
| 2940 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 2941 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 2942 | protected override Builder ThisBuilder { |
| 2943 | get { return this; } |
| 2944 | } |
| 2945 | public Builder() {} |
| 2946 | |
| 2947 | TestAllTypesLite result = new TestAllTypesLite(); |
| 2948 | |
| 2949 | protected override TestAllTypesLite MessageBeingBuilt { |
| 2950 | get { return result; } |
| 2951 | } |
| 2952 | |
| 2953 | public override Builder Clear() { |
| 2954 | result = new TestAllTypesLite(); |
| 2955 | return this; |
| 2956 | } |
| 2957 | |
| 2958 | public override Builder Clone() { |
| 2959 | return new Builder().MergeFrom(result); |
| 2960 | } |
| 2961 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 2962 | public override TestAllTypesLite DefaultInstanceForType { |
| 2963 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; } |
| 2964 | } |
| 2965 | |
| 2966 | public override TestAllTypesLite BuildPartial() { |
| 2967 | if (result == null) { |
| 2968 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 2969 | } |
| 2970 | result.repeatedInt32_.MakeReadOnly(); |
| 2971 | result.repeatedInt64_.MakeReadOnly(); |
| 2972 | result.repeatedUint32_.MakeReadOnly(); |
| 2973 | result.repeatedUint64_.MakeReadOnly(); |
| 2974 | result.repeatedSint32_.MakeReadOnly(); |
| 2975 | result.repeatedSint64_.MakeReadOnly(); |
| 2976 | result.repeatedFixed32_.MakeReadOnly(); |
| 2977 | result.repeatedFixed64_.MakeReadOnly(); |
| 2978 | result.repeatedSfixed32_.MakeReadOnly(); |
| 2979 | result.repeatedSfixed64_.MakeReadOnly(); |
| 2980 | result.repeatedFloat_.MakeReadOnly(); |
| 2981 | result.repeatedDouble_.MakeReadOnly(); |
| 2982 | result.repeatedBool_.MakeReadOnly(); |
| 2983 | result.repeatedString_.MakeReadOnly(); |
| 2984 | result.repeatedBytes_.MakeReadOnly(); |
| 2985 | result.repeatedGroup_.MakeReadOnly(); |
| 2986 | result.repeatedNestedMessage_.MakeReadOnly(); |
| 2987 | result.repeatedForeignMessage_.MakeReadOnly(); |
| 2988 | result.repeatedImportMessage_.MakeReadOnly(); |
| 2989 | result.repeatedNestedEnum_.MakeReadOnly(); |
| 2990 | result.repeatedForeignEnum_.MakeReadOnly(); |
| 2991 | result.repeatedImportEnum_.MakeReadOnly(); |
| 2992 | result.repeatedStringPiece_.MakeReadOnly(); |
| 2993 | result.repeatedCord_.MakeReadOnly(); |
| 2994 | TestAllTypesLite returnMe = result; |
| 2995 | result = null; |
| 2996 | return returnMe; |
| 2997 | } |
| 2998 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 2999 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 3000 | if (other is TestAllTypesLite) { |
| 3001 | return MergeFrom((TestAllTypesLite) other); |
| 3002 | } else { |
| 3003 | base.MergeFrom(other); |
| 3004 | return this; |
| 3005 | } |
| 3006 | } |
| 3007 | |
| 3008 | public override Builder MergeFrom(TestAllTypesLite other) { |
| 3009 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this; |
| 3010 | if (other.HasOptionalInt32) { |
| 3011 | OptionalInt32 = other.OptionalInt32; |
| 3012 | } |
| 3013 | if (other.HasOptionalInt64) { |
| 3014 | OptionalInt64 = other.OptionalInt64; |
| 3015 | } |
| 3016 | if (other.HasOptionalUint32) { |
| 3017 | OptionalUint32 = other.OptionalUint32; |
| 3018 | } |
| 3019 | if (other.HasOptionalUint64) { |
| 3020 | OptionalUint64 = other.OptionalUint64; |
| 3021 | } |
| 3022 | if (other.HasOptionalSint32) { |
| 3023 | OptionalSint32 = other.OptionalSint32; |
| 3024 | } |
| 3025 | if (other.HasOptionalSint64) { |
| 3026 | OptionalSint64 = other.OptionalSint64; |
| 3027 | } |
| 3028 | if (other.HasOptionalFixed32) { |
| 3029 | OptionalFixed32 = other.OptionalFixed32; |
| 3030 | } |
| 3031 | if (other.HasOptionalFixed64) { |
| 3032 | OptionalFixed64 = other.OptionalFixed64; |
| 3033 | } |
| 3034 | if (other.HasOptionalSfixed32) { |
| 3035 | OptionalSfixed32 = other.OptionalSfixed32; |
| 3036 | } |
| 3037 | if (other.HasOptionalSfixed64) { |
| 3038 | OptionalSfixed64 = other.OptionalSfixed64; |
| 3039 | } |
| 3040 | if (other.HasOptionalFloat) { |
| 3041 | OptionalFloat = other.OptionalFloat; |
| 3042 | } |
| 3043 | if (other.HasOptionalDouble) { |
| 3044 | OptionalDouble = other.OptionalDouble; |
| 3045 | } |
| 3046 | if (other.HasOptionalBool) { |
| 3047 | OptionalBool = other.OptionalBool; |
| 3048 | } |
| 3049 | if (other.HasOptionalString) { |
| 3050 | OptionalString = other.OptionalString; |
| 3051 | } |
| 3052 | if (other.HasOptionalBytes) { |
| 3053 | OptionalBytes = other.OptionalBytes; |
| 3054 | } |
| 3055 | if (other.HasOptionalGroup) { |
| 3056 | MergeOptionalGroup(other.OptionalGroup); |
| 3057 | } |
| 3058 | if (other.HasOptionalNestedMessage) { |
| 3059 | MergeOptionalNestedMessage(other.OptionalNestedMessage); |
| 3060 | } |
| 3061 | if (other.HasOptionalForeignMessage) { |
| 3062 | MergeOptionalForeignMessage(other.OptionalForeignMessage); |
| 3063 | } |
| 3064 | if (other.HasOptionalImportMessage) { |
| 3065 | MergeOptionalImportMessage(other.OptionalImportMessage); |
| 3066 | } |
| 3067 | if (other.HasOptionalNestedEnum) { |
| 3068 | OptionalNestedEnum = other.OptionalNestedEnum; |
| 3069 | } |
| 3070 | if (other.HasOptionalForeignEnum) { |
| 3071 | OptionalForeignEnum = other.OptionalForeignEnum; |
| 3072 | } |
| 3073 | if (other.HasOptionalImportEnum) { |
| 3074 | OptionalImportEnum = other.OptionalImportEnum; |
| 3075 | } |
| 3076 | if (other.HasOptionalStringPiece) { |
| 3077 | OptionalStringPiece = other.OptionalStringPiece; |
| 3078 | } |
| 3079 | if (other.HasOptionalCord) { |
| 3080 | OptionalCord = other.OptionalCord; |
| 3081 | } |
| 3082 | if (other.repeatedInt32_.Count != 0) { |
| 3083 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_); |
| 3084 | } |
| 3085 | if (other.repeatedInt64_.Count != 0) { |
| 3086 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_); |
| 3087 | } |
| 3088 | if (other.repeatedUint32_.Count != 0) { |
| 3089 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_); |
| 3090 | } |
| 3091 | if (other.repeatedUint64_.Count != 0) { |
| 3092 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_); |
| 3093 | } |
| 3094 | if (other.repeatedSint32_.Count != 0) { |
| 3095 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_); |
| 3096 | } |
| 3097 | if (other.repeatedSint64_.Count != 0) { |
| 3098 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_); |
| 3099 | } |
| 3100 | if (other.repeatedFixed32_.Count != 0) { |
| 3101 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_); |
| 3102 | } |
| 3103 | if (other.repeatedFixed64_.Count != 0) { |
| 3104 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_); |
| 3105 | } |
| 3106 | if (other.repeatedSfixed32_.Count != 0) { |
| 3107 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_); |
| 3108 | } |
| 3109 | if (other.repeatedSfixed64_.Count != 0) { |
| 3110 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_); |
| 3111 | } |
| 3112 | if (other.repeatedFloat_.Count != 0) { |
| 3113 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_); |
| 3114 | } |
| 3115 | if (other.repeatedDouble_.Count != 0) { |
| 3116 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_); |
| 3117 | } |
| 3118 | if (other.repeatedBool_.Count != 0) { |
| 3119 | base.AddRange(other.repeatedBool_, result.repeatedBool_); |
| 3120 | } |
| 3121 | if (other.repeatedString_.Count != 0) { |
| 3122 | base.AddRange(other.repeatedString_, result.repeatedString_); |
| 3123 | } |
| 3124 | if (other.repeatedBytes_.Count != 0) { |
| 3125 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_); |
| 3126 | } |
| 3127 | if (other.repeatedGroup_.Count != 0) { |
| 3128 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_); |
| 3129 | } |
| 3130 | if (other.repeatedNestedMessage_.Count != 0) { |
| 3131 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_); |
| 3132 | } |
| 3133 | if (other.repeatedForeignMessage_.Count != 0) { |
| 3134 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_); |
| 3135 | } |
| 3136 | if (other.repeatedImportMessage_.Count != 0) { |
| 3137 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_); |
| 3138 | } |
| 3139 | if (other.repeatedNestedEnum_.Count != 0) { |
| 3140 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_); |
| 3141 | } |
| 3142 | if (other.repeatedForeignEnum_.Count != 0) { |
| 3143 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_); |
| 3144 | } |
| 3145 | if (other.repeatedImportEnum_.Count != 0) { |
| 3146 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_); |
| 3147 | } |
| 3148 | if (other.repeatedStringPiece_.Count != 0) { |
| 3149 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_); |
| 3150 | } |
| 3151 | if (other.repeatedCord_.Count != 0) { |
| 3152 | base.AddRange(other.repeatedCord_, result.repeatedCord_); |
| 3153 | } |
| 3154 | if (other.HasDefaultInt32) { |
| 3155 | DefaultInt32 = other.DefaultInt32; |
| 3156 | } |
| 3157 | if (other.HasDefaultInt64) { |
| 3158 | DefaultInt64 = other.DefaultInt64; |
| 3159 | } |
| 3160 | if (other.HasDefaultUint32) { |
| 3161 | DefaultUint32 = other.DefaultUint32; |
| 3162 | } |
| 3163 | if (other.HasDefaultUint64) { |
| 3164 | DefaultUint64 = other.DefaultUint64; |
| 3165 | } |
| 3166 | if (other.HasDefaultSint32) { |
| 3167 | DefaultSint32 = other.DefaultSint32; |
| 3168 | } |
| 3169 | if (other.HasDefaultSint64) { |
| 3170 | DefaultSint64 = other.DefaultSint64; |
| 3171 | } |
| 3172 | if (other.HasDefaultFixed32) { |
| 3173 | DefaultFixed32 = other.DefaultFixed32; |
| 3174 | } |
| 3175 | if (other.HasDefaultFixed64) { |
| 3176 | DefaultFixed64 = other.DefaultFixed64; |
| 3177 | } |
| 3178 | if (other.HasDefaultSfixed32) { |
| 3179 | DefaultSfixed32 = other.DefaultSfixed32; |
| 3180 | } |
| 3181 | if (other.HasDefaultSfixed64) { |
| 3182 | DefaultSfixed64 = other.DefaultSfixed64; |
| 3183 | } |
| 3184 | if (other.HasDefaultFloat) { |
| 3185 | DefaultFloat = other.DefaultFloat; |
| 3186 | } |
| 3187 | if (other.HasDefaultDouble) { |
| 3188 | DefaultDouble = other.DefaultDouble; |
| 3189 | } |
| 3190 | if (other.HasDefaultBool) { |
| 3191 | DefaultBool = other.DefaultBool; |
| 3192 | } |
| 3193 | if (other.HasDefaultString) { |
| 3194 | DefaultString = other.DefaultString; |
| 3195 | } |
| 3196 | if (other.HasDefaultBytes) { |
| 3197 | DefaultBytes = other.DefaultBytes; |
| 3198 | } |
| 3199 | if (other.HasDefaultNestedEnum) { |
| 3200 | DefaultNestedEnum = other.DefaultNestedEnum; |
| 3201 | } |
| 3202 | if (other.HasDefaultForeignEnum) { |
| 3203 | DefaultForeignEnum = other.DefaultForeignEnum; |
| 3204 | } |
| 3205 | if (other.HasDefaultImportEnum) { |
| 3206 | DefaultImportEnum = other.DefaultImportEnum; |
| 3207 | } |
| 3208 | if (other.HasDefaultStringPiece) { |
| 3209 | DefaultStringPiece = other.DefaultStringPiece; |
| 3210 | } |
| 3211 | if (other.HasDefaultCord) { |
| 3212 | DefaultCord = other.DefaultCord; |
| 3213 | } |
| 3214 | return this; |
| 3215 | } |
| 3216 | |
| 3217 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 3218 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 3219 | } |
| 3220 | |
| 3221 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 3222 | while (true) { |
| 3223 | uint tag = input.ReadTag(); |
| 3224 | switch (tag) { |
| 3225 | case 0: { |
| 3226 | return this; |
| 3227 | } |
| 3228 | default: { |
| 3229 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 3230 | return this; |
| 3231 | } |
| 3232 | ParseUnknownField(input, extensionRegistry, tag); |
| 3233 | break; |
| 3234 | } |
| 3235 | case 8: { |
| 3236 | OptionalInt32 = input.ReadInt32(); |
| 3237 | break; |
| 3238 | } |
| 3239 | case 16: { |
| 3240 | OptionalInt64 = input.ReadInt64(); |
| 3241 | break; |
| 3242 | } |
| 3243 | case 24: { |
| 3244 | OptionalUint32 = input.ReadUInt32(); |
| 3245 | break; |
| 3246 | } |
| 3247 | case 32: { |
| 3248 | OptionalUint64 = input.ReadUInt64(); |
| 3249 | break; |
| 3250 | } |
| 3251 | case 40: { |
| 3252 | OptionalSint32 = input.ReadSInt32(); |
| 3253 | break; |
| 3254 | } |
| 3255 | case 48: { |
| 3256 | OptionalSint64 = input.ReadSInt64(); |
| 3257 | break; |
| 3258 | } |
| 3259 | case 61: { |
| 3260 | OptionalFixed32 = input.ReadFixed32(); |
| 3261 | break; |
| 3262 | } |
| 3263 | case 65: { |
| 3264 | OptionalFixed64 = input.ReadFixed64(); |
| 3265 | break; |
| 3266 | } |
| 3267 | case 77: { |
| 3268 | OptionalSfixed32 = input.ReadSFixed32(); |
| 3269 | break; |
| 3270 | } |
| 3271 | case 81: { |
| 3272 | OptionalSfixed64 = input.ReadSFixed64(); |
| 3273 | break; |
| 3274 | } |
| 3275 | case 93: { |
| 3276 | OptionalFloat = input.ReadFloat(); |
| 3277 | break; |
| 3278 | } |
| 3279 | case 97: { |
| 3280 | OptionalDouble = input.ReadDouble(); |
| 3281 | break; |
| 3282 | } |
| 3283 | case 104: { |
| 3284 | OptionalBool = input.ReadBool(); |
| 3285 | break; |
| 3286 | } |
| 3287 | case 114: { |
| 3288 | OptionalString = input.ReadString(); |
| 3289 | break; |
| 3290 | } |
| 3291 | case 122: { |
| 3292 | OptionalBytes = input.ReadBytes(); |
| 3293 | break; |
| 3294 | } |
| 3295 | case 131: { |
| 3296 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(); |
| 3297 | if (HasOptionalGroup) { |
| 3298 | subBuilder.MergeFrom(OptionalGroup); |
| 3299 | } |
| 3300 | input.ReadGroup(16, subBuilder, extensionRegistry); |
| 3301 | OptionalGroup = subBuilder.BuildPartial(); |
| 3302 | break; |
| 3303 | } |
| 3304 | case 146: { |
| 3305 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(); |
| 3306 | if (HasOptionalNestedMessage) { |
| 3307 | subBuilder.MergeFrom(OptionalNestedMessage); |
| 3308 | } |
| 3309 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3310 | OptionalNestedMessage = subBuilder.BuildPartial(); |
| 3311 | break; |
| 3312 | } |
| 3313 | case 154: { |
| 3314 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(); |
| 3315 | if (HasOptionalForeignMessage) { |
| 3316 | subBuilder.MergeFrom(OptionalForeignMessage); |
| 3317 | } |
| 3318 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3319 | OptionalForeignMessage = subBuilder.BuildPartial(); |
| 3320 | break; |
| 3321 | } |
| 3322 | case 162: { |
| 3323 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(); |
| 3324 | if (HasOptionalImportMessage) { |
| 3325 | subBuilder.MergeFrom(OptionalImportMessage); |
| 3326 | } |
| 3327 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3328 | OptionalImportMessage = subBuilder.BuildPartial(); |
| 3329 | break; |
| 3330 | } |
| 3331 | case 168: { |
| 3332 | int rawValue = input.ReadEnum(); |
| 3333 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| 3334 | } else { |
| 3335 | OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue; |
| 3336 | } |
| 3337 | break; |
| 3338 | } |
| 3339 | case 176: { |
| 3340 | int rawValue = input.ReadEnum(); |
| 3341 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| 3342 | } else { |
| 3343 | OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue; |
| 3344 | } |
| 3345 | break; |
| 3346 | } |
| 3347 | case 184: { |
| 3348 | int rawValue = input.ReadEnum(); |
| 3349 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| 3350 | } else { |
| 3351 | OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue; |
| 3352 | } |
| 3353 | break; |
| 3354 | } |
| 3355 | case 194: { |
| 3356 | OptionalStringPiece = input.ReadString(); |
| 3357 | break; |
| 3358 | } |
| 3359 | case 202: { |
| 3360 | OptionalCord = input.ReadString(); |
| 3361 | break; |
| 3362 | } |
| 3363 | case 248: { |
| 3364 | AddRepeatedInt32(input.ReadInt32()); |
| 3365 | break; |
| 3366 | } |
| 3367 | case 256: { |
| 3368 | AddRepeatedInt64(input.ReadInt64()); |
| 3369 | break; |
| 3370 | } |
| 3371 | case 264: { |
| 3372 | AddRepeatedUint32(input.ReadUInt32()); |
| 3373 | break; |
| 3374 | } |
| 3375 | case 272: { |
| 3376 | AddRepeatedUint64(input.ReadUInt64()); |
| 3377 | break; |
| 3378 | } |
| 3379 | case 280: { |
| 3380 | AddRepeatedSint32(input.ReadSInt32()); |
| 3381 | break; |
| 3382 | } |
| 3383 | case 288: { |
| 3384 | AddRepeatedSint64(input.ReadSInt64()); |
| 3385 | break; |
| 3386 | } |
| 3387 | case 301: { |
| 3388 | AddRepeatedFixed32(input.ReadFixed32()); |
| 3389 | break; |
| 3390 | } |
| 3391 | case 305: { |
| 3392 | AddRepeatedFixed64(input.ReadFixed64()); |
| 3393 | break; |
| 3394 | } |
| 3395 | case 317: { |
| 3396 | AddRepeatedSfixed32(input.ReadSFixed32()); |
| 3397 | break; |
| 3398 | } |
| 3399 | case 321: { |
| 3400 | AddRepeatedSfixed64(input.ReadSFixed64()); |
| 3401 | break; |
| 3402 | } |
| 3403 | case 333: { |
| 3404 | AddRepeatedFloat(input.ReadFloat()); |
| 3405 | break; |
| 3406 | } |
| 3407 | case 337: { |
| 3408 | AddRepeatedDouble(input.ReadDouble()); |
| 3409 | break; |
| 3410 | } |
| 3411 | case 344: { |
| 3412 | AddRepeatedBool(input.ReadBool()); |
| 3413 | break; |
| 3414 | } |
| 3415 | case 354: { |
| 3416 | AddRepeatedString(input.ReadString()); |
| 3417 | break; |
| 3418 | } |
| 3419 | case 362: { |
| 3420 | AddRepeatedBytes(input.ReadBytes()); |
| 3421 | break; |
| 3422 | } |
| 3423 | case 371: { |
| 3424 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.CreateBuilder(); |
| 3425 | input.ReadGroup(46, subBuilder, extensionRegistry); |
| 3426 | AddRepeatedGroup(subBuilder.BuildPartial()); |
| 3427 | break; |
| 3428 | } |
| 3429 | case 386: { |
| 3430 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(); |
| 3431 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3432 | AddRepeatedNestedMessage(subBuilder.BuildPartial()); |
| 3433 | break; |
| 3434 | } |
| 3435 | case 394: { |
| 3436 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(); |
| 3437 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3438 | AddRepeatedForeignMessage(subBuilder.BuildPartial()); |
| 3439 | break; |
| 3440 | } |
| 3441 | case 402: { |
| 3442 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(); |
| 3443 | input.ReadMessage(subBuilder, extensionRegistry); |
| 3444 | AddRepeatedImportMessage(subBuilder.BuildPartial()); |
| 3445 | break; |
| 3446 | } |
| 3447 | case 408: { |
| 3448 | int rawValue = input.ReadEnum(); |
| 3449 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| 3450 | } else { |
| 3451 | AddRepeatedNestedEnum((global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue); |
| 3452 | } |
| 3453 | break; |
| 3454 | } |
| 3455 | case 416: { |
| 3456 | int rawValue = input.ReadEnum(); |
| 3457 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| 3458 | } else { |
| 3459 | AddRepeatedForeignEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue); |
| 3460 | } |
| 3461 | break; |
| 3462 | } |
| 3463 | case 424: { |
| 3464 | int rawValue = input.ReadEnum(); |
| 3465 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| 3466 | } else { |
| 3467 | AddRepeatedImportEnum((global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue); |
| 3468 | } |
| 3469 | break; |
| 3470 | } |
| 3471 | case 434: { |
| 3472 | AddRepeatedStringPiece(input.ReadString()); |
| 3473 | break; |
| 3474 | } |
| 3475 | case 442: { |
| 3476 | AddRepeatedCord(input.ReadString()); |
| 3477 | break; |
| 3478 | } |
| 3479 | case 488: { |
| 3480 | DefaultInt32 = input.ReadInt32(); |
| 3481 | break; |
| 3482 | } |
| 3483 | case 496: { |
| 3484 | DefaultInt64 = input.ReadInt64(); |
| 3485 | break; |
| 3486 | } |
| 3487 | case 504: { |
| 3488 | DefaultUint32 = input.ReadUInt32(); |
| 3489 | break; |
| 3490 | } |
| 3491 | case 512: { |
| 3492 | DefaultUint64 = input.ReadUInt64(); |
| 3493 | break; |
| 3494 | } |
| 3495 | case 520: { |
| 3496 | DefaultSint32 = input.ReadSInt32(); |
| 3497 | break; |
| 3498 | } |
| 3499 | case 528: { |
| 3500 | DefaultSint64 = input.ReadSInt64(); |
| 3501 | break; |
| 3502 | } |
| 3503 | case 541: { |
| 3504 | DefaultFixed32 = input.ReadFixed32(); |
| 3505 | break; |
| 3506 | } |
| 3507 | case 545: { |
| 3508 | DefaultFixed64 = input.ReadFixed64(); |
| 3509 | break; |
| 3510 | } |
| 3511 | case 557: { |
| 3512 | DefaultSfixed32 = input.ReadSFixed32(); |
| 3513 | break; |
| 3514 | } |
| 3515 | case 561: { |
| 3516 | DefaultSfixed64 = input.ReadSFixed64(); |
| 3517 | break; |
| 3518 | } |
| 3519 | case 573: { |
| 3520 | DefaultFloat = input.ReadFloat(); |
| 3521 | break; |
| 3522 | } |
| 3523 | case 577: { |
| 3524 | DefaultDouble = input.ReadDouble(); |
| 3525 | break; |
| 3526 | } |
| 3527 | case 584: { |
| 3528 | DefaultBool = input.ReadBool(); |
| 3529 | break; |
| 3530 | } |
| 3531 | case 594: { |
| 3532 | DefaultString = input.ReadString(); |
| 3533 | break; |
| 3534 | } |
| 3535 | case 602: { |
| 3536 | DefaultBytes = input.ReadBytes(); |
| 3537 | break; |
| 3538 | } |
| 3539 | case 648: { |
| 3540 | int rawValue = input.ReadEnum(); |
| 3541 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum), rawValue)) { |
| 3542 | } else { |
| 3543 | DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum) rawValue; |
| 3544 | } |
| 3545 | break; |
| 3546 | } |
| 3547 | case 656: { |
| 3548 | int rawValue = input.ReadEnum(); |
| 3549 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| 3550 | } else { |
| 3551 | DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue; |
| 3552 | } |
| 3553 | break; |
| 3554 | } |
| 3555 | case 664: { |
| 3556 | int rawValue = input.ReadEnum(); |
| 3557 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite), rawValue)) { |
| 3558 | } else { |
| 3559 | DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite) rawValue; |
| 3560 | } |
| 3561 | break; |
| 3562 | } |
| 3563 | case 674: { |
| 3564 | DefaultStringPiece = input.ReadString(); |
| 3565 | break; |
| 3566 | } |
| 3567 | case 682: { |
| 3568 | DefaultCord = input.ReadString(); |
| 3569 | break; |
| 3570 | } |
| 3571 | } |
| 3572 | } |
| 3573 | } |
| 3574 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 3575 | |
| 3576 | public bool HasOptionalInt32 { |
| 3577 | get { return result.HasOptionalInt32; } |
| 3578 | } |
| 3579 | public int OptionalInt32 { |
| 3580 | get { return result.OptionalInt32; } |
| 3581 | set { SetOptionalInt32(value); } |
| 3582 | } |
| 3583 | public Builder SetOptionalInt32(int value) { |
| 3584 | result.hasOptionalInt32 = true; |
| 3585 | result.optionalInt32_ = value; |
| 3586 | return this; |
| 3587 | } |
| 3588 | public Builder ClearOptionalInt32() { |
| 3589 | result.hasOptionalInt32 = false; |
| 3590 | result.optionalInt32_ = 0; |
| 3591 | return this; |
| 3592 | } |
| 3593 | |
| 3594 | public bool HasOptionalInt64 { |
| 3595 | get { return result.HasOptionalInt64; } |
| 3596 | } |
| 3597 | public long OptionalInt64 { |
| 3598 | get { return result.OptionalInt64; } |
| 3599 | set { SetOptionalInt64(value); } |
| 3600 | } |
| 3601 | public Builder SetOptionalInt64(long value) { |
| 3602 | result.hasOptionalInt64 = true; |
| 3603 | result.optionalInt64_ = value; |
| 3604 | return this; |
| 3605 | } |
| 3606 | public Builder ClearOptionalInt64() { |
| 3607 | result.hasOptionalInt64 = false; |
| 3608 | result.optionalInt64_ = 0L; |
| 3609 | return this; |
| 3610 | } |
| 3611 | |
| 3612 | public bool HasOptionalUint32 { |
| 3613 | get { return result.HasOptionalUint32; } |
| 3614 | } |
| 3615 | [global::System.CLSCompliant(false)] |
| 3616 | public uint OptionalUint32 { |
| 3617 | get { return result.OptionalUint32; } |
| 3618 | set { SetOptionalUint32(value); } |
| 3619 | } |
| 3620 | [global::System.CLSCompliant(false)] |
| 3621 | public Builder SetOptionalUint32(uint value) { |
| 3622 | result.hasOptionalUint32 = true; |
| 3623 | result.optionalUint32_ = value; |
| 3624 | return this; |
| 3625 | } |
| 3626 | public Builder ClearOptionalUint32() { |
| 3627 | result.hasOptionalUint32 = false; |
| 3628 | result.optionalUint32_ = 0; |
| 3629 | return this; |
| 3630 | } |
| 3631 | |
| 3632 | public bool HasOptionalUint64 { |
| 3633 | get { return result.HasOptionalUint64; } |
| 3634 | } |
| 3635 | [global::System.CLSCompliant(false)] |
| 3636 | public ulong OptionalUint64 { |
| 3637 | get { return result.OptionalUint64; } |
| 3638 | set { SetOptionalUint64(value); } |
| 3639 | } |
| 3640 | [global::System.CLSCompliant(false)] |
| 3641 | public Builder SetOptionalUint64(ulong value) { |
| 3642 | result.hasOptionalUint64 = true; |
| 3643 | result.optionalUint64_ = value; |
| 3644 | return this; |
| 3645 | } |
| 3646 | public Builder ClearOptionalUint64() { |
| 3647 | result.hasOptionalUint64 = false; |
| 3648 | result.optionalUint64_ = 0UL; |
| 3649 | return this; |
| 3650 | } |
| 3651 | |
| 3652 | public bool HasOptionalSint32 { |
| 3653 | get { return result.HasOptionalSint32; } |
| 3654 | } |
| 3655 | public int OptionalSint32 { |
| 3656 | get { return result.OptionalSint32; } |
| 3657 | set { SetOptionalSint32(value); } |
| 3658 | } |
| 3659 | public Builder SetOptionalSint32(int value) { |
| 3660 | result.hasOptionalSint32 = true; |
| 3661 | result.optionalSint32_ = value; |
| 3662 | return this; |
| 3663 | } |
| 3664 | public Builder ClearOptionalSint32() { |
| 3665 | result.hasOptionalSint32 = false; |
| 3666 | result.optionalSint32_ = 0; |
| 3667 | return this; |
| 3668 | } |
| 3669 | |
| 3670 | public bool HasOptionalSint64 { |
| 3671 | get { return result.HasOptionalSint64; } |
| 3672 | } |
| 3673 | public long OptionalSint64 { |
| 3674 | get { return result.OptionalSint64; } |
| 3675 | set { SetOptionalSint64(value); } |
| 3676 | } |
| 3677 | public Builder SetOptionalSint64(long value) { |
| 3678 | result.hasOptionalSint64 = true; |
| 3679 | result.optionalSint64_ = value; |
| 3680 | return this; |
| 3681 | } |
| 3682 | public Builder ClearOptionalSint64() { |
| 3683 | result.hasOptionalSint64 = false; |
| 3684 | result.optionalSint64_ = 0; |
| 3685 | return this; |
| 3686 | } |
| 3687 | |
| 3688 | public bool HasOptionalFixed32 { |
| 3689 | get { return result.HasOptionalFixed32; } |
| 3690 | } |
| 3691 | [global::System.CLSCompliant(false)] |
| 3692 | public uint OptionalFixed32 { |
| 3693 | get { return result.OptionalFixed32; } |
| 3694 | set { SetOptionalFixed32(value); } |
| 3695 | } |
| 3696 | [global::System.CLSCompliant(false)] |
| 3697 | public Builder SetOptionalFixed32(uint value) { |
| 3698 | result.hasOptionalFixed32 = true; |
| 3699 | result.optionalFixed32_ = value; |
| 3700 | return this; |
| 3701 | } |
| 3702 | public Builder ClearOptionalFixed32() { |
| 3703 | result.hasOptionalFixed32 = false; |
| 3704 | result.optionalFixed32_ = 0; |
| 3705 | return this; |
| 3706 | } |
| 3707 | |
| 3708 | public bool HasOptionalFixed64 { |
| 3709 | get { return result.HasOptionalFixed64; } |
| 3710 | } |
| 3711 | [global::System.CLSCompliant(false)] |
| 3712 | public ulong OptionalFixed64 { |
| 3713 | get { return result.OptionalFixed64; } |
| 3714 | set { SetOptionalFixed64(value); } |
| 3715 | } |
| 3716 | [global::System.CLSCompliant(false)] |
| 3717 | public Builder SetOptionalFixed64(ulong value) { |
| 3718 | result.hasOptionalFixed64 = true; |
| 3719 | result.optionalFixed64_ = value; |
| 3720 | return this; |
| 3721 | } |
| 3722 | public Builder ClearOptionalFixed64() { |
| 3723 | result.hasOptionalFixed64 = false; |
| 3724 | result.optionalFixed64_ = 0; |
| 3725 | return this; |
| 3726 | } |
| 3727 | |
| 3728 | public bool HasOptionalSfixed32 { |
| 3729 | get { return result.HasOptionalSfixed32; } |
| 3730 | } |
| 3731 | public int OptionalSfixed32 { |
| 3732 | get { return result.OptionalSfixed32; } |
| 3733 | set { SetOptionalSfixed32(value); } |
| 3734 | } |
| 3735 | public Builder SetOptionalSfixed32(int value) { |
| 3736 | result.hasOptionalSfixed32 = true; |
| 3737 | result.optionalSfixed32_ = value; |
| 3738 | return this; |
| 3739 | } |
| 3740 | public Builder ClearOptionalSfixed32() { |
| 3741 | result.hasOptionalSfixed32 = false; |
| 3742 | result.optionalSfixed32_ = 0; |
| 3743 | return this; |
| 3744 | } |
| 3745 | |
| 3746 | public bool HasOptionalSfixed64 { |
| 3747 | get { return result.HasOptionalSfixed64; } |
| 3748 | } |
| 3749 | public long OptionalSfixed64 { |
| 3750 | get { return result.OptionalSfixed64; } |
| 3751 | set { SetOptionalSfixed64(value); } |
| 3752 | } |
| 3753 | public Builder SetOptionalSfixed64(long value) { |
| 3754 | result.hasOptionalSfixed64 = true; |
| 3755 | result.optionalSfixed64_ = value; |
| 3756 | return this; |
| 3757 | } |
| 3758 | public Builder ClearOptionalSfixed64() { |
| 3759 | result.hasOptionalSfixed64 = false; |
| 3760 | result.optionalSfixed64_ = 0; |
| 3761 | return this; |
| 3762 | } |
| 3763 | |
| 3764 | public bool HasOptionalFloat { |
| 3765 | get { return result.HasOptionalFloat; } |
| 3766 | } |
| 3767 | public float OptionalFloat { |
| 3768 | get { return result.OptionalFloat; } |
| 3769 | set { SetOptionalFloat(value); } |
| 3770 | } |
| 3771 | public Builder SetOptionalFloat(float value) { |
| 3772 | result.hasOptionalFloat = true; |
| 3773 | result.optionalFloat_ = value; |
| 3774 | return this; |
| 3775 | } |
| 3776 | public Builder ClearOptionalFloat() { |
| 3777 | result.hasOptionalFloat = false; |
| 3778 | result.optionalFloat_ = 0F; |
| 3779 | return this; |
| 3780 | } |
| 3781 | |
| 3782 | public bool HasOptionalDouble { |
| 3783 | get { return result.HasOptionalDouble; } |
| 3784 | } |
| 3785 | public double OptionalDouble { |
| 3786 | get { return result.OptionalDouble; } |
| 3787 | set { SetOptionalDouble(value); } |
| 3788 | } |
| 3789 | public Builder SetOptionalDouble(double value) { |
| 3790 | result.hasOptionalDouble = true; |
| 3791 | result.optionalDouble_ = value; |
| 3792 | return this; |
| 3793 | } |
| 3794 | public Builder ClearOptionalDouble() { |
| 3795 | result.hasOptionalDouble = false; |
| 3796 | result.optionalDouble_ = 0D; |
| 3797 | return this; |
| 3798 | } |
| 3799 | |
| 3800 | public bool HasOptionalBool { |
| 3801 | get { return result.HasOptionalBool; } |
| 3802 | } |
| 3803 | public bool OptionalBool { |
| 3804 | get { return result.OptionalBool; } |
| 3805 | set { SetOptionalBool(value); } |
| 3806 | } |
| 3807 | public Builder SetOptionalBool(bool value) { |
| 3808 | result.hasOptionalBool = true; |
| 3809 | result.optionalBool_ = value; |
| 3810 | return this; |
| 3811 | } |
| 3812 | public Builder ClearOptionalBool() { |
| 3813 | result.hasOptionalBool = false; |
| 3814 | result.optionalBool_ = false; |
| 3815 | return this; |
| 3816 | } |
| 3817 | |
| 3818 | public bool HasOptionalString { |
| 3819 | get { return result.HasOptionalString; } |
| 3820 | } |
| 3821 | public string OptionalString { |
| 3822 | get { return result.OptionalString; } |
| 3823 | set { SetOptionalString(value); } |
| 3824 | } |
| 3825 | public Builder SetOptionalString(string value) { |
| 3826 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3827 | result.hasOptionalString = true; |
| 3828 | result.optionalString_ = value; |
| 3829 | return this; |
| 3830 | } |
| 3831 | public Builder ClearOptionalString() { |
| 3832 | result.hasOptionalString = false; |
| 3833 | result.optionalString_ = ""; |
| 3834 | return this; |
| 3835 | } |
| 3836 | |
| 3837 | public bool HasOptionalBytes { |
| 3838 | get { return result.HasOptionalBytes; } |
| 3839 | } |
| 3840 | public pb::ByteString OptionalBytes { |
| 3841 | get { return result.OptionalBytes; } |
| 3842 | set { SetOptionalBytes(value); } |
| 3843 | } |
| 3844 | public Builder SetOptionalBytes(pb::ByteString value) { |
| 3845 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3846 | result.hasOptionalBytes = true; |
| 3847 | result.optionalBytes_ = value; |
| 3848 | return this; |
| 3849 | } |
| 3850 | public Builder ClearOptionalBytes() { |
| 3851 | result.hasOptionalBytes = false; |
| 3852 | result.optionalBytes_ = pb::ByteString.Empty; |
| 3853 | return this; |
| 3854 | } |
| 3855 | |
| 3856 | public bool HasOptionalGroup { |
| 3857 | get { return result.HasOptionalGroup; } |
| 3858 | } |
| 3859 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup { |
| 3860 | get { return result.OptionalGroup; } |
| 3861 | set { SetOptionalGroup(value); } |
| 3862 | } |
| 3863 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) { |
| 3864 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3865 | result.hasOptionalGroup = true; |
| 3866 | result.optionalGroup_ = value; |
| 3867 | return this; |
| 3868 | } |
| 3869 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) { |
| 3870 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 3871 | result.hasOptionalGroup = true; |
| 3872 | result.optionalGroup_ = builderForValue.Build(); |
| 3873 | return this; |
| 3874 | } |
| 3875 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) { |
| 3876 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3877 | if (result.HasOptionalGroup && |
| 3878 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) { |
| 3879 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial(); |
| 3880 | } else { |
| 3881 | result.optionalGroup_ = value; |
| 3882 | } |
| 3883 | result.hasOptionalGroup = true; |
| 3884 | return this; |
| 3885 | } |
| 3886 | public Builder ClearOptionalGroup() { |
| 3887 | result.hasOptionalGroup = false; |
| 3888 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; |
| 3889 | return this; |
| 3890 | } |
| 3891 | |
| 3892 | public bool HasOptionalNestedMessage { |
| 3893 | get { return result.HasOptionalNestedMessage; } |
| 3894 | } |
| 3895 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage { |
| 3896 | get { return result.OptionalNestedMessage; } |
| 3897 | set { SetOptionalNestedMessage(value); } |
| 3898 | } |
| 3899 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| 3900 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3901 | result.hasOptionalNestedMessage = true; |
| 3902 | result.optionalNestedMessage_ = value; |
| 3903 | return this; |
| 3904 | } |
| 3905 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| 3906 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 3907 | result.hasOptionalNestedMessage = true; |
| 3908 | result.optionalNestedMessage_ = builderForValue.Build(); |
| 3909 | return this; |
| 3910 | } |
| 3911 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| 3912 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3913 | if (result.HasOptionalNestedMessage && |
| 3914 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) { |
| 3915 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial(); |
| 3916 | } else { |
| 3917 | result.optionalNestedMessage_ = value; |
| 3918 | } |
| 3919 | result.hasOptionalNestedMessage = true; |
| 3920 | return this; |
| 3921 | } |
| 3922 | public Builder ClearOptionalNestedMessage() { |
| 3923 | result.hasOptionalNestedMessage = false; |
| 3924 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; |
| 3925 | return this; |
| 3926 | } |
| 3927 | |
| 3928 | public bool HasOptionalForeignMessage { |
| 3929 | get { return result.HasOptionalForeignMessage; } |
| 3930 | } |
| 3931 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage { |
| 3932 | get { return result.OptionalForeignMessage; } |
| 3933 | set { SetOptionalForeignMessage(value); } |
| 3934 | } |
| 3935 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| 3936 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3937 | result.hasOptionalForeignMessage = true; |
| 3938 | result.optionalForeignMessage_ = value; |
| 3939 | return this; |
| 3940 | } |
| 3941 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| 3942 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 3943 | result.hasOptionalForeignMessage = true; |
| 3944 | result.optionalForeignMessage_ = builderForValue.Build(); |
| 3945 | return this; |
| 3946 | } |
| 3947 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| 3948 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3949 | if (result.HasOptionalForeignMessage && |
| 3950 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) { |
| 3951 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial(); |
| 3952 | } else { |
| 3953 | result.optionalForeignMessage_ = value; |
| 3954 | } |
| 3955 | result.hasOptionalForeignMessage = true; |
| 3956 | return this; |
| 3957 | } |
| 3958 | public Builder ClearOptionalForeignMessage() { |
| 3959 | result.hasOptionalForeignMessage = false; |
| 3960 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; |
| 3961 | return this; |
| 3962 | } |
| 3963 | |
| 3964 | public bool HasOptionalImportMessage { |
| 3965 | get { return result.HasOptionalImportMessage; } |
| 3966 | } |
| 3967 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage { |
| 3968 | get { return result.OptionalImportMessage; } |
| 3969 | set { SetOptionalImportMessage(value); } |
| 3970 | } |
| 3971 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| 3972 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3973 | result.hasOptionalImportMessage = true; |
| 3974 | result.optionalImportMessage_ = value; |
| 3975 | return this; |
| 3976 | } |
| 3977 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| 3978 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 3979 | result.hasOptionalImportMessage = true; |
| 3980 | result.optionalImportMessage_ = builderForValue.Build(); |
| 3981 | return this; |
| 3982 | } |
| 3983 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| 3984 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 3985 | if (result.HasOptionalImportMessage && |
| 3986 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) { |
| 3987 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial(); |
| 3988 | } else { |
| 3989 | result.optionalImportMessage_ = value; |
| 3990 | } |
| 3991 | result.hasOptionalImportMessage = true; |
| 3992 | return this; |
| 3993 | } |
| 3994 | public Builder ClearOptionalImportMessage() { |
| 3995 | result.hasOptionalImportMessage = false; |
| 3996 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance; |
| 3997 | return this; |
| 3998 | } |
| 3999 | |
| 4000 | public bool HasOptionalNestedEnum { |
| 4001 | get { return result.HasOptionalNestedEnum; } |
| 4002 | } |
| 4003 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum { |
| 4004 | get { return result.OptionalNestedEnum; } |
| 4005 | set { SetOptionalNestedEnum(value); } |
| 4006 | } |
| 4007 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| 4008 | result.hasOptionalNestedEnum = true; |
| 4009 | result.optionalNestedEnum_ = value; |
| 4010 | return this; |
| 4011 | } |
| 4012 | public Builder ClearOptionalNestedEnum() { |
| 4013 | result.hasOptionalNestedEnum = false; |
| 4014 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO; |
| 4015 | return this; |
| 4016 | } |
| 4017 | |
| 4018 | public bool HasOptionalForeignEnum { |
| 4019 | get { return result.HasOptionalForeignEnum; } |
| 4020 | } |
| 4021 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum { |
| 4022 | get { return result.OptionalForeignEnum; } |
| 4023 | set { SetOptionalForeignEnum(value); } |
| 4024 | } |
| 4025 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 4026 | result.hasOptionalForeignEnum = true; |
| 4027 | result.optionalForeignEnum_ = value; |
| 4028 | return this; |
| 4029 | } |
| 4030 | public Builder ClearOptionalForeignEnum() { |
| 4031 | result.hasOptionalForeignEnum = false; |
| 4032 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO; |
| 4033 | return this; |
| 4034 | } |
| 4035 | |
| 4036 | public bool HasOptionalImportEnum { |
| 4037 | get { return result.HasOptionalImportEnum; } |
| 4038 | } |
| 4039 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum { |
| 4040 | get { return result.OptionalImportEnum; } |
| 4041 | set { SetOptionalImportEnum(value); } |
| 4042 | } |
| 4043 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| 4044 | result.hasOptionalImportEnum = true; |
| 4045 | result.optionalImportEnum_ = value; |
| 4046 | return this; |
| 4047 | } |
| 4048 | public Builder ClearOptionalImportEnum() { |
| 4049 | result.hasOptionalImportEnum = false; |
| 4050 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO; |
| 4051 | return this; |
| 4052 | } |
| 4053 | |
| 4054 | public bool HasOptionalStringPiece { |
| 4055 | get { return result.HasOptionalStringPiece; } |
| 4056 | } |
| 4057 | public string OptionalStringPiece { |
| 4058 | get { return result.OptionalStringPiece; } |
| 4059 | set { SetOptionalStringPiece(value); } |
| 4060 | } |
| 4061 | public Builder SetOptionalStringPiece(string value) { |
| 4062 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4063 | result.hasOptionalStringPiece = true; |
| 4064 | result.optionalStringPiece_ = value; |
| 4065 | return this; |
| 4066 | } |
| 4067 | public Builder ClearOptionalStringPiece() { |
| 4068 | result.hasOptionalStringPiece = false; |
| 4069 | result.optionalStringPiece_ = ""; |
| 4070 | return this; |
| 4071 | } |
| 4072 | |
| 4073 | public bool HasOptionalCord { |
| 4074 | get { return result.HasOptionalCord; } |
| 4075 | } |
| 4076 | public string OptionalCord { |
| 4077 | get { return result.OptionalCord; } |
| 4078 | set { SetOptionalCord(value); } |
| 4079 | } |
| 4080 | public Builder SetOptionalCord(string value) { |
| 4081 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4082 | result.hasOptionalCord = true; |
| 4083 | result.optionalCord_ = value; |
| 4084 | return this; |
| 4085 | } |
| 4086 | public Builder ClearOptionalCord() { |
| 4087 | result.hasOptionalCord = false; |
| 4088 | result.optionalCord_ = ""; |
| 4089 | return this; |
| 4090 | } |
| 4091 | |
| 4092 | public pbc::IPopsicleList<int> RepeatedInt32List { |
| 4093 | get { return result.repeatedInt32_; } |
| 4094 | } |
| 4095 | public int RepeatedInt32Count { |
| 4096 | get { return result.RepeatedInt32Count; } |
| 4097 | } |
| 4098 | public int GetRepeatedInt32(int index) { |
| 4099 | return result.GetRepeatedInt32(index); |
| 4100 | } |
| 4101 | public Builder SetRepeatedInt32(int index, int value) { |
| 4102 | result.repeatedInt32_[index] = value; |
| 4103 | return this; |
| 4104 | } |
| 4105 | public Builder AddRepeatedInt32(int value) { |
| 4106 | result.repeatedInt32_.Add(value); |
| 4107 | return this; |
| 4108 | } |
| 4109 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) { |
| 4110 | base.AddRange(values, result.repeatedInt32_); |
| 4111 | return this; |
| 4112 | } |
| 4113 | public Builder ClearRepeatedInt32() { |
| 4114 | result.repeatedInt32_.Clear(); |
| 4115 | return this; |
| 4116 | } |
| 4117 | |
| 4118 | public pbc::IPopsicleList<long> RepeatedInt64List { |
| 4119 | get { return result.repeatedInt64_; } |
| 4120 | } |
| 4121 | public int RepeatedInt64Count { |
| 4122 | get { return result.RepeatedInt64Count; } |
| 4123 | } |
| 4124 | public long GetRepeatedInt64(int index) { |
| 4125 | return result.GetRepeatedInt64(index); |
| 4126 | } |
| 4127 | public Builder SetRepeatedInt64(int index, long value) { |
| 4128 | result.repeatedInt64_[index] = value; |
| 4129 | return this; |
| 4130 | } |
| 4131 | public Builder AddRepeatedInt64(long value) { |
| 4132 | result.repeatedInt64_.Add(value); |
| 4133 | return this; |
| 4134 | } |
| 4135 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) { |
| 4136 | base.AddRange(values, result.repeatedInt64_); |
| 4137 | return this; |
| 4138 | } |
| 4139 | public Builder ClearRepeatedInt64() { |
| 4140 | result.repeatedInt64_.Clear(); |
| 4141 | return this; |
| 4142 | } |
| 4143 | |
| 4144 | [global::System.CLSCompliant(false)] |
| 4145 | public pbc::IPopsicleList<uint> RepeatedUint32List { |
| 4146 | get { return result.repeatedUint32_; } |
| 4147 | } |
| 4148 | public int RepeatedUint32Count { |
| 4149 | get { return result.RepeatedUint32Count; } |
| 4150 | } |
| 4151 | [global::System.CLSCompliant(false)] |
| 4152 | public uint GetRepeatedUint32(int index) { |
| 4153 | return result.GetRepeatedUint32(index); |
| 4154 | } |
| 4155 | [global::System.CLSCompliant(false)] |
| 4156 | public Builder SetRepeatedUint32(int index, uint value) { |
| 4157 | result.repeatedUint32_[index] = value; |
| 4158 | return this; |
| 4159 | } |
| 4160 | [global::System.CLSCompliant(false)] |
| 4161 | public Builder AddRepeatedUint32(uint value) { |
| 4162 | result.repeatedUint32_.Add(value); |
| 4163 | return this; |
| 4164 | } |
| 4165 | [global::System.CLSCompliant(false)] |
| 4166 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) { |
| 4167 | base.AddRange(values, result.repeatedUint32_); |
| 4168 | return this; |
| 4169 | } |
| 4170 | public Builder ClearRepeatedUint32() { |
| 4171 | result.repeatedUint32_.Clear(); |
| 4172 | return this; |
| 4173 | } |
| 4174 | |
| 4175 | [global::System.CLSCompliant(false)] |
| 4176 | public pbc::IPopsicleList<ulong> RepeatedUint64List { |
| 4177 | get { return result.repeatedUint64_; } |
| 4178 | } |
| 4179 | public int RepeatedUint64Count { |
| 4180 | get { return result.RepeatedUint64Count; } |
| 4181 | } |
| 4182 | [global::System.CLSCompliant(false)] |
| 4183 | public ulong GetRepeatedUint64(int index) { |
| 4184 | return result.GetRepeatedUint64(index); |
| 4185 | } |
| 4186 | [global::System.CLSCompliant(false)] |
| 4187 | public Builder SetRepeatedUint64(int index, ulong value) { |
| 4188 | result.repeatedUint64_[index] = value; |
| 4189 | return this; |
| 4190 | } |
| 4191 | [global::System.CLSCompliant(false)] |
| 4192 | public Builder AddRepeatedUint64(ulong value) { |
| 4193 | result.repeatedUint64_.Add(value); |
| 4194 | return this; |
| 4195 | } |
| 4196 | [global::System.CLSCompliant(false)] |
| 4197 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) { |
| 4198 | base.AddRange(values, result.repeatedUint64_); |
| 4199 | return this; |
| 4200 | } |
| 4201 | public Builder ClearRepeatedUint64() { |
| 4202 | result.repeatedUint64_.Clear(); |
| 4203 | return this; |
| 4204 | } |
| 4205 | |
| 4206 | public pbc::IPopsicleList<int> RepeatedSint32List { |
| 4207 | get { return result.repeatedSint32_; } |
| 4208 | } |
| 4209 | public int RepeatedSint32Count { |
| 4210 | get { return result.RepeatedSint32Count; } |
| 4211 | } |
| 4212 | public int GetRepeatedSint32(int index) { |
| 4213 | return result.GetRepeatedSint32(index); |
| 4214 | } |
| 4215 | public Builder SetRepeatedSint32(int index, int value) { |
| 4216 | result.repeatedSint32_[index] = value; |
| 4217 | return this; |
| 4218 | } |
| 4219 | public Builder AddRepeatedSint32(int value) { |
| 4220 | result.repeatedSint32_.Add(value); |
| 4221 | return this; |
| 4222 | } |
| 4223 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) { |
| 4224 | base.AddRange(values, result.repeatedSint32_); |
| 4225 | return this; |
| 4226 | } |
| 4227 | public Builder ClearRepeatedSint32() { |
| 4228 | result.repeatedSint32_.Clear(); |
| 4229 | return this; |
| 4230 | } |
| 4231 | |
| 4232 | public pbc::IPopsicleList<long> RepeatedSint64List { |
| 4233 | get { return result.repeatedSint64_; } |
| 4234 | } |
| 4235 | public int RepeatedSint64Count { |
| 4236 | get { return result.RepeatedSint64Count; } |
| 4237 | } |
| 4238 | public long GetRepeatedSint64(int index) { |
| 4239 | return result.GetRepeatedSint64(index); |
| 4240 | } |
| 4241 | public Builder SetRepeatedSint64(int index, long value) { |
| 4242 | result.repeatedSint64_[index] = value; |
| 4243 | return this; |
| 4244 | } |
| 4245 | public Builder AddRepeatedSint64(long value) { |
| 4246 | result.repeatedSint64_.Add(value); |
| 4247 | return this; |
| 4248 | } |
| 4249 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) { |
| 4250 | base.AddRange(values, result.repeatedSint64_); |
| 4251 | return this; |
| 4252 | } |
| 4253 | public Builder ClearRepeatedSint64() { |
| 4254 | result.repeatedSint64_.Clear(); |
| 4255 | return this; |
| 4256 | } |
| 4257 | |
| 4258 | [global::System.CLSCompliant(false)] |
| 4259 | public pbc::IPopsicleList<uint> RepeatedFixed32List { |
| 4260 | get { return result.repeatedFixed32_; } |
| 4261 | } |
| 4262 | public int RepeatedFixed32Count { |
| 4263 | get { return result.RepeatedFixed32Count; } |
| 4264 | } |
| 4265 | [global::System.CLSCompliant(false)] |
| 4266 | public uint GetRepeatedFixed32(int index) { |
| 4267 | return result.GetRepeatedFixed32(index); |
| 4268 | } |
| 4269 | [global::System.CLSCompliant(false)] |
| 4270 | public Builder SetRepeatedFixed32(int index, uint value) { |
| 4271 | result.repeatedFixed32_[index] = value; |
| 4272 | return this; |
| 4273 | } |
| 4274 | [global::System.CLSCompliant(false)] |
| 4275 | public Builder AddRepeatedFixed32(uint value) { |
| 4276 | result.repeatedFixed32_.Add(value); |
| 4277 | return this; |
| 4278 | } |
| 4279 | [global::System.CLSCompliant(false)] |
| 4280 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) { |
| 4281 | base.AddRange(values, result.repeatedFixed32_); |
| 4282 | return this; |
| 4283 | } |
| 4284 | public Builder ClearRepeatedFixed32() { |
| 4285 | result.repeatedFixed32_.Clear(); |
| 4286 | return this; |
| 4287 | } |
| 4288 | |
| 4289 | [global::System.CLSCompliant(false)] |
| 4290 | public pbc::IPopsicleList<ulong> RepeatedFixed64List { |
| 4291 | get { return result.repeatedFixed64_; } |
| 4292 | } |
| 4293 | public int RepeatedFixed64Count { |
| 4294 | get { return result.RepeatedFixed64Count; } |
| 4295 | } |
| 4296 | [global::System.CLSCompliant(false)] |
| 4297 | public ulong GetRepeatedFixed64(int index) { |
| 4298 | return result.GetRepeatedFixed64(index); |
| 4299 | } |
| 4300 | [global::System.CLSCompliant(false)] |
| 4301 | public Builder SetRepeatedFixed64(int index, ulong value) { |
| 4302 | result.repeatedFixed64_[index] = value; |
| 4303 | return this; |
| 4304 | } |
| 4305 | [global::System.CLSCompliant(false)] |
| 4306 | public Builder AddRepeatedFixed64(ulong value) { |
| 4307 | result.repeatedFixed64_.Add(value); |
| 4308 | return this; |
| 4309 | } |
| 4310 | [global::System.CLSCompliant(false)] |
| 4311 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) { |
| 4312 | base.AddRange(values, result.repeatedFixed64_); |
| 4313 | return this; |
| 4314 | } |
| 4315 | public Builder ClearRepeatedFixed64() { |
| 4316 | result.repeatedFixed64_.Clear(); |
| 4317 | return this; |
| 4318 | } |
| 4319 | |
| 4320 | public pbc::IPopsicleList<int> RepeatedSfixed32List { |
| 4321 | get { return result.repeatedSfixed32_; } |
| 4322 | } |
| 4323 | public int RepeatedSfixed32Count { |
| 4324 | get { return result.RepeatedSfixed32Count; } |
| 4325 | } |
| 4326 | public int GetRepeatedSfixed32(int index) { |
| 4327 | return result.GetRepeatedSfixed32(index); |
| 4328 | } |
| 4329 | public Builder SetRepeatedSfixed32(int index, int value) { |
| 4330 | result.repeatedSfixed32_[index] = value; |
| 4331 | return this; |
| 4332 | } |
| 4333 | public Builder AddRepeatedSfixed32(int value) { |
| 4334 | result.repeatedSfixed32_.Add(value); |
| 4335 | return this; |
| 4336 | } |
| 4337 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) { |
| 4338 | base.AddRange(values, result.repeatedSfixed32_); |
| 4339 | return this; |
| 4340 | } |
| 4341 | public Builder ClearRepeatedSfixed32() { |
| 4342 | result.repeatedSfixed32_.Clear(); |
| 4343 | return this; |
| 4344 | } |
| 4345 | |
| 4346 | public pbc::IPopsicleList<long> RepeatedSfixed64List { |
| 4347 | get { return result.repeatedSfixed64_; } |
| 4348 | } |
| 4349 | public int RepeatedSfixed64Count { |
| 4350 | get { return result.RepeatedSfixed64Count; } |
| 4351 | } |
| 4352 | public long GetRepeatedSfixed64(int index) { |
| 4353 | return result.GetRepeatedSfixed64(index); |
| 4354 | } |
| 4355 | public Builder SetRepeatedSfixed64(int index, long value) { |
| 4356 | result.repeatedSfixed64_[index] = value; |
| 4357 | return this; |
| 4358 | } |
| 4359 | public Builder AddRepeatedSfixed64(long value) { |
| 4360 | result.repeatedSfixed64_.Add(value); |
| 4361 | return this; |
| 4362 | } |
| 4363 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) { |
| 4364 | base.AddRange(values, result.repeatedSfixed64_); |
| 4365 | return this; |
| 4366 | } |
| 4367 | public Builder ClearRepeatedSfixed64() { |
| 4368 | result.repeatedSfixed64_.Clear(); |
| 4369 | return this; |
| 4370 | } |
| 4371 | |
| 4372 | public pbc::IPopsicleList<float> RepeatedFloatList { |
| 4373 | get { return result.repeatedFloat_; } |
| 4374 | } |
| 4375 | public int RepeatedFloatCount { |
| 4376 | get { return result.RepeatedFloatCount; } |
| 4377 | } |
| 4378 | public float GetRepeatedFloat(int index) { |
| 4379 | return result.GetRepeatedFloat(index); |
| 4380 | } |
| 4381 | public Builder SetRepeatedFloat(int index, float value) { |
| 4382 | result.repeatedFloat_[index] = value; |
| 4383 | return this; |
| 4384 | } |
| 4385 | public Builder AddRepeatedFloat(float value) { |
| 4386 | result.repeatedFloat_.Add(value); |
| 4387 | return this; |
| 4388 | } |
| 4389 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) { |
| 4390 | base.AddRange(values, result.repeatedFloat_); |
| 4391 | return this; |
| 4392 | } |
| 4393 | public Builder ClearRepeatedFloat() { |
| 4394 | result.repeatedFloat_.Clear(); |
| 4395 | return this; |
| 4396 | } |
| 4397 | |
| 4398 | public pbc::IPopsicleList<double> RepeatedDoubleList { |
| 4399 | get { return result.repeatedDouble_; } |
| 4400 | } |
| 4401 | public int RepeatedDoubleCount { |
| 4402 | get { return result.RepeatedDoubleCount; } |
| 4403 | } |
| 4404 | public double GetRepeatedDouble(int index) { |
| 4405 | return result.GetRepeatedDouble(index); |
| 4406 | } |
| 4407 | public Builder SetRepeatedDouble(int index, double value) { |
| 4408 | result.repeatedDouble_[index] = value; |
| 4409 | return this; |
| 4410 | } |
| 4411 | public Builder AddRepeatedDouble(double value) { |
| 4412 | result.repeatedDouble_.Add(value); |
| 4413 | return this; |
| 4414 | } |
| 4415 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) { |
| 4416 | base.AddRange(values, result.repeatedDouble_); |
| 4417 | return this; |
| 4418 | } |
| 4419 | public Builder ClearRepeatedDouble() { |
| 4420 | result.repeatedDouble_.Clear(); |
| 4421 | return this; |
| 4422 | } |
| 4423 | |
| 4424 | public pbc::IPopsicleList<bool> RepeatedBoolList { |
| 4425 | get { return result.repeatedBool_; } |
| 4426 | } |
| 4427 | public int RepeatedBoolCount { |
| 4428 | get { return result.RepeatedBoolCount; } |
| 4429 | } |
| 4430 | public bool GetRepeatedBool(int index) { |
| 4431 | return result.GetRepeatedBool(index); |
| 4432 | } |
| 4433 | public Builder SetRepeatedBool(int index, bool value) { |
| 4434 | result.repeatedBool_[index] = value; |
| 4435 | return this; |
| 4436 | } |
| 4437 | public Builder AddRepeatedBool(bool value) { |
| 4438 | result.repeatedBool_.Add(value); |
| 4439 | return this; |
| 4440 | } |
| 4441 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) { |
| 4442 | base.AddRange(values, result.repeatedBool_); |
| 4443 | return this; |
| 4444 | } |
| 4445 | public Builder ClearRepeatedBool() { |
| 4446 | result.repeatedBool_.Clear(); |
| 4447 | return this; |
| 4448 | } |
| 4449 | |
| 4450 | public pbc::IPopsicleList<string> RepeatedStringList { |
| 4451 | get { return result.repeatedString_; } |
| 4452 | } |
| 4453 | public int RepeatedStringCount { |
| 4454 | get { return result.RepeatedStringCount; } |
| 4455 | } |
| 4456 | public string GetRepeatedString(int index) { |
| 4457 | return result.GetRepeatedString(index); |
| 4458 | } |
| 4459 | public Builder SetRepeatedString(int index, string value) { |
| 4460 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4461 | result.repeatedString_[index] = value; |
| 4462 | return this; |
| 4463 | } |
| 4464 | public Builder AddRepeatedString(string value) { |
| 4465 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4466 | result.repeatedString_.Add(value); |
| 4467 | return this; |
| 4468 | } |
| 4469 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) { |
| 4470 | base.AddRange(values, result.repeatedString_); |
| 4471 | return this; |
| 4472 | } |
| 4473 | public Builder ClearRepeatedString() { |
| 4474 | result.repeatedString_.Clear(); |
| 4475 | return this; |
| 4476 | } |
| 4477 | |
| 4478 | public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList { |
| 4479 | get { return result.repeatedBytes_; } |
| 4480 | } |
| 4481 | public int RepeatedBytesCount { |
| 4482 | get { return result.RepeatedBytesCount; } |
| 4483 | } |
| 4484 | public pb::ByteString GetRepeatedBytes(int index) { |
| 4485 | return result.GetRepeatedBytes(index); |
| 4486 | } |
| 4487 | public Builder SetRepeatedBytes(int index, pb::ByteString value) { |
| 4488 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4489 | result.repeatedBytes_[index] = value; |
| 4490 | return this; |
| 4491 | } |
| 4492 | public Builder AddRepeatedBytes(pb::ByteString value) { |
| 4493 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4494 | result.repeatedBytes_.Add(value); |
| 4495 | return this; |
| 4496 | } |
| 4497 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) { |
| 4498 | base.AddRange(values, result.repeatedBytes_); |
| 4499 | return this; |
| 4500 | } |
| 4501 | public Builder ClearRepeatedBytes() { |
| 4502 | result.repeatedBytes_.Clear(); |
| 4503 | return this; |
| 4504 | } |
| 4505 | |
| 4506 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList { |
| 4507 | get { return result.repeatedGroup_; } |
| 4508 | } |
| 4509 | public int RepeatedGroupCount { |
| 4510 | get { return result.RepeatedGroupCount; } |
| 4511 | } |
| 4512 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) { |
| 4513 | return result.GetRepeatedGroup(index); |
| 4514 | } |
| 4515 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) { |
| 4516 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4517 | result.repeatedGroup_[index] = value; |
| 4518 | return this; |
| 4519 | } |
| 4520 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) { |
| 4521 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4522 | result.repeatedGroup_[index] = builderForValue.Build(); |
| 4523 | return this; |
| 4524 | } |
| 4525 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) { |
| 4526 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4527 | result.repeatedGroup_.Add(value); |
| 4528 | return this; |
| 4529 | } |
| 4530 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) { |
| 4531 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4532 | result.repeatedGroup_.Add(builderForValue.Build()); |
| 4533 | return this; |
| 4534 | } |
| 4535 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) { |
| 4536 | base.AddRange(values, result.repeatedGroup_); |
| 4537 | return this; |
| 4538 | } |
| 4539 | public Builder ClearRepeatedGroup() { |
| 4540 | result.repeatedGroup_.Clear(); |
| 4541 | return this; |
| 4542 | } |
| 4543 | |
| 4544 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList { |
| 4545 | get { return result.repeatedNestedMessage_; } |
| 4546 | } |
| 4547 | public int RepeatedNestedMessageCount { |
| 4548 | get { return result.RepeatedNestedMessageCount; } |
| 4549 | } |
| 4550 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) { |
| 4551 | return result.GetRepeatedNestedMessage(index); |
| 4552 | } |
| 4553 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| 4554 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4555 | result.repeatedNestedMessage_[index] = value; |
| 4556 | return this; |
| 4557 | } |
| 4558 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| 4559 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4560 | result.repeatedNestedMessage_[index] = builderForValue.Build(); |
| 4561 | return this; |
| 4562 | } |
| 4563 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) { |
| 4564 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4565 | result.repeatedNestedMessage_.Add(value); |
| 4566 | return this; |
| 4567 | } |
| 4568 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) { |
| 4569 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4570 | result.repeatedNestedMessage_.Add(builderForValue.Build()); |
| 4571 | return this; |
| 4572 | } |
| 4573 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) { |
| 4574 | base.AddRange(values, result.repeatedNestedMessage_); |
| 4575 | return this; |
| 4576 | } |
| 4577 | public Builder ClearRepeatedNestedMessage() { |
| 4578 | result.repeatedNestedMessage_.Clear(); |
| 4579 | return this; |
| 4580 | } |
| 4581 | |
| 4582 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList { |
| 4583 | get { return result.repeatedForeignMessage_; } |
| 4584 | } |
| 4585 | public int RepeatedForeignMessageCount { |
| 4586 | get { return result.RepeatedForeignMessageCount; } |
| 4587 | } |
| 4588 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) { |
| 4589 | return result.GetRepeatedForeignMessage(index); |
| 4590 | } |
| 4591 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| 4592 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4593 | result.repeatedForeignMessage_[index] = value; |
| 4594 | return this; |
| 4595 | } |
| 4596 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| 4597 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4598 | result.repeatedForeignMessage_[index] = builderForValue.Build(); |
| 4599 | return this; |
| 4600 | } |
| 4601 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) { |
| 4602 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4603 | result.repeatedForeignMessage_.Add(value); |
| 4604 | return this; |
| 4605 | } |
| 4606 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) { |
| 4607 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4608 | result.repeatedForeignMessage_.Add(builderForValue.Build()); |
| 4609 | return this; |
| 4610 | } |
| 4611 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) { |
| 4612 | base.AddRange(values, result.repeatedForeignMessage_); |
| 4613 | return this; |
| 4614 | } |
| 4615 | public Builder ClearRepeatedForeignMessage() { |
| 4616 | result.repeatedForeignMessage_.Clear(); |
| 4617 | return this; |
| 4618 | } |
| 4619 | |
| 4620 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList { |
| 4621 | get { return result.repeatedImportMessage_; } |
| 4622 | } |
| 4623 | public int RepeatedImportMessageCount { |
| 4624 | get { return result.RepeatedImportMessageCount; } |
| 4625 | } |
| 4626 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) { |
| 4627 | return result.GetRepeatedImportMessage(index); |
| 4628 | } |
| 4629 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| 4630 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4631 | result.repeatedImportMessage_[index] = value; |
| 4632 | return this; |
| 4633 | } |
| 4634 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| 4635 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4636 | result.repeatedImportMessage_[index] = builderForValue.Build(); |
| 4637 | return this; |
| 4638 | } |
| 4639 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) { |
| 4640 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4641 | result.repeatedImportMessage_.Add(value); |
| 4642 | return this; |
| 4643 | } |
| 4644 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) { |
| 4645 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
| 4646 | result.repeatedImportMessage_.Add(builderForValue.Build()); |
| 4647 | return this; |
| 4648 | } |
| 4649 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) { |
| 4650 | base.AddRange(values, result.repeatedImportMessage_); |
| 4651 | return this; |
| 4652 | } |
| 4653 | public Builder ClearRepeatedImportMessage() { |
| 4654 | result.repeatedImportMessage_.Clear(); |
| 4655 | return this; |
| 4656 | } |
| 4657 | |
| 4658 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList { |
| 4659 | get { return result.repeatedNestedEnum_; } |
| 4660 | } |
| 4661 | public int RepeatedNestedEnumCount { |
| 4662 | get { return result.RepeatedNestedEnumCount; } |
| 4663 | } |
| 4664 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) { |
| 4665 | return result.GetRepeatedNestedEnum(index); |
| 4666 | } |
| 4667 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| 4668 | result.repeatedNestedEnum_[index] = value; |
| 4669 | return this; |
| 4670 | } |
| 4671 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| 4672 | result.repeatedNestedEnum_.Add(value); |
| 4673 | return this; |
| 4674 | } |
| 4675 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) { |
| 4676 | base.AddRange(values, result.repeatedNestedEnum_); |
| 4677 | return this; |
| 4678 | } |
| 4679 | public Builder ClearRepeatedNestedEnum() { |
| 4680 | result.repeatedNestedEnum_.Clear(); |
| 4681 | return this; |
| 4682 | } |
| 4683 | |
| 4684 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList { |
| 4685 | get { return result.repeatedForeignEnum_; } |
| 4686 | } |
| 4687 | public int RepeatedForeignEnumCount { |
| 4688 | get { return result.RepeatedForeignEnumCount; } |
| 4689 | } |
| 4690 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) { |
| 4691 | return result.GetRepeatedForeignEnum(index); |
| 4692 | } |
| 4693 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 4694 | result.repeatedForeignEnum_[index] = value; |
| 4695 | return this; |
| 4696 | } |
| 4697 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 4698 | result.repeatedForeignEnum_.Add(value); |
| 4699 | return this; |
| 4700 | } |
| 4701 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) { |
| 4702 | base.AddRange(values, result.repeatedForeignEnum_); |
| 4703 | return this; |
| 4704 | } |
| 4705 | public Builder ClearRepeatedForeignEnum() { |
| 4706 | result.repeatedForeignEnum_.Clear(); |
| 4707 | return this; |
| 4708 | } |
| 4709 | |
| 4710 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList { |
| 4711 | get { return result.repeatedImportEnum_; } |
| 4712 | } |
| 4713 | public int RepeatedImportEnumCount { |
| 4714 | get { return result.RepeatedImportEnumCount; } |
| 4715 | } |
| 4716 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) { |
| 4717 | return result.GetRepeatedImportEnum(index); |
| 4718 | } |
| 4719 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| 4720 | result.repeatedImportEnum_[index] = value; |
| 4721 | return this; |
| 4722 | } |
| 4723 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| 4724 | result.repeatedImportEnum_.Add(value); |
| 4725 | return this; |
| 4726 | } |
| 4727 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) { |
| 4728 | base.AddRange(values, result.repeatedImportEnum_); |
| 4729 | return this; |
| 4730 | } |
| 4731 | public Builder ClearRepeatedImportEnum() { |
| 4732 | result.repeatedImportEnum_.Clear(); |
| 4733 | return this; |
| 4734 | } |
| 4735 | |
| 4736 | public pbc::IPopsicleList<string> RepeatedStringPieceList { |
| 4737 | get { return result.repeatedStringPiece_; } |
| 4738 | } |
| 4739 | public int RepeatedStringPieceCount { |
| 4740 | get { return result.RepeatedStringPieceCount; } |
| 4741 | } |
| 4742 | public string GetRepeatedStringPiece(int index) { |
| 4743 | return result.GetRepeatedStringPiece(index); |
| 4744 | } |
| 4745 | public Builder SetRepeatedStringPiece(int index, string value) { |
| 4746 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4747 | result.repeatedStringPiece_[index] = value; |
| 4748 | return this; |
| 4749 | } |
| 4750 | public Builder AddRepeatedStringPiece(string value) { |
| 4751 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4752 | result.repeatedStringPiece_.Add(value); |
| 4753 | return this; |
| 4754 | } |
| 4755 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) { |
| 4756 | base.AddRange(values, result.repeatedStringPiece_); |
| 4757 | return this; |
| 4758 | } |
| 4759 | public Builder ClearRepeatedStringPiece() { |
| 4760 | result.repeatedStringPiece_.Clear(); |
| 4761 | return this; |
| 4762 | } |
| 4763 | |
| 4764 | public pbc::IPopsicleList<string> RepeatedCordList { |
| 4765 | get { return result.repeatedCord_; } |
| 4766 | } |
| 4767 | public int RepeatedCordCount { |
| 4768 | get { return result.RepeatedCordCount; } |
| 4769 | } |
| 4770 | public string GetRepeatedCord(int index) { |
| 4771 | return result.GetRepeatedCord(index); |
| 4772 | } |
| 4773 | public Builder SetRepeatedCord(int index, string value) { |
| 4774 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4775 | result.repeatedCord_[index] = value; |
| 4776 | return this; |
| 4777 | } |
| 4778 | public Builder AddRepeatedCord(string value) { |
| 4779 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 4780 | result.repeatedCord_.Add(value); |
| 4781 | return this; |
| 4782 | } |
| 4783 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) { |
| 4784 | base.AddRange(values, result.repeatedCord_); |
| 4785 | return this; |
| 4786 | } |
| 4787 | public Builder ClearRepeatedCord() { |
| 4788 | result.repeatedCord_.Clear(); |
| 4789 | return this; |
| 4790 | } |
| 4791 | |
| 4792 | public bool HasDefaultInt32 { |
| 4793 | get { return result.HasDefaultInt32; } |
| 4794 | } |
| 4795 | public int DefaultInt32 { |
| 4796 | get { return result.DefaultInt32; } |
| 4797 | set { SetDefaultInt32(value); } |
| 4798 | } |
| 4799 | public Builder SetDefaultInt32(int value) { |
| 4800 | result.hasDefaultInt32 = true; |
| 4801 | result.defaultInt32_ = value; |
| 4802 | return this; |
| 4803 | } |
| 4804 | public Builder ClearDefaultInt32() { |
| 4805 | result.hasDefaultInt32 = false; |
| 4806 | result.defaultInt32_ = 41; |
| 4807 | return this; |
| 4808 | } |
| 4809 | |
| 4810 | public bool HasDefaultInt64 { |
| 4811 | get { return result.HasDefaultInt64; } |
| 4812 | } |
| 4813 | public long DefaultInt64 { |
| 4814 | get { return result.DefaultInt64; } |
| 4815 | set { SetDefaultInt64(value); } |
| 4816 | } |
| 4817 | public Builder SetDefaultInt64(long value) { |
| 4818 | result.hasDefaultInt64 = true; |
| 4819 | result.defaultInt64_ = value; |
| 4820 | return this; |
| 4821 | } |
| 4822 | public Builder ClearDefaultInt64() { |
| 4823 | result.hasDefaultInt64 = false; |
| 4824 | result.defaultInt64_ = 42L; |
| 4825 | return this; |
| 4826 | } |
| 4827 | |
| 4828 | public bool HasDefaultUint32 { |
| 4829 | get { return result.HasDefaultUint32; } |
| 4830 | } |
| 4831 | [global::System.CLSCompliant(false)] |
| 4832 | public uint DefaultUint32 { |
| 4833 | get { return result.DefaultUint32; } |
| 4834 | set { SetDefaultUint32(value); } |
| 4835 | } |
| 4836 | [global::System.CLSCompliant(false)] |
| 4837 | public Builder SetDefaultUint32(uint value) { |
| 4838 | result.hasDefaultUint32 = true; |
| 4839 | result.defaultUint32_ = value; |
| 4840 | return this; |
| 4841 | } |
| 4842 | public Builder ClearDefaultUint32() { |
| 4843 | result.hasDefaultUint32 = false; |
| 4844 | result.defaultUint32_ = 43; |
| 4845 | return this; |
| 4846 | } |
| 4847 | |
| 4848 | public bool HasDefaultUint64 { |
| 4849 | get { return result.HasDefaultUint64; } |
| 4850 | } |
| 4851 | [global::System.CLSCompliant(false)] |
| 4852 | public ulong DefaultUint64 { |
| 4853 | get { return result.DefaultUint64; } |
| 4854 | set { SetDefaultUint64(value); } |
| 4855 | } |
| 4856 | [global::System.CLSCompliant(false)] |
| 4857 | public Builder SetDefaultUint64(ulong value) { |
| 4858 | result.hasDefaultUint64 = true; |
| 4859 | result.defaultUint64_ = value; |
| 4860 | return this; |
| 4861 | } |
| 4862 | public Builder ClearDefaultUint64() { |
| 4863 | result.hasDefaultUint64 = false; |
| 4864 | result.defaultUint64_ = 44UL; |
| 4865 | return this; |
| 4866 | } |
| 4867 | |
| 4868 | public bool HasDefaultSint32 { |
| 4869 | get { return result.HasDefaultSint32; } |
| 4870 | } |
| 4871 | public int DefaultSint32 { |
| 4872 | get { return result.DefaultSint32; } |
| 4873 | set { SetDefaultSint32(value); } |
| 4874 | } |
| 4875 | public Builder SetDefaultSint32(int value) { |
| 4876 | result.hasDefaultSint32 = true; |
| 4877 | result.defaultSint32_ = value; |
| 4878 | return this; |
| 4879 | } |
| 4880 | public Builder ClearDefaultSint32() { |
| 4881 | result.hasDefaultSint32 = false; |
| 4882 | result.defaultSint32_ = -45; |
| 4883 | return this; |
| 4884 | } |
| 4885 | |
| 4886 | public bool HasDefaultSint64 { |
| 4887 | get { return result.HasDefaultSint64; } |
| 4888 | } |
| 4889 | public long DefaultSint64 { |
| 4890 | get { return result.DefaultSint64; } |
| 4891 | set { SetDefaultSint64(value); } |
| 4892 | } |
| 4893 | public Builder SetDefaultSint64(long value) { |
| 4894 | result.hasDefaultSint64 = true; |
| 4895 | result.defaultSint64_ = value; |
| 4896 | return this; |
| 4897 | } |
| 4898 | public Builder ClearDefaultSint64() { |
| 4899 | result.hasDefaultSint64 = false; |
| 4900 | result.defaultSint64_ = 46; |
| 4901 | return this; |
| 4902 | } |
| 4903 | |
| 4904 | public bool HasDefaultFixed32 { |
| 4905 | get { return result.HasDefaultFixed32; } |
| 4906 | } |
| 4907 | [global::System.CLSCompliant(false)] |
| 4908 | public uint DefaultFixed32 { |
| 4909 | get { return result.DefaultFixed32; } |
| 4910 | set { SetDefaultFixed32(value); } |
| 4911 | } |
| 4912 | [global::System.CLSCompliant(false)] |
| 4913 | public Builder SetDefaultFixed32(uint value) { |
| 4914 | result.hasDefaultFixed32 = true; |
| 4915 | result.defaultFixed32_ = value; |
| 4916 | return this; |
| 4917 | } |
| 4918 | public Builder ClearDefaultFixed32() { |
| 4919 | result.hasDefaultFixed32 = false; |
| 4920 | result.defaultFixed32_ = 47; |
| 4921 | return this; |
| 4922 | } |
| 4923 | |
| 4924 | public bool HasDefaultFixed64 { |
| 4925 | get { return result.HasDefaultFixed64; } |
| 4926 | } |
| 4927 | [global::System.CLSCompliant(false)] |
| 4928 | public ulong DefaultFixed64 { |
| 4929 | get { return result.DefaultFixed64; } |
| 4930 | set { SetDefaultFixed64(value); } |
| 4931 | } |
| 4932 | [global::System.CLSCompliant(false)] |
| 4933 | public Builder SetDefaultFixed64(ulong value) { |
| 4934 | result.hasDefaultFixed64 = true; |
| 4935 | result.defaultFixed64_ = value; |
| 4936 | return this; |
| 4937 | } |
| 4938 | public Builder ClearDefaultFixed64() { |
| 4939 | result.hasDefaultFixed64 = false; |
| 4940 | result.defaultFixed64_ = 48; |
| 4941 | return this; |
| 4942 | } |
| 4943 | |
| 4944 | public bool HasDefaultSfixed32 { |
| 4945 | get { return result.HasDefaultSfixed32; } |
| 4946 | } |
| 4947 | public int DefaultSfixed32 { |
| 4948 | get { return result.DefaultSfixed32; } |
| 4949 | set { SetDefaultSfixed32(value); } |
| 4950 | } |
| 4951 | public Builder SetDefaultSfixed32(int value) { |
| 4952 | result.hasDefaultSfixed32 = true; |
| 4953 | result.defaultSfixed32_ = value; |
| 4954 | return this; |
| 4955 | } |
| 4956 | public Builder ClearDefaultSfixed32() { |
| 4957 | result.hasDefaultSfixed32 = false; |
| 4958 | result.defaultSfixed32_ = 49; |
| 4959 | return this; |
| 4960 | } |
| 4961 | |
| 4962 | public bool HasDefaultSfixed64 { |
| 4963 | get { return result.HasDefaultSfixed64; } |
| 4964 | } |
| 4965 | public long DefaultSfixed64 { |
| 4966 | get { return result.DefaultSfixed64; } |
| 4967 | set { SetDefaultSfixed64(value); } |
| 4968 | } |
| 4969 | public Builder SetDefaultSfixed64(long value) { |
| 4970 | result.hasDefaultSfixed64 = true; |
| 4971 | result.defaultSfixed64_ = value; |
| 4972 | return this; |
| 4973 | } |
| 4974 | public Builder ClearDefaultSfixed64() { |
| 4975 | result.hasDefaultSfixed64 = false; |
| 4976 | result.defaultSfixed64_ = -50; |
| 4977 | return this; |
| 4978 | } |
| 4979 | |
| 4980 | public bool HasDefaultFloat { |
| 4981 | get { return result.HasDefaultFloat; } |
| 4982 | } |
| 4983 | public float DefaultFloat { |
| 4984 | get { return result.DefaultFloat; } |
| 4985 | set { SetDefaultFloat(value); } |
| 4986 | } |
| 4987 | public Builder SetDefaultFloat(float value) { |
| 4988 | result.hasDefaultFloat = true; |
| 4989 | result.defaultFloat_ = value; |
| 4990 | return this; |
| 4991 | } |
| 4992 | public Builder ClearDefaultFloat() { |
| 4993 | result.hasDefaultFloat = false; |
| 4994 | result.defaultFloat_ = 51.5F; |
| 4995 | return this; |
| 4996 | } |
| 4997 | |
| 4998 | public bool HasDefaultDouble { |
| 4999 | get { return result.HasDefaultDouble; } |
| 5000 | } |
| 5001 | public double DefaultDouble { |
| 5002 | get { return result.DefaultDouble; } |
| 5003 | set { SetDefaultDouble(value); } |
| 5004 | } |
| 5005 | public Builder SetDefaultDouble(double value) { |
| 5006 | result.hasDefaultDouble = true; |
| 5007 | result.defaultDouble_ = value; |
| 5008 | return this; |
| 5009 | } |
| 5010 | public Builder ClearDefaultDouble() { |
| 5011 | result.hasDefaultDouble = false; |
| 5012 | result.defaultDouble_ = 52000D; |
| 5013 | return this; |
| 5014 | } |
| 5015 | |
| 5016 | public bool HasDefaultBool { |
| 5017 | get { return result.HasDefaultBool; } |
| 5018 | } |
| 5019 | public bool DefaultBool { |
| 5020 | get { return result.DefaultBool; } |
| 5021 | set { SetDefaultBool(value); } |
| 5022 | } |
| 5023 | public Builder SetDefaultBool(bool value) { |
| 5024 | result.hasDefaultBool = true; |
| 5025 | result.defaultBool_ = value; |
| 5026 | return this; |
| 5027 | } |
| 5028 | public Builder ClearDefaultBool() { |
| 5029 | result.hasDefaultBool = false; |
| 5030 | result.defaultBool_ = true; |
| 5031 | return this; |
| 5032 | } |
| 5033 | |
| 5034 | public bool HasDefaultString { |
| 5035 | get { return result.HasDefaultString; } |
| 5036 | } |
| 5037 | public string DefaultString { |
| 5038 | get { return result.DefaultString; } |
| 5039 | set { SetDefaultString(value); } |
| 5040 | } |
| 5041 | public Builder SetDefaultString(string value) { |
| 5042 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 5043 | result.hasDefaultString = true; |
| 5044 | result.defaultString_ = value; |
| 5045 | return this; |
| 5046 | } |
| 5047 | public Builder ClearDefaultString() { |
| 5048 | result.hasDefaultString = false; |
| 5049 | result.defaultString_ = "hello"; |
| 5050 | return this; |
| 5051 | } |
| 5052 | |
| 5053 | public bool HasDefaultBytes { |
| 5054 | get { return result.HasDefaultBytes; } |
| 5055 | } |
| 5056 | public pb::ByteString DefaultBytes { |
| 5057 | get { return result.DefaultBytes; } |
| 5058 | set { SetDefaultBytes(value); } |
| 5059 | } |
| 5060 | public Builder SetDefaultBytes(pb::ByteString value) { |
| 5061 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 5062 | result.hasDefaultBytes = true; |
| 5063 | result.defaultBytes_ = value; |
| 5064 | return this; |
| 5065 | } |
| 5066 | public Builder ClearDefaultBytes() { |
| 5067 | result.hasDefaultBytes = false; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5068 | result.defaultBytes_ = ByteString.FromBase64("d29ybGQ="); |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5069 | return this; |
| 5070 | } |
| 5071 | |
| 5072 | public bool HasDefaultNestedEnum { |
| 5073 | get { return result.HasDefaultNestedEnum; } |
| 5074 | } |
| 5075 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum { |
| 5076 | get { return result.DefaultNestedEnum; } |
| 5077 | set { SetDefaultNestedEnum(value); } |
| 5078 | } |
| 5079 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) { |
| 5080 | result.hasDefaultNestedEnum = true; |
| 5081 | result.defaultNestedEnum_ = value; |
| 5082 | return this; |
| 5083 | } |
| 5084 | public Builder ClearDefaultNestedEnum() { |
| 5085 | result.hasDefaultNestedEnum = false; |
| 5086 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR; |
| 5087 | return this; |
| 5088 | } |
| 5089 | |
| 5090 | public bool HasDefaultForeignEnum { |
| 5091 | get { return result.HasDefaultForeignEnum; } |
| 5092 | } |
| 5093 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum { |
| 5094 | get { return result.DefaultForeignEnum; } |
| 5095 | set { SetDefaultForeignEnum(value); } |
| 5096 | } |
| 5097 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 5098 | result.hasDefaultForeignEnum = true; |
| 5099 | result.defaultForeignEnum_ = value; |
| 5100 | return this; |
| 5101 | } |
| 5102 | public Builder ClearDefaultForeignEnum() { |
| 5103 | result.hasDefaultForeignEnum = false; |
| 5104 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR; |
| 5105 | return this; |
| 5106 | } |
| 5107 | |
| 5108 | public bool HasDefaultImportEnum { |
| 5109 | get { return result.HasDefaultImportEnum; } |
| 5110 | } |
| 5111 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum { |
| 5112 | get { return result.DefaultImportEnum; } |
| 5113 | set { SetDefaultImportEnum(value); } |
| 5114 | } |
| 5115 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) { |
| 5116 | result.hasDefaultImportEnum = true; |
| 5117 | result.defaultImportEnum_ = value; |
| 5118 | return this; |
| 5119 | } |
| 5120 | public Builder ClearDefaultImportEnum() { |
| 5121 | result.hasDefaultImportEnum = false; |
| 5122 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR; |
| 5123 | return this; |
| 5124 | } |
| 5125 | |
| 5126 | public bool HasDefaultStringPiece { |
| 5127 | get { return result.HasDefaultStringPiece; } |
| 5128 | } |
| 5129 | public string DefaultStringPiece { |
| 5130 | get { return result.DefaultStringPiece; } |
| 5131 | set { SetDefaultStringPiece(value); } |
| 5132 | } |
| 5133 | public Builder SetDefaultStringPiece(string value) { |
| 5134 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 5135 | result.hasDefaultStringPiece = true; |
| 5136 | result.defaultStringPiece_ = value; |
| 5137 | return this; |
| 5138 | } |
| 5139 | public Builder ClearDefaultStringPiece() { |
| 5140 | result.hasDefaultStringPiece = false; |
| 5141 | result.defaultStringPiece_ = "abc"; |
| 5142 | return this; |
| 5143 | } |
| 5144 | |
| 5145 | public bool HasDefaultCord { |
| 5146 | get { return result.HasDefaultCord; } |
| 5147 | } |
| 5148 | public string DefaultCord { |
| 5149 | get { return result.DefaultCord; } |
| 5150 | set { SetDefaultCord(value); } |
| 5151 | } |
| 5152 | public Builder SetDefaultCord(string value) { |
| 5153 | pb::ThrowHelper.ThrowIfNull(value, "value"); |
| 5154 | result.hasDefaultCord = true; |
| 5155 | result.defaultCord_ = value; |
| 5156 | return this; |
| 5157 | } |
| 5158 | public Builder ClearDefaultCord() { |
| 5159 | result.hasDefaultCord = false; |
| 5160 | result.defaultCord_ = "123"; |
| 5161 | return this; |
| 5162 | } |
| 5163 | } |
| 5164 | static TestAllTypesLite() { |
| 5165 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 5166 | } |
| 5167 | } |
| 5168 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5169 | public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5170 | private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial(); |
| 5171 | public static ForeignMessageLite DefaultInstance { |
| 5172 | get { return defaultInstance; } |
| 5173 | } |
| 5174 | |
| 5175 | public override ForeignMessageLite DefaultInstanceForType { |
| 5176 | get { return defaultInstance; } |
| 5177 | } |
| 5178 | |
| 5179 | protected override ForeignMessageLite ThisMessage { |
| 5180 | get { return this; } |
| 5181 | } |
| 5182 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5183 | public const int CFieldNumber = 1; |
| 5184 | private bool hasC; |
| 5185 | private int c_ = 0; |
| 5186 | public bool HasC { |
| 5187 | get { return hasC; } |
| 5188 | } |
| 5189 | public int C { |
| 5190 | get { return c_; } |
| 5191 | } |
| 5192 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5193 | public override bool IsInitialized { |
| 5194 | get { |
| 5195 | return true; |
| 5196 | } |
| 5197 | } |
| 5198 | |
| 5199 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5200 | int size = SerializedSize; |
| 5201 | if (HasC) { |
| 5202 | output.WriteInt32(1, C); |
| 5203 | } |
| 5204 | } |
| 5205 | |
| 5206 | private int memoizedSerializedSize = -1; |
| 5207 | public override int SerializedSize { |
| 5208 | get { |
| 5209 | int size = memoizedSerializedSize; |
| 5210 | if (size != -1) return size; |
| 5211 | |
| 5212 | size = 0; |
| 5213 | if (HasC) { |
| 5214 | size += pb::CodedOutputStream.ComputeInt32Size(1, C); |
| 5215 | } |
| 5216 | memoizedSerializedSize = size; |
| 5217 | return size; |
| 5218 | } |
| 5219 | } |
| 5220 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5221 | public static ForeignMessageLite ParseFrom(pb::ByteString data) { |
| 5222 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5223 | } |
| 5224 | public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5225 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5226 | } |
| 5227 | public static ForeignMessageLite ParseFrom(byte[] data) { |
| 5228 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5229 | } |
| 5230 | public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5231 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5232 | } |
| 5233 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) { |
| 5234 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5235 | } |
| 5236 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5237 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5238 | } |
| 5239 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 5240 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 5241 | } |
| 5242 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5243 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 5244 | } |
| 5245 | public static ForeignMessageLite ParseFrom(pb::CodedInputStream input) { |
| 5246 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5247 | } |
| 5248 | public static ForeignMessageLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5249 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5250 | } |
| 5251 | public static Builder CreateBuilder() { return new Builder(); } |
| 5252 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 5253 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5254 | public static Builder CreateBuilder(ForeignMessageLite prototype) { |
| 5255 | return (Builder) new Builder().MergeFrom(prototype); |
| 5256 | } |
| 5257 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5258 | public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5259 | protected override Builder ThisBuilder { |
| 5260 | get { return this; } |
| 5261 | } |
| 5262 | public Builder() {} |
| 5263 | |
| 5264 | ForeignMessageLite result = new ForeignMessageLite(); |
| 5265 | |
| 5266 | protected override ForeignMessageLite MessageBeingBuilt { |
| 5267 | get { return result; } |
| 5268 | } |
| 5269 | |
| 5270 | public override Builder Clear() { |
| 5271 | result = new ForeignMessageLite(); |
| 5272 | return this; |
| 5273 | } |
| 5274 | |
| 5275 | public override Builder Clone() { |
| 5276 | return new Builder().MergeFrom(result); |
| 5277 | } |
| 5278 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5279 | public override ForeignMessageLite DefaultInstanceForType { |
| 5280 | get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; } |
| 5281 | } |
| 5282 | |
| 5283 | public override ForeignMessageLite BuildPartial() { |
| 5284 | if (result == null) { |
| 5285 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 5286 | } |
| 5287 | ForeignMessageLite returnMe = result; |
| 5288 | result = null; |
| 5289 | return returnMe; |
| 5290 | } |
| 5291 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5292 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 5293 | if (other is ForeignMessageLite) { |
| 5294 | return MergeFrom((ForeignMessageLite) other); |
| 5295 | } else { |
| 5296 | base.MergeFrom(other); |
| 5297 | return this; |
| 5298 | } |
| 5299 | } |
| 5300 | |
| 5301 | public override Builder MergeFrom(ForeignMessageLite other) { |
| 5302 | if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this; |
| 5303 | if (other.HasC) { |
| 5304 | C = other.C; |
| 5305 | } |
| 5306 | return this; |
| 5307 | } |
| 5308 | |
| 5309 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5310 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5311 | } |
| 5312 | |
| 5313 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5314 | while (true) { |
| 5315 | uint tag = input.ReadTag(); |
| 5316 | switch (tag) { |
| 5317 | case 0: { |
| 5318 | return this; |
| 5319 | } |
| 5320 | default: { |
| 5321 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 5322 | return this; |
| 5323 | } |
| 5324 | ParseUnknownField(input, extensionRegistry, tag); |
| 5325 | break; |
| 5326 | } |
| 5327 | case 8: { |
| 5328 | C = input.ReadInt32(); |
| 5329 | break; |
| 5330 | } |
| 5331 | } |
| 5332 | } |
| 5333 | } |
| 5334 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5335 | |
| 5336 | public bool HasC { |
| 5337 | get { return result.HasC; } |
| 5338 | } |
| 5339 | public int C { |
| 5340 | get { return result.C; } |
| 5341 | set { SetC(value); } |
| 5342 | } |
| 5343 | public Builder SetC(int value) { |
| 5344 | result.hasC = true; |
| 5345 | result.c_ = value; |
| 5346 | return this; |
| 5347 | } |
| 5348 | public Builder ClearC() { |
| 5349 | result.hasC = false; |
| 5350 | result.c_ = 0; |
| 5351 | return this; |
| 5352 | } |
| 5353 | } |
| 5354 | static ForeignMessageLite() { |
| 5355 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 5356 | } |
| 5357 | } |
| 5358 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5359 | public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5360 | private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial(); |
| 5361 | public static TestPackedTypesLite DefaultInstance { |
| 5362 | get { return defaultInstance; } |
| 5363 | } |
| 5364 | |
| 5365 | public override TestPackedTypesLite DefaultInstanceForType { |
| 5366 | get { return defaultInstance; } |
| 5367 | } |
| 5368 | |
| 5369 | protected override TestPackedTypesLite ThisMessage { |
| 5370 | get { return this; } |
| 5371 | } |
| 5372 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5373 | public const int PackedInt32FieldNumber = 90; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5374 | private int packedInt32MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5375 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>(); |
| 5376 | public scg::IList<int> PackedInt32List { |
| 5377 | get { return pbc::Lists.AsReadOnly(packedInt32_); } |
| 5378 | } |
| 5379 | public int PackedInt32Count { |
| 5380 | get { return packedInt32_.Count; } |
| 5381 | } |
| 5382 | public int GetPackedInt32(int index) { |
| 5383 | return packedInt32_[index]; |
| 5384 | } |
| 5385 | |
| 5386 | public const int PackedInt64FieldNumber = 91; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5387 | private int packedInt64MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5388 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>(); |
| 5389 | public scg::IList<long> PackedInt64List { |
| 5390 | get { return pbc::Lists.AsReadOnly(packedInt64_); } |
| 5391 | } |
| 5392 | public int PackedInt64Count { |
| 5393 | get { return packedInt64_.Count; } |
| 5394 | } |
| 5395 | public long GetPackedInt64(int index) { |
| 5396 | return packedInt64_[index]; |
| 5397 | } |
| 5398 | |
| 5399 | public const int PackedUint32FieldNumber = 92; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5400 | private int packedUint32MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5401 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>(); |
| 5402 | [global::System.CLSCompliant(false)] |
| 5403 | public scg::IList<uint> PackedUint32List { |
| 5404 | get { return pbc::Lists.AsReadOnly(packedUint32_); } |
| 5405 | } |
| 5406 | public int PackedUint32Count { |
| 5407 | get { return packedUint32_.Count; } |
| 5408 | } |
| 5409 | [global::System.CLSCompliant(false)] |
| 5410 | public uint GetPackedUint32(int index) { |
| 5411 | return packedUint32_[index]; |
| 5412 | } |
| 5413 | |
| 5414 | public const int PackedUint64FieldNumber = 93; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5415 | private int packedUint64MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5416 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>(); |
| 5417 | [global::System.CLSCompliant(false)] |
| 5418 | public scg::IList<ulong> PackedUint64List { |
| 5419 | get { return pbc::Lists.AsReadOnly(packedUint64_); } |
| 5420 | } |
| 5421 | public int PackedUint64Count { |
| 5422 | get { return packedUint64_.Count; } |
| 5423 | } |
| 5424 | [global::System.CLSCompliant(false)] |
| 5425 | public ulong GetPackedUint64(int index) { |
| 5426 | return packedUint64_[index]; |
| 5427 | } |
| 5428 | |
| 5429 | public const int PackedSint32FieldNumber = 94; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5430 | private int packedSint32MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5431 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>(); |
| 5432 | public scg::IList<int> PackedSint32List { |
| 5433 | get { return pbc::Lists.AsReadOnly(packedSint32_); } |
| 5434 | } |
| 5435 | public int PackedSint32Count { |
| 5436 | get { return packedSint32_.Count; } |
| 5437 | } |
| 5438 | public int GetPackedSint32(int index) { |
| 5439 | return packedSint32_[index]; |
| 5440 | } |
| 5441 | |
| 5442 | public const int PackedSint64FieldNumber = 95; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5443 | private int packedSint64MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5444 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>(); |
| 5445 | public scg::IList<long> PackedSint64List { |
| 5446 | get { return pbc::Lists.AsReadOnly(packedSint64_); } |
| 5447 | } |
| 5448 | public int PackedSint64Count { |
| 5449 | get { return packedSint64_.Count; } |
| 5450 | } |
| 5451 | public long GetPackedSint64(int index) { |
| 5452 | return packedSint64_[index]; |
| 5453 | } |
| 5454 | |
| 5455 | public const int PackedFixed32FieldNumber = 96; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5456 | private int packedFixed32MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5457 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>(); |
| 5458 | [global::System.CLSCompliant(false)] |
| 5459 | public scg::IList<uint> PackedFixed32List { |
| 5460 | get { return pbc::Lists.AsReadOnly(packedFixed32_); } |
| 5461 | } |
| 5462 | public int PackedFixed32Count { |
| 5463 | get { return packedFixed32_.Count; } |
| 5464 | } |
| 5465 | [global::System.CLSCompliant(false)] |
| 5466 | public uint GetPackedFixed32(int index) { |
| 5467 | return packedFixed32_[index]; |
| 5468 | } |
| 5469 | |
| 5470 | public const int PackedFixed64FieldNumber = 97; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5471 | private int packedFixed64MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5472 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>(); |
| 5473 | [global::System.CLSCompliant(false)] |
| 5474 | public scg::IList<ulong> PackedFixed64List { |
| 5475 | get { return pbc::Lists.AsReadOnly(packedFixed64_); } |
| 5476 | } |
| 5477 | public int PackedFixed64Count { |
| 5478 | get { return packedFixed64_.Count; } |
| 5479 | } |
| 5480 | [global::System.CLSCompliant(false)] |
| 5481 | public ulong GetPackedFixed64(int index) { |
| 5482 | return packedFixed64_[index]; |
| 5483 | } |
| 5484 | |
| 5485 | public const int PackedSfixed32FieldNumber = 98; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5486 | private int packedSfixed32MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5487 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>(); |
| 5488 | public scg::IList<int> PackedSfixed32List { |
| 5489 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); } |
| 5490 | } |
| 5491 | public int PackedSfixed32Count { |
| 5492 | get { return packedSfixed32_.Count; } |
| 5493 | } |
| 5494 | public int GetPackedSfixed32(int index) { |
| 5495 | return packedSfixed32_[index]; |
| 5496 | } |
| 5497 | |
| 5498 | public const int PackedSfixed64FieldNumber = 99; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5499 | private int packedSfixed64MemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5500 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>(); |
| 5501 | public scg::IList<long> PackedSfixed64List { |
| 5502 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); } |
| 5503 | } |
| 5504 | public int PackedSfixed64Count { |
| 5505 | get { return packedSfixed64_.Count; } |
| 5506 | } |
| 5507 | public long GetPackedSfixed64(int index) { |
| 5508 | return packedSfixed64_[index]; |
| 5509 | } |
| 5510 | |
| 5511 | public const int PackedFloatFieldNumber = 100; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5512 | private int packedFloatMemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5513 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>(); |
| 5514 | public scg::IList<float> PackedFloatList { |
| 5515 | get { return pbc::Lists.AsReadOnly(packedFloat_); } |
| 5516 | } |
| 5517 | public int PackedFloatCount { |
| 5518 | get { return packedFloat_.Count; } |
| 5519 | } |
| 5520 | public float GetPackedFloat(int index) { |
| 5521 | return packedFloat_[index]; |
| 5522 | } |
| 5523 | |
| 5524 | public const int PackedDoubleFieldNumber = 101; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5525 | private int packedDoubleMemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5526 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>(); |
| 5527 | public scg::IList<double> PackedDoubleList { |
| 5528 | get { return pbc::Lists.AsReadOnly(packedDouble_); } |
| 5529 | } |
| 5530 | public int PackedDoubleCount { |
| 5531 | get { return packedDouble_.Count; } |
| 5532 | } |
| 5533 | public double GetPackedDouble(int index) { |
| 5534 | return packedDouble_[index]; |
| 5535 | } |
| 5536 | |
| 5537 | public const int PackedBoolFieldNumber = 102; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5538 | private int packedBoolMemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5539 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>(); |
| 5540 | public scg::IList<bool> PackedBoolList { |
| 5541 | get { return pbc::Lists.AsReadOnly(packedBool_); } |
| 5542 | } |
| 5543 | public int PackedBoolCount { |
| 5544 | get { return packedBool_.Count; } |
| 5545 | } |
| 5546 | public bool GetPackedBool(int index) { |
| 5547 | return packedBool_[index]; |
| 5548 | } |
| 5549 | |
| 5550 | public const int PackedEnumFieldNumber = 103; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5551 | private int packedEnumMemoizedSerializedSize; |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5552 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(); |
| 5553 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList { |
| 5554 | get { return pbc::Lists.AsReadOnly(packedEnum_); } |
| 5555 | } |
| 5556 | public int PackedEnumCount { |
| 5557 | get { return packedEnum_.Count; } |
| 5558 | } |
| 5559 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) { |
| 5560 | return packedEnum_[index]; |
| 5561 | } |
| 5562 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5563 | public override bool IsInitialized { |
| 5564 | get { |
| 5565 | return true; |
| 5566 | } |
| 5567 | } |
| 5568 | |
| 5569 | public override void WriteTo(pb::CodedOutputStream output) { |
| 5570 | int size = SerializedSize; |
| 5571 | if (packedInt32_.Count > 0) { |
| 5572 | output.WriteRawVarint32(722); |
| 5573 | output.WriteRawVarint32((uint) packedInt32MemoizedSerializedSize); |
| 5574 | foreach (int element in packedInt32_) { |
| 5575 | output.WriteInt32NoTag(element); |
| 5576 | } |
| 5577 | } |
| 5578 | if (packedInt64_.Count > 0) { |
| 5579 | output.WriteRawVarint32(730); |
| 5580 | output.WriteRawVarint32((uint) packedInt64MemoizedSerializedSize); |
| 5581 | foreach (long element in packedInt64_) { |
| 5582 | output.WriteInt64NoTag(element); |
| 5583 | } |
| 5584 | } |
| 5585 | if (packedUint32_.Count > 0) { |
| 5586 | output.WriteRawVarint32(738); |
| 5587 | output.WriteRawVarint32((uint) packedUint32MemoizedSerializedSize); |
| 5588 | foreach (uint element in packedUint32_) { |
| 5589 | output.WriteUInt32NoTag(element); |
| 5590 | } |
| 5591 | } |
| 5592 | if (packedUint64_.Count > 0) { |
| 5593 | output.WriteRawVarint32(746); |
| 5594 | output.WriteRawVarint32((uint) packedUint64MemoizedSerializedSize); |
| 5595 | foreach (ulong element in packedUint64_) { |
| 5596 | output.WriteUInt64NoTag(element); |
| 5597 | } |
| 5598 | } |
| 5599 | if (packedSint32_.Count > 0) { |
| 5600 | output.WriteRawVarint32(754); |
| 5601 | output.WriteRawVarint32((uint) packedSint32MemoizedSerializedSize); |
| 5602 | foreach (int element in packedSint32_) { |
| 5603 | output.WriteSInt32NoTag(element); |
| 5604 | } |
| 5605 | } |
| 5606 | if (packedSint64_.Count > 0) { |
| 5607 | output.WriteRawVarint32(762); |
| 5608 | output.WriteRawVarint32((uint) packedSint64MemoizedSerializedSize); |
| 5609 | foreach (long element in packedSint64_) { |
| 5610 | output.WriteSInt64NoTag(element); |
| 5611 | } |
| 5612 | } |
| 5613 | if (packedFixed32_.Count > 0) { |
| 5614 | output.WriteRawVarint32(770); |
| 5615 | output.WriteRawVarint32((uint) packedFixed32MemoizedSerializedSize); |
| 5616 | foreach (uint element in packedFixed32_) { |
| 5617 | output.WriteFixed32NoTag(element); |
| 5618 | } |
| 5619 | } |
| 5620 | if (packedFixed64_.Count > 0) { |
| 5621 | output.WriteRawVarint32(778); |
| 5622 | output.WriteRawVarint32((uint) packedFixed64MemoizedSerializedSize); |
| 5623 | foreach (ulong element in packedFixed64_) { |
| 5624 | output.WriteFixed64NoTag(element); |
| 5625 | } |
| 5626 | } |
| 5627 | if (packedSfixed32_.Count > 0) { |
| 5628 | output.WriteRawVarint32(786); |
| 5629 | output.WriteRawVarint32((uint) packedSfixed32MemoizedSerializedSize); |
| 5630 | foreach (int element in packedSfixed32_) { |
| 5631 | output.WriteSFixed32NoTag(element); |
| 5632 | } |
| 5633 | } |
| 5634 | if (packedSfixed64_.Count > 0) { |
| 5635 | output.WriteRawVarint32(794); |
| 5636 | output.WriteRawVarint32((uint) packedSfixed64MemoizedSerializedSize); |
| 5637 | foreach (long element in packedSfixed64_) { |
| 5638 | output.WriteSFixed64NoTag(element); |
| 5639 | } |
| 5640 | } |
| 5641 | if (packedFloat_.Count > 0) { |
| 5642 | output.WriteRawVarint32(802); |
| 5643 | output.WriteRawVarint32((uint) packedFloatMemoizedSerializedSize); |
| 5644 | foreach (float element in packedFloat_) { |
| 5645 | output.WriteFloatNoTag(element); |
| 5646 | } |
| 5647 | } |
| 5648 | if (packedDouble_.Count > 0) { |
| 5649 | output.WriteRawVarint32(810); |
| 5650 | output.WriteRawVarint32((uint) packedDoubleMemoizedSerializedSize); |
| 5651 | foreach (double element in packedDouble_) { |
| 5652 | output.WriteDoubleNoTag(element); |
| 5653 | } |
| 5654 | } |
| 5655 | if (packedBool_.Count > 0) { |
| 5656 | output.WriteRawVarint32(818); |
| 5657 | output.WriteRawVarint32((uint) packedBoolMemoizedSerializedSize); |
| 5658 | foreach (bool element in packedBool_) { |
| 5659 | output.WriteBoolNoTag(element); |
| 5660 | } |
| 5661 | } |
| 5662 | if (packedEnum_.Count > 0) { |
| 5663 | output.WriteRawVarint32(826); |
| 5664 | output.WriteRawVarint32((uint) packedEnumMemoizedSerializedSize); |
| 5665 | foreach (int element in packedEnum_) { |
| 5666 | output.WriteEnumNoTag(element); |
| 5667 | } |
| 5668 | } |
| 5669 | } |
| 5670 | |
| 5671 | private int memoizedSerializedSize = -1; |
| 5672 | public override int SerializedSize { |
| 5673 | get { |
| 5674 | int size = memoizedSerializedSize; |
| 5675 | if (size != -1) return size; |
| 5676 | |
| 5677 | size = 0; |
| 5678 | { |
| 5679 | int dataSize = 0; |
| 5680 | foreach (int element in PackedInt32List) { |
| 5681 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element); |
| 5682 | } |
| 5683 | size += dataSize; |
| 5684 | if (packedInt32_.Count != 0) { |
| 5685 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5686 | } |
| 5687 | packedInt32MemoizedSerializedSize = dataSize; |
| 5688 | } |
| 5689 | { |
| 5690 | int dataSize = 0; |
| 5691 | foreach (long element in PackedInt64List) { |
| 5692 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element); |
| 5693 | } |
| 5694 | size += dataSize; |
| 5695 | if (packedInt64_.Count != 0) { |
| 5696 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5697 | } |
| 5698 | packedInt64MemoizedSerializedSize = dataSize; |
| 5699 | } |
| 5700 | { |
| 5701 | int dataSize = 0; |
| 5702 | foreach (uint element in PackedUint32List) { |
| 5703 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element); |
| 5704 | } |
| 5705 | size += dataSize; |
| 5706 | if (packedUint32_.Count != 0) { |
| 5707 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5708 | } |
| 5709 | packedUint32MemoizedSerializedSize = dataSize; |
| 5710 | } |
| 5711 | { |
| 5712 | int dataSize = 0; |
| 5713 | foreach (ulong element in PackedUint64List) { |
| 5714 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element); |
| 5715 | } |
| 5716 | size += dataSize; |
| 5717 | if (packedUint64_.Count != 0) { |
| 5718 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5719 | } |
| 5720 | packedUint64MemoizedSerializedSize = dataSize; |
| 5721 | } |
| 5722 | { |
| 5723 | int dataSize = 0; |
| 5724 | foreach (int element in PackedSint32List) { |
| 5725 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element); |
| 5726 | } |
| 5727 | size += dataSize; |
| 5728 | if (packedSint32_.Count != 0) { |
| 5729 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5730 | } |
| 5731 | packedSint32MemoizedSerializedSize = dataSize; |
| 5732 | } |
| 5733 | { |
| 5734 | int dataSize = 0; |
| 5735 | foreach (long element in PackedSint64List) { |
| 5736 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element); |
| 5737 | } |
| 5738 | size += dataSize; |
| 5739 | if (packedSint64_.Count != 0) { |
| 5740 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5741 | } |
| 5742 | packedSint64MemoizedSerializedSize = dataSize; |
| 5743 | } |
| 5744 | { |
| 5745 | int dataSize = 0; |
| 5746 | dataSize = 4 * packedFixed32_.Count; |
| 5747 | size += dataSize; |
| 5748 | if (packedFixed32_.Count != 0) { |
| 5749 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5750 | } |
| 5751 | packedFixed32MemoizedSerializedSize = dataSize; |
| 5752 | } |
| 5753 | { |
| 5754 | int dataSize = 0; |
| 5755 | dataSize = 8 * packedFixed64_.Count; |
| 5756 | size += dataSize; |
| 5757 | if (packedFixed64_.Count != 0) { |
| 5758 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5759 | } |
| 5760 | packedFixed64MemoizedSerializedSize = dataSize; |
| 5761 | } |
| 5762 | { |
| 5763 | int dataSize = 0; |
| 5764 | dataSize = 4 * packedSfixed32_.Count; |
| 5765 | size += dataSize; |
| 5766 | if (packedSfixed32_.Count != 0) { |
| 5767 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5768 | } |
| 5769 | packedSfixed32MemoizedSerializedSize = dataSize; |
| 5770 | } |
| 5771 | { |
| 5772 | int dataSize = 0; |
| 5773 | dataSize = 8 * packedSfixed64_.Count; |
| 5774 | size += dataSize; |
| 5775 | if (packedSfixed64_.Count != 0) { |
| 5776 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5777 | } |
| 5778 | packedSfixed64MemoizedSerializedSize = dataSize; |
| 5779 | } |
| 5780 | { |
| 5781 | int dataSize = 0; |
| 5782 | dataSize = 4 * packedFloat_.Count; |
| 5783 | size += dataSize; |
| 5784 | if (packedFloat_.Count != 0) { |
| 5785 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5786 | } |
| 5787 | packedFloatMemoizedSerializedSize = dataSize; |
| 5788 | } |
| 5789 | { |
| 5790 | int dataSize = 0; |
| 5791 | dataSize = 8 * packedDouble_.Count; |
| 5792 | size += dataSize; |
| 5793 | if (packedDouble_.Count != 0) { |
| 5794 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5795 | } |
| 5796 | packedDoubleMemoizedSerializedSize = dataSize; |
| 5797 | } |
| 5798 | { |
| 5799 | int dataSize = 0; |
| 5800 | dataSize = 1 * packedBool_.Count; |
| 5801 | size += dataSize; |
| 5802 | if (packedBool_.Count != 0) { |
| 5803 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize); |
| 5804 | } |
| 5805 | packedBoolMemoizedSerializedSize = dataSize; |
| 5806 | } |
| 5807 | { |
| 5808 | int dataSize = 0; |
| 5809 | if (packedEnum_.Count > 0) { |
| 5810 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) { |
| 5811 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element); |
| 5812 | } |
| 5813 | size += dataSize; |
| 5814 | size += 2; |
| 5815 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize); |
| 5816 | } |
| 5817 | packedEnumMemoizedSerializedSize = dataSize; |
| 5818 | } |
| 5819 | memoizedSerializedSize = size; |
| 5820 | return size; |
| 5821 | } |
| 5822 | } |
| 5823 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5824 | public static TestPackedTypesLite ParseFrom(pb::ByteString data) { |
| 5825 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5826 | } |
| 5827 | public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 5828 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5829 | } |
| 5830 | public static TestPackedTypesLite ParseFrom(byte[] data) { |
| 5831 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 5832 | } |
| 5833 | public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 5834 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 5835 | } |
| 5836 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) { |
| 5837 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5838 | } |
| 5839 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5840 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5841 | } |
| 5842 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 5843 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 5844 | } |
| 5845 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 5846 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 5847 | } |
| 5848 | public static TestPackedTypesLite ParseFrom(pb::CodedInputStream input) { |
| 5849 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 5850 | } |
| 5851 | public static TestPackedTypesLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5852 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 5853 | } |
| 5854 | public static Builder CreateBuilder() { return new Builder(); } |
| 5855 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 5856 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 5857 | public static Builder CreateBuilder(TestPackedTypesLite prototype) { |
| 5858 | return (Builder) new Builder().MergeFrom(prototype); |
| 5859 | } |
| 5860 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5861 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5862 | protected override Builder ThisBuilder { |
| 5863 | get { return this; } |
| 5864 | } |
| 5865 | public Builder() {} |
| 5866 | |
| 5867 | TestPackedTypesLite result = new TestPackedTypesLite(); |
| 5868 | |
| 5869 | protected override TestPackedTypesLite MessageBeingBuilt { |
| 5870 | get { return result; } |
| 5871 | } |
| 5872 | |
| 5873 | public override Builder Clear() { |
| 5874 | result = new TestPackedTypesLite(); |
| 5875 | return this; |
| 5876 | } |
| 5877 | |
| 5878 | public override Builder Clone() { |
| 5879 | return new Builder().MergeFrom(result); |
| 5880 | } |
| 5881 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 5882 | public override TestPackedTypesLite DefaultInstanceForType { |
| 5883 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; } |
| 5884 | } |
| 5885 | |
| 5886 | public override TestPackedTypesLite BuildPartial() { |
| 5887 | if (result == null) { |
| 5888 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 5889 | } |
| 5890 | result.packedInt32_.MakeReadOnly(); |
| 5891 | result.packedInt64_.MakeReadOnly(); |
| 5892 | result.packedUint32_.MakeReadOnly(); |
| 5893 | result.packedUint64_.MakeReadOnly(); |
| 5894 | result.packedSint32_.MakeReadOnly(); |
| 5895 | result.packedSint64_.MakeReadOnly(); |
| 5896 | result.packedFixed32_.MakeReadOnly(); |
| 5897 | result.packedFixed64_.MakeReadOnly(); |
| 5898 | result.packedSfixed32_.MakeReadOnly(); |
| 5899 | result.packedSfixed64_.MakeReadOnly(); |
| 5900 | result.packedFloat_.MakeReadOnly(); |
| 5901 | result.packedDouble_.MakeReadOnly(); |
| 5902 | result.packedBool_.MakeReadOnly(); |
| 5903 | result.packedEnum_.MakeReadOnly(); |
| 5904 | TestPackedTypesLite returnMe = result; |
| 5905 | result = null; |
| 5906 | return returnMe; |
| 5907 | } |
| 5908 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 5909 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 5910 | if (other is TestPackedTypesLite) { |
| 5911 | return MergeFrom((TestPackedTypesLite) other); |
| 5912 | } else { |
| 5913 | base.MergeFrom(other); |
| 5914 | return this; |
| 5915 | } |
| 5916 | } |
| 5917 | |
| 5918 | public override Builder MergeFrom(TestPackedTypesLite other) { |
| 5919 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this; |
| 5920 | if (other.packedInt32_.Count != 0) { |
| 5921 | base.AddRange(other.packedInt32_, result.packedInt32_); |
| 5922 | } |
| 5923 | if (other.packedInt64_.Count != 0) { |
| 5924 | base.AddRange(other.packedInt64_, result.packedInt64_); |
| 5925 | } |
| 5926 | if (other.packedUint32_.Count != 0) { |
| 5927 | base.AddRange(other.packedUint32_, result.packedUint32_); |
| 5928 | } |
| 5929 | if (other.packedUint64_.Count != 0) { |
| 5930 | base.AddRange(other.packedUint64_, result.packedUint64_); |
| 5931 | } |
| 5932 | if (other.packedSint32_.Count != 0) { |
| 5933 | base.AddRange(other.packedSint32_, result.packedSint32_); |
| 5934 | } |
| 5935 | if (other.packedSint64_.Count != 0) { |
| 5936 | base.AddRange(other.packedSint64_, result.packedSint64_); |
| 5937 | } |
| 5938 | if (other.packedFixed32_.Count != 0) { |
| 5939 | base.AddRange(other.packedFixed32_, result.packedFixed32_); |
| 5940 | } |
| 5941 | if (other.packedFixed64_.Count != 0) { |
| 5942 | base.AddRange(other.packedFixed64_, result.packedFixed64_); |
| 5943 | } |
| 5944 | if (other.packedSfixed32_.Count != 0) { |
| 5945 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_); |
| 5946 | } |
| 5947 | if (other.packedSfixed64_.Count != 0) { |
| 5948 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_); |
| 5949 | } |
| 5950 | if (other.packedFloat_.Count != 0) { |
| 5951 | base.AddRange(other.packedFloat_, result.packedFloat_); |
| 5952 | } |
| 5953 | if (other.packedDouble_.Count != 0) { |
| 5954 | base.AddRange(other.packedDouble_, result.packedDouble_); |
| 5955 | } |
| 5956 | if (other.packedBool_.Count != 0) { |
| 5957 | base.AddRange(other.packedBool_, result.packedBool_); |
| 5958 | } |
| 5959 | if (other.packedEnum_.Count != 0) { |
| 5960 | base.AddRange(other.packedEnum_, result.packedEnum_); |
| 5961 | } |
| 5962 | return this; |
| 5963 | } |
| 5964 | |
| 5965 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 5966 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 5967 | } |
| 5968 | |
| 5969 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 5970 | while (true) { |
| 5971 | uint tag = input.ReadTag(); |
| 5972 | switch (tag) { |
| 5973 | case 0: { |
| 5974 | return this; |
| 5975 | } |
| 5976 | default: { |
| 5977 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 5978 | return this; |
| 5979 | } |
| 5980 | ParseUnknownField(input, extensionRegistry, tag); |
| 5981 | break; |
| 5982 | } |
| 5983 | case 722: { |
| 5984 | int length = input.ReadInt32(); |
| 5985 | int limit = input.PushLimit(length); |
| 5986 | while (!input.ReachedLimit) { |
| 5987 | AddPackedInt32(input.ReadInt32()); |
| 5988 | } |
| 5989 | input.PopLimit(limit); |
| 5990 | break; |
| 5991 | } |
| 5992 | case 730: { |
| 5993 | int length = input.ReadInt32(); |
| 5994 | int limit = input.PushLimit(length); |
| 5995 | while (!input.ReachedLimit) { |
| 5996 | AddPackedInt64(input.ReadInt64()); |
| 5997 | } |
| 5998 | input.PopLimit(limit); |
| 5999 | break; |
| 6000 | } |
| 6001 | case 738: { |
| 6002 | int length = input.ReadInt32(); |
| 6003 | int limit = input.PushLimit(length); |
| 6004 | while (!input.ReachedLimit) { |
| 6005 | AddPackedUint32(input.ReadUInt32()); |
| 6006 | } |
| 6007 | input.PopLimit(limit); |
| 6008 | break; |
| 6009 | } |
| 6010 | case 746: { |
| 6011 | int length = input.ReadInt32(); |
| 6012 | int limit = input.PushLimit(length); |
| 6013 | while (!input.ReachedLimit) { |
| 6014 | AddPackedUint64(input.ReadUInt64()); |
| 6015 | } |
| 6016 | input.PopLimit(limit); |
| 6017 | break; |
| 6018 | } |
| 6019 | case 754: { |
| 6020 | int length = input.ReadInt32(); |
| 6021 | int limit = input.PushLimit(length); |
| 6022 | while (!input.ReachedLimit) { |
| 6023 | AddPackedSint32(input.ReadSInt32()); |
| 6024 | } |
| 6025 | input.PopLimit(limit); |
| 6026 | break; |
| 6027 | } |
| 6028 | case 762: { |
| 6029 | int length = input.ReadInt32(); |
| 6030 | int limit = input.PushLimit(length); |
| 6031 | while (!input.ReachedLimit) { |
| 6032 | AddPackedSint64(input.ReadSInt64()); |
| 6033 | } |
| 6034 | input.PopLimit(limit); |
| 6035 | break; |
| 6036 | } |
| 6037 | case 770: { |
| 6038 | int length = input.ReadInt32(); |
| 6039 | int limit = input.PushLimit(length); |
| 6040 | while (!input.ReachedLimit) { |
| 6041 | AddPackedFixed32(input.ReadFixed32()); |
| 6042 | } |
| 6043 | input.PopLimit(limit); |
| 6044 | break; |
| 6045 | } |
| 6046 | case 778: { |
| 6047 | int length = input.ReadInt32(); |
| 6048 | int limit = input.PushLimit(length); |
| 6049 | while (!input.ReachedLimit) { |
| 6050 | AddPackedFixed64(input.ReadFixed64()); |
| 6051 | } |
| 6052 | input.PopLimit(limit); |
| 6053 | break; |
| 6054 | } |
| 6055 | case 786: { |
| 6056 | int length = input.ReadInt32(); |
| 6057 | int limit = input.PushLimit(length); |
| 6058 | while (!input.ReachedLimit) { |
| 6059 | AddPackedSfixed32(input.ReadSFixed32()); |
| 6060 | } |
| 6061 | input.PopLimit(limit); |
| 6062 | break; |
| 6063 | } |
| 6064 | case 794: { |
| 6065 | int length = input.ReadInt32(); |
| 6066 | int limit = input.PushLimit(length); |
| 6067 | while (!input.ReachedLimit) { |
| 6068 | AddPackedSfixed64(input.ReadSFixed64()); |
| 6069 | } |
| 6070 | input.PopLimit(limit); |
| 6071 | break; |
| 6072 | } |
| 6073 | case 802: { |
| 6074 | int length = input.ReadInt32(); |
| 6075 | int limit = input.PushLimit(length); |
| 6076 | while (!input.ReachedLimit) { |
| 6077 | AddPackedFloat(input.ReadFloat()); |
| 6078 | } |
| 6079 | input.PopLimit(limit); |
| 6080 | break; |
| 6081 | } |
| 6082 | case 810: { |
| 6083 | int length = input.ReadInt32(); |
| 6084 | int limit = input.PushLimit(length); |
| 6085 | while (!input.ReachedLimit) { |
| 6086 | AddPackedDouble(input.ReadDouble()); |
| 6087 | } |
| 6088 | input.PopLimit(limit); |
| 6089 | break; |
| 6090 | } |
| 6091 | case 818: { |
| 6092 | int length = input.ReadInt32(); |
| 6093 | int limit = input.PushLimit(length); |
| 6094 | while (!input.ReachedLimit) { |
| 6095 | AddPackedBool(input.ReadBool()); |
| 6096 | } |
| 6097 | input.PopLimit(limit); |
| 6098 | break; |
| 6099 | } |
| 6100 | case 826: { |
| 6101 | int length = input.ReadInt32(); |
| 6102 | int oldLimit = input.PushLimit(length); |
| 6103 | while (!input.ReachedLimit) { |
| 6104 | int rawValue = input.ReadEnum(); |
| 6105 | if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite), rawValue)) { |
| 6106 | } else { |
| 6107 | AddPackedEnum((global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite) rawValue); |
| 6108 | } |
| 6109 | } |
| 6110 | input.PopLimit(oldLimit); |
| 6111 | break; |
| 6112 | } |
| 6113 | } |
| 6114 | } |
| 6115 | } |
| 6116 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6117 | |
| 6118 | public pbc::IPopsicleList<int> PackedInt32List { |
| 6119 | get { return result.packedInt32_; } |
| 6120 | } |
| 6121 | public int PackedInt32Count { |
| 6122 | get { return result.PackedInt32Count; } |
| 6123 | } |
| 6124 | public int GetPackedInt32(int index) { |
| 6125 | return result.GetPackedInt32(index); |
| 6126 | } |
| 6127 | public Builder SetPackedInt32(int index, int value) { |
| 6128 | result.packedInt32_[index] = value; |
| 6129 | return this; |
| 6130 | } |
| 6131 | public Builder AddPackedInt32(int value) { |
| 6132 | result.packedInt32_.Add(value); |
| 6133 | return this; |
| 6134 | } |
| 6135 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) { |
| 6136 | base.AddRange(values, result.packedInt32_); |
| 6137 | return this; |
| 6138 | } |
| 6139 | public Builder ClearPackedInt32() { |
| 6140 | result.packedInt32_.Clear(); |
| 6141 | return this; |
| 6142 | } |
| 6143 | |
| 6144 | public pbc::IPopsicleList<long> PackedInt64List { |
| 6145 | get { return result.packedInt64_; } |
| 6146 | } |
| 6147 | public int PackedInt64Count { |
| 6148 | get { return result.PackedInt64Count; } |
| 6149 | } |
| 6150 | public long GetPackedInt64(int index) { |
| 6151 | return result.GetPackedInt64(index); |
| 6152 | } |
| 6153 | public Builder SetPackedInt64(int index, long value) { |
| 6154 | result.packedInt64_[index] = value; |
| 6155 | return this; |
| 6156 | } |
| 6157 | public Builder AddPackedInt64(long value) { |
| 6158 | result.packedInt64_.Add(value); |
| 6159 | return this; |
| 6160 | } |
| 6161 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) { |
| 6162 | base.AddRange(values, result.packedInt64_); |
| 6163 | return this; |
| 6164 | } |
| 6165 | public Builder ClearPackedInt64() { |
| 6166 | result.packedInt64_.Clear(); |
| 6167 | return this; |
| 6168 | } |
| 6169 | |
| 6170 | [global::System.CLSCompliant(false)] |
| 6171 | public pbc::IPopsicleList<uint> PackedUint32List { |
| 6172 | get { return result.packedUint32_; } |
| 6173 | } |
| 6174 | public int PackedUint32Count { |
| 6175 | get { return result.PackedUint32Count; } |
| 6176 | } |
| 6177 | [global::System.CLSCompliant(false)] |
| 6178 | public uint GetPackedUint32(int index) { |
| 6179 | return result.GetPackedUint32(index); |
| 6180 | } |
| 6181 | [global::System.CLSCompliant(false)] |
| 6182 | public Builder SetPackedUint32(int index, uint value) { |
| 6183 | result.packedUint32_[index] = value; |
| 6184 | return this; |
| 6185 | } |
| 6186 | [global::System.CLSCompliant(false)] |
| 6187 | public Builder AddPackedUint32(uint value) { |
| 6188 | result.packedUint32_.Add(value); |
| 6189 | return this; |
| 6190 | } |
| 6191 | [global::System.CLSCompliant(false)] |
| 6192 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) { |
| 6193 | base.AddRange(values, result.packedUint32_); |
| 6194 | return this; |
| 6195 | } |
| 6196 | public Builder ClearPackedUint32() { |
| 6197 | result.packedUint32_.Clear(); |
| 6198 | return this; |
| 6199 | } |
| 6200 | |
| 6201 | [global::System.CLSCompliant(false)] |
| 6202 | public pbc::IPopsicleList<ulong> PackedUint64List { |
| 6203 | get { return result.packedUint64_; } |
| 6204 | } |
| 6205 | public int PackedUint64Count { |
| 6206 | get { return result.PackedUint64Count; } |
| 6207 | } |
| 6208 | [global::System.CLSCompliant(false)] |
| 6209 | public ulong GetPackedUint64(int index) { |
| 6210 | return result.GetPackedUint64(index); |
| 6211 | } |
| 6212 | [global::System.CLSCompliant(false)] |
| 6213 | public Builder SetPackedUint64(int index, ulong value) { |
| 6214 | result.packedUint64_[index] = value; |
| 6215 | return this; |
| 6216 | } |
| 6217 | [global::System.CLSCompliant(false)] |
| 6218 | public Builder AddPackedUint64(ulong value) { |
| 6219 | result.packedUint64_.Add(value); |
| 6220 | return this; |
| 6221 | } |
| 6222 | [global::System.CLSCompliant(false)] |
| 6223 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) { |
| 6224 | base.AddRange(values, result.packedUint64_); |
| 6225 | return this; |
| 6226 | } |
| 6227 | public Builder ClearPackedUint64() { |
| 6228 | result.packedUint64_.Clear(); |
| 6229 | return this; |
| 6230 | } |
| 6231 | |
| 6232 | public pbc::IPopsicleList<int> PackedSint32List { |
| 6233 | get { return result.packedSint32_; } |
| 6234 | } |
| 6235 | public int PackedSint32Count { |
| 6236 | get { return result.PackedSint32Count; } |
| 6237 | } |
| 6238 | public int GetPackedSint32(int index) { |
| 6239 | return result.GetPackedSint32(index); |
| 6240 | } |
| 6241 | public Builder SetPackedSint32(int index, int value) { |
| 6242 | result.packedSint32_[index] = value; |
| 6243 | return this; |
| 6244 | } |
| 6245 | public Builder AddPackedSint32(int value) { |
| 6246 | result.packedSint32_.Add(value); |
| 6247 | return this; |
| 6248 | } |
| 6249 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) { |
| 6250 | base.AddRange(values, result.packedSint32_); |
| 6251 | return this; |
| 6252 | } |
| 6253 | public Builder ClearPackedSint32() { |
| 6254 | result.packedSint32_.Clear(); |
| 6255 | return this; |
| 6256 | } |
| 6257 | |
| 6258 | public pbc::IPopsicleList<long> PackedSint64List { |
| 6259 | get { return result.packedSint64_; } |
| 6260 | } |
| 6261 | public int PackedSint64Count { |
| 6262 | get { return result.PackedSint64Count; } |
| 6263 | } |
| 6264 | public long GetPackedSint64(int index) { |
| 6265 | return result.GetPackedSint64(index); |
| 6266 | } |
| 6267 | public Builder SetPackedSint64(int index, long value) { |
| 6268 | result.packedSint64_[index] = value; |
| 6269 | return this; |
| 6270 | } |
| 6271 | public Builder AddPackedSint64(long value) { |
| 6272 | result.packedSint64_.Add(value); |
| 6273 | return this; |
| 6274 | } |
| 6275 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) { |
| 6276 | base.AddRange(values, result.packedSint64_); |
| 6277 | return this; |
| 6278 | } |
| 6279 | public Builder ClearPackedSint64() { |
| 6280 | result.packedSint64_.Clear(); |
| 6281 | return this; |
| 6282 | } |
| 6283 | |
| 6284 | [global::System.CLSCompliant(false)] |
| 6285 | public pbc::IPopsicleList<uint> PackedFixed32List { |
| 6286 | get { return result.packedFixed32_; } |
| 6287 | } |
| 6288 | public int PackedFixed32Count { |
| 6289 | get { return result.PackedFixed32Count; } |
| 6290 | } |
| 6291 | [global::System.CLSCompliant(false)] |
| 6292 | public uint GetPackedFixed32(int index) { |
| 6293 | return result.GetPackedFixed32(index); |
| 6294 | } |
| 6295 | [global::System.CLSCompliant(false)] |
| 6296 | public Builder SetPackedFixed32(int index, uint value) { |
| 6297 | result.packedFixed32_[index] = value; |
| 6298 | return this; |
| 6299 | } |
| 6300 | [global::System.CLSCompliant(false)] |
| 6301 | public Builder AddPackedFixed32(uint value) { |
| 6302 | result.packedFixed32_.Add(value); |
| 6303 | return this; |
| 6304 | } |
| 6305 | [global::System.CLSCompliant(false)] |
| 6306 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) { |
| 6307 | base.AddRange(values, result.packedFixed32_); |
| 6308 | return this; |
| 6309 | } |
| 6310 | public Builder ClearPackedFixed32() { |
| 6311 | result.packedFixed32_.Clear(); |
| 6312 | return this; |
| 6313 | } |
| 6314 | |
| 6315 | [global::System.CLSCompliant(false)] |
| 6316 | public pbc::IPopsicleList<ulong> PackedFixed64List { |
| 6317 | get { return result.packedFixed64_; } |
| 6318 | } |
| 6319 | public int PackedFixed64Count { |
| 6320 | get { return result.PackedFixed64Count; } |
| 6321 | } |
| 6322 | [global::System.CLSCompliant(false)] |
| 6323 | public ulong GetPackedFixed64(int index) { |
| 6324 | return result.GetPackedFixed64(index); |
| 6325 | } |
| 6326 | [global::System.CLSCompliant(false)] |
| 6327 | public Builder SetPackedFixed64(int index, ulong value) { |
| 6328 | result.packedFixed64_[index] = value; |
| 6329 | return this; |
| 6330 | } |
| 6331 | [global::System.CLSCompliant(false)] |
| 6332 | public Builder AddPackedFixed64(ulong value) { |
| 6333 | result.packedFixed64_.Add(value); |
| 6334 | return this; |
| 6335 | } |
| 6336 | [global::System.CLSCompliant(false)] |
| 6337 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) { |
| 6338 | base.AddRange(values, result.packedFixed64_); |
| 6339 | return this; |
| 6340 | } |
| 6341 | public Builder ClearPackedFixed64() { |
| 6342 | result.packedFixed64_.Clear(); |
| 6343 | return this; |
| 6344 | } |
| 6345 | |
| 6346 | public pbc::IPopsicleList<int> PackedSfixed32List { |
| 6347 | get { return result.packedSfixed32_; } |
| 6348 | } |
| 6349 | public int PackedSfixed32Count { |
| 6350 | get { return result.PackedSfixed32Count; } |
| 6351 | } |
| 6352 | public int GetPackedSfixed32(int index) { |
| 6353 | return result.GetPackedSfixed32(index); |
| 6354 | } |
| 6355 | public Builder SetPackedSfixed32(int index, int value) { |
| 6356 | result.packedSfixed32_[index] = value; |
| 6357 | return this; |
| 6358 | } |
| 6359 | public Builder AddPackedSfixed32(int value) { |
| 6360 | result.packedSfixed32_.Add(value); |
| 6361 | return this; |
| 6362 | } |
| 6363 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) { |
| 6364 | base.AddRange(values, result.packedSfixed32_); |
| 6365 | return this; |
| 6366 | } |
| 6367 | public Builder ClearPackedSfixed32() { |
| 6368 | result.packedSfixed32_.Clear(); |
| 6369 | return this; |
| 6370 | } |
| 6371 | |
| 6372 | public pbc::IPopsicleList<long> PackedSfixed64List { |
| 6373 | get { return result.packedSfixed64_; } |
| 6374 | } |
| 6375 | public int PackedSfixed64Count { |
| 6376 | get { return result.PackedSfixed64Count; } |
| 6377 | } |
| 6378 | public long GetPackedSfixed64(int index) { |
| 6379 | return result.GetPackedSfixed64(index); |
| 6380 | } |
| 6381 | public Builder SetPackedSfixed64(int index, long value) { |
| 6382 | result.packedSfixed64_[index] = value; |
| 6383 | return this; |
| 6384 | } |
| 6385 | public Builder AddPackedSfixed64(long value) { |
| 6386 | result.packedSfixed64_.Add(value); |
| 6387 | return this; |
| 6388 | } |
| 6389 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) { |
| 6390 | base.AddRange(values, result.packedSfixed64_); |
| 6391 | return this; |
| 6392 | } |
| 6393 | public Builder ClearPackedSfixed64() { |
| 6394 | result.packedSfixed64_.Clear(); |
| 6395 | return this; |
| 6396 | } |
| 6397 | |
| 6398 | public pbc::IPopsicleList<float> PackedFloatList { |
| 6399 | get { return result.packedFloat_; } |
| 6400 | } |
| 6401 | public int PackedFloatCount { |
| 6402 | get { return result.PackedFloatCount; } |
| 6403 | } |
| 6404 | public float GetPackedFloat(int index) { |
| 6405 | return result.GetPackedFloat(index); |
| 6406 | } |
| 6407 | public Builder SetPackedFloat(int index, float value) { |
| 6408 | result.packedFloat_[index] = value; |
| 6409 | return this; |
| 6410 | } |
| 6411 | public Builder AddPackedFloat(float value) { |
| 6412 | result.packedFloat_.Add(value); |
| 6413 | return this; |
| 6414 | } |
| 6415 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) { |
| 6416 | base.AddRange(values, result.packedFloat_); |
| 6417 | return this; |
| 6418 | } |
| 6419 | public Builder ClearPackedFloat() { |
| 6420 | result.packedFloat_.Clear(); |
| 6421 | return this; |
| 6422 | } |
| 6423 | |
| 6424 | public pbc::IPopsicleList<double> PackedDoubleList { |
| 6425 | get { return result.packedDouble_; } |
| 6426 | } |
| 6427 | public int PackedDoubleCount { |
| 6428 | get { return result.PackedDoubleCount; } |
| 6429 | } |
| 6430 | public double GetPackedDouble(int index) { |
| 6431 | return result.GetPackedDouble(index); |
| 6432 | } |
| 6433 | public Builder SetPackedDouble(int index, double value) { |
| 6434 | result.packedDouble_[index] = value; |
| 6435 | return this; |
| 6436 | } |
| 6437 | public Builder AddPackedDouble(double value) { |
| 6438 | result.packedDouble_.Add(value); |
| 6439 | return this; |
| 6440 | } |
| 6441 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) { |
| 6442 | base.AddRange(values, result.packedDouble_); |
| 6443 | return this; |
| 6444 | } |
| 6445 | public Builder ClearPackedDouble() { |
| 6446 | result.packedDouble_.Clear(); |
| 6447 | return this; |
| 6448 | } |
| 6449 | |
| 6450 | public pbc::IPopsicleList<bool> PackedBoolList { |
| 6451 | get { return result.packedBool_; } |
| 6452 | } |
| 6453 | public int PackedBoolCount { |
| 6454 | get { return result.PackedBoolCount; } |
| 6455 | } |
| 6456 | public bool GetPackedBool(int index) { |
| 6457 | return result.GetPackedBool(index); |
| 6458 | } |
| 6459 | public Builder SetPackedBool(int index, bool value) { |
| 6460 | result.packedBool_[index] = value; |
| 6461 | return this; |
| 6462 | } |
| 6463 | public Builder AddPackedBool(bool value) { |
| 6464 | result.packedBool_.Add(value); |
| 6465 | return this; |
| 6466 | } |
| 6467 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) { |
| 6468 | base.AddRange(values, result.packedBool_); |
| 6469 | return this; |
| 6470 | } |
| 6471 | public Builder ClearPackedBool() { |
| 6472 | result.packedBool_.Clear(); |
| 6473 | return this; |
| 6474 | } |
| 6475 | |
| 6476 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList { |
| 6477 | get { return result.packedEnum_; } |
| 6478 | } |
| 6479 | public int PackedEnumCount { |
| 6480 | get { return result.PackedEnumCount; } |
| 6481 | } |
| 6482 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) { |
| 6483 | return result.GetPackedEnum(index); |
| 6484 | } |
| 6485 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 6486 | result.packedEnum_[index] = value; |
| 6487 | return this; |
| 6488 | } |
| 6489 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) { |
| 6490 | result.packedEnum_.Add(value); |
| 6491 | return this; |
| 6492 | } |
| 6493 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) { |
| 6494 | base.AddRange(values, result.packedEnum_); |
| 6495 | return this; |
| 6496 | } |
| 6497 | public Builder ClearPackedEnum() { |
| 6498 | result.packedEnum_.Clear(); |
| 6499 | return this; |
| 6500 | } |
| 6501 | } |
| 6502 | static TestPackedTypesLite() { |
| 6503 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 6504 | } |
| 6505 | } |
| 6506 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6507 | public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6508 | private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial(); |
| 6509 | public static TestAllExtensionsLite DefaultInstance { |
| 6510 | get { return defaultInstance; } |
| 6511 | } |
| 6512 | |
| 6513 | public override TestAllExtensionsLite DefaultInstanceForType { |
| 6514 | get { return defaultInstance; } |
| 6515 | } |
| 6516 | |
| 6517 | protected override TestAllExtensionsLite ThisMessage { |
| 6518 | get { return this; } |
| 6519 | } |
| 6520 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6521 | public override bool IsInitialized { |
| 6522 | get { |
| 6523 | if (!ExtensionsAreInitialized) return false; |
| 6524 | return true; |
| 6525 | } |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6526 | } |
| 6527 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6528 | public override void WriteTo(pb::CodedOutputStream output) { |
| 6529 | int size = SerializedSize; |
| 6530 | pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 6531 | extensionWriter.WriteUntil(536870912, output); |
| 6532 | } |
| 6533 | |
| 6534 | private int memoizedSerializedSize = -1; |
| 6535 | public override int SerializedSize { |
| 6536 | get { |
| 6537 | int size = memoizedSerializedSize; |
| 6538 | if (size != -1) return size; |
| 6539 | |
| 6540 | size = 0; |
| 6541 | size += ExtensionsSerializedSize; |
| 6542 | memoizedSerializedSize = size; |
| 6543 | return size; |
| 6544 | } |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6545 | } |
| 6546 | |
| 6547 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data) { |
| 6548 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6549 | } |
| 6550 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6551 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6552 | } |
| 6553 | public static TestAllExtensionsLite ParseFrom(byte[] data) { |
| 6554 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6555 | } |
| 6556 | public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6557 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6558 | } |
| 6559 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) { |
| 6560 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6561 | } |
| 6562 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6563 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6564 | } |
| 6565 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 6566 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 6567 | } |
| 6568 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6569 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 6570 | } |
| 6571 | public static TestAllExtensionsLite ParseFrom(pb::CodedInputStream input) { |
| 6572 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6573 | } |
| 6574 | public static TestAllExtensionsLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6575 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6576 | } |
| 6577 | public static Builder CreateBuilder() { return new Builder(); } |
| 6578 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 6579 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6580 | public static Builder CreateBuilder(TestAllExtensionsLite prototype) { |
| 6581 | return (Builder) new Builder().MergeFrom(prototype); |
| 6582 | } |
| 6583 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6584 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6585 | protected override Builder ThisBuilder { |
| 6586 | get { return this; } |
| 6587 | } |
| 6588 | public Builder() {} |
| 6589 | |
| 6590 | TestAllExtensionsLite result = new TestAllExtensionsLite(); |
| 6591 | |
| 6592 | protected override TestAllExtensionsLite MessageBeingBuilt { |
| 6593 | get { return result; } |
| 6594 | } |
| 6595 | |
| 6596 | public override Builder Clear() { |
| 6597 | result = new TestAllExtensionsLite(); |
| 6598 | return this; |
| 6599 | } |
| 6600 | |
| 6601 | public override Builder Clone() { |
| 6602 | return new Builder().MergeFrom(result); |
| 6603 | } |
| 6604 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6605 | public override TestAllExtensionsLite DefaultInstanceForType { |
| 6606 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; } |
| 6607 | } |
| 6608 | |
| 6609 | public override TestAllExtensionsLite BuildPartial() { |
| 6610 | if (result == null) { |
| 6611 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 6612 | } |
| 6613 | TestAllExtensionsLite returnMe = result; |
| 6614 | result = null; |
| 6615 | return returnMe; |
| 6616 | } |
| 6617 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6618 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 6619 | if (other is TestAllExtensionsLite) { |
| 6620 | return MergeFrom((TestAllExtensionsLite) other); |
| 6621 | } else { |
| 6622 | base.MergeFrom(other); |
| 6623 | return this; |
| 6624 | } |
| 6625 | } |
| 6626 | |
| 6627 | public override Builder MergeFrom(TestAllExtensionsLite other) { |
| 6628 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this; |
| 6629 | this.MergeExtensionFields(other); |
| 6630 | return this; |
| 6631 | } |
| 6632 | |
| 6633 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6634 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6635 | } |
| 6636 | |
| 6637 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6638 | while (true) { |
| 6639 | uint tag = input.ReadTag(); |
| 6640 | switch (tag) { |
| 6641 | case 0: { |
| 6642 | return this; |
| 6643 | } |
| 6644 | default: { |
| 6645 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 6646 | return this; |
| 6647 | } |
| 6648 | ParseUnknownField(input, extensionRegistry, tag); |
| 6649 | break; |
| 6650 | } |
| 6651 | } |
| 6652 | } |
| 6653 | } |
| 6654 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6655 | } |
| 6656 | static TestAllExtensionsLite() { |
| 6657 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 6658 | } |
| 6659 | } |
| 6660 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6661 | public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6662 | private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial(); |
| 6663 | public static OptionalGroup_extension_lite DefaultInstance { |
| 6664 | get { return defaultInstance; } |
| 6665 | } |
| 6666 | |
| 6667 | public override OptionalGroup_extension_lite DefaultInstanceForType { |
| 6668 | get { return defaultInstance; } |
| 6669 | } |
| 6670 | |
| 6671 | protected override OptionalGroup_extension_lite ThisMessage { |
| 6672 | get { return this; } |
| 6673 | } |
| 6674 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6675 | public const int AFieldNumber = 17; |
| 6676 | private bool hasA; |
| 6677 | private int a_ = 0; |
| 6678 | public bool HasA { |
| 6679 | get { return hasA; } |
| 6680 | } |
| 6681 | public int A { |
| 6682 | get { return a_; } |
| 6683 | } |
| 6684 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6685 | public override bool IsInitialized { |
| 6686 | get { |
| 6687 | return true; |
| 6688 | } |
| 6689 | } |
| 6690 | |
| 6691 | public override void WriteTo(pb::CodedOutputStream output) { |
| 6692 | int size = SerializedSize; |
| 6693 | if (HasA) { |
| 6694 | output.WriteInt32(17, A); |
| 6695 | } |
| 6696 | } |
| 6697 | |
| 6698 | private int memoizedSerializedSize = -1; |
| 6699 | public override int SerializedSize { |
| 6700 | get { |
| 6701 | int size = memoizedSerializedSize; |
| 6702 | if (size != -1) return size; |
| 6703 | |
| 6704 | size = 0; |
| 6705 | if (HasA) { |
| 6706 | size += pb::CodedOutputStream.ComputeInt32Size(17, A); |
| 6707 | } |
| 6708 | memoizedSerializedSize = size; |
| 6709 | return size; |
| 6710 | } |
| 6711 | } |
| 6712 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6713 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) { |
| 6714 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6715 | } |
| 6716 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6717 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6718 | } |
| 6719 | public static OptionalGroup_extension_lite ParseFrom(byte[] data) { |
| 6720 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6721 | } |
| 6722 | public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6723 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6724 | } |
| 6725 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) { |
| 6726 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6727 | } |
| 6728 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6729 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6730 | } |
| 6731 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 6732 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 6733 | } |
| 6734 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6735 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 6736 | } |
| 6737 | public static OptionalGroup_extension_lite ParseFrom(pb::CodedInputStream input) { |
| 6738 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6739 | } |
| 6740 | public static OptionalGroup_extension_lite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6741 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6742 | } |
| 6743 | public static Builder CreateBuilder() { return new Builder(); } |
| 6744 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 6745 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6746 | public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) { |
| 6747 | return (Builder) new Builder().MergeFrom(prototype); |
| 6748 | } |
| 6749 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6750 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6751 | protected override Builder ThisBuilder { |
| 6752 | get { return this; } |
| 6753 | } |
| 6754 | public Builder() {} |
| 6755 | |
| 6756 | OptionalGroup_extension_lite result = new OptionalGroup_extension_lite(); |
| 6757 | |
| 6758 | protected override OptionalGroup_extension_lite MessageBeingBuilt { |
| 6759 | get { return result; } |
| 6760 | } |
| 6761 | |
| 6762 | public override Builder Clear() { |
| 6763 | result = new OptionalGroup_extension_lite(); |
| 6764 | return this; |
| 6765 | } |
| 6766 | |
| 6767 | public override Builder Clone() { |
| 6768 | return new Builder().MergeFrom(result); |
| 6769 | } |
| 6770 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6771 | public override OptionalGroup_extension_lite DefaultInstanceForType { |
| 6772 | get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; } |
| 6773 | } |
| 6774 | |
| 6775 | public override OptionalGroup_extension_lite BuildPartial() { |
| 6776 | if (result == null) { |
| 6777 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 6778 | } |
| 6779 | OptionalGroup_extension_lite returnMe = result; |
| 6780 | result = null; |
| 6781 | return returnMe; |
| 6782 | } |
| 6783 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6784 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 6785 | if (other is OptionalGroup_extension_lite) { |
| 6786 | return MergeFrom((OptionalGroup_extension_lite) other); |
| 6787 | } else { |
| 6788 | base.MergeFrom(other); |
| 6789 | return this; |
| 6790 | } |
| 6791 | } |
| 6792 | |
| 6793 | public override Builder MergeFrom(OptionalGroup_extension_lite other) { |
| 6794 | if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this; |
| 6795 | if (other.HasA) { |
| 6796 | A = other.A; |
| 6797 | } |
| 6798 | return this; |
| 6799 | } |
| 6800 | |
| 6801 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6802 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6803 | } |
| 6804 | |
| 6805 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6806 | while (true) { |
| 6807 | uint tag = input.ReadTag(); |
| 6808 | switch (tag) { |
| 6809 | case 0: { |
| 6810 | return this; |
| 6811 | } |
| 6812 | default: { |
| 6813 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 6814 | return this; |
| 6815 | } |
| 6816 | ParseUnknownField(input, extensionRegistry, tag); |
| 6817 | break; |
| 6818 | } |
| 6819 | case 136: { |
| 6820 | A = input.ReadInt32(); |
| 6821 | break; |
| 6822 | } |
| 6823 | } |
| 6824 | } |
| 6825 | } |
| 6826 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6827 | |
| 6828 | public bool HasA { |
| 6829 | get { return result.HasA; } |
| 6830 | } |
| 6831 | public int A { |
| 6832 | get { return result.A; } |
| 6833 | set { SetA(value); } |
| 6834 | } |
| 6835 | public Builder SetA(int value) { |
| 6836 | result.hasA = true; |
| 6837 | result.a_ = value; |
| 6838 | return this; |
| 6839 | } |
| 6840 | public Builder ClearA() { |
| 6841 | result.hasA = false; |
| 6842 | result.a_ = 0; |
| 6843 | return this; |
| 6844 | } |
| 6845 | } |
| 6846 | static OptionalGroup_extension_lite() { |
| 6847 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 6848 | } |
| 6849 | } |
| 6850 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6851 | public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6852 | private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial(); |
| 6853 | public static RepeatedGroup_extension_lite DefaultInstance { |
| 6854 | get { return defaultInstance; } |
| 6855 | } |
| 6856 | |
| 6857 | public override RepeatedGroup_extension_lite DefaultInstanceForType { |
| 6858 | get { return defaultInstance; } |
| 6859 | } |
| 6860 | |
| 6861 | protected override RepeatedGroup_extension_lite ThisMessage { |
| 6862 | get { return this; } |
| 6863 | } |
| 6864 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6865 | public const int AFieldNumber = 47; |
| 6866 | private bool hasA; |
| 6867 | private int a_ = 0; |
| 6868 | public bool HasA { |
| 6869 | get { return hasA; } |
| 6870 | } |
| 6871 | public int A { |
| 6872 | get { return a_; } |
| 6873 | } |
| 6874 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6875 | public override bool IsInitialized { |
| 6876 | get { |
| 6877 | return true; |
| 6878 | } |
| 6879 | } |
| 6880 | |
| 6881 | public override void WriteTo(pb::CodedOutputStream output) { |
| 6882 | int size = SerializedSize; |
| 6883 | if (HasA) { |
| 6884 | output.WriteInt32(47, A); |
| 6885 | } |
| 6886 | } |
| 6887 | |
| 6888 | private int memoizedSerializedSize = -1; |
| 6889 | public override int SerializedSize { |
| 6890 | get { |
| 6891 | int size = memoizedSerializedSize; |
| 6892 | if (size != -1) return size; |
| 6893 | |
| 6894 | size = 0; |
| 6895 | if (HasA) { |
| 6896 | size += pb::CodedOutputStream.ComputeInt32Size(47, A); |
| 6897 | } |
| 6898 | memoizedSerializedSize = size; |
| 6899 | return size; |
| 6900 | } |
| 6901 | } |
| 6902 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6903 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) { |
| 6904 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6905 | } |
| 6906 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 6907 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6908 | } |
| 6909 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data) { |
| 6910 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 6911 | } |
| 6912 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 6913 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 6914 | } |
| 6915 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) { |
| 6916 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6917 | } |
| 6918 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6919 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6920 | } |
| 6921 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 6922 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 6923 | } |
| 6924 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 6925 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 6926 | } |
| 6927 | public static RepeatedGroup_extension_lite ParseFrom(pb::CodedInputStream input) { |
| 6928 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 6929 | } |
| 6930 | public static RepeatedGroup_extension_lite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6931 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 6932 | } |
| 6933 | public static Builder CreateBuilder() { return new Builder(); } |
| 6934 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 6935 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 6936 | public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) { |
| 6937 | return (Builder) new Builder().MergeFrom(prototype); |
| 6938 | } |
| 6939 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6940 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6941 | protected override Builder ThisBuilder { |
| 6942 | get { return this; } |
| 6943 | } |
| 6944 | public Builder() {} |
| 6945 | |
| 6946 | RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite(); |
| 6947 | |
| 6948 | protected override RepeatedGroup_extension_lite MessageBeingBuilt { |
| 6949 | get { return result; } |
| 6950 | } |
| 6951 | |
| 6952 | public override Builder Clear() { |
| 6953 | result = new RepeatedGroup_extension_lite(); |
| 6954 | return this; |
| 6955 | } |
| 6956 | |
| 6957 | public override Builder Clone() { |
| 6958 | return new Builder().MergeFrom(result); |
| 6959 | } |
| 6960 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 6961 | public override RepeatedGroup_extension_lite DefaultInstanceForType { |
| 6962 | get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; } |
| 6963 | } |
| 6964 | |
| 6965 | public override RepeatedGroup_extension_lite BuildPartial() { |
| 6966 | if (result == null) { |
| 6967 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 6968 | } |
| 6969 | RepeatedGroup_extension_lite returnMe = result; |
| 6970 | result = null; |
| 6971 | return returnMe; |
| 6972 | } |
| 6973 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 6974 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 6975 | if (other is RepeatedGroup_extension_lite) { |
| 6976 | return MergeFrom((RepeatedGroup_extension_lite) other); |
| 6977 | } else { |
| 6978 | base.MergeFrom(other); |
| 6979 | return this; |
| 6980 | } |
| 6981 | } |
| 6982 | |
| 6983 | public override Builder MergeFrom(RepeatedGroup_extension_lite other) { |
| 6984 | if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this; |
| 6985 | if (other.HasA) { |
| 6986 | A = other.A; |
| 6987 | } |
| 6988 | return this; |
| 6989 | } |
| 6990 | |
| 6991 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 6992 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 6993 | } |
| 6994 | |
| 6995 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 6996 | while (true) { |
| 6997 | uint tag = input.ReadTag(); |
| 6998 | switch (tag) { |
| 6999 | case 0: { |
| 7000 | return this; |
| 7001 | } |
| 7002 | default: { |
| 7003 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 7004 | return this; |
| 7005 | } |
| 7006 | ParseUnknownField(input, extensionRegistry, tag); |
| 7007 | break; |
| 7008 | } |
| 7009 | case 376: { |
| 7010 | A = input.ReadInt32(); |
| 7011 | break; |
| 7012 | } |
| 7013 | } |
| 7014 | } |
| 7015 | } |
| 7016 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7017 | |
| 7018 | public bool HasA { |
| 7019 | get { return result.HasA; } |
| 7020 | } |
| 7021 | public int A { |
| 7022 | get { return result.A; } |
| 7023 | set { SetA(value); } |
| 7024 | } |
| 7025 | public Builder SetA(int value) { |
| 7026 | result.hasA = true; |
| 7027 | result.a_ = value; |
| 7028 | return this; |
| 7029 | } |
| 7030 | public Builder ClearA() { |
| 7031 | result.hasA = false; |
| 7032 | result.a_ = 0; |
| 7033 | return this; |
| 7034 | } |
| 7035 | } |
| 7036 | static RepeatedGroup_extension_lite() { |
| 7037 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 7038 | } |
| 7039 | } |
| 7040 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7041 | public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7042 | private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial(); |
| 7043 | public static TestPackedExtensionsLite DefaultInstance { |
| 7044 | get { return defaultInstance; } |
| 7045 | } |
| 7046 | |
| 7047 | public override TestPackedExtensionsLite DefaultInstanceForType { |
| 7048 | get { return defaultInstance; } |
| 7049 | } |
| 7050 | |
| 7051 | protected override TestPackedExtensionsLite ThisMessage { |
| 7052 | get { return this; } |
| 7053 | } |
| 7054 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7055 | public override bool IsInitialized { |
| 7056 | get { |
| 7057 | if (!ExtensionsAreInitialized) return false; |
| 7058 | return true; |
| 7059 | } |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7060 | } |
| 7061 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7062 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7063 | int size = SerializedSize; |
| 7064 | pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); |
| 7065 | extensionWriter.WriteUntil(536870912, output); |
| 7066 | } |
| 7067 | |
| 7068 | private int memoizedSerializedSize = -1; |
| 7069 | public override int SerializedSize { |
| 7070 | get { |
| 7071 | int size = memoizedSerializedSize; |
| 7072 | if (size != -1) return size; |
| 7073 | |
| 7074 | size = 0; |
| 7075 | size += ExtensionsSerializedSize; |
| 7076 | memoizedSerializedSize = size; |
| 7077 | return size; |
| 7078 | } |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7079 | } |
| 7080 | |
| 7081 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) { |
| 7082 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7083 | } |
| 7084 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7085 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7086 | } |
| 7087 | public static TestPackedExtensionsLite ParseFrom(byte[] data) { |
| 7088 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7089 | } |
| 7090 | public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7091 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7092 | } |
| 7093 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) { |
| 7094 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7095 | } |
| 7096 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7097 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7098 | } |
| 7099 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 7100 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 7101 | } |
| 7102 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7103 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 7104 | } |
| 7105 | public static TestPackedExtensionsLite ParseFrom(pb::CodedInputStream input) { |
| 7106 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7107 | } |
| 7108 | public static TestPackedExtensionsLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7109 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7110 | } |
| 7111 | public static Builder CreateBuilder() { return new Builder(); } |
| 7112 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 7113 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7114 | public static Builder CreateBuilder(TestPackedExtensionsLite prototype) { |
| 7115 | return (Builder) new Builder().MergeFrom(prototype); |
| 7116 | } |
| 7117 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7118 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7119 | protected override Builder ThisBuilder { |
| 7120 | get { return this; } |
| 7121 | } |
| 7122 | public Builder() {} |
| 7123 | |
| 7124 | TestPackedExtensionsLite result = new TestPackedExtensionsLite(); |
| 7125 | |
| 7126 | protected override TestPackedExtensionsLite MessageBeingBuilt { |
| 7127 | get { return result; } |
| 7128 | } |
| 7129 | |
| 7130 | public override Builder Clear() { |
| 7131 | result = new TestPackedExtensionsLite(); |
| 7132 | return this; |
| 7133 | } |
| 7134 | |
| 7135 | public override Builder Clone() { |
| 7136 | return new Builder().MergeFrom(result); |
| 7137 | } |
| 7138 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7139 | public override TestPackedExtensionsLite DefaultInstanceForType { |
| 7140 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; } |
| 7141 | } |
| 7142 | |
| 7143 | public override TestPackedExtensionsLite BuildPartial() { |
| 7144 | if (result == null) { |
| 7145 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 7146 | } |
| 7147 | TestPackedExtensionsLite returnMe = result; |
| 7148 | result = null; |
| 7149 | return returnMe; |
| 7150 | } |
| 7151 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7152 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 7153 | if (other is TestPackedExtensionsLite) { |
| 7154 | return MergeFrom((TestPackedExtensionsLite) other); |
| 7155 | } else { |
| 7156 | base.MergeFrom(other); |
| 7157 | return this; |
| 7158 | } |
| 7159 | } |
| 7160 | |
| 7161 | public override Builder MergeFrom(TestPackedExtensionsLite other) { |
| 7162 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this; |
| 7163 | this.MergeExtensionFields(other); |
| 7164 | return this; |
| 7165 | } |
| 7166 | |
| 7167 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7168 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7169 | } |
| 7170 | |
| 7171 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7172 | while (true) { |
| 7173 | uint tag = input.ReadTag(); |
| 7174 | switch (tag) { |
| 7175 | case 0: { |
| 7176 | return this; |
| 7177 | } |
| 7178 | default: { |
| 7179 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 7180 | return this; |
| 7181 | } |
| 7182 | ParseUnknownField(input, extensionRegistry, tag); |
| 7183 | break; |
| 7184 | } |
| 7185 | } |
| 7186 | } |
| 7187 | } |
| 7188 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7189 | } |
| 7190 | static TestPackedExtensionsLite() { |
| 7191 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 7192 | } |
| 7193 | } |
| 7194 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7195 | public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7196 | private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial(); |
| 7197 | public static TestNestedExtensionLite DefaultInstance { |
| 7198 | get { return defaultInstance; } |
| 7199 | } |
| 7200 | |
| 7201 | public override TestNestedExtensionLite DefaultInstanceForType { |
| 7202 | get { return defaultInstance; } |
| 7203 | } |
| 7204 | |
| 7205 | protected override TestNestedExtensionLite ThisMessage { |
| 7206 | get { return this; } |
| 7207 | } |
| 7208 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7209 | public const int NestedExtensionFieldNumber = 12345; |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7210 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension; |
| 7211 | public override bool IsInitialized { |
| 7212 | get { |
| 7213 | return true; |
| 7214 | } |
| 7215 | } |
| 7216 | |
| 7217 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7218 | int size = SerializedSize; |
| 7219 | } |
| 7220 | |
| 7221 | private int memoizedSerializedSize = -1; |
| 7222 | public override int SerializedSize { |
| 7223 | get { |
| 7224 | int size = memoizedSerializedSize; |
| 7225 | if (size != -1) return size; |
| 7226 | |
| 7227 | size = 0; |
| 7228 | memoizedSerializedSize = size; |
| 7229 | return size; |
| 7230 | } |
| 7231 | } |
| 7232 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7233 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data) { |
| 7234 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7235 | } |
| 7236 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7237 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7238 | } |
| 7239 | public static TestNestedExtensionLite ParseFrom(byte[] data) { |
| 7240 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7241 | } |
| 7242 | public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7243 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7244 | } |
| 7245 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) { |
| 7246 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7247 | } |
| 7248 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7249 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7250 | } |
| 7251 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 7252 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 7253 | } |
| 7254 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7255 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 7256 | } |
| 7257 | public static TestNestedExtensionLite ParseFrom(pb::CodedInputStream input) { |
| 7258 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7259 | } |
| 7260 | public static TestNestedExtensionLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7261 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7262 | } |
| 7263 | public static Builder CreateBuilder() { return new Builder(); } |
| 7264 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 7265 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7266 | public static Builder CreateBuilder(TestNestedExtensionLite prototype) { |
| 7267 | return (Builder) new Builder().MergeFrom(prototype); |
| 7268 | } |
| 7269 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7270 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7271 | protected override Builder ThisBuilder { |
| 7272 | get { return this; } |
| 7273 | } |
| 7274 | public Builder() {} |
| 7275 | |
| 7276 | TestNestedExtensionLite result = new TestNestedExtensionLite(); |
| 7277 | |
| 7278 | protected override TestNestedExtensionLite MessageBeingBuilt { |
| 7279 | get { return result; } |
| 7280 | } |
| 7281 | |
| 7282 | public override Builder Clear() { |
| 7283 | result = new TestNestedExtensionLite(); |
| 7284 | return this; |
| 7285 | } |
| 7286 | |
| 7287 | public override Builder Clone() { |
| 7288 | return new Builder().MergeFrom(result); |
| 7289 | } |
| 7290 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7291 | public override TestNestedExtensionLite DefaultInstanceForType { |
| 7292 | get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; } |
| 7293 | } |
| 7294 | |
| 7295 | public override TestNestedExtensionLite BuildPartial() { |
| 7296 | if (result == null) { |
| 7297 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 7298 | } |
| 7299 | TestNestedExtensionLite returnMe = result; |
| 7300 | result = null; |
| 7301 | return returnMe; |
| 7302 | } |
| 7303 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7304 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 7305 | if (other is TestNestedExtensionLite) { |
| 7306 | return MergeFrom((TestNestedExtensionLite) other); |
| 7307 | } else { |
| 7308 | base.MergeFrom(other); |
| 7309 | return this; |
| 7310 | } |
| 7311 | } |
| 7312 | |
| 7313 | public override Builder MergeFrom(TestNestedExtensionLite other) { |
| 7314 | if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this; |
| 7315 | return this; |
| 7316 | } |
| 7317 | |
| 7318 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7319 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7320 | } |
| 7321 | |
| 7322 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7323 | while (true) { |
| 7324 | uint tag = input.ReadTag(); |
| 7325 | switch (tag) { |
| 7326 | case 0: { |
| 7327 | return this; |
| 7328 | } |
| 7329 | default: { |
| 7330 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 7331 | return this; |
| 7332 | } |
| 7333 | ParseUnknownField(input, extensionRegistry, tag); |
| 7334 | break; |
| 7335 | } |
| 7336 | } |
| 7337 | } |
| 7338 | } |
| 7339 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7340 | } |
| 7341 | static TestNestedExtensionLite() { |
| 7342 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 7343 | } |
| 7344 | } |
| 7345 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7346 | public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7347 | private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial(); |
| 7348 | public static TestDeprecatedLite DefaultInstance { |
| 7349 | get { return defaultInstance; } |
| 7350 | } |
| 7351 | |
| 7352 | public override TestDeprecatedLite DefaultInstanceForType { |
| 7353 | get { return defaultInstance; } |
| 7354 | } |
| 7355 | |
| 7356 | protected override TestDeprecatedLite ThisMessage { |
| 7357 | get { return this; } |
| 7358 | } |
| 7359 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7360 | public const int DeprecatedFieldFieldNumber = 1; |
| 7361 | private bool hasDeprecatedField; |
| 7362 | private int deprecatedField_ = 0; |
| 7363 | public bool HasDeprecatedField { |
| 7364 | get { return hasDeprecatedField; } |
| 7365 | } |
| 7366 | public int DeprecatedField { |
| 7367 | get { return deprecatedField_; } |
| 7368 | } |
| 7369 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7370 | public override bool IsInitialized { |
| 7371 | get { |
| 7372 | return true; |
| 7373 | } |
| 7374 | } |
| 7375 | |
| 7376 | public override void WriteTo(pb::CodedOutputStream output) { |
| 7377 | int size = SerializedSize; |
| 7378 | if (HasDeprecatedField) { |
| 7379 | output.WriteInt32(1, DeprecatedField); |
| 7380 | } |
| 7381 | } |
| 7382 | |
| 7383 | private int memoizedSerializedSize = -1; |
| 7384 | public override int SerializedSize { |
| 7385 | get { |
| 7386 | int size = memoizedSerializedSize; |
| 7387 | if (size != -1) return size; |
| 7388 | |
| 7389 | size = 0; |
| 7390 | if (HasDeprecatedField) { |
| 7391 | size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField); |
| 7392 | } |
| 7393 | memoizedSerializedSize = size; |
| 7394 | return size; |
| 7395 | } |
| 7396 | } |
| 7397 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7398 | public static TestDeprecatedLite ParseFrom(pb::ByteString data) { |
| 7399 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7400 | } |
| 7401 | public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
| 7402 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7403 | } |
| 7404 | public static TestDeprecatedLite ParseFrom(byte[] data) { |
| 7405 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
| 7406 | } |
| 7407 | public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
| 7408 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
| 7409 | } |
| 7410 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) { |
| 7411 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7412 | } |
| 7413 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7414 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7415 | } |
| 7416 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) { |
| 7417 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
| 7418 | } |
| 7419 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
| 7420 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
| 7421 | } |
| 7422 | public static TestDeprecatedLite ParseFrom(pb::CodedInputStream input) { |
| 7423 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
| 7424 | } |
| 7425 | public static TestDeprecatedLite ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7426 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
| 7427 | } |
| 7428 | public static Builder CreateBuilder() { return new Builder(); } |
| 7429 | public override Builder ToBuilder() { return CreateBuilder(this); } |
| 7430 | public override Builder CreateBuilderForType() { return new Builder(); } |
| 7431 | public static Builder CreateBuilder(TestDeprecatedLite prototype) { |
| 7432 | return (Builder) new Builder().MergeFrom(prototype); |
| 7433 | } |
| 7434 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7435 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> { |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7436 | protected override Builder ThisBuilder { |
| 7437 | get { return this; } |
| 7438 | } |
| 7439 | public Builder() {} |
| 7440 | |
| 7441 | TestDeprecatedLite result = new TestDeprecatedLite(); |
| 7442 | |
| 7443 | protected override TestDeprecatedLite MessageBeingBuilt { |
| 7444 | get { return result; } |
| 7445 | } |
| 7446 | |
| 7447 | public override Builder Clear() { |
| 7448 | result = new TestDeprecatedLite(); |
| 7449 | return this; |
| 7450 | } |
| 7451 | |
| 7452 | public override Builder Clone() { |
| 7453 | return new Builder().MergeFrom(result); |
| 7454 | } |
| 7455 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7456 | public override TestDeprecatedLite DefaultInstanceForType { |
| 7457 | get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; } |
| 7458 | } |
| 7459 | |
| 7460 | public override TestDeprecatedLite BuildPartial() { |
| 7461 | if (result == null) { |
| 7462 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
| 7463 | } |
| 7464 | TestDeprecatedLite returnMe = result; |
| 7465 | result = null; |
| 7466 | return returnMe; |
| 7467 | } |
| 7468 | |
csharptest | 980ba8d | 2010-11-07 16:30:39 -0600 | [diff] [blame^] | 7469 | public override Builder MergeFrom(pb::IMessageLite other) { |
| 7470 | if (other is TestDeprecatedLite) { |
| 7471 | return MergeFrom((TestDeprecatedLite) other); |
| 7472 | } else { |
| 7473 | base.MergeFrom(other); |
| 7474 | return this; |
| 7475 | } |
| 7476 | } |
| 7477 | |
| 7478 | public override Builder MergeFrom(TestDeprecatedLite other) { |
| 7479 | if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this; |
| 7480 | if (other.HasDeprecatedField) { |
| 7481 | DeprecatedField = other.DeprecatedField; |
| 7482 | } |
| 7483 | return this; |
| 7484 | } |
| 7485 | |
| 7486 | public override Builder MergeFrom(pb::CodedInputStream input) { |
| 7487 | return MergeFrom(input, pb::ExtensionRegistry.Empty); |
| 7488 | } |
| 7489 | |
| 7490 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
| 7491 | while (true) { |
| 7492 | uint tag = input.ReadTag(); |
| 7493 | switch (tag) { |
| 7494 | case 0: { |
| 7495 | return this; |
| 7496 | } |
| 7497 | default: { |
| 7498 | if (pb::WireFormat.IsEndGroupTag(tag)) { |
| 7499 | return this; |
| 7500 | } |
| 7501 | ParseUnknownField(input, extensionRegistry, tag); |
| 7502 | break; |
| 7503 | } |
| 7504 | case 8: { |
| 7505 | DeprecatedField = input.ReadInt32(); |
| 7506 | break; |
| 7507 | } |
| 7508 | } |
| 7509 | } |
| 7510 | } |
| 7511 | |
csharptest | 64bfac2 | 2010-11-05 17:51:33 -0500 | [diff] [blame] | 7512 | |
| 7513 | public bool HasDeprecatedField { |
| 7514 | get { return result.HasDeprecatedField; } |
| 7515 | } |
| 7516 | public int DeprecatedField { |
| 7517 | get { return result.DeprecatedField; } |
| 7518 | set { SetDeprecatedField(value); } |
| 7519 | } |
| 7520 | public Builder SetDeprecatedField(int value) { |
| 7521 | result.hasDeprecatedField = true; |
| 7522 | result.deprecatedField_ = value; |
| 7523 | return this; |
| 7524 | } |
| 7525 | public Builder ClearDeprecatedField() { |
| 7526 | result.hasDeprecatedField = false; |
| 7527 | result.deprecatedField_ = 0; |
| 7528 | return this; |
| 7529 | } |
| 7530 | } |
| 7531 | static TestDeprecatedLite() { |
| 7532 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null); |
| 7533 | } |
| 7534 | } |
| 7535 | |
| 7536 | #endregion |
| 7537 | |
| 7538 | } |