csharptest | 35b6852 | 2011-05-20 12:22:21 -0500 | [diff] [blame] | 1 | // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2 |
|
| 3 | using pb = global::Google.ProtocolBuffers;
|
| 4 | using pbc = global::Google.ProtocolBuffers.Collections;
|
| 5 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
| 6 | using scg = global::System.Collections.Generic;
|
| 7 | namespace Google.ProtocolBuffers.TestProtos {
|
| 8 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 10 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 11 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 12 | public static partial class UnitTestLiteProtoFile {
|
| 13 |
|
| 14 | #region Extension registration
|
| 15 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
| 16 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite);
|
| 17 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite);
|
| 18 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite);
|
| 19 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite);
|
| 20 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite);
|
| 21 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite);
|
| 22 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite);
|
| 23 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite);
|
| 24 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite);
|
| 25 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite);
|
| 26 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite);
|
| 27 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite);
|
| 28 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite);
|
| 29 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite);
|
| 30 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite);
|
| 31 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite);
|
| 32 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite);
|
| 33 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite);
|
| 34 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite);
|
| 35 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite);
|
| 36 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite);
|
| 37 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite);
|
| 38 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite);
|
| 39 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite);
|
| 40 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite);
|
| 41 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite);
|
| 42 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite);
|
| 43 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite);
|
| 44 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite);
|
| 45 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite);
|
| 46 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite);
|
| 47 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite);
|
| 48 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite);
|
| 49 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite);
|
| 50 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite);
|
| 51 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite);
|
| 52 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite);
|
| 53 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite);
|
| 54 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite);
|
| 55 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite);
|
| 56 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite);
|
| 57 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite);
|
| 58 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite);
|
| 59 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite);
|
| 60 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite);
|
| 61 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite);
|
| 62 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite);
|
| 63 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite);
|
| 64 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite);
|
| 65 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite);
|
| 66 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite);
|
| 67 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite);
|
| 68 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite);
|
| 69 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite);
|
| 70 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite);
|
| 71 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite);
|
| 72 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite);
|
| 73 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite);
|
| 74 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite);
|
| 75 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite);
|
| 76 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite);
|
| 77 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite);
|
| 78 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite);
|
| 79 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite);
|
| 80 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite);
|
| 81 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite);
|
| 82 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite);
|
| 83 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite);
|
| 84 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite);
|
| 85 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite);
|
| 86 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite);
|
| 87 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite);
|
| 88 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite);
|
| 89 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite);
|
| 90 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite);
|
| 91 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite);
|
| 92 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite);
|
| 93 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite);
|
| 94 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite);
|
| 95 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite);
|
| 96 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite);
|
| 97 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 98 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite);
|
| 99 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite);
|
| 100 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite);
|
| 101 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite);
|
| 102 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite);
|
| 103 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite);
|
| 104 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite);
|
| 105 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite);
|
| 106 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite);
|
| 107 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite);
|
| 108 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite);
|
| 109 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite);
|
| 110 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite);
|
| 111 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 112 | registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
|
| 113 | }
|
| 114 | #endregion
|
| 115 | #region Extensions
|
| 116 | public const int OptionalInt32ExtensionLiteFieldNumber = 1;
|
| 117 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
|
| 118 | public const int OptionalInt64ExtensionLiteFieldNumber = 2;
|
| 119 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
|
| 120 | public const int OptionalUint32ExtensionLiteFieldNumber = 3;
|
| 121 | [global::System.CLSCompliant(false)]
|
| 122 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
|
| 123 | public const int OptionalUint64ExtensionLiteFieldNumber = 4;
|
| 124 | [global::System.CLSCompliant(false)]
|
| 125 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
|
| 126 | public const int OptionalSint32ExtensionLiteFieldNumber = 5;
|
| 127 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
|
| 128 | public const int OptionalSint64ExtensionLiteFieldNumber = 6;
|
| 129 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
|
| 130 | public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
|
| 131 | [global::System.CLSCompliant(false)]
|
| 132 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
|
| 133 | public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
|
| 134 | [global::System.CLSCompliant(false)]
|
| 135 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
|
| 136 | public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
|
| 137 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
|
| 138 | public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
|
| 139 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
|
| 140 | public const int OptionalFloatExtensionLiteFieldNumber = 11;
|
| 141 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
|
| 142 | public const int OptionalDoubleExtensionLiteFieldNumber = 12;
|
| 143 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
|
| 144 | public const int OptionalBoolExtensionLiteFieldNumber = 13;
|
| 145 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
|
| 146 | public const int OptionalStringExtensionLiteFieldNumber = 14;
|
| 147 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
|
| 148 | public const int OptionalBytesExtensionLiteFieldNumber = 15;
|
| 149 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
|
| 150 | public const int OptionalGroupExtensionLiteFieldNumber = 16;
|
| 151 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
|
| 152 | public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
|
| 153 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
|
| 154 | public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
|
| 155 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
|
| 156 | public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
|
| 157 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
|
| 158 | public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
|
| 159 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
|
| 160 | public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
|
| 161 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
|
| 162 | public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
|
| 163 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
|
| 164 | public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
|
| 165 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
|
| 166 | public const int OptionalCordExtensionLiteFieldNumber = 25;
|
| 167 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
|
| 168 | public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
|
| 169 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
|
| 170 | public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
|
| 171 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
|
| 172 | public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
|
| 173 | [global::System.CLSCompliant(false)]
|
| 174 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
|
| 175 | public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
|
| 176 | [global::System.CLSCompliant(false)]
|
| 177 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
|
| 178 | public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
|
| 179 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
|
| 180 | public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
|
| 181 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
|
| 182 | public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
|
| 183 | [global::System.CLSCompliant(false)]
|
| 184 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
|
| 185 | public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
|
| 186 | [global::System.CLSCompliant(false)]
|
| 187 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
|
| 188 | public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
|
| 189 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
|
| 190 | public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
|
| 191 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
|
| 192 | public const int RepeatedFloatExtensionLiteFieldNumber = 41;
|
| 193 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
|
| 194 | public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
|
| 195 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
|
| 196 | public const int RepeatedBoolExtensionLiteFieldNumber = 43;
|
| 197 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
|
| 198 | public const int RepeatedStringExtensionLiteFieldNumber = 44;
|
| 199 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
|
| 200 | public const int RepeatedBytesExtensionLiteFieldNumber = 45;
|
| 201 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
|
| 202 | public const int RepeatedGroupExtensionLiteFieldNumber = 46;
|
| 203 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
|
| 204 | public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
|
| 205 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
|
| 206 | public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
|
| 207 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
|
| 208 | public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
|
| 209 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
|
| 210 | public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
|
| 211 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
|
| 212 | public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
|
| 213 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
|
| 214 | public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
|
| 215 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
|
| 216 | public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
|
| 217 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
|
| 218 | public const int RepeatedCordExtensionLiteFieldNumber = 55;
|
| 219 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
|
| 220 | public const int DefaultInt32ExtensionLiteFieldNumber = 61;
|
| 221 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
|
| 222 | public const int DefaultInt64ExtensionLiteFieldNumber = 62;
|
| 223 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
|
| 224 | public const int DefaultUint32ExtensionLiteFieldNumber = 63;
|
| 225 | [global::System.CLSCompliant(false)]
|
| 226 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
|
| 227 | public const int DefaultUint64ExtensionLiteFieldNumber = 64;
|
| 228 | [global::System.CLSCompliant(false)]
|
| 229 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
|
| 230 | public const int DefaultSint32ExtensionLiteFieldNumber = 65;
|
| 231 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
|
| 232 | public const int DefaultSint64ExtensionLiteFieldNumber = 66;
|
| 233 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
|
| 234 | public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
|
| 235 | [global::System.CLSCompliant(false)]
|
| 236 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
|
| 237 | public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
|
| 238 | [global::System.CLSCompliant(false)]
|
| 239 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
|
| 240 | public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
|
| 241 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
|
| 242 | public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
|
| 243 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
|
| 244 | public const int DefaultFloatExtensionLiteFieldNumber = 71;
|
| 245 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
|
| 246 | public const int DefaultDoubleExtensionLiteFieldNumber = 72;
|
| 247 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
|
| 248 | public const int DefaultBoolExtensionLiteFieldNumber = 73;
|
| 249 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
|
| 250 | public const int DefaultStringExtensionLiteFieldNumber = 74;
|
| 251 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
|
| 252 | public const int DefaultBytesExtensionLiteFieldNumber = 75;
|
| 253 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
|
| 254 | public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
|
| 255 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
|
| 256 | public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
|
| 257 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
|
| 258 | public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
|
| 259 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
|
| 260 | public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
|
| 261 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
|
| 262 | public const int DefaultCordExtensionLiteFieldNumber = 85;
|
| 263 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
|
| 264 | public const int PackedInt32ExtensionLiteFieldNumber = 90;
|
| 265 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
|
| 266 | public const int PackedInt64ExtensionLiteFieldNumber = 91;
|
| 267 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
|
| 268 | public const int PackedUint32ExtensionLiteFieldNumber = 92;
|
| 269 | [global::System.CLSCompliant(false)]
|
| 270 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
|
| 271 | public const int PackedUint64ExtensionLiteFieldNumber = 93;
|
| 272 | [global::System.CLSCompliant(false)]
|
| 273 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
|
| 274 | public const int PackedSint32ExtensionLiteFieldNumber = 94;
|
| 275 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
|
| 276 | public const int PackedSint64ExtensionLiteFieldNumber = 95;
|
| 277 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
|
| 278 | public const int PackedFixed32ExtensionLiteFieldNumber = 96;
|
| 279 | [global::System.CLSCompliant(false)]
|
| 280 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
|
| 281 | public const int PackedFixed64ExtensionLiteFieldNumber = 97;
|
| 282 | [global::System.CLSCompliant(false)]
|
| 283 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
|
| 284 | public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 285 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
|
| 286 | public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 287 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
|
| 288 | public const int PackedFloatExtensionLiteFieldNumber = 100;
|
| 289 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
|
| 290 | public const int PackedDoubleExtensionLiteFieldNumber = 101;
|
| 291 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
|
| 292 | public const int PackedBoolExtensionLiteFieldNumber = 102;
|
| 293 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
|
| 294 | public const int PackedEnumExtensionLiteFieldNumber = 103;
|
| 295 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumExtensionLite;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 296 | public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
|
| 297 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
|
| 298 | public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
|
| 299 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
|
| 300 | public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
|
| 301 | [global::System.CLSCompliant(false)]
|
| 302 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
|
| 303 | public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
|
| 304 | [global::System.CLSCompliant(false)]
|
| 305 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
|
| 306 | public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
|
| 307 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
|
| 308 | public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
|
| 309 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
|
| 310 | public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
|
| 311 | [global::System.CLSCompliant(false)]
|
| 312 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
|
| 313 | public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
|
| 314 | [global::System.CLSCompliant(false)]
|
| 315 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
|
| 316 | public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 317 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
|
| 318 | public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 319 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
|
| 320 | public const int UnpackedFloatExtensionLiteFieldNumber = 100;
|
| 321 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
|
| 322 | public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
|
| 323 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
|
| 324 | public const int UnpackedBoolExtensionLiteFieldNumber = 102;
|
| 325 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
|
| 326 | public const int UnpackedEnumExtensionLiteFieldNumber = 103;
|
| 327 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumExtensionLite;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 328 | #endregion
|
| 329 |
|
| 330 | #region Static variables
|
| 331 | #endregion
|
| 332 | #region Extensions
|
| 333 | internal static readonly object Descriptor;
|
| 334 | static UnitTestLiteProtoFile() {
|
| 335 | Descriptor = null;
|
| 336 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
|
| 337 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 338 | "protobuf_unittest.TestNestedExtensionLite.nested_extension",
|
| 339 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 340 | default(int),
|
| 341 | null,
|
| 342 | null,
|
| 343 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
|
| 344 | pbd::FieldType.Int32);
|
| 345 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
|
| 346 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 347 | "protobuf_unittest.optional_int32_extension_lite",
|
| 348 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 349 | default(int),
|
| 350 | null,
|
| 351 | null,
|
| 352 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
|
| 353 | pbd::FieldType.Int32);
|
| 354 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
|
| 355 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 356 | "protobuf_unittest.optional_int64_extension_lite",
|
| 357 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 358 | default(long),
|
| 359 | null,
|
| 360 | null,
|
| 361 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
|
| 362 | pbd::FieldType.Int64);
|
| 363 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
|
| 364 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 365 | "protobuf_unittest.optional_uint32_extension_lite",
|
| 366 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 367 | default(uint),
|
| 368 | null,
|
| 369 | null,
|
| 370 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
|
| 371 | pbd::FieldType.UInt32);
|
| 372 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
|
| 373 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 374 | "protobuf_unittest.optional_uint64_extension_lite",
|
| 375 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 376 | default(ulong),
|
| 377 | null,
|
| 378 | null,
|
| 379 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
|
| 380 | pbd::FieldType.UInt64);
|
| 381 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
|
| 382 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 383 | "protobuf_unittest.optional_sint32_extension_lite",
|
| 384 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 385 | default(int),
|
| 386 | null,
|
| 387 | null,
|
| 388 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
|
| 389 | pbd::FieldType.SInt32);
|
| 390 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
|
| 391 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 392 | "protobuf_unittest.optional_sint64_extension_lite",
|
| 393 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 394 | default(long),
|
| 395 | null,
|
| 396 | null,
|
| 397 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
|
| 398 | pbd::FieldType.SInt64);
|
| 399 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
|
| 400 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 401 | "protobuf_unittest.optional_fixed32_extension_lite",
|
| 402 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 403 | default(uint),
|
| 404 | null,
|
| 405 | null,
|
| 406 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
|
| 407 | pbd::FieldType.Fixed32);
|
| 408 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
|
| 409 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 410 | "protobuf_unittest.optional_fixed64_extension_lite",
|
| 411 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 412 | default(ulong),
|
| 413 | null,
|
| 414 | null,
|
| 415 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
|
| 416 | pbd::FieldType.Fixed64);
|
| 417 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
|
| 418 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 419 | "protobuf_unittest.optional_sfixed32_extension_lite",
|
| 420 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 421 | default(int),
|
| 422 | null,
|
| 423 | null,
|
| 424 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
|
| 425 | pbd::FieldType.SFixed32);
|
| 426 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
|
| 427 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 428 | "protobuf_unittest.optional_sfixed64_extension_lite",
|
| 429 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 430 | default(long),
|
| 431 | null,
|
| 432 | null,
|
| 433 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
|
| 434 | pbd::FieldType.SFixed64);
|
| 435 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
|
| 436 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 437 | "protobuf_unittest.optional_float_extension_lite",
|
| 438 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 439 | default(float),
|
| 440 | null,
|
| 441 | null,
|
| 442 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
|
| 443 | pbd::FieldType.Float);
|
| 444 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
|
| 445 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 446 | "protobuf_unittest.optional_double_extension_lite",
|
| 447 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 448 | default(double),
|
| 449 | null,
|
| 450 | null,
|
| 451 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
|
| 452 | pbd::FieldType.Double);
|
| 453 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
|
| 454 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 455 | "protobuf_unittest.optional_bool_extension_lite",
|
| 456 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 457 | default(bool),
|
| 458 | null,
|
| 459 | null,
|
| 460 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
|
| 461 | pbd::FieldType.Bool);
|
| 462 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
|
| 463 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 464 | "protobuf_unittest.optional_string_extension_lite",
|
| 465 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 466 | null,
|
| 467 | null,
|
| 468 | null,
|
| 469 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
|
| 470 | pbd::FieldType.String);
|
| 471 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
|
| 472 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 473 | "protobuf_unittest.optional_bytes_extension_lite",
|
| 474 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 475 | null,
|
| 476 | null,
|
| 477 | null,
|
| 478 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
|
| 479 | pbd::FieldType.Bytes);
|
| 480 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
|
| 481 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
|
| 482 | "protobuf_unittest.optionalgroup_extension_lite",
|
| 483 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 484 | null,
|
| 485 | global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
|
| 486 | null,
|
| 487 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
|
| 488 | pbd::FieldType.Group);
|
| 489 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
|
| 490 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 491 | "protobuf_unittest.optional_nested_message_extension_lite",
|
| 492 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 493 | null,
|
| 494 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 495 | null,
|
| 496 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
|
| 497 | pbd::FieldType.Message);
|
| 498 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
|
| 499 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 500 | "protobuf_unittest.optional_foreign_message_extension_lite",
|
| 501 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 502 | null,
|
| 503 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 504 | null,
|
| 505 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
|
| 506 | pbd::FieldType.Message);
|
| 507 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
|
| 508 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 509 | "protobuf_unittest.optional_import_message_extension_lite",
|
| 510 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 511 | null,
|
| 512 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 513 | null,
|
| 514 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
|
| 515 | pbd::FieldType.Message);
|
| 516 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
|
| 517 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 518 | "protobuf_unittest.optional_nested_enum_extension_lite",
|
| 519 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 520 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
|
| 521 | null,
|
| 522 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 523 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
|
| 524 | pbd::FieldType.Enum);
|
| 525 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
|
| 526 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 527 | "protobuf_unittest.optional_foreign_enum_extension_lite",
|
| 528 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 529 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
|
| 530 | null,
|
| 531 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 532 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
|
| 533 | pbd::FieldType.Enum);
|
| 534 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
|
| 535 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 536 | "protobuf_unittest.optional_import_enum_extension_lite",
|
| 537 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 538 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
|
| 539 | null,
|
| 540 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 541 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
|
| 542 | pbd::FieldType.Enum);
|
| 543 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
|
| 544 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 545 | "protobuf_unittest.optional_string_piece_extension_lite",
|
| 546 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 547 | null,
|
| 548 | null,
|
| 549 | null,
|
| 550 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
|
| 551 | pbd::FieldType.String);
|
| 552 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
|
| 553 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 554 | "protobuf_unittest.optional_cord_extension_lite",
|
| 555 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 556 | null,
|
| 557 | null,
|
| 558 | null,
|
| 559 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
|
| 560 | pbd::FieldType.String);
|
| 561 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
|
| 562 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 563 | "protobuf_unittest.repeated_int32_extension_lite",
|
| 564 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 565 | null,
|
| 566 | null,
|
| 567 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
|
| 568 | pbd::FieldType.Int32,
|
| 569 | false);
|
| 570 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
|
| 571 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 572 | "protobuf_unittest.repeated_int64_extension_lite",
|
| 573 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 574 | null,
|
| 575 | null,
|
| 576 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
|
| 577 | pbd::FieldType.Int64,
|
| 578 | false);
|
| 579 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
|
| 580 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 581 | "protobuf_unittest.repeated_uint32_extension_lite",
|
| 582 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 583 | null,
|
| 584 | null,
|
| 585 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
|
| 586 | pbd::FieldType.UInt32,
|
| 587 | false);
|
| 588 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
|
| 589 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 590 | "protobuf_unittest.repeated_uint64_extension_lite",
|
| 591 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 592 | null,
|
| 593 | null,
|
| 594 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
|
| 595 | pbd::FieldType.UInt64,
|
| 596 | false);
|
| 597 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
|
| 598 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 599 | "protobuf_unittest.repeated_sint32_extension_lite",
|
| 600 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 601 | null,
|
| 602 | null,
|
| 603 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
|
| 604 | pbd::FieldType.SInt32,
|
| 605 | false);
|
| 606 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
|
| 607 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 608 | "protobuf_unittest.repeated_sint64_extension_lite",
|
| 609 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 610 | null,
|
| 611 | null,
|
| 612 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
|
| 613 | pbd::FieldType.SInt64,
|
| 614 | false);
|
| 615 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
|
| 616 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 617 | "protobuf_unittest.repeated_fixed32_extension_lite",
|
| 618 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 619 | null,
|
| 620 | null,
|
| 621 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
|
| 622 | pbd::FieldType.Fixed32,
|
| 623 | false);
|
| 624 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
|
| 625 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 626 | "protobuf_unittest.repeated_fixed64_extension_lite",
|
| 627 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 628 | null,
|
| 629 | null,
|
| 630 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
|
| 631 | pbd::FieldType.Fixed64,
|
| 632 | false);
|
| 633 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
|
| 634 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 635 | "protobuf_unittest.repeated_sfixed32_extension_lite",
|
| 636 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 637 | null,
|
| 638 | null,
|
| 639 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
|
| 640 | pbd::FieldType.SFixed32,
|
| 641 | false);
|
| 642 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
|
| 643 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 644 | "protobuf_unittest.repeated_sfixed64_extension_lite",
|
| 645 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 646 | null,
|
| 647 | null,
|
| 648 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
|
| 649 | pbd::FieldType.SFixed64,
|
| 650 | false);
|
| 651 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
|
| 652 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 653 | "protobuf_unittest.repeated_float_extension_lite",
|
| 654 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 655 | null,
|
| 656 | null,
|
| 657 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
|
| 658 | pbd::FieldType.Float,
|
| 659 | false);
|
| 660 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
|
| 661 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 662 | "protobuf_unittest.repeated_double_extension_lite",
|
| 663 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 664 | null,
|
| 665 | null,
|
| 666 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
|
| 667 | pbd::FieldType.Double,
|
| 668 | false);
|
| 669 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
|
| 670 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 671 | "protobuf_unittest.repeated_bool_extension_lite",
|
| 672 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 673 | null,
|
| 674 | null,
|
| 675 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
|
| 676 | pbd::FieldType.Bool,
|
| 677 | false);
|
| 678 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
|
| 679 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 680 | "protobuf_unittest.repeated_string_extension_lite",
|
| 681 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 682 | null,
|
| 683 | null,
|
| 684 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
|
| 685 | pbd::FieldType.String,
|
| 686 | false);
|
| 687 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
|
| 688 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 689 | "protobuf_unittest.repeated_bytes_extension_lite",
|
| 690 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 691 | null,
|
| 692 | null,
|
| 693 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
|
| 694 | pbd::FieldType.Bytes,
|
| 695 | false);
|
| 696 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
|
| 697 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
|
| 698 | "protobuf_unittest.repeatedgroup_extension_lite",
|
| 699 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 700 | global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
|
| 701 | null,
|
| 702 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
|
| 703 | pbd::FieldType.Group,
|
| 704 | false);
|
| 705 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
|
| 706 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 707 | "protobuf_unittest.repeated_nested_message_extension_lite",
|
| 708 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 709 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 710 | null,
|
| 711 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
|
| 712 | pbd::FieldType.Message,
|
| 713 | false);
|
| 714 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
|
| 715 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 716 | "protobuf_unittest.repeated_foreign_message_extension_lite",
|
| 717 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 718 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 719 | null,
|
| 720 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
|
| 721 | pbd::FieldType.Message,
|
| 722 | false);
|
| 723 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
|
| 724 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 725 | "protobuf_unittest.repeated_import_message_extension_lite",
|
| 726 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 727 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 728 | null,
|
| 729 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
|
| 730 | pbd::FieldType.Message,
|
| 731 | false);
|
| 732 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
|
| 733 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 734 | "protobuf_unittest.repeated_nested_enum_extension_lite",
|
| 735 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 736 | null,
|
| 737 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 738 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
|
| 739 | pbd::FieldType.Enum,
|
| 740 | false);
|
| 741 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
|
| 742 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 743 | "protobuf_unittest.repeated_foreign_enum_extension_lite",
|
| 744 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 745 | null,
|
| 746 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 747 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
|
| 748 | pbd::FieldType.Enum,
|
| 749 | false);
|
| 750 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
|
| 751 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 752 | "protobuf_unittest.repeated_import_enum_extension_lite",
|
| 753 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 754 | null,
|
| 755 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 756 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
|
| 757 | pbd::FieldType.Enum,
|
| 758 | false);
|
| 759 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
|
| 760 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 761 | "protobuf_unittest.repeated_string_piece_extension_lite",
|
| 762 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 763 | null,
|
| 764 | null,
|
| 765 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
|
| 766 | pbd::FieldType.String,
|
| 767 | false);
|
| 768 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
|
| 769 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 770 | "protobuf_unittest.repeated_cord_extension_lite",
|
| 771 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 772 | null,
|
| 773 | null,
|
| 774 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
|
| 775 | pbd::FieldType.String,
|
| 776 | false);
|
| 777 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
|
| 778 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 779 | "protobuf_unittest.default_int32_extension_lite",
|
| 780 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 781 | 41,
|
| 782 | null,
|
| 783 | null,
|
| 784 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
|
| 785 | pbd::FieldType.Int32);
|
| 786 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
|
| 787 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 788 | "protobuf_unittest.default_int64_extension_lite",
|
| 789 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 790 | 42L,
|
| 791 | null,
|
| 792 | null,
|
| 793 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
|
| 794 | pbd::FieldType.Int64);
|
| 795 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
|
| 796 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 797 | "protobuf_unittest.default_uint32_extension_lite",
|
| 798 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 799 | 43,
|
| 800 | null,
|
| 801 | null,
|
| 802 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
|
| 803 | pbd::FieldType.UInt32);
|
| 804 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
|
| 805 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 806 | "protobuf_unittest.default_uint64_extension_lite",
|
| 807 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 808 | 44UL,
|
| 809 | null,
|
| 810 | null,
|
| 811 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
|
| 812 | pbd::FieldType.UInt64);
|
| 813 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
|
| 814 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 815 | "protobuf_unittest.default_sint32_extension_lite",
|
| 816 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 817 | -45,
|
| 818 | null,
|
| 819 | null,
|
| 820 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
|
| 821 | pbd::FieldType.SInt32);
|
| 822 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
|
| 823 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 824 | "protobuf_unittest.default_sint64_extension_lite",
|
| 825 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 826 | 46,
|
| 827 | null,
|
| 828 | null,
|
| 829 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
|
| 830 | pbd::FieldType.SInt64);
|
| 831 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
|
| 832 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 833 | "protobuf_unittest.default_fixed32_extension_lite",
|
| 834 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 835 | 47,
|
| 836 | null,
|
| 837 | null,
|
| 838 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
|
| 839 | pbd::FieldType.Fixed32);
|
| 840 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
|
| 841 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 842 | "protobuf_unittest.default_fixed64_extension_lite",
|
| 843 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 844 | 48,
|
| 845 | null,
|
| 846 | null,
|
| 847 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
|
| 848 | pbd::FieldType.Fixed64);
|
| 849 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
|
| 850 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 851 | "protobuf_unittest.default_sfixed32_extension_lite",
|
| 852 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 853 | 49,
|
| 854 | null,
|
| 855 | null,
|
| 856 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
|
| 857 | pbd::FieldType.SFixed32);
|
| 858 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
|
| 859 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 860 | "protobuf_unittest.default_sfixed64_extension_lite",
|
| 861 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 862 | -50,
|
| 863 | null,
|
| 864 | null,
|
| 865 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
|
| 866 | pbd::FieldType.SFixed64);
|
| 867 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
|
| 868 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 869 | "protobuf_unittest.default_float_extension_lite",
|
| 870 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 871 | 51.5F,
|
| 872 | null,
|
| 873 | null,
|
| 874 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
|
| 875 | pbd::FieldType.Float);
|
| 876 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
|
| 877 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 878 | "protobuf_unittest.default_double_extension_lite",
|
| 879 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 880 | 52000D,
|
| 881 | null,
|
| 882 | null,
|
| 883 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
|
| 884 | pbd::FieldType.Double);
|
| 885 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
|
| 886 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 887 | "protobuf_unittest.default_bool_extension_lite",
|
| 888 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 889 | true,
|
| 890 | null,
|
| 891 | null,
|
| 892 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
|
| 893 | pbd::FieldType.Bool);
|
| 894 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
|
| 895 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 896 | "protobuf_unittest.default_string_extension_lite",
|
| 897 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 898 | "hello",
|
| 899 | null,
|
| 900 | null,
|
| 901 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
|
| 902 | pbd::FieldType.String);
|
| 903 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
|
| 904 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 905 | "protobuf_unittest.default_bytes_extension_lite",
|
| 906 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 907 | ByteString.FromBase64("d29ybGQ="),
|
| 908 | null,
|
| 909 | null,
|
| 910 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
|
| 911 | pbd::FieldType.Bytes);
|
| 912 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
|
| 913 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 914 | "protobuf_unittest.default_nested_enum_extension_lite",
|
| 915 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 916 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
|
| 917 | null,
|
| 918 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 919 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
|
| 920 | pbd::FieldType.Enum);
|
| 921 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
|
| 922 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 923 | "protobuf_unittest.default_foreign_enum_extension_lite",
|
| 924 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 925 | global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
|
| 926 | null,
|
| 927 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 928 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
|
| 929 | pbd::FieldType.Enum);
|
| 930 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
|
| 931 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 932 | "protobuf_unittest.default_import_enum_extension_lite",
|
| 933 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 934 | global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
|
| 935 | null,
|
| 936 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 937 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
|
| 938 | pbd::FieldType.Enum);
|
| 939 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
|
| 940 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 941 | "protobuf_unittest.default_string_piece_extension_lite",
|
| 942 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 943 | "abc",
|
| 944 | null,
|
| 945 | null,
|
| 946 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
|
| 947 | pbd::FieldType.String);
|
| 948 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
|
| 949 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 950 | "protobuf_unittest.default_cord_extension_lite",
|
| 951 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 952 | "123",
|
| 953 | null,
|
| 954 | null,
|
| 955 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
|
| 956 | pbd::FieldType.String);
|
| 957 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
|
| 958 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 959 | "protobuf_unittest.packed_int32_extension_lite",
|
| 960 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 961 | null,
|
| 962 | null,
|
| 963 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
|
| 964 | pbd::FieldType.Int32,
|
| 965 | true);
|
| 966 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
|
| 967 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 968 | "protobuf_unittest.packed_int64_extension_lite",
|
| 969 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 970 | null,
|
| 971 | null,
|
| 972 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
|
| 973 | pbd::FieldType.Int64,
|
| 974 | true);
|
| 975 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
|
| 976 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 977 | "protobuf_unittest.packed_uint32_extension_lite",
|
| 978 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 979 | null,
|
| 980 | null,
|
| 981 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
|
| 982 | pbd::FieldType.UInt32,
|
| 983 | true);
|
| 984 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
|
| 985 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 986 | "protobuf_unittest.packed_uint64_extension_lite",
|
| 987 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 988 | null,
|
| 989 | null,
|
| 990 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
|
| 991 | pbd::FieldType.UInt64,
|
| 992 | true);
|
| 993 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
|
| 994 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 995 | "protobuf_unittest.packed_sint32_extension_lite",
|
| 996 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 997 | null,
|
| 998 | null,
|
| 999 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
|
| 1000 | pbd::FieldType.SInt32,
|
| 1001 | true);
|
| 1002 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
|
| 1003 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1004 | "protobuf_unittest.packed_sint64_extension_lite",
|
| 1005 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1006 | null,
|
| 1007 | null,
|
| 1008 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
|
| 1009 | pbd::FieldType.SInt64,
|
| 1010 | true);
|
| 1011 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
|
| 1012 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 1013 | "protobuf_unittest.packed_fixed32_extension_lite",
|
| 1014 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1015 | null,
|
| 1016 | null,
|
| 1017 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
|
| 1018 | pbd::FieldType.Fixed32,
|
| 1019 | true);
|
| 1020 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
|
| 1021 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 1022 | "protobuf_unittest.packed_fixed64_extension_lite",
|
| 1023 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1024 | null,
|
| 1025 | null,
|
| 1026 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
|
| 1027 | pbd::FieldType.Fixed64,
|
| 1028 | true);
|
| 1029 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
|
| 1030 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 1031 | "protobuf_unittest.packed_sfixed32_extension_lite",
|
| 1032 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1033 | null,
|
| 1034 | null,
|
| 1035 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
|
| 1036 | pbd::FieldType.SFixed32,
|
| 1037 | true);
|
| 1038 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
|
| 1039 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1040 | "protobuf_unittest.packed_sfixed64_extension_lite",
|
| 1041 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1042 | null,
|
| 1043 | null,
|
| 1044 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
|
| 1045 | pbd::FieldType.SFixed64,
|
| 1046 | true);
|
| 1047 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
|
| 1048 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
|
| 1049 | "protobuf_unittest.packed_float_extension_lite",
|
| 1050 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1051 | null,
|
| 1052 | null,
|
| 1053 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
|
| 1054 | pbd::FieldType.Float,
|
| 1055 | true);
|
| 1056 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
|
| 1057 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
|
| 1058 | "protobuf_unittest.packed_double_extension_lite",
|
| 1059 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1060 | null,
|
| 1061 | null,
|
| 1062 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
|
| 1063 | pbd::FieldType.Double,
|
| 1064 | true);
|
| 1065 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
|
| 1066 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
|
| 1067 | "protobuf_unittest.packed_bool_extension_lite",
|
| 1068 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1069 | null,
|
| 1070 | null,
|
| 1071 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
|
| 1072 | pbd::FieldType.Bool,
|
| 1073 | true);
|
| 1074 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
|
| 1075 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1076 | "protobuf_unittest.packed_enum_extension_lite",
|
| 1077 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1078 | null,
|
| 1079 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1080 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
|
| 1081 | pbd::FieldType.Enum,
|
| 1082 | true);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 1083 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite =
|
| 1084 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1085 | "protobuf_unittest.unpacked_int32_extension_lite",
|
| 1086 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1087 | null,
|
| 1088 | null,
|
| 1089 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
|
| 1090 | pbd::FieldType.Int32,
|
| 1091 | false);
|
| 1092 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite =
|
| 1093 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1094 | "protobuf_unittest.unpacked_int64_extension_lite",
|
| 1095 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1096 | null,
|
| 1097 | null,
|
| 1098 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
|
| 1099 | pbd::FieldType.Int64,
|
| 1100 | false);
|
| 1101 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite =
|
| 1102 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1103 | "protobuf_unittest.unpacked_uint32_extension_lite",
|
| 1104 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1105 | null,
|
| 1106 | null,
|
| 1107 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
|
| 1108 | pbd::FieldType.UInt32,
|
| 1109 | false);
|
| 1110 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite =
|
| 1111 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1112 | "protobuf_unittest.unpacked_uint64_extension_lite",
|
| 1113 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1114 | null,
|
| 1115 | null,
|
| 1116 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
|
| 1117 | pbd::FieldType.UInt64,
|
| 1118 | false);
|
| 1119 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite =
|
| 1120 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1121 | "protobuf_unittest.unpacked_sint32_extension_lite",
|
| 1122 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1123 | null,
|
| 1124 | null,
|
| 1125 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
|
| 1126 | pbd::FieldType.SInt32,
|
| 1127 | false);
|
| 1128 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite =
|
| 1129 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1130 | "protobuf_unittest.unpacked_sint64_extension_lite",
|
| 1131 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1132 | null,
|
| 1133 | null,
|
| 1134 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
|
| 1135 | pbd::FieldType.SInt64,
|
| 1136 | false);
|
| 1137 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite =
|
| 1138 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1139 | "protobuf_unittest.unpacked_fixed32_extension_lite",
|
| 1140 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1141 | null,
|
| 1142 | null,
|
| 1143 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
|
| 1144 | pbd::FieldType.Fixed32,
|
| 1145 | false);
|
| 1146 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite =
|
| 1147 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1148 | "protobuf_unittest.unpacked_fixed64_extension_lite",
|
| 1149 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1150 | null,
|
| 1151 | null,
|
| 1152 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
|
| 1153 | pbd::FieldType.Fixed64,
|
| 1154 | false);
|
| 1155 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite =
|
| 1156 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1157 | "protobuf_unittest.unpacked_sfixed32_extension_lite",
|
| 1158 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1159 | null,
|
| 1160 | null,
|
| 1161 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
|
| 1162 | pbd::FieldType.SFixed32,
|
| 1163 | false);
|
| 1164 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite =
|
| 1165 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1166 | "protobuf_unittest.unpacked_sfixed64_extension_lite",
|
| 1167 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1168 | null,
|
| 1169 | null,
|
| 1170 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
|
| 1171 | pbd::FieldType.SFixed64,
|
| 1172 | false);
|
| 1173 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite =
|
| 1174 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
|
| 1175 | "protobuf_unittest.unpacked_float_extension_lite",
|
| 1176 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1177 | null,
|
| 1178 | null,
|
| 1179 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
|
| 1180 | pbd::FieldType.Float,
|
| 1181 | false);
|
| 1182 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite =
|
| 1183 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
|
| 1184 | "protobuf_unittest.unpacked_double_extension_lite",
|
| 1185 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1186 | null,
|
| 1187 | null,
|
| 1188 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
|
| 1189 | pbd::FieldType.Double,
|
| 1190 | false);
|
| 1191 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite =
|
| 1192 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
|
| 1193 | "protobuf_unittest.unpacked_bool_extension_lite",
|
| 1194 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1195 | null,
|
| 1196 | null,
|
| 1197 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
|
| 1198 | pbd::FieldType.Bool,
|
| 1199 | false);
|
| 1200 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite =
|
| 1201 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1202 | "protobuf_unittest.unpacked_enum_extension_lite",
|
| 1203 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1204 | null,
|
| 1205 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1206 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
|
| 1207 | pbd::FieldType.Enum,
|
| 1208 | false);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1209 | }
|
| 1210 | #endregion
|
| 1211 |
|
| 1212 | }
|
| 1213 | #region Enums
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1214 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1215 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1216 | public enum ForeignEnumLite {
|
| 1217 | FOREIGN_LITE_FOO = 4,
|
| 1218 | FOREIGN_LITE_BAR = 5,
|
| 1219 | FOREIGN_LITE_BAZ = 6,
|
| 1220 | }
|
| 1221 |
|
| 1222 | #endregion
|
| 1223 |
|
| 1224 | #region Messages
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1225 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1226 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1227 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1228 | public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
|
| 1229 | private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1230 | private static readonly string[] _testAllTypesLiteFieldNames = new string[] { "default_bool", "default_bytes", "default_cord", "default_double", "default_fixed32", "default_fixed64", "default_float", "default_foreign_enum", "default_import_enum", "default_int32", "default_int64", "default_nested_enum", "default_sfixed32", "default_sfixed64", "default_sint32", "default_sint64", "default_string", "default_string_piece", "default_uint32", "default_uint64", "optional_bool", "optional_bytes", "optional_cord", "optional_double", "optional_fixed32", "optional_fixed64", "optional_float", "optional_foreign_enum", "optional_foreign_message", "optional_import_enum", "optional_import_message", "optional_int32", "optional_int64", "optional_nested_enum", "optional_nested_message", "optional_sfixed32", "optional_sfixed64", "optional_sint32", "optional_sint64", "optional_string", "optional_string_piece", "optional_uint32", "optional_uint64", "optionalgroup", "repeated_bool", "repeated_bytes", "repeated_cord", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_string_piece", "repeated_uint32", "repeated_uint64", "repeatedgroup" };
|
| 1231 | private static readonly uint[] _testAllTypesLiteFieldTags = new uint[] { 584, 602, 682, 577, 541, 545, 573, 656, 664, 488, 496, 648, 557, 561, 520, 528, 594, 674, 504, 512, 104, 122, 202, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 77, 81, 40, 48, 114, 194, 24, 32, 131, 344, 362, 442, 337, 301, 305, 333, 416, 394, 424, 402, 248, 256, 408, 386, 317, 321, 280, 288, 354, 434, 264, 272, 371 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1232 | public static TestAllTypesLite DefaultInstance {
|
| 1233 | get { return defaultInstance; }
|
| 1234 | }
|
| 1235 |
|
| 1236 | public override TestAllTypesLite DefaultInstanceForType {
|
| 1237 | get { return defaultInstance; }
|
| 1238 | }
|
| 1239 |
|
| 1240 | protected override TestAllTypesLite ThisMessage {
|
| 1241 | get { return this; }
|
| 1242 | }
|
| 1243 |
|
| 1244 | #region Nested types
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1245 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1246 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1247 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1248 | public static class Types {
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1249 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1250 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1251 | public enum NestedEnum {
|
| 1252 | FOO = 1,
|
| 1253 | BAR = 2,
|
| 1254 | BAZ = 3,
|
| 1255 | }
|
| 1256 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1257 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1258 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1259 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1260 | public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> {
|
| 1261 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1262 | private static readonly string[] _nestedMessageFieldNames = new string[] { "bb" };
|
| 1263 | private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1264 | public static NestedMessage DefaultInstance {
|
| 1265 | get { return defaultInstance; }
|
| 1266 | }
|
| 1267 |
|
| 1268 | public override NestedMessage DefaultInstanceForType {
|
| 1269 | get { return defaultInstance; }
|
| 1270 | }
|
| 1271 |
|
| 1272 | protected override NestedMessage ThisMessage {
|
| 1273 | get { return this; }
|
| 1274 | }
|
| 1275 |
|
| 1276 | public const int BbFieldNumber = 1;
|
| 1277 | private bool hasBb;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1278 | private int bb_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1279 | public bool HasBb {
|
| 1280 | get { return hasBb; }
|
| 1281 | }
|
| 1282 | public int Bb {
|
| 1283 | get { return bb_; }
|
| 1284 | }
|
| 1285 |
|
| 1286 | public override bool IsInitialized {
|
| 1287 | get {
|
| 1288 | return true;
|
| 1289 | }
|
| 1290 | }
|
| 1291 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1292 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1293 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1294 | string[] field_names = _nestedMessageFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1295 | if (hasBb) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1296 | output.WriteInt32(1, field_names[0], Bb);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1297 | }
|
| 1298 | }
|
| 1299 |
|
| 1300 | private int memoizedSerializedSize = -1;
|
| 1301 | public override int SerializedSize {
|
| 1302 | get {
|
| 1303 | int size = memoizedSerializedSize;
|
| 1304 | if (size != -1) return size;
|
| 1305 |
|
| 1306 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1307 | if (hasBb) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1308 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
|
| 1309 | }
|
| 1310 | memoizedSerializedSize = size;
|
| 1311 | return size;
|
| 1312 | }
|
| 1313 | }
|
| 1314 |
|
| 1315 | #region Lite runtime methods
|
| 1316 | public override int GetHashCode() {
|
| 1317 | int hash = GetType().GetHashCode();
|
| 1318 | if (hasBb) hash ^= bb_.GetHashCode();
|
| 1319 | return hash;
|
| 1320 | }
|
| 1321 |
|
| 1322 | public override bool Equals(object obj) {
|
| 1323 | NestedMessage other = obj as NestedMessage;
|
| 1324 | if (other == null) return false;
|
| 1325 | if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
|
| 1326 | return true;
|
| 1327 | }
|
| 1328 |
|
| 1329 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1330 | PrintField("bb", hasBb, bb_, writer);
|
| 1331 | }
|
| 1332 | #endregion
|
| 1333 |
|
| 1334 | public static NestedMessage ParseFrom(pb::ByteString data) {
|
| 1335 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1336 | }
|
| 1337 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1338 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1339 | }
|
| 1340 | public static NestedMessage ParseFrom(byte[] data) {
|
| 1341 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1342 | }
|
| 1343 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1344 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1345 | }
|
| 1346 | public static NestedMessage ParseFrom(global::System.IO.Stream input) {
|
| 1347 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1348 | }
|
| 1349 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1350 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1351 | }
|
| 1352 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1353 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1354 | }
|
| 1355 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1356 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1357 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1358 | public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1359 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1360 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1361 | public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1362 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1363 | }
|
| 1364 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1365 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1366 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1367 | public static Builder CreateBuilder(NestedMessage prototype) {
|
| 1368 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1369 | }
|
| 1370 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1371 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1372 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1373 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1374 | public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> {
|
| 1375 | protected override Builder ThisBuilder {
|
| 1376 | get { return this; }
|
| 1377 | }
|
| 1378 | public Builder() {}
|
| 1379 |
|
| 1380 | NestedMessage result = new NestedMessage();
|
| 1381 |
|
| 1382 | protected override NestedMessage MessageBeingBuilt {
|
| 1383 | get { return result; }
|
| 1384 | }
|
| 1385 |
|
| 1386 | public override Builder Clear() {
|
| 1387 | result = new NestedMessage();
|
| 1388 | return this;
|
| 1389 | }
|
| 1390 |
|
| 1391 | public override Builder Clone() {
|
| 1392 | return new Builder().MergeFrom(result);
|
| 1393 | }
|
| 1394 |
|
| 1395 | public override NestedMessage DefaultInstanceForType {
|
| 1396 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
|
| 1397 | }
|
| 1398 |
|
| 1399 | public override NestedMessage BuildPartial() {
|
| 1400 | if (result == null) {
|
| 1401 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1402 | }
|
| 1403 | NestedMessage returnMe = result;
|
| 1404 | result = null;
|
| 1405 | return returnMe;
|
| 1406 | }
|
| 1407 |
|
| 1408 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1409 | if (other is NestedMessage) {
|
| 1410 | return MergeFrom((NestedMessage) other);
|
| 1411 | } else {
|
| 1412 | base.MergeFrom(other);
|
| 1413 | return this;
|
| 1414 | }
|
| 1415 | }
|
| 1416 |
|
| 1417 | public override Builder MergeFrom(NestedMessage other) {
|
| 1418 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
|
| 1419 | if (other.HasBb) {
|
| 1420 | Bb = other.Bb;
|
| 1421 | }
|
| 1422 | return this;
|
| 1423 | }
|
| 1424 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1425 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1426 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1427 | }
|
| 1428 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1429 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1430 | uint tag;
|
| 1431 | string field_name;
|
| 1432 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1433 | if(tag == 0 && field_name != null) {
|
| 1434 | int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1435 | if(field_ordinal >= 0)
|
| 1436 | tag = _nestedMessageFieldTags[field_ordinal];
|
| 1437 | else {
|
| 1438 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1439 | continue;
|
| 1440 | }
|
| 1441 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1442 | switch (tag) {
|
| 1443 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1444 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1445 | }
|
| 1446 | default: {
|
| 1447 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1448 | return this;
|
| 1449 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1450 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1451 | break;
|
| 1452 | }
|
| 1453 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1454 | result.hasBb = input.ReadInt32(ref result.bb_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1455 | break;
|
| 1456 | }
|
| 1457 | }
|
| 1458 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1459 |
|
| 1460 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1461 | }
|
| 1462 |
|
| 1463 |
|
| 1464 | public bool HasBb {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1465 | get { return result.hasBb; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1466 | }
|
| 1467 | public int Bb {
|
| 1468 | get { return result.Bb; }
|
| 1469 | set { SetBb(value); }
|
| 1470 | }
|
| 1471 | public Builder SetBb(int value) {
|
| 1472 | result.hasBb = true;
|
| 1473 | result.bb_ = value;
|
| 1474 | return this;
|
| 1475 | }
|
| 1476 | public Builder ClearBb() {
|
| 1477 | result.hasBb = false;
|
| 1478 | result.bb_ = 0;
|
| 1479 | return this;
|
| 1480 | }
|
| 1481 | }
|
| 1482 | static NestedMessage() {
|
| 1483 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1484 | }
|
| 1485 | }
|
| 1486 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1487 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1488 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1489 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1490 | public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> {
|
| 1491 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1492 | private static readonly string[] _optionalGroupFieldNames = new string[] { "a" };
|
| 1493 | private static readonly uint[] _optionalGroupFieldTags = new uint[] { 136 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1494 | public static OptionalGroup DefaultInstance {
|
| 1495 | get { return defaultInstance; }
|
| 1496 | }
|
| 1497 |
|
| 1498 | public override OptionalGroup DefaultInstanceForType {
|
| 1499 | get { return defaultInstance; }
|
| 1500 | }
|
| 1501 |
|
| 1502 | protected override OptionalGroup ThisMessage {
|
| 1503 | get { return this; }
|
| 1504 | }
|
| 1505 |
|
| 1506 | public const int AFieldNumber = 17;
|
| 1507 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1508 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1509 | public bool HasA {
|
| 1510 | get { return hasA; }
|
| 1511 | }
|
| 1512 | public int A {
|
| 1513 | get { return a_; }
|
| 1514 | }
|
| 1515 |
|
| 1516 | public override bool IsInitialized {
|
| 1517 | get {
|
| 1518 | return true;
|
| 1519 | }
|
| 1520 | }
|
| 1521 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1522 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1523 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1524 | string[] field_names = _optionalGroupFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1525 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1526 | output.WriteInt32(17, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1527 | }
|
| 1528 | }
|
| 1529 |
|
| 1530 | private int memoizedSerializedSize = -1;
|
| 1531 | public override int SerializedSize {
|
| 1532 | get {
|
| 1533 | int size = memoizedSerializedSize;
|
| 1534 | if (size != -1) return size;
|
| 1535 |
|
| 1536 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1537 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1538 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 1539 | }
|
| 1540 | memoizedSerializedSize = size;
|
| 1541 | return size;
|
| 1542 | }
|
| 1543 | }
|
| 1544 |
|
| 1545 | #region Lite runtime methods
|
| 1546 | public override int GetHashCode() {
|
| 1547 | int hash = GetType().GetHashCode();
|
| 1548 | if (hasA) hash ^= a_.GetHashCode();
|
| 1549 | return hash;
|
| 1550 | }
|
| 1551 |
|
| 1552 | public override bool Equals(object obj) {
|
| 1553 | OptionalGroup other = obj as OptionalGroup;
|
| 1554 | if (other == null) return false;
|
| 1555 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1556 | return true;
|
| 1557 | }
|
| 1558 |
|
| 1559 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1560 | PrintField("a", hasA, a_, writer);
|
| 1561 | }
|
| 1562 | #endregion
|
| 1563 |
|
| 1564 | public static OptionalGroup ParseFrom(pb::ByteString data) {
|
| 1565 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1566 | }
|
| 1567 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1568 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1569 | }
|
| 1570 | public static OptionalGroup ParseFrom(byte[] data) {
|
| 1571 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1572 | }
|
| 1573 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1574 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1575 | }
|
| 1576 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
|
| 1577 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1578 | }
|
| 1579 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1580 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1581 | }
|
| 1582 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1583 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1584 | }
|
| 1585 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1586 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1587 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1588 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1589 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1590 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1591 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1592 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1593 | }
|
| 1594 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1595 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1596 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1597 | public static Builder CreateBuilder(OptionalGroup prototype) {
|
| 1598 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1599 | }
|
| 1600 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1601 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1602 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1603 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1604 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> {
|
| 1605 | protected override Builder ThisBuilder {
|
| 1606 | get { return this; }
|
| 1607 | }
|
| 1608 | public Builder() {}
|
| 1609 |
|
| 1610 | OptionalGroup result = new OptionalGroup();
|
| 1611 |
|
| 1612 | protected override OptionalGroup MessageBeingBuilt {
|
| 1613 | get { return result; }
|
| 1614 | }
|
| 1615 |
|
| 1616 | public override Builder Clear() {
|
| 1617 | result = new OptionalGroup();
|
| 1618 | return this;
|
| 1619 | }
|
| 1620 |
|
| 1621 | public override Builder Clone() {
|
| 1622 | return new Builder().MergeFrom(result);
|
| 1623 | }
|
| 1624 |
|
| 1625 | public override OptionalGroup DefaultInstanceForType {
|
| 1626 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
|
| 1627 | }
|
| 1628 |
|
| 1629 | public override OptionalGroup BuildPartial() {
|
| 1630 | if (result == null) {
|
| 1631 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1632 | }
|
| 1633 | OptionalGroup returnMe = result;
|
| 1634 | result = null;
|
| 1635 | return returnMe;
|
| 1636 | }
|
| 1637 |
|
| 1638 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1639 | if (other is OptionalGroup) {
|
| 1640 | return MergeFrom((OptionalGroup) other);
|
| 1641 | } else {
|
| 1642 | base.MergeFrom(other);
|
| 1643 | return this;
|
| 1644 | }
|
| 1645 | }
|
| 1646 |
|
| 1647 | public override Builder MergeFrom(OptionalGroup other) {
|
| 1648 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
|
| 1649 | if (other.HasA) {
|
| 1650 | A = other.A;
|
| 1651 | }
|
| 1652 | return this;
|
| 1653 | }
|
| 1654 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1655 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1656 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1657 | }
|
| 1658 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1659 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1660 | uint tag;
|
| 1661 | string field_name;
|
| 1662 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1663 | if(tag == 0 && field_name != null) {
|
| 1664 | int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1665 | if(field_ordinal >= 0)
|
| 1666 | tag = _optionalGroupFieldTags[field_ordinal];
|
| 1667 | else {
|
| 1668 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1669 | continue;
|
| 1670 | }
|
| 1671 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1672 | switch (tag) {
|
| 1673 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1674 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1675 | }
|
| 1676 | default: {
|
| 1677 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1678 | return this;
|
| 1679 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1680 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1681 | break;
|
| 1682 | }
|
| 1683 | case 136: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1684 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1685 | break;
|
| 1686 | }
|
| 1687 | }
|
| 1688 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1689 |
|
| 1690 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1691 | }
|
| 1692 |
|
| 1693 |
|
| 1694 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1695 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1696 | }
|
| 1697 | public int A {
|
| 1698 | get { return result.A; }
|
| 1699 | set { SetA(value); }
|
| 1700 | }
|
| 1701 | public Builder SetA(int value) {
|
| 1702 | result.hasA = true;
|
| 1703 | result.a_ = value;
|
| 1704 | return this;
|
| 1705 | }
|
| 1706 | public Builder ClearA() {
|
| 1707 | result.hasA = false;
|
| 1708 | result.a_ = 0;
|
| 1709 | return this;
|
| 1710 | }
|
| 1711 | }
|
| 1712 | static OptionalGroup() {
|
| 1713 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1714 | }
|
| 1715 | }
|
| 1716 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1717 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1718 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1719 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1720 | public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> {
|
| 1721 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1722 | private static readonly string[] _repeatedGroupFieldNames = new string[] { "a" };
|
| 1723 | private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 376 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1724 | public static RepeatedGroup DefaultInstance {
|
| 1725 | get { return defaultInstance; }
|
| 1726 | }
|
| 1727 |
|
| 1728 | public override RepeatedGroup DefaultInstanceForType {
|
| 1729 | get { return defaultInstance; }
|
| 1730 | }
|
| 1731 |
|
| 1732 | protected override RepeatedGroup ThisMessage {
|
| 1733 | get { return this; }
|
| 1734 | }
|
| 1735 |
|
| 1736 | public const int AFieldNumber = 47;
|
| 1737 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1738 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1739 | public bool HasA {
|
| 1740 | get { return hasA; }
|
| 1741 | }
|
| 1742 | public int A {
|
| 1743 | get { return a_; }
|
| 1744 | }
|
| 1745 |
|
| 1746 | public override bool IsInitialized {
|
| 1747 | get {
|
| 1748 | return true;
|
| 1749 | }
|
| 1750 | }
|
| 1751 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1752 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1753 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1754 | string[] field_names = _repeatedGroupFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1755 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1756 | output.WriteInt32(47, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1757 | }
|
| 1758 | }
|
| 1759 |
|
| 1760 | private int memoizedSerializedSize = -1;
|
| 1761 | public override int SerializedSize {
|
| 1762 | get {
|
| 1763 | int size = memoizedSerializedSize;
|
| 1764 | if (size != -1) return size;
|
| 1765 |
|
| 1766 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1767 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1768 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 1769 | }
|
| 1770 | memoizedSerializedSize = size;
|
| 1771 | return size;
|
| 1772 | }
|
| 1773 | }
|
| 1774 |
|
| 1775 | #region Lite runtime methods
|
| 1776 | public override int GetHashCode() {
|
| 1777 | int hash = GetType().GetHashCode();
|
| 1778 | if (hasA) hash ^= a_.GetHashCode();
|
| 1779 | return hash;
|
| 1780 | }
|
| 1781 |
|
| 1782 | public override bool Equals(object obj) {
|
| 1783 | RepeatedGroup other = obj as RepeatedGroup;
|
| 1784 | if (other == null) return false;
|
| 1785 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1786 | return true;
|
| 1787 | }
|
| 1788 |
|
| 1789 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1790 | PrintField("a", hasA, a_, writer);
|
| 1791 | }
|
| 1792 | #endregion
|
| 1793 |
|
| 1794 | public static RepeatedGroup ParseFrom(pb::ByteString data) {
|
| 1795 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1796 | }
|
| 1797 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1798 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1799 | }
|
| 1800 | public static RepeatedGroup ParseFrom(byte[] data) {
|
| 1801 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1802 | }
|
| 1803 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1804 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1805 | }
|
| 1806 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
|
| 1807 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1808 | }
|
| 1809 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1810 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1811 | }
|
| 1812 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1813 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1814 | }
|
| 1815 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1816 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1817 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1818 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1819 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1820 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1821 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1822 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1823 | }
|
| 1824 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1825 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1826 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1827 | public static Builder CreateBuilder(RepeatedGroup prototype) {
|
| 1828 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1829 | }
|
| 1830 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1831 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1832 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1833 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1834 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> {
|
| 1835 | protected override Builder ThisBuilder {
|
| 1836 | get { return this; }
|
| 1837 | }
|
| 1838 | public Builder() {}
|
| 1839 |
|
| 1840 | RepeatedGroup result = new RepeatedGroup();
|
| 1841 |
|
| 1842 | protected override RepeatedGroup MessageBeingBuilt {
|
| 1843 | get { return result; }
|
| 1844 | }
|
| 1845 |
|
| 1846 | public override Builder Clear() {
|
| 1847 | result = new RepeatedGroup();
|
| 1848 | return this;
|
| 1849 | }
|
| 1850 |
|
| 1851 | public override Builder Clone() {
|
| 1852 | return new Builder().MergeFrom(result);
|
| 1853 | }
|
| 1854 |
|
| 1855 | public override RepeatedGroup DefaultInstanceForType {
|
| 1856 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
|
| 1857 | }
|
| 1858 |
|
| 1859 | public override RepeatedGroup BuildPartial() {
|
| 1860 | if (result == null) {
|
| 1861 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1862 | }
|
| 1863 | RepeatedGroup returnMe = result;
|
| 1864 | result = null;
|
| 1865 | return returnMe;
|
| 1866 | }
|
| 1867 |
|
| 1868 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1869 | if (other is RepeatedGroup) {
|
| 1870 | return MergeFrom((RepeatedGroup) other);
|
| 1871 | } else {
|
| 1872 | base.MergeFrom(other);
|
| 1873 | return this;
|
| 1874 | }
|
| 1875 | }
|
| 1876 |
|
| 1877 | public override Builder MergeFrom(RepeatedGroup other) {
|
| 1878 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
|
| 1879 | if (other.HasA) {
|
| 1880 | A = other.A;
|
| 1881 | }
|
| 1882 | return this;
|
| 1883 | }
|
| 1884 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1885 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1886 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1887 | }
|
| 1888 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1889 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1890 | uint tag;
|
| 1891 | string field_name;
|
| 1892 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1893 | if(tag == 0 && field_name != null) {
|
| 1894 | int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1895 | if(field_ordinal >= 0)
|
| 1896 | tag = _repeatedGroupFieldTags[field_ordinal];
|
| 1897 | else {
|
| 1898 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1899 | continue;
|
| 1900 | }
|
| 1901 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1902 | switch (tag) {
|
| 1903 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1904 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1905 | }
|
| 1906 | default: {
|
| 1907 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1908 | return this;
|
| 1909 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1910 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1911 | break;
|
| 1912 | }
|
| 1913 | case 376: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1914 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1915 | break;
|
| 1916 | }
|
| 1917 | }
|
| 1918 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1919 |
|
| 1920 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1921 | }
|
| 1922 |
|
| 1923 |
|
| 1924 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1925 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1926 | }
|
| 1927 | public int A {
|
| 1928 | get { return result.A; }
|
| 1929 | set { SetA(value); }
|
| 1930 | }
|
| 1931 | public Builder SetA(int value) {
|
| 1932 | result.hasA = true;
|
| 1933 | result.a_ = value;
|
| 1934 | return this;
|
| 1935 | }
|
| 1936 | public Builder ClearA() {
|
| 1937 | result.hasA = false;
|
| 1938 | result.a_ = 0;
|
| 1939 | return this;
|
| 1940 | }
|
| 1941 | }
|
| 1942 | static RepeatedGroup() {
|
| 1943 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1944 | }
|
| 1945 | }
|
| 1946 |
|
| 1947 | }
|
| 1948 | #endregion
|
| 1949 |
|
| 1950 | public const int OptionalInt32FieldNumber = 1;
|
| 1951 | private bool hasOptionalInt32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1952 | private int optionalInt32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1953 | public bool HasOptionalInt32 {
|
| 1954 | get { return hasOptionalInt32; }
|
| 1955 | }
|
| 1956 | public int OptionalInt32 {
|
| 1957 | get { return optionalInt32_; }
|
| 1958 | }
|
| 1959 |
|
| 1960 | public const int OptionalInt64FieldNumber = 2;
|
| 1961 | private bool hasOptionalInt64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1962 | private long optionalInt64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1963 | public bool HasOptionalInt64 {
|
| 1964 | get { return hasOptionalInt64; }
|
| 1965 | }
|
| 1966 | public long OptionalInt64 {
|
| 1967 | get { return optionalInt64_; }
|
| 1968 | }
|
| 1969 |
|
| 1970 | public const int OptionalUint32FieldNumber = 3;
|
| 1971 | private bool hasOptionalUint32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1972 | private uint optionalUint32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1973 | public bool HasOptionalUint32 {
|
| 1974 | get { return hasOptionalUint32; }
|
| 1975 | }
|
| 1976 | [global::System.CLSCompliant(false)]
|
| 1977 | public uint OptionalUint32 {
|
| 1978 | get { return optionalUint32_; }
|
| 1979 | }
|
| 1980 |
|
| 1981 | public const int OptionalUint64FieldNumber = 4;
|
| 1982 | private bool hasOptionalUint64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1983 | private ulong optionalUint64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1984 | public bool HasOptionalUint64 {
|
| 1985 | get { return hasOptionalUint64; }
|
| 1986 | }
|
| 1987 | [global::System.CLSCompliant(false)]
|
| 1988 | public ulong OptionalUint64 {
|
| 1989 | get { return optionalUint64_; }
|
| 1990 | }
|
| 1991 |
|
| 1992 | public const int OptionalSint32FieldNumber = 5;
|
| 1993 | private bool hasOptionalSint32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 1994 | private int optionalSint32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1995 | public bool HasOptionalSint32 {
|
| 1996 | get { return hasOptionalSint32; }
|
| 1997 | }
|
| 1998 | public int OptionalSint32 {
|
| 1999 | get { return optionalSint32_; }
|
| 2000 | }
|
| 2001 |
|
| 2002 | public const int OptionalSint64FieldNumber = 6;
|
| 2003 | private bool hasOptionalSint64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2004 | private long optionalSint64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2005 | public bool HasOptionalSint64 {
|
| 2006 | get { return hasOptionalSint64; }
|
| 2007 | }
|
| 2008 | public long OptionalSint64 {
|
| 2009 | get { return optionalSint64_; }
|
| 2010 | }
|
| 2011 |
|
| 2012 | public const int OptionalFixed32FieldNumber = 7;
|
| 2013 | private bool hasOptionalFixed32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2014 | private uint optionalFixed32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2015 | public bool HasOptionalFixed32 {
|
| 2016 | get { return hasOptionalFixed32; }
|
| 2017 | }
|
| 2018 | [global::System.CLSCompliant(false)]
|
| 2019 | public uint OptionalFixed32 {
|
| 2020 | get { return optionalFixed32_; }
|
| 2021 | }
|
| 2022 |
|
| 2023 | public const int OptionalFixed64FieldNumber = 8;
|
| 2024 | private bool hasOptionalFixed64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2025 | private ulong optionalFixed64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2026 | public bool HasOptionalFixed64 {
|
| 2027 | get { return hasOptionalFixed64; }
|
| 2028 | }
|
| 2029 | [global::System.CLSCompliant(false)]
|
| 2030 | public ulong OptionalFixed64 {
|
| 2031 | get { return optionalFixed64_; }
|
| 2032 | }
|
| 2033 |
|
| 2034 | public const int OptionalSfixed32FieldNumber = 9;
|
| 2035 | private bool hasOptionalSfixed32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2036 | private int optionalSfixed32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2037 | public bool HasOptionalSfixed32 {
|
| 2038 | get { return hasOptionalSfixed32; }
|
| 2039 | }
|
| 2040 | public int OptionalSfixed32 {
|
| 2041 | get { return optionalSfixed32_; }
|
| 2042 | }
|
| 2043 |
|
| 2044 | public const int OptionalSfixed64FieldNumber = 10;
|
| 2045 | private bool hasOptionalSfixed64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2046 | private long optionalSfixed64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2047 | public bool HasOptionalSfixed64 {
|
| 2048 | get { return hasOptionalSfixed64; }
|
| 2049 | }
|
| 2050 | public long OptionalSfixed64 {
|
| 2051 | get { return optionalSfixed64_; }
|
| 2052 | }
|
| 2053 |
|
| 2054 | public const int OptionalFloatFieldNumber = 11;
|
| 2055 | private bool hasOptionalFloat;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2056 | private float optionalFloat_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2057 | public bool HasOptionalFloat {
|
| 2058 | get { return hasOptionalFloat; }
|
| 2059 | }
|
| 2060 | public float OptionalFloat {
|
| 2061 | get { return optionalFloat_; }
|
| 2062 | }
|
| 2063 |
|
| 2064 | public const int OptionalDoubleFieldNumber = 12;
|
| 2065 | private bool hasOptionalDouble;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2066 | private double optionalDouble_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2067 | public bool HasOptionalDouble {
|
| 2068 | get { return hasOptionalDouble; }
|
| 2069 | }
|
| 2070 | public double OptionalDouble {
|
| 2071 | get { return optionalDouble_; }
|
| 2072 | }
|
| 2073 |
|
| 2074 | public const int OptionalBoolFieldNumber = 13;
|
| 2075 | private bool hasOptionalBool;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2076 | private bool optionalBool_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2077 | public bool HasOptionalBool {
|
| 2078 | get { return hasOptionalBool; }
|
| 2079 | }
|
| 2080 | public bool OptionalBool {
|
| 2081 | get { return optionalBool_; }
|
| 2082 | }
|
| 2083 |
|
| 2084 | public const int OptionalStringFieldNumber = 14;
|
| 2085 | private bool hasOptionalString;
|
| 2086 | private string optionalString_ = "";
|
| 2087 | public bool HasOptionalString {
|
| 2088 | get { return hasOptionalString; }
|
| 2089 | }
|
| 2090 | public string OptionalString {
|
| 2091 | get { return optionalString_; }
|
| 2092 | }
|
| 2093 |
|
| 2094 | public const int OptionalBytesFieldNumber = 15;
|
| 2095 | private bool hasOptionalBytes;
|
| 2096 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
|
| 2097 | public bool HasOptionalBytes {
|
| 2098 | get { return hasOptionalBytes; }
|
| 2099 | }
|
| 2100 | public pb::ByteString OptionalBytes {
|
| 2101 | get { return optionalBytes_; }
|
| 2102 | }
|
| 2103 |
|
| 2104 | public const int OptionalGroupFieldNumber = 16;
|
| 2105 | private bool hasOptionalGroup;
|
| 2106 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 2107 | public bool HasOptionalGroup {
|
| 2108 | get { return hasOptionalGroup; }
|
| 2109 | }
|
| 2110 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 2111 | get { return optionalGroup_; }
|
| 2112 | }
|
| 2113 |
|
| 2114 | public const int OptionalNestedMessageFieldNumber = 18;
|
| 2115 | private bool hasOptionalNestedMessage;
|
| 2116 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 2117 | public bool HasOptionalNestedMessage {
|
| 2118 | get { return hasOptionalNestedMessage; }
|
| 2119 | }
|
| 2120 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 2121 | get { return optionalNestedMessage_; }
|
| 2122 | }
|
| 2123 |
|
| 2124 | public const int OptionalForeignMessageFieldNumber = 19;
|
| 2125 | private bool hasOptionalForeignMessage;
|
| 2126 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 2127 | public bool HasOptionalForeignMessage {
|
| 2128 | get { return hasOptionalForeignMessage; }
|
| 2129 | }
|
| 2130 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 2131 | get { return optionalForeignMessage_; }
|
| 2132 | }
|
| 2133 |
|
| 2134 | public const int OptionalImportMessageFieldNumber = 20;
|
| 2135 | private bool hasOptionalImportMessage;
|
| 2136 | private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 2137 | public bool HasOptionalImportMessage {
|
| 2138 | get { return hasOptionalImportMessage; }
|
| 2139 | }
|
| 2140 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 2141 | get { return optionalImportMessage_; }
|
| 2142 | }
|
| 2143 |
|
| 2144 | public const int OptionalNestedEnumFieldNumber = 21;
|
| 2145 | private bool hasOptionalNestedEnum;
|
| 2146 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 2147 | public bool HasOptionalNestedEnum {
|
| 2148 | get { return hasOptionalNestedEnum; }
|
| 2149 | }
|
| 2150 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 2151 | get { return optionalNestedEnum_; }
|
| 2152 | }
|
| 2153 |
|
| 2154 | public const int OptionalForeignEnumFieldNumber = 22;
|
| 2155 | private bool hasOptionalForeignEnum;
|
| 2156 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 2157 | public bool HasOptionalForeignEnum {
|
| 2158 | get { return hasOptionalForeignEnum; }
|
| 2159 | }
|
| 2160 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 2161 | get { return optionalForeignEnum_; }
|
| 2162 | }
|
| 2163 |
|
| 2164 | public const int OptionalImportEnumFieldNumber = 23;
|
| 2165 | private bool hasOptionalImportEnum;
|
| 2166 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 2167 | public bool HasOptionalImportEnum {
|
| 2168 | get { return hasOptionalImportEnum; }
|
| 2169 | }
|
| 2170 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 2171 | get { return optionalImportEnum_; }
|
| 2172 | }
|
| 2173 |
|
| 2174 | public const int OptionalStringPieceFieldNumber = 24;
|
| 2175 | private bool hasOptionalStringPiece;
|
| 2176 | private string optionalStringPiece_ = "";
|
| 2177 | public bool HasOptionalStringPiece {
|
| 2178 | get { return hasOptionalStringPiece; }
|
| 2179 | }
|
| 2180 | public string OptionalStringPiece {
|
| 2181 | get { return optionalStringPiece_; }
|
| 2182 | }
|
| 2183 |
|
| 2184 | public const int OptionalCordFieldNumber = 25;
|
| 2185 | private bool hasOptionalCord;
|
| 2186 | private string optionalCord_ = "";
|
| 2187 | public bool HasOptionalCord {
|
| 2188 | get { return hasOptionalCord; }
|
| 2189 | }
|
| 2190 | public string OptionalCord {
|
| 2191 | get { return optionalCord_; }
|
| 2192 | }
|
| 2193 |
|
| 2194 | public const int RepeatedInt32FieldNumber = 31;
|
| 2195 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
|
| 2196 | public scg::IList<int> RepeatedInt32List {
|
| 2197 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
|
| 2198 | }
|
| 2199 | public int RepeatedInt32Count {
|
| 2200 | get { return repeatedInt32_.Count; }
|
| 2201 | }
|
| 2202 | public int GetRepeatedInt32(int index) {
|
| 2203 | return repeatedInt32_[index];
|
| 2204 | }
|
| 2205 |
|
| 2206 | public const int RepeatedInt64FieldNumber = 32;
|
| 2207 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
|
| 2208 | public scg::IList<long> RepeatedInt64List {
|
| 2209 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
|
| 2210 | }
|
| 2211 | public int RepeatedInt64Count {
|
| 2212 | get { return repeatedInt64_.Count; }
|
| 2213 | }
|
| 2214 | public long GetRepeatedInt64(int index) {
|
| 2215 | return repeatedInt64_[index];
|
| 2216 | }
|
| 2217 |
|
| 2218 | public const int RepeatedUint32FieldNumber = 33;
|
| 2219 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
|
| 2220 | [global::System.CLSCompliant(false)]
|
| 2221 | public scg::IList<uint> RepeatedUint32List {
|
| 2222 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
|
| 2223 | }
|
| 2224 | public int RepeatedUint32Count {
|
| 2225 | get { return repeatedUint32_.Count; }
|
| 2226 | }
|
| 2227 | [global::System.CLSCompliant(false)]
|
| 2228 | public uint GetRepeatedUint32(int index) {
|
| 2229 | return repeatedUint32_[index];
|
| 2230 | }
|
| 2231 |
|
| 2232 | public const int RepeatedUint64FieldNumber = 34;
|
| 2233 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
|
| 2234 | [global::System.CLSCompliant(false)]
|
| 2235 | public scg::IList<ulong> RepeatedUint64List {
|
| 2236 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
|
| 2237 | }
|
| 2238 | public int RepeatedUint64Count {
|
| 2239 | get { return repeatedUint64_.Count; }
|
| 2240 | }
|
| 2241 | [global::System.CLSCompliant(false)]
|
| 2242 | public ulong GetRepeatedUint64(int index) {
|
| 2243 | return repeatedUint64_[index];
|
| 2244 | }
|
| 2245 |
|
| 2246 | public const int RepeatedSint32FieldNumber = 35;
|
| 2247 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
|
| 2248 | public scg::IList<int> RepeatedSint32List {
|
| 2249 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
|
| 2250 | }
|
| 2251 | public int RepeatedSint32Count {
|
| 2252 | get { return repeatedSint32_.Count; }
|
| 2253 | }
|
| 2254 | public int GetRepeatedSint32(int index) {
|
| 2255 | return repeatedSint32_[index];
|
| 2256 | }
|
| 2257 |
|
| 2258 | public const int RepeatedSint64FieldNumber = 36;
|
| 2259 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
|
| 2260 | public scg::IList<long> RepeatedSint64List {
|
| 2261 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
|
| 2262 | }
|
| 2263 | public int RepeatedSint64Count {
|
| 2264 | get { return repeatedSint64_.Count; }
|
| 2265 | }
|
| 2266 | public long GetRepeatedSint64(int index) {
|
| 2267 | return repeatedSint64_[index];
|
| 2268 | }
|
| 2269 |
|
| 2270 | public const int RepeatedFixed32FieldNumber = 37;
|
| 2271 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
|
| 2272 | [global::System.CLSCompliant(false)]
|
| 2273 | public scg::IList<uint> RepeatedFixed32List {
|
| 2274 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
|
| 2275 | }
|
| 2276 | public int RepeatedFixed32Count {
|
| 2277 | get { return repeatedFixed32_.Count; }
|
| 2278 | }
|
| 2279 | [global::System.CLSCompliant(false)]
|
| 2280 | public uint GetRepeatedFixed32(int index) {
|
| 2281 | return repeatedFixed32_[index];
|
| 2282 | }
|
| 2283 |
|
| 2284 | public const int RepeatedFixed64FieldNumber = 38;
|
| 2285 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 2286 | [global::System.CLSCompliant(false)]
|
| 2287 | public scg::IList<ulong> RepeatedFixed64List {
|
| 2288 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
|
| 2289 | }
|
| 2290 | public int RepeatedFixed64Count {
|
| 2291 | get { return repeatedFixed64_.Count; }
|
| 2292 | }
|
| 2293 | [global::System.CLSCompliant(false)]
|
| 2294 | public ulong GetRepeatedFixed64(int index) {
|
| 2295 | return repeatedFixed64_[index];
|
| 2296 | }
|
| 2297 |
|
| 2298 | public const int RepeatedSfixed32FieldNumber = 39;
|
| 2299 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
|
| 2300 | public scg::IList<int> RepeatedSfixed32List {
|
| 2301 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
|
| 2302 | }
|
| 2303 | public int RepeatedSfixed32Count {
|
| 2304 | get { return repeatedSfixed32_.Count; }
|
| 2305 | }
|
| 2306 | public int GetRepeatedSfixed32(int index) {
|
| 2307 | return repeatedSfixed32_[index];
|
| 2308 | }
|
| 2309 |
|
| 2310 | public const int RepeatedSfixed64FieldNumber = 40;
|
| 2311 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
|
| 2312 | public scg::IList<long> RepeatedSfixed64List {
|
| 2313 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
|
| 2314 | }
|
| 2315 | public int RepeatedSfixed64Count {
|
| 2316 | get { return repeatedSfixed64_.Count; }
|
| 2317 | }
|
| 2318 | public long GetRepeatedSfixed64(int index) {
|
| 2319 | return repeatedSfixed64_[index];
|
| 2320 | }
|
| 2321 |
|
| 2322 | public const int RepeatedFloatFieldNumber = 41;
|
| 2323 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
|
| 2324 | public scg::IList<float> RepeatedFloatList {
|
| 2325 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
|
| 2326 | }
|
| 2327 | public int RepeatedFloatCount {
|
| 2328 | get { return repeatedFloat_.Count; }
|
| 2329 | }
|
| 2330 | public float GetRepeatedFloat(int index) {
|
| 2331 | return repeatedFloat_[index];
|
| 2332 | }
|
| 2333 |
|
| 2334 | public const int RepeatedDoubleFieldNumber = 42;
|
| 2335 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
|
| 2336 | public scg::IList<double> RepeatedDoubleList {
|
| 2337 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
|
| 2338 | }
|
| 2339 | public int RepeatedDoubleCount {
|
| 2340 | get { return repeatedDouble_.Count; }
|
| 2341 | }
|
| 2342 | public double GetRepeatedDouble(int index) {
|
| 2343 | return repeatedDouble_[index];
|
| 2344 | }
|
| 2345 |
|
| 2346 | public const int RepeatedBoolFieldNumber = 43;
|
| 2347 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
|
| 2348 | public scg::IList<bool> RepeatedBoolList {
|
| 2349 | get { return pbc::Lists.AsReadOnly(repeatedBool_); }
|
| 2350 | }
|
| 2351 | public int RepeatedBoolCount {
|
| 2352 | get { return repeatedBool_.Count; }
|
| 2353 | }
|
| 2354 | public bool GetRepeatedBool(int index) {
|
| 2355 | return repeatedBool_[index];
|
| 2356 | }
|
| 2357 |
|
| 2358 | public const int RepeatedStringFieldNumber = 44;
|
| 2359 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
|
| 2360 | public scg::IList<string> RepeatedStringList {
|
| 2361 | get { return pbc::Lists.AsReadOnly(repeatedString_); }
|
| 2362 | }
|
| 2363 | public int RepeatedStringCount {
|
| 2364 | get { return repeatedString_.Count; }
|
| 2365 | }
|
| 2366 | public string GetRepeatedString(int index) {
|
| 2367 | return repeatedString_[index];
|
| 2368 | }
|
| 2369 |
|
| 2370 | public const int RepeatedBytesFieldNumber = 45;
|
| 2371 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
|
| 2372 | public scg::IList<pb::ByteString> RepeatedBytesList {
|
| 2373 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
|
| 2374 | }
|
| 2375 | public int RepeatedBytesCount {
|
| 2376 | get { return repeatedBytes_.Count; }
|
| 2377 | }
|
| 2378 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 2379 | return repeatedBytes_[index];
|
| 2380 | }
|
| 2381 |
|
| 2382 | public const int RepeatedGroupFieldNumber = 46;
|
| 2383 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
|
| 2384 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 2385 | get { return repeatedGroup_; }
|
| 2386 | }
|
| 2387 | public int RepeatedGroupCount {
|
| 2388 | get { return repeatedGroup_.Count; }
|
| 2389 | }
|
| 2390 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 2391 | return repeatedGroup_[index];
|
| 2392 | }
|
| 2393 |
|
| 2394 | public const int RepeatedNestedMessageFieldNumber = 48;
|
| 2395 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
|
| 2396 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 2397 | get { return repeatedNestedMessage_; }
|
| 2398 | }
|
| 2399 | public int RepeatedNestedMessageCount {
|
| 2400 | get { return repeatedNestedMessage_.Count; }
|
| 2401 | }
|
| 2402 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 2403 | return repeatedNestedMessage_[index];
|
| 2404 | }
|
| 2405 |
|
| 2406 | public const int RepeatedForeignMessageFieldNumber = 49;
|
| 2407 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
|
| 2408 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 2409 | get { return repeatedForeignMessage_; }
|
| 2410 | }
|
| 2411 | public int RepeatedForeignMessageCount {
|
| 2412 | get { return repeatedForeignMessage_.Count; }
|
| 2413 | }
|
| 2414 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 2415 | return repeatedForeignMessage_[index];
|
| 2416 | }
|
| 2417 |
|
| 2418 | public const int RepeatedImportMessageFieldNumber = 50;
|
| 2419 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
|
| 2420 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 2421 | get { return repeatedImportMessage_; }
|
| 2422 | }
|
| 2423 | public int RepeatedImportMessageCount {
|
| 2424 | get { return repeatedImportMessage_.Count; }
|
| 2425 | }
|
| 2426 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 2427 | return repeatedImportMessage_[index];
|
| 2428 | }
|
| 2429 |
|
| 2430 | public const int RepeatedNestedEnumFieldNumber = 51;
|
| 2431 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
|
| 2432 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 2433 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
|
| 2434 | }
|
| 2435 | public int RepeatedNestedEnumCount {
|
| 2436 | get { return repeatedNestedEnum_.Count; }
|
| 2437 | }
|
| 2438 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 2439 | return repeatedNestedEnum_[index];
|
| 2440 | }
|
| 2441 |
|
| 2442 | public const int RepeatedForeignEnumFieldNumber = 52;
|
| 2443 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 2444 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 2445 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
|
| 2446 | }
|
| 2447 | public int RepeatedForeignEnumCount {
|
| 2448 | get { return repeatedForeignEnum_.Count; }
|
| 2449 | }
|
| 2450 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 2451 | return repeatedForeignEnum_[index];
|
| 2452 | }
|
| 2453 |
|
| 2454 | public const int RepeatedImportEnumFieldNumber = 53;
|
| 2455 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
|
| 2456 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 2457 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
|
| 2458 | }
|
| 2459 | public int RepeatedImportEnumCount {
|
| 2460 | get { return repeatedImportEnum_.Count; }
|
| 2461 | }
|
| 2462 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 2463 | return repeatedImportEnum_[index];
|
| 2464 | }
|
| 2465 |
|
| 2466 | public const int RepeatedStringPieceFieldNumber = 54;
|
| 2467 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
|
| 2468 | public scg::IList<string> RepeatedStringPieceList {
|
| 2469 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
|
| 2470 | }
|
| 2471 | public int RepeatedStringPieceCount {
|
| 2472 | get { return repeatedStringPiece_.Count; }
|
| 2473 | }
|
| 2474 | public string GetRepeatedStringPiece(int index) {
|
| 2475 | return repeatedStringPiece_[index];
|
| 2476 | }
|
| 2477 |
|
| 2478 | public const int RepeatedCordFieldNumber = 55;
|
| 2479 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
|
| 2480 | public scg::IList<string> RepeatedCordList {
|
| 2481 | get { return pbc::Lists.AsReadOnly(repeatedCord_); }
|
| 2482 | }
|
| 2483 | public int RepeatedCordCount {
|
| 2484 | get { return repeatedCord_.Count; }
|
| 2485 | }
|
| 2486 | public string GetRepeatedCord(int index) {
|
| 2487 | return repeatedCord_[index];
|
| 2488 | }
|
| 2489 |
|
| 2490 | public const int DefaultInt32FieldNumber = 61;
|
| 2491 | private bool hasDefaultInt32;
|
| 2492 | private int defaultInt32_ = 41;
|
| 2493 | public bool HasDefaultInt32 {
|
| 2494 | get { return hasDefaultInt32; }
|
| 2495 | }
|
| 2496 | public int DefaultInt32 {
|
| 2497 | get { return defaultInt32_; }
|
| 2498 | }
|
| 2499 |
|
| 2500 | public const int DefaultInt64FieldNumber = 62;
|
| 2501 | private bool hasDefaultInt64;
|
| 2502 | private long defaultInt64_ = 42L;
|
| 2503 | public bool HasDefaultInt64 {
|
| 2504 | get { return hasDefaultInt64; }
|
| 2505 | }
|
| 2506 | public long DefaultInt64 {
|
| 2507 | get { return defaultInt64_; }
|
| 2508 | }
|
| 2509 |
|
| 2510 | public const int DefaultUint32FieldNumber = 63;
|
| 2511 | private bool hasDefaultUint32;
|
| 2512 | private uint defaultUint32_ = 43;
|
| 2513 | public bool HasDefaultUint32 {
|
| 2514 | get { return hasDefaultUint32; }
|
| 2515 | }
|
| 2516 | [global::System.CLSCompliant(false)]
|
| 2517 | public uint DefaultUint32 {
|
| 2518 | get { return defaultUint32_; }
|
| 2519 | }
|
| 2520 |
|
| 2521 | public const int DefaultUint64FieldNumber = 64;
|
| 2522 | private bool hasDefaultUint64;
|
| 2523 | private ulong defaultUint64_ = 44UL;
|
| 2524 | public bool HasDefaultUint64 {
|
| 2525 | get { return hasDefaultUint64; }
|
| 2526 | }
|
| 2527 | [global::System.CLSCompliant(false)]
|
| 2528 | public ulong DefaultUint64 {
|
| 2529 | get { return defaultUint64_; }
|
| 2530 | }
|
| 2531 |
|
| 2532 | public const int DefaultSint32FieldNumber = 65;
|
| 2533 | private bool hasDefaultSint32;
|
| 2534 | private int defaultSint32_ = -45;
|
| 2535 | public bool HasDefaultSint32 {
|
| 2536 | get { return hasDefaultSint32; }
|
| 2537 | }
|
| 2538 | public int DefaultSint32 {
|
| 2539 | get { return defaultSint32_; }
|
| 2540 | }
|
| 2541 |
|
| 2542 | public const int DefaultSint64FieldNumber = 66;
|
| 2543 | private bool hasDefaultSint64;
|
| 2544 | private long defaultSint64_ = 46;
|
| 2545 | public bool HasDefaultSint64 {
|
| 2546 | get { return hasDefaultSint64; }
|
| 2547 | }
|
| 2548 | public long DefaultSint64 {
|
| 2549 | get { return defaultSint64_; }
|
| 2550 | }
|
| 2551 |
|
| 2552 | public const int DefaultFixed32FieldNumber = 67;
|
| 2553 | private bool hasDefaultFixed32;
|
| 2554 | private uint defaultFixed32_ = 47;
|
| 2555 | public bool HasDefaultFixed32 {
|
| 2556 | get { return hasDefaultFixed32; }
|
| 2557 | }
|
| 2558 | [global::System.CLSCompliant(false)]
|
| 2559 | public uint DefaultFixed32 {
|
| 2560 | get { return defaultFixed32_; }
|
| 2561 | }
|
| 2562 |
|
| 2563 | public const int DefaultFixed64FieldNumber = 68;
|
| 2564 | private bool hasDefaultFixed64;
|
| 2565 | private ulong defaultFixed64_ = 48;
|
| 2566 | public bool HasDefaultFixed64 {
|
| 2567 | get { return hasDefaultFixed64; }
|
| 2568 | }
|
| 2569 | [global::System.CLSCompliant(false)]
|
| 2570 | public ulong DefaultFixed64 {
|
| 2571 | get { return defaultFixed64_; }
|
| 2572 | }
|
| 2573 |
|
| 2574 | public const int DefaultSfixed32FieldNumber = 69;
|
| 2575 | private bool hasDefaultSfixed32;
|
| 2576 | private int defaultSfixed32_ = 49;
|
| 2577 | public bool HasDefaultSfixed32 {
|
| 2578 | get { return hasDefaultSfixed32; }
|
| 2579 | }
|
| 2580 | public int DefaultSfixed32 {
|
| 2581 | get { return defaultSfixed32_; }
|
| 2582 | }
|
| 2583 |
|
| 2584 | public const int DefaultSfixed64FieldNumber = 70;
|
| 2585 | private bool hasDefaultSfixed64;
|
| 2586 | private long defaultSfixed64_ = -50;
|
| 2587 | public bool HasDefaultSfixed64 {
|
| 2588 | get { return hasDefaultSfixed64; }
|
| 2589 | }
|
| 2590 | public long DefaultSfixed64 {
|
| 2591 | get { return defaultSfixed64_; }
|
| 2592 | }
|
| 2593 |
|
| 2594 | public const int DefaultFloatFieldNumber = 71;
|
| 2595 | private bool hasDefaultFloat;
|
| 2596 | private float defaultFloat_ = 51.5F;
|
| 2597 | public bool HasDefaultFloat {
|
| 2598 | get { return hasDefaultFloat; }
|
| 2599 | }
|
| 2600 | public float DefaultFloat {
|
| 2601 | get { return defaultFloat_; }
|
| 2602 | }
|
| 2603 |
|
| 2604 | public const int DefaultDoubleFieldNumber = 72;
|
| 2605 | private bool hasDefaultDouble;
|
| 2606 | private double defaultDouble_ = 52000D;
|
| 2607 | public bool HasDefaultDouble {
|
| 2608 | get { return hasDefaultDouble; }
|
| 2609 | }
|
| 2610 | public double DefaultDouble {
|
| 2611 | get { return defaultDouble_; }
|
| 2612 | }
|
| 2613 |
|
| 2614 | public const int DefaultBoolFieldNumber = 73;
|
| 2615 | private bool hasDefaultBool;
|
| 2616 | private bool defaultBool_ = true;
|
| 2617 | public bool HasDefaultBool {
|
| 2618 | get { return hasDefaultBool; }
|
| 2619 | }
|
| 2620 | public bool DefaultBool {
|
| 2621 | get { return defaultBool_; }
|
| 2622 | }
|
| 2623 |
|
| 2624 | public const int DefaultStringFieldNumber = 74;
|
| 2625 | private bool hasDefaultString;
|
| 2626 | private string defaultString_ = "hello";
|
| 2627 | public bool HasDefaultString {
|
| 2628 | get { return hasDefaultString; }
|
| 2629 | }
|
| 2630 | public string DefaultString {
|
| 2631 | get { return defaultString_; }
|
| 2632 | }
|
| 2633 |
|
| 2634 | public const int DefaultBytesFieldNumber = 75;
|
| 2635 | private bool hasDefaultBytes;
|
| 2636 | private pb::ByteString defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 2637 | public bool HasDefaultBytes {
|
| 2638 | get { return hasDefaultBytes; }
|
| 2639 | }
|
| 2640 | public pb::ByteString DefaultBytes {
|
| 2641 | get { return defaultBytes_; }
|
| 2642 | }
|
| 2643 |
|
| 2644 | public const int DefaultNestedEnumFieldNumber = 81;
|
| 2645 | private bool hasDefaultNestedEnum;
|
| 2646 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 2647 | public bool HasDefaultNestedEnum {
|
| 2648 | get { return hasDefaultNestedEnum; }
|
| 2649 | }
|
| 2650 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 2651 | get { return defaultNestedEnum_; }
|
| 2652 | }
|
| 2653 |
|
| 2654 | public const int DefaultForeignEnumFieldNumber = 82;
|
| 2655 | private bool hasDefaultForeignEnum;
|
| 2656 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 2657 | public bool HasDefaultForeignEnum {
|
| 2658 | get { return hasDefaultForeignEnum; }
|
| 2659 | }
|
| 2660 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 2661 | get { return defaultForeignEnum_; }
|
| 2662 | }
|
| 2663 |
|
| 2664 | public const int DefaultImportEnumFieldNumber = 83;
|
| 2665 | private bool hasDefaultImportEnum;
|
| 2666 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 2667 | public bool HasDefaultImportEnum {
|
| 2668 | get { return hasDefaultImportEnum; }
|
| 2669 | }
|
| 2670 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 2671 | get { return defaultImportEnum_; }
|
| 2672 | }
|
| 2673 |
|
| 2674 | public const int DefaultStringPieceFieldNumber = 84;
|
| 2675 | private bool hasDefaultStringPiece;
|
| 2676 | private string defaultStringPiece_ = "abc";
|
| 2677 | public bool HasDefaultStringPiece {
|
| 2678 | get { return hasDefaultStringPiece; }
|
| 2679 | }
|
| 2680 | public string DefaultStringPiece {
|
| 2681 | get { return defaultStringPiece_; }
|
| 2682 | }
|
| 2683 |
|
| 2684 | public const int DefaultCordFieldNumber = 85;
|
| 2685 | private bool hasDefaultCord;
|
| 2686 | private string defaultCord_ = "123";
|
| 2687 | public bool HasDefaultCord {
|
| 2688 | get { return hasDefaultCord; }
|
| 2689 | }
|
| 2690 | public string DefaultCord {
|
| 2691 | get { return defaultCord_; }
|
| 2692 | }
|
| 2693 |
|
| 2694 | public override bool IsInitialized {
|
| 2695 | get {
|
| 2696 | return true;
|
| 2697 | }
|
| 2698 | }
|
| 2699 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2700 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2701 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2702 | string[] field_names = _testAllTypesLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2703 | if (hasOptionalInt32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2704 | output.WriteInt32(1, field_names[31], OptionalInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2705 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2706 | if (hasOptionalInt64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2707 | output.WriteInt64(2, field_names[32], OptionalInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2708 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2709 | if (hasOptionalUint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2710 | output.WriteUInt32(3, field_names[41], OptionalUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2711 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2712 | if (hasOptionalUint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2713 | output.WriteUInt64(4, field_names[42], OptionalUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2714 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2715 | if (hasOptionalSint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2716 | output.WriteSInt32(5, field_names[37], OptionalSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2717 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2718 | if (hasOptionalSint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2719 | output.WriteSInt64(6, field_names[38], OptionalSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2720 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2721 | if (hasOptionalFixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2722 | output.WriteFixed32(7, field_names[24], OptionalFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2723 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2724 | if (hasOptionalFixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2725 | output.WriteFixed64(8, field_names[25], OptionalFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2726 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2727 | if (hasOptionalSfixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2728 | output.WriteSFixed32(9, field_names[35], OptionalSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2729 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2730 | if (hasOptionalSfixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2731 | output.WriteSFixed64(10, field_names[36], OptionalSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2732 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2733 | if (hasOptionalFloat) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2734 | output.WriteFloat(11, field_names[26], OptionalFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2735 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2736 | if (hasOptionalDouble) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2737 | output.WriteDouble(12, field_names[23], OptionalDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2738 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2739 | if (hasOptionalBool) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2740 | output.WriteBool(13, field_names[20], OptionalBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2741 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2742 | if (hasOptionalString) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2743 | output.WriteString(14, field_names[39], OptionalString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2744 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2745 | if (hasOptionalBytes) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2746 | output.WriteBytes(15, field_names[21], OptionalBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2747 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2748 | if (hasOptionalGroup) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2749 | output.WriteGroup(16, field_names[43], OptionalGroup);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2750 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2751 | if (hasOptionalNestedMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2752 | output.WriteMessage(18, field_names[34], OptionalNestedMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2753 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2754 | if (hasOptionalForeignMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2755 | output.WriteMessage(19, field_names[28], OptionalForeignMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2756 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2757 | if (hasOptionalImportMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2758 | output.WriteMessage(20, field_names[30], OptionalImportMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2759 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2760 | if (hasOptionalNestedEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2761 | output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2762 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2763 | if (hasOptionalForeignEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2764 | output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2765 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2766 | if (hasOptionalImportEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2767 | output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2768 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2769 | if (hasOptionalStringPiece) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2770 | output.WriteString(24, field_names[40], OptionalStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2771 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2772 | if (hasOptionalCord) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2773 | output.WriteString(25, field_names[22], OptionalCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2774 | }
|
| 2775 | if (repeatedInt32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2776 | output.WriteArray(pbd::FieldType.Int32, 31, field_names[55], repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2777 | }
|
| 2778 | if (repeatedInt64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2779 | output.WriteArray(pbd::FieldType.Int64, 32, field_names[56], repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2780 | }
|
| 2781 | if (repeatedUint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2782 | output.WriteArray(pbd::FieldType.UInt32, 33, field_names[65], repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2783 | }
|
| 2784 | if (repeatedUint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2785 | output.WriteArray(pbd::FieldType.UInt64, 34, field_names[66], repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2786 | }
|
| 2787 | if (repeatedSint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2788 | output.WriteArray(pbd::FieldType.SInt32, 35, field_names[61], repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2789 | }
|
| 2790 | if (repeatedSint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2791 | output.WriteArray(pbd::FieldType.SInt64, 36, field_names[62], repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2792 | }
|
| 2793 | if (repeatedFixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2794 | output.WriteArray(pbd::FieldType.Fixed32, 37, field_names[48], repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2795 | }
|
| 2796 | if (repeatedFixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2797 | output.WriteArray(pbd::FieldType.Fixed64, 38, field_names[49], repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2798 | }
|
| 2799 | if (repeatedSfixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2800 | output.WriteArray(pbd::FieldType.SFixed32, 39, field_names[59], repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2801 | }
|
| 2802 | if (repeatedSfixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2803 | output.WriteArray(pbd::FieldType.SFixed64, 40, field_names[60], repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2804 | }
|
| 2805 | if (repeatedFloat_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2806 | output.WriteArray(pbd::FieldType.Float, 41, field_names[50], repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2807 | }
|
| 2808 | if (repeatedDouble_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2809 | output.WriteArray(pbd::FieldType.Double, 42, field_names[47], repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2810 | }
|
| 2811 | if (repeatedBool_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2812 | output.WriteArray(pbd::FieldType.Bool, 43, field_names[44], repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2813 | }
|
| 2814 | if (repeatedString_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2815 | output.WriteArray(pbd::FieldType.String, 44, field_names[63], repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2816 | }
|
| 2817 | if (repeatedBytes_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2818 | output.WriteArray(pbd::FieldType.Bytes, 45, field_names[45], repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2819 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2820 | if (repeatedGroup_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2821 | output.WriteArray(pbd::FieldType.Group, 46, field_names[67], repeatedGroup_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2822 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2823 | if (repeatedNestedMessage_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2824 | output.WriteArray(pbd::FieldType.Message, 48, field_names[58], repeatedNestedMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2825 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2826 | if (repeatedForeignMessage_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2827 | output.WriteArray(pbd::FieldType.Message, 49, field_names[52], repeatedForeignMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2828 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2829 | if (repeatedImportMessage_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2830 | output.WriteArray(pbd::FieldType.Message, 50, field_names[54], repeatedImportMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2831 | }
|
| 2832 | if (repeatedNestedEnum_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2833 | output.WriteArray(pbd::FieldType.Enum, 51, field_names[57], repeatedNestedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2834 | }
|
| 2835 | if (repeatedForeignEnum_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2836 | output.WriteArray(pbd::FieldType.Enum, 52, field_names[51], repeatedForeignEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2837 | }
|
| 2838 | if (repeatedImportEnum_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2839 | output.WriteArray(pbd::FieldType.Enum, 53, field_names[53], repeatedImportEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2840 | }
|
| 2841 | if (repeatedStringPiece_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2842 | output.WriteArray(pbd::FieldType.String, 54, field_names[64], repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2843 | }
|
| 2844 | if (repeatedCord_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2845 | output.WriteArray(pbd::FieldType.String, 55, field_names[46], repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2846 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2847 | if (hasDefaultInt32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2848 | output.WriteInt32(61, field_names[9], DefaultInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2849 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2850 | if (hasDefaultInt64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2851 | output.WriteInt64(62, field_names[10], DefaultInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2852 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2853 | if (hasDefaultUint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2854 | output.WriteUInt32(63, field_names[18], DefaultUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2855 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2856 | if (hasDefaultUint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2857 | output.WriteUInt64(64, field_names[19], DefaultUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2858 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2859 | if (hasDefaultSint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2860 | output.WriteSInt32(65, field_names[14], DefaultSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2861 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2862 | if (hasDefaultSint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2863 | output.WriteSInt64(66, field_names[15], DefaultSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2864 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2865 | if (hasDefaultFixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2866 | output.WriteFixed32(67, field_names[4], DefaultFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2867 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2868 | if (hasDefaultFixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2869 | output.WriteFixed64(68, field_names[5], DefaultFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2870 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2871 | if (hasDefaultSfixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2872 | output.WriteSFixed32(69, field_names[12], DefaultSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2873 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2874 | if (hasDefaultSfixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2875 | output.WriteSFixed64(70, field_names[13], DefaultSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2876 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2877 | if (hasDefaultFloat) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2878 | output.WriteFloat(71, field_names[6], DefaultFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2879 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2880 | if (hasDefaultDouble) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2881 | output.WriteDouble(72, field_names[3], DefaultDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2882 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2883 | if (hasDefaultBool) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2884 | output.WriteBool(73, field_names[0], DefaultBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2885 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2886 | if (hasDefaultString) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2887 | output.WriteString(74, field_names[16], DefaultString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2888 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2889 | if (hasDefaultBytes) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2890 | output.WriteBytes(75, field_names[1], DefaultBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2891 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2892 | if (hasDefaultNestedEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2893 | output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2894 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2895 | if (hasDefaultForeignEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2896 | output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2897 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2898 | if (hasDefaultImportEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 2899 | output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2900 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2901 | if (hasDefaultStringPiece) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2902 | output.WriteString(84, field_names[17], DefaultStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2903 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2904 | if (hasDefaultCord) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2905 | output.WriteString(85, field_names[2], DefaultCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2906 | }
|
| 2907 | }
|
| 2908 |
|
| 2909 | private int memoizedSerializedSize = -1;
|
| 2910 | public override int SerializedSize {
|
| 2911 | get {
|
| 2912 | int size = memoizedSerializedSize;
|
| 2913 | if (size != -1) return size;
|
| 2914 |
|
| 2915 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2916 | if (hasOptionalInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2917 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
|
| 2918 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2919 | if (hasOptionalInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2920 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
|
| 2921 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2922 | if (hasOptionalUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2923 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
|
| 2924 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2925 | if (hasOptionalUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2926 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
|
| 2927 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2928 | if (hasOptionalSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2929 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
|
| 2930 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2931 | if (hasOptionalSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2932 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
|
| 2933 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2934 | if (hasOptionalFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2935 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
|
| 2936 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2937 | if (hasOptionalFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2938 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
|
| 2939 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2940 | if (hasOptionalSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2941 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
|
| 2942 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2943 | if (hasOptionalSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2944 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
|
| 2945 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2946 | if (hasOptionalFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2947 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
|
| 2948 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2949 | if (hasOptionalDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2950 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
|
| 2951 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2952 | if (hasOptionalBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2953 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
|
| 2954 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2955 | if (hasOptionalString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2956 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
|
| 2957 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2958 | if (hasOptionalBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2959 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
|
| 2960 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2961 | if (hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2962 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
|
| 2963 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2964 | if (hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2965 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
|
| 2966 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2967 | if (hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2968 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
|
| 2969 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2970 | if (hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2971 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
|
| 2972 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2973 | if (hasOptionalNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2974 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
|
| 2975 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2976 | if (hasOptionalForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2977 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
|
| 2978 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2979 | if (hasOptionalImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2980 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
|
| 2981 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2982 | if (hasOptionalStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2983 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
|
| 2984 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2985 | if (hasOptionalCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2986 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
|
| 2987 | }
|
| 2988 | {
|
| 2989 | int dataSize = 0;
|
| 2990 | foreach (int element in RepeatedInt32List) {
|
| 2991 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 2992 | }
|
| 2993 | size += dataSize;
|
| 2994 | size += 2 * repeatedInt32_.Count;
|
| 2995 | }
|
| 2996 | {
|
| 2997 | int dataSize = 0;
|
| 2998 | foreach (long element in RepeatedInt64List) {
|
| 2999 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 3000 | }
|
| 3001 | size += dataSize;
|
| 3002 | size += 2 * repeatedInt64_.Count;
|
| 3003 | }
|
| 3004 | {
|
| 3005 | int dataSize = 0;
|
| 3006 | foreach (uint element in RepeatedUint32List) {
|
| 3007 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 3008 | }
|
| 3009 | size += dataSize;
|
| 3010 | size += 2 * repeatedUint32_.Count;
|
| 3011 | }
|
| 3012 | {
|
| 3013 | int dataSize = 0;
|
| 3014 | foreach (ulong element in RepeatedUint64List) {
|
| 3015 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 3016 | }
|
| 3017 | size += dataSize;
|
| 3018 | size += 2 * repeatedUint64_.Count;
|
| 3019 | }
|
| 3020 | {
|
| 3021 | int dataSize = 0;
|
| 3022 | foreach (int element in RepeatedSint32List) {
|
| 3023 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 3024 | }
|
| 3025 | size += dataSize;
|
| 3026 | size += 2 * repeatedSint32_.Count;
|
| 3027 | }
|
| 3028 | {
|
| 3029 | int dataSize = 0;
|
| 3030 | foreach (long element in RepeatedSint64List) {
|
| 3031 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 3032 | }
|
| 3033 | size += dataSize;
|
| 3034 | size += 2 * repeatedSint64_.Count;
|
| 3035 | }
|
| 3036 | {
|
| 3037 | int dataSize = 0;
|
| 3038 | dataSize = 4 * repeatedFixed32_.Count;
|
| 3039 | size += dataSize;
|
| 3040 | size += 2 * repeatedFixed32_.Count;
|
| 3041 | }
|
| 3042 | {
|
| 3043 | int dataSize = 0;
|
| 3044 | dataSize = 8 * repeatedFixed64_.Count;
|
| 3045 | size += dataSize;
|
| 3046 | size += 2 * repeatedFixed64_.Count;
|
| 3047 | }
|
| 3048 | {
|
| 3049 | int dataSize = 0;
|
| 3050 | dataSize = 4 * repeatedSfixed32_.Count;
|
| 3051 | size += dataSize;
|
| 3052 | size += 2 * repeatedSfixed32_.Count;
|
| 3053 | }
|
| 3054 | {
|
| 3055 | int dataSize = 0;
|
| 3056 | dataSize = 8 * repeatedSfixed64_.Count;
|
| 3057 | size += dataSize;
|
| 3058 | size += 2 * repeatedSfixed64_.Count;
|
| 3059 | }
|
| 3060 | {
|
| 3061 | int dataSize = 0;
|
| 3062 | dataSize = 4 * repeatedFloat_.Count;
|
| 3063 | size += dataSize;
|
| 3064 | size += 2 * repeatedFloat_.Count;
|
| 3065 | }
|
| 3066 | {
|
| 3067 | int dataSize = 0;
|
| 3068 | dataSize = 8 * repeatedDouble_.Count;
|
| 3069 | size += dataSize;
|
| 3070 | size += 2 * repeatedDouble_.Count;
|
| 3071 | }
|
| 3072 | {
|
| 3073 | int dataSize = 0;
|
| 3074 | dataSize = 1 * repeatedBool_.Count;
|
| 3075 | size += dataSize;
|
| 3076 | size += 2 * repeatedBool_.Count;
|
| 3077 | }
|
| 3078 | {
|
| 3079 | int dataSize = 0;
|
| 3080 | foreach (string element in RepeatedStringList) {
|
| 3081 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3082 | }
|
| 3083 | size += dataSize;
|
| 3084 | size += 2 * repeatedString_.Count;
|
| 3085 | }
|
| 3086 | {
|
| 3087 | int dataSize = 0;
|
| 3088 | foreach (pb::ByteString element in RepeatedBytesList) {
|
| 3089 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
|
| 3090 | }
|
| 3091 | size += dataSize;
|
| 3092 | size += 2 * repeatedBytes_.Count;
|
| 3093 | }
|
| 3094 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
|
| 3095 | size += pb::CodedOutputStream.ComputeGroupSize(46, element);
|
| 3096 | }
|
| 3097 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
|
| 3098 | size += pb::CodedOutputStream.ComputeMessageSize(48, element);
|
| 3099 | }
|
| 3100 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
|
| 3101 | size += pb::CodedOutputStream.ComputeMessageSize(49, element);
|
| 3102 | }
|
| 3103 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
|
| 3104 | size += pb::CodedOutputStream.ComputeMessageSize(50, element);
|
| 3105 | }
|
| 3106 | {
|
| 3107 | int dataSize = 0;
|
| 3108 | if (repeatedNestedEnum_.Count > 0) {
|
| 3109 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) {
|
| 3110 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3111 | }
|
| 3112 | size += dataSize;
|
| 3113 | size += 2 * repeatedNestedEnum_.Count;
|
| 3114 | }
|
| 3115 | }
|
| 3116 | {
|
| 3117 | int dataSize = 0;
|
| 3118 | if (repeatedForeignEnum_.Count > 0) {
|
| 3119 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) {
|
| 3120 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3121 | }
|
| 3122 | size += dataSize;
|
| 3123 | size += 2 * repeatedForeignEnum_.Count;
|
| 3124 | }
|
| 3125 | }
|
| 3126 | {
|
| 3127 | int dataSize = 0;
|
| 3128 | if (repeatedImportEnum_.Count > 0) {
|
| 3129 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) {
|
| 3130 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3131 | }
|
| 3132 | size += dataSize;
|
| 3133 | size += 2 * repeatedImportEnum_.Count;
|
| 3134 | }
|
| 3135 | }
|
| 3136 | {
|
| 3137 | int dataSize = 0;
|
| 3138 | foreach (string element in RepeatedStringPieceList) {
|
| 3139 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3140 | }
|
| 3141 | size += dataSize;
|
| 3142 | size += 2 * repeatedStringPiece_.Count;
|
| 3143 | }
|
| 3144 | {
|
| 3145 | int dataSize = 0;
|
| 3146 | foreach (string element in RepeatedCordList) {
|
| 3147 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3148 | }
|
| 3149 | size += dataSize;
|
| 3150 | size += 2 * repeatedCord_.Count;
|
| 3151 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3152 | if (hasDefaultInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3153 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
|
| 3154 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3155 | if (hasDefaultInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3156 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
|
| 3157 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3158 | if (hasDefaultUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3159 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
|
| 3160 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3161 | if (hasDefaultUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3162 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
|
| 3163 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3164 | if (hasDefaultSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3165 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
|
| 3166 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3167 | if (hasDefaultSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3168 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
|
| 3169 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3170 | if (hasDefaultFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3171 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
|
| 3172 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3173 | if (hasDefaultFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3174 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
|
| 3175 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3176 | if (hasDefaultSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3177 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
|
| 3178 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3179 | if (hasDefaultSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3180 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
|
| 3181 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3182 | if (hasDefaultFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3183 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
|
| 3184 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3185 | if (hasDefaultDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3186 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
|
| 3187 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3188 | if (hasDefaultBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3189 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
|
| 3190 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3191 | if (hasDefaultString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3192 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
|
| 3193 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3194 | if (hasDefaultBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3195 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
|
| 3196 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3197 | if (hasDefaultNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3198 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
|
| 3199 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3200 | if (hasDefaultForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3201 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
|
| 3202 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3203 | if (hasDefaultImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3204 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
|
| 3205 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3206 | if (hasDefaultStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3207 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
|
| 3208 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3209 | if (hasDefaultCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3210 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
|
| 3211 | }
|
| 3212 | memoizedSerializedSize = size;
|
| 3213 | return size;
|
| 3214 | }
|
| 3215 | }
|
| 3216 |
|
| 3217 | #region Lite runtime methods
|
| 3218 | public override int GetHashCode() {
|
| 3219 | int hash = GetType().GetHashCode();
|
| 3220 | if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
|
| 3221 | if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
|
| 3222 | if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
|
| 3223 | if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
|
| 3224 | if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
|
| 3225 | if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
|
| 3226 | if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
|
| 3227 | if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
|
| 3228 | if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
|
| 3229 | if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
|
| 3230 | if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
|
| 3231 | if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
|
| 3232 | if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
|
| 3233 | if (hasOptionalString) hash ^= optionalString_.GetHashCode();
|
| 3234 | if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
|
| 3235 | if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
|
| 3236 | if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
|
| 3237 | if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
|
| 3238 | if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
|
| 3239 | if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
|
| 3240 | if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
|
| 3241 | if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
|
| 3242 | if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
|
| 3243 | if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
|
| 3244 | foreach(int i in repeatedInt32_)
|
| 3245 | hash ^= i.GetHashCode();
|
| 3246 | foreach(long i in repeatedInt64_)
|
| 3247 | hash ^= i.GetHashCode();
|
| 3248 | foreach(uint i in repeatedUint32_)
|
| 3249 | hash ^= i.GetHashCode();
|
| 3250 | foreach(ulong i in repeatedUint64_)
|
| 3251 | hash ^= i.GetHashCode();
|
| 3252 | foreach(int i in repeatedSint32_)
|
| 3253 | hash ^= i.GetHashCode();
|
| 3254 | foreach(long i in repeatedSint64_)
|
| 3255 | hash ^= i.GetHashCode();
|
| 3256 | foreach(uint i in repeatedFixed32_)
|
| 3257 | hash ^= i.GetHashCode();
|
| 3258 | foreach(ulong i in repeatedFixed64_)
|
| 3259 | hash ^= i.GetHashCode();
|
| 3260 | foreach(int i in repeatedSfixed32_)
|
| 3261 | hash ^= i.GetHashCode();
|
| 3262 | foreach(long i in repeatedSfixed64_)
|
| 3263 | hash ^= i.GetHashCode();
|
| 3264 | foreach(float i in repeatedFloat_)
|
| 3265 | hash ^= i.GetHashCode();
|
| 3266 | foreach(double i in repeatedDouble_)
|
| 3267 | hash ^= i.GetHashCode();
|
| 3268 | foreach(bool i in repeatedBool_)
|
| 3269 | hash ^= i.GetHashCode();
|
| 3270 | foreach(string i in repeatedString_)
|
| 3271 | hash ^= i.GetHashCode();
|
| 3272 | foreach(pb::ByteString i in repeatedBytes_)
|
| 3273 | hash ^= i.GetHashCode();
|
| 3274 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
|
| 3275 | hash ^= i.GetHashCode();
|
| 3276 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
|
| 3277 | hash ^= i.GetHashCode();
|
| 3278 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
|
| 3279 | hash ^= i.GetHashCode();
|
| 3280 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
|
| 3281 | hash ^= i.GetHashCode();
|
| 3282 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
|
| 3283 | hash ^= i.GetHashCode();
|
| 3284 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
|
| 3285 | hash ^= i.GetHashCode();
|
| 3286 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
|
| 3287 | hash ^= i.GetHashCode();
|
| 3288 | foreach(string i in repeatedStringPiece_)
|
| 3289 | hash ^= i.GetHashCode();
|
| 3290 | foreach(string i in repeatedCord_)
|
| 3291 | hash ^= i.GetHashCode();
|
| 3292 | if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
|
| 3293 | if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
|
| 3294 | if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
|
| 3295 | if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
|
| 3296 | if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
|
| 3297 | if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
|
| 3298 | if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
|
| 3299 | if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
|
| 3300 | if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
|
| 3301 | if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
|
| 3302 | if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
|
| 3303 | if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
|
| 3304 | if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
|
| 3305 | if (hasDefaultString) hash ^= defaultString_.GetHashCode();
|
| 3306 | if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
|
| 3307 | if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
|
| 3308 | if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
|
| 3309 | if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
|
| 3310 | if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
|
| 3311 | if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
|
| 3312 | return hash;
|
| 3313 | }
|
| 3314 |
|
| 3315 | public override bool Equals(object obj) {
|
| 3316 | TestAllTypesLite other = obj as TestAllTypesLite;
|
| 3317 | if (other == null) return false;
|
| 3318 | if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
|
| 3319 | if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
|
| 3320 | if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
|
| 3321 | if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
|
| 3322 | if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
|
| 3323 | if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
|
| 3324 | if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
|
| 3325 | if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
|
| 3326 | if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
|
| 3327 | if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
|
| 3328 | if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
|
| 3329 | if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
|
| 3330 | if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
|
| 3331 | if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
|
| 3332 | if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
|
| 3333 | if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
|
| 3334 | if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
|
| 3335 | if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
|
| 3336 | if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
|
| 3337 | if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
|
| 3338 | if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
|
| 3339 | if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
|
| 3340 | if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
|
| 3341 | if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
|
| 3342 | if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
|
| 3343 | for(int ix=0; ix < repeatedInt32_.Count; ix++)
|
| 3344 | if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
|
| 3345 | if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
|
| 3346 | for(int ix=0; ix < repeatedInt64_.Count; ix++)
|
| 3347 | if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
|
| 3348 | if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
|
| 3349 | for(int ix=0; ix < repeatedUint32_.Count; ix++)
|
| 3350 | if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
|
| 3351 | if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
|
| 3352 | for(int ix=0; ix < repeatedUint64_.Count; ix++)
|
| 3353 | if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
|
| 3354 | if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
|
| 3355 | for(int ix=0; ix < repeatedSint32_.Count; ix++)
|
| 3356 | if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
|
| 3357 | if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
|
| 3358 | for(int ix=0; ix < repeatedSint64_.Count; ix++)
|
| 3359 | if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
|
| 3360 | if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
|
| 3361 | for(int ix=0; ix < repeatedFixed32_.Count; ix++)
|
| 3362 | if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
|
| 3363 | if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
|
| 3364 | for(int ix=0; ix < repeatedFixed64_.Count; ix++)
|
| 3365 | if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
|
| 3366 | if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
|
| 3367 | for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
|
| 3368 | if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
|
| 3369 | if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
|
| 3370 | for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
|
| 3371 | if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
|
| 3372 | if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
|
| 3373 | for(int ix=0; ix < repeatedFloat_.Count; ix++)
|
| 3374 | if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
|
| 3375 | if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
|
| 3376 | for(int ix=0; ix < repeatedDouble_.Count; ix++)
|
| 3377 | if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
|
| 3378 | if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
|
| 3379 | for(int ix=0; ix < repeatedBool_.Count; ix++)
|
| 3380 | if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
|
| 3381 | if(repeatedString_.Count != other.repeatedString_.Count) return false;
|
| 3382 | for(int ix=0; ix < repeatedString_.Count; ix++)
|
| 3383 | if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
|
| 3384 | if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
|
| 3385 | for(int ix=0; ix < repeatedBytes_.Count; ix++)
|
| 3386 | if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
|
| 3387 | if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
|
| 3388 | for(int ix=0; ix < repeatedGroup_.Count; ix++)
|
| 3389 | if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
|
| 3390 | if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
|
| 3391 | for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
|
| 3392 | if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
|
| 3393 | if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
|
| 3394 | for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
|
| 3395 | if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
|
| 3396 | if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
|
| 3397 | for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
|
| 3398 | if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
|
| 3399 | if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
|
| 3400 | for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
|
| 3401 | if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
|
| 3402 | if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
|
| 3403 | for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
|
| 3404 | if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
|
| 3405 | if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
|
| 3406 | for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
|
| 3407 | if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
|
| 3408 | if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
|
| 3409 | for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
|
| 3410 | if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
|
| 3411 | if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
|
| 3412 | for(int ix=0; ix < repeatedCord_.Count; ix++)
|
| 3413 | if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
|
| 3414 | if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
|
| 3415 | if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
|
| 3416 | if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
|
| 3417 | if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
|
| 3418 | if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
|
| 3419 | if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
|
| 3420 | if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
|
| 3421 | if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
|
| 3422 | if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
|
| 3423 | if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
|
| 3424 | if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
|
| 3425 | if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
|
| 3426 | if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
|
| 3427 | if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
|
| 3428 | if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
|
| 3429 | if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
|
| 3430 | if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
|
| 3431 | if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
|
| 3432 | if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
|
| 3433 | if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
|
| 3434 | return true;
|
| 3435 | }
|
| 3436 |
|
| 3437 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 3438 | PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
|
| 3439 | PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
|
| 3440 | PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
|
| 3441 | PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
|
| 3442 | PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
|
| 3443 | PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
|
| 3444 | PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
|
| 3445 | PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
|
| 3446 | PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
|
| 3447 | PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
|
| 3448 | PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
|
| 3449 | PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
|
| 3450 | PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
|
| 3451 | PrintField("optional_string", hasOptionalString, optionalString_, writer);
|
| 3452 | PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
|
| 3453 | PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
|
| 3454 | PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
|
| 3455 | PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
|
| 3456 | PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
|
| 3457 | PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
|
| 3458 | PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
|
| 3459 | PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
|
| 3460 | PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
|
| 3461 | PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
|
| 3462 | PrintField("repeated_int32", repeatedInt32_, writer);
|
| 3463 | PrintField("repeated_int64", repeatedInt64_, writer);
|
| 3464 | PrintField("repeated_uint32", repeatedUint32_, writer);
|
| 3465 | PrintField("repeated_uint64", repeatedUint64_, writer);
|
| 3466 | PrintField("repeated_sint32", repeatedSint32_, writer);
|
| 3467 | PrintField("repeated_sint64", repeatedSint64_, writer);
|
| 3468 | PrintField("repeated_fixed32", repeatedFixed32_, writer);
|
| 3469 | PrintField("repeated_fixed64", repeatedFixed64_, writer);
|
| 3470 | PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
|
| 3471 | PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
|
| 3472 | PrintField("repeated_float", repeatedFloat_, writer);
|
| 3473 | PrintField("repeated_double", repeatedDouble_, writer);
|
| 3474 | PrintField("repeated_bool", repeatedBool_, writer);
|
| 3475 | PrintField("repeated_string", repeatedString_, writer);
|
| 3476 | PrintField("repeated_bytes", repeatedBytes_, writer);
|
| 3477 | PrintField("RepeatedGroup", repeatedGroup_, writer);
|
| 3478 | PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
|
| 3479 | PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
|
| 3480 | PrintField("repeated_import_message", repeatedImportMessage_, writer);
|
| 3481 | PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
|
| 3482 | PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
|
| 3483 | PrintField("repeated_import_enum", repeatedImportEnum_, writer);
|
| 3484 | PrintField("repeated_string_piece", repeatedStringPiece_, writer);
|
| 3485 | PrintField("repeated_cord", repeatedCord_, writer);
|
| 3486 | PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
|
| 3487 | PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
|
| 3488 | PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
|
| 3489 | PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
|
| 3490 | PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
|
| 3491 | PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
|
| 3492 | PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
|
| 3493 | PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
|
| 3494 | PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
|
| 3495 | PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
|
| 3496 | PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
|
| 3497 | PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
|
| 3498 | PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
|
| 3499 | PrintField("default_string", hasDefaultString, defaultString_, writer);
|
| 3500 | PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
|
| 3501 | PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
|
| 3502 | PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
|
| 3503 | PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
|
| 3504 | PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
|
| 3505 | PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
|
| 3506 | }
|
| 3507 | #endregion
|
| 3508 |
|
| 3509 | public static TestAllTypesLite ParseFrom(pb::ByteString data) {
|
| 3510 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3511 | }
|
| 3512 | public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 3513 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3514 | }
|
| 3515 | public static TestAllTypesLite ParseFrom(byte[] data) {
|
| 3516 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3517 | }
|
| 3518 | public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 3519 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3520 | }
|
| 3521 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 3522 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3523 | }
|
| 3524 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3525 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3526 | }
|
| 3527 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 3528 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 3529 | }
|
| 3530 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3531 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 3532 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3533 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3534 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3535 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3536 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3537 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3538 | }
|
| 3539 | public static Builder CreateBuilder() { return new Builder(); }
|
| 3540 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 3541 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 3542 | public static Builder CreateBuilder(TestAllTypesLite prototype) {
|
| 3543 | return (Builder) new Builder().MergeFrom(prototype);
|
| 3544 | }
|
| 3545 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 3546 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 3547 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 3548 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3549 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
|
| 3550 | protected override Builder ThisBuilder {
|
| 3551 | get { return this; }
|
| 3552 | }
|
| 3553 | public Builder() {}
|
| 3554 |
|
| 3555 | TestAllTypesLite result = new TestAllTypesLite();
|
| 3556 |
|
| 3557 | protected override TestAllTypesLite MessageBeingBuilt {
|
| 3558 | get { return result; }
|
| 3559 | }
|
| 3560 |
|
| 3561 | public override Builder Clear() {
|
| 3562 | result = new TestAllTypesLite();
|
| 3563 | return this;
|
| 3564 | }
|
| 3565 |
|
| 3566 | public override Builder Clone() {
|
| 3567 | return new Builder().MergeFrom(result);
|
| 3568 | }
|
| 3569 |
|
| 3570 | public override TestAllTypesLite DefaultInstanceForType {
|
| 3571 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
|
| 3572 | }
|
| 3573 |
|
| 3574 | public override TestAllTypesLite BuildPartial() {
|
| 3575 | if (result == null) {
|
| 3576 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 3577 | }
|
| 3578 | result.repeatedInt32_.MakeReadOnly();
|
| 3579 | result.repeatedInt64_.MakeReadOnly();
|
| 3580 | result.repeatedUint32_.MakeReadOnly();
|
| 3581 | result.repeatedUint64_.MakeReadOnly();
|
| 3582 | result.repeatedSint32_.MakeReadOnly();
|
| 3583 | result.repeatedSint64_.MakeReadOnly();
|
| 3584 | result.repeatedFixed32_.MakeReadOnly();
|
| 3585 | result.repeatedFixed64_.MakeReadOnly();
|
| 3586 | result.repeatedSfixed32_.MakeReadOnly();
|
| 3587 | result.repeatedSfixed64_.MakeReadOnly();
|
| 3588 | result.repeatedFloat_.MakeReadOnly();
|
| 3589 | result.repeatedDouble_.MakeReadOnly();
|
| 3590 | result.repeatedBool_.MakeReadOnly();
|
| 3591 | result.repeatedString_.MakeReadOnly();
|
| 3592 | result.repeatedBytes_.MakeReadOnly();
|
| 3593 | result.repeatedGroup_.MakeReadOnly();
|
| 3594 | result.repeatedNestedMessage_.MakeReadOnly();
|
| 3595 | result.repeatedForeignMessage_.MakeReadOnly();
|
| 3596 | result.repeatedImportMessage_.MakeReadOnly();
|
| 3597 | result.repeatedNestedEnum_.MakeReadOnly();
|
| 3598 | result.repeatedForeignEnum_.MakeReadOnly();
|
| 3599 | result.repeatedImportEnum_.MakeReadOnly();
|
| 3600 | result.repeatedStringPiece_.MakeReadOnly();
|
| 3601 | result.repeatedCord_.MakeReadOnly();
|
| 3602 | TestAllTypesLite returnMe = result;
|
| 3603 | result = null;
|
| 3604 | return returnMe;
|
| 3605 | }
|
| 3606 |
|
| 3607 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 3608 | if (other is TestAllTypesLite) {
|
| 3609 | return MergeFrom((TestAllTypesLite) other);
|
| 3610 | } else {
|
| 3611 | base.MergeFrom(other);
|
| 3612 | return this;
|
| 3613 | }
|
| 3614 | }
|
| 3615 |
|
| 3616 | public override Builder MergeFrom(TestAllTypesLite other) {
|
| 3617 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this;
|
| 3618 | if (other.HasOptionalInt32) {
|
| 3619 | OptionalInt32 = other.OptionalInt32;
|
| 3620 | }
|
| 3621 | if (other.HasOptionalInt64) {
|
| 3622 | OptionalInt64 = other.OptionalInt64;
|
| 3623 | }
|
| 3624 | if (other.HasOptionalUint32) {
|
| 3625 | OptionalUint32 = other.OptionalUint32;
|
| 3626 | }
|
| 3627 | if (other.HasOptionalUint64) {
|
| 3628 | OptionalUint64 = other.OptionalUint64;
|
| 3629 | }
|
| 3630 | if (other.HasOptionalSint32) {
|
| 3631 | OptionalSint32 = other.OptionalSint32;
|
| 3632 | }
|
| 3633 | if (other.HasOptionalSint64) {
|
| 3634 | OptionalSint64 = other.OptionalSint64;
|
| 3635 | }
|
| 3636 | if (other.HasOptionalFixed32) {
|
| 3637 | OptionalFixed32 = other.OptionalFixed32;
|
| 3638 | }
|
| 3639 | if (other.HasOptionalFixed64) {
|
| 3640 | OptionalFixed64 = other.OptionalFixed64;
|
| 3641 | }
|
| 3642 | if (other.HasOptionalSfixed32) {
|
| 3643 | OptionalSfixed32 = other.OptionalSfixed32;
|
| 3644 | }
|
| 3645 | if (other.HasOptionalSfixed64) {
|
| 3646 | OptionalSfixed64 = other.OptionalSfixed64;
|
| 3647 | }
|
| 3648 | if (other.HasOptionalFloat) {
|
| 3649 | OptionalFloat = other.OptionalFloat;
|
| 3650 | }
|
| 3651 | if (other.HasOptionalDouble) {
|
| 3652 | OptionalDouble = other.OptionalDouble;
|
| 3653 | }
|
| 3654 | if (other.HasOptionalBool) {
|
| 3655 | OptionalBool = other.OptionalBool;
|
| 3656 | }
|
| 3657 | if (other.HasOptionalString) {
|
| 3658 | OptionalString = other.OptionalString;
|
| 3659 | }
|
| 3660 | if (other.HasOptionalBytes) {
|
| 3661 | OptionalBytes = other.OptionalBytes;
|
| 3662 | }
|
| 3663 | if (other.HasOptionalGroup) {
|
| 3664 | MergeOptionalGroup(other.OptionalGroup);
|
| 3665 | }
|
| 3666 | if (other.HasOptionalNestedMessage) {
|
| 3667 | MergeOptionalNestedMessage(other.OptionalNestedMessage);
|
| 3668 | }
|
| 3669 | if (other.HasOptionalForeignMessage) {
|
| 3670 | MergeOptionalForeignMessage(other.OptionalForeignMessage);
|
| 3671 | }
|
| 3672 | if (other.HasOptionalImportMessage) {
|
| 3673 | MergeOptionalImportMessage(other.OptionalImportMessage);
|
| 3674 | }
|
| 3675 | if (other.HasOptionalNestedEnum) {
|
| 3676 | OptionalNestedEnum = other.OptionalNestedEnum;
|
| 3677 | }
|
| 3678 | if (other.HasOptionalForeignEnum) {
|
| 3679 | OptionalForeignEnum = other.OptionalForeignEnum;
|
| 3680 | }
|
| 3681 | if (other.HasOptionalImportEnum) {
|
| 3682 | OptionalImportEnum = other.OptionalImportEnum;
|
| 3683 | }
|
| 3684 | if (other.HasOptionalStringPiece) {
|
| 3685 | OptionalStringPiece = other.OptionalStringPiece;
|
| 3686 | }
|
| 3687 | if (other.HasOptionalCord) {
|
| 3688 | OptionalCord = other.OptionalCord;
|
| 3689 | }
|
| 3690 | if (other.repeatedInt32_.Count != 0) {
|
| 3691 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
|
| 3692 | }
|
| 3693 | if (other.repeatedInt64_.Count != 0) {
|
| 3694 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
|
| 3695 | }
|
| 3696 | if (other.repeatedUint32_.Count != 0) {
|
| 3697 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
|
| 3698 | }
|
| 3699 | if (other.repeatedUint64_.Count != 0) {
|
| 3700 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
|
| 3701 | }
|
| 3702 | if (other.repeatedSint32_.Count != 0) {
|
| 3703 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
|
| 3704 | }
|
| 3705 | if (other.repeatedSint64_.Count != 0) {
|
| 3706 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
|
| 3707 | }
|
| 3708 | if (other.repeatedFixed32_.Count != 0) {
|
| 3709 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
|
| 3710 | }
|
| 3711 | if (other.repeatedFixed64_.Count != 0) {
|
| 3712 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
|
| 3713 | }
|
| 3714 | if (other.repeatedSfixed32_.Count != 0) {
|
| 3715 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
|
| 3716 | }
|
| 3717 | if (other.repeatedSfixed64_.Count != 0) {
|
| 3718 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
|
| 3719 | }
|
| 3720 | if (other.repeatedFloat_.Count != 0) {
|
| 3721 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
|
| 3722 | }
|
| 3723 | if (other.repeatedDouble_.Count != 0) {
|
| 3724 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
|
| 3725 | }
|
| 3726 | if (other.repeatedBool_.Count != 0) {
|
| 3727 | base.AddRange(other.repeatedBool_, result.repeatedBool_);
|
| 3728 | }
|
| 3729 | if (other.repeatedString_.Count != 0) {
|
| 3730 | base.AddRange(other.repeatedString_, result.repeatedString_);
|
| 3731 | }
|
| 3732 | if (other.repeatedBytes_.Count != 0) {
|
| 3733 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
|
| 3734 | }
|
| 3735 | if (other.repeatedGroup_.Count != 0) {
|
| 3736 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
|
| 3737 | }
|
| 3738 | if (other.repeatedNestedMessage_.Count != 0) {
|
| 3739 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
|
| 3740 | }
|
| 3741 | if (other.repeatedForeignMessage_.Count != 0) {
|
| 3742 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
|
| 3743 | }
|
| 3744 | if (other.repeatedImportMessage_.Count != 0) {
|
| 3745 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
|
| 3746 | }
|
| 3747 | if (other.repeatedNestedEnum_.Count != 0) {
|
| 3748 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
|
| 3749 | }
|
| 3750 | if (other.repeatedForeignEnum_.Count != 0) {
|
| 3751 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
|
| 3752 | }
|
| 3753 | if (other.repeatedImportEnum_.Count != 0) {
|
| 3754 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
|
| 3755 | }
|
| 3756 | if (other.repeatedStringPiece_.Count != 0) {
|
| 3757 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
|
| 3758 | }
|
| 3759 | if (other.repeatedCord_.Count != 0) {
|
| 3760 | base.AddRange(other.repeatedCord_, result.repeatedCord_);
|
| 3761 | }
|
| 3762 | if (other.HasDefaultInt32) {
|
| 3763 | DefaultInt32 = other.DefaultInt32;
|
| 3764 | }
|
| 3765 | if (other.HasDefaultInt64) {
|
| 3766 | DefaultInt64 = other.DefaultInt64;
|
| 3767 | }
|
| 3768 | if (other.HasDefaultUint32) {
|
| 3769 | DefaultUint32 = other.DefaultUint32;
|
| 3770 | }
|
| 3771 | if (other.HasDefaultUint64) {
|
| 3772 | DefaultUint64 = other.DefaultUint64;
|
| 3773 | }
|
| 3774 | if (other.HasDefaultSint32) {
|
| 3775 | DefaultSint32 = other.DefaultSint32;
|
| 3776 | }
|
| 3777 | if (other.HasDefaultSint64) {
|
| 3778 | DefaultSint64 = other.DefaultSint64;
|
| 3779 | }
|
| 3780 | if (other.HasDefaultFixed32) {
|
| 3781 | DefaultFixed32 = other.DefaultFixed32;
|
| 3782 | }
|
| 3783 | if (other.HasDefaultFixed64) {
|
| 3784 | DefaultFixed64 = other.DefaultFixed64;
|
| 3785 | }
|
| 3786 | if (other.HasDefaultSfixed32) {
|
| 3787 | DefaultSfixed32 = other.DefaultSfixed32;
|
| 3788 | }
|
| 3789 | if (other.HasDefaultSfixed64) {
|
| 3790 | DefaultSfixed64 = other.DefaultSfixed64;
|
| 3791 | }
|
| 3792 | if (other.HasDefaultFloat) {
|
| 3793 | DefaultFloat = other.DefaultFloat;
|
| 3794 | }
|
| 3795 | if (other.HasDefaultDouble) {
|
| 3796 | DefaultDouble = other.DefaultDouble;
|
| 3797 | }
|
| 3798 | if (other.HasDefaultBool) {
|
| 3799 | DefaultBool = other.DefaultBool;
|
| 3800 | }
|
| 3801 | if (other.HasDefaultString) {
|
| 3802 | DefaultString = other.DefaultString;
|
| 3803 | }
|
| 3804 | if (other.HasDefaultBytes) {
|
| 3805 | DefaultBytes = other.DefaultBytes;
|
| 3806 | }
|
| 3807 | if (other.HasDefaultNestedEnum) {
|
| 3808 | DefaultNestedEnum = other.DefaultNestedEnum;
|
| 3809 | }
|
| 3810 | if (other.HasDefaultForeignEnum) {
|
| 3811 | DefaultForeignEnum = other.DefaultForeignEnum;
|
| 3812 | }
|
| 3813 | if (other.HasDefaultImportEnum) {
|
| 3814 | DefaultImportEnum = other.DefaultImportEnum;
|
| 3815 | }
|
| 3816 | if (other.HasDefaultStringPiece) {
|
| 3817 | DefaultStringPiece = other.DefaultStringPiece;
|
| 3818 | }
|
| 3819 | if (other.HasDefaultCord) {
|
| 3820 | DefaultCord = other.DefaultCord;
|
| 3821 | }
|
| 3822 | return this;
|
| 3823 | }
|
| 3824 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3825 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3826 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 3827 | }
|
| 3828 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3829 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 3830 | uint tag;
|
| 3831 | string field_name;
|
| 3832 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3833 | if(tag == 0 && field_name != null) {
|
| 3834 | int field_ordinal = global::System.Array.BinarySearch(_testAllTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 3835 | if(field_ordinal >= 0)
|
| 3836 | tag = _testAllTypesLiteFieldTags[field_ordinal];
|
| 3837 | else {
|
| 3838 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 3839 | continue;
|
| 3840 | }
|
| 3841 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3842 | switch (tag) {
|
| 3843 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 3844 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3845 | }
|
| 3846 | default: {
|
| 3847 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 3848 | return this;
|
| 3849 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3850 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3851 | break;
|
| 3852 | }
|
| 3853 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3854 | result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3855 | break;
|
| 3856 | }
|
| 3857 | case 16: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3858 | result.hasOptionalInt64 = input.ReadInt64(ref result.optionalInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3859 | break;
|
| 3860 | }
|
| 3861 | case 24: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3862 | result.hasOptionalUint32 = input.ReadUInt32(ref result.optionalUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3863 | break;
|
| 3864 | }
|
| 3865 | case 32: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3866 | result.hasOptionalUint64 = input.ReadUInt64(ref result.optionalUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3867 | break;
|
| 3868 | }
|
| 3869 | case 40: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3870 | result.hasOptionalSint32 = input.ReadSInt32(ref result.optionalSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3871 | break;
|
| 3872 | }
|
| 3873 | case 48: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3874 | result.hasOptionalSint64 = input.ReadSInt64(ref result.optionalSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3875 | break;
|
| 3876 | }
|
| 3877 | case 61: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3878 | result.hasOptionalFixed32 = input.ReadFixed32(ref result.optionalFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3879 | break;
|
| 3880 | }
|
| 3881 | case 65: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3882 | result.hasOptionalFixed64 = input.ReadFixed64(ref result.optionalFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3883 | break;
|
| 3884 | }
|
| 3885 | case 77: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3886 | result.hasOptionalSfixed32 = input.ReadSFixed32(ref result.optionalSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3887 | break;
|
| 3888 | }
|
| 3889 | case 81: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3890 | result.hasOptionalSfixed64 = input.ReadSFixed64(ref result.optionalSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3891 | break;
|
| 3892 | }
|
| 3893 | case 93: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3894 | result.hasOptionalFloat = input.ReadFloat(ref result.optionalFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3895 | break;
|
| 3896 | }
|
| 3897 | case 97: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3898 | result.hasOptionalDouble = input.ReadDouble(ref result.optionalDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3899 | break;
|
| 3900 | }
|
| 3901 | case 104: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3902 | result.hasOptionalBool = input.ReadBool(ref result.optionalBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3903 | break;
|
| 3904 | }
|
| 3905 | case 114: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3906 | result.hasOptionalString = input.ReadString(ref result.optionalString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3907 | break;
|
| 3908 | }
|
| 3909 | case 122: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3910 | result.hasOptionalBytes = input.ReadBytes(ref result.optionalBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3911 | break;
|
| 3912 | }
|
| 3913 | case 131: {
|
| 3914 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3915 | if (result.hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3916 | subBuilder.MergeFrom(OptionalGroup);
|
| 3917 | }
|
| 3918 | input.ReadGroup(16, subBuilder, extensionRegistry);
|
| 3919 | OptionalGroup = subBuilder.BuildPartial();
|
| 3920 | break;
|
| 3921 | }
|
| 3922 | case 146: {
|
| 3923 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3924 | if (result.hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3925 | subBuilder.MergeFrom(OptionalNestedMessage);
|
| 3926 | }
|
| 3927 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3928 | OptionalNestedMessage = subBuilder.BuildPartial();
|
| 3929 | break;
|
| 3930 | }
|
| 3931 | case 154: {
|
| 3932 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3933 | if (result.hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3934 | subBuilder.MergeFrom(OptionalForeignMessage);
|
| 3935 | }
|
| 3936 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3937 | OptionalForeignMessage = subBuilder.BuildPartial();
|
| 3938 | break;
|
| 3939 | }
|
| 3940 | case 162: {
|
| 3941 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3942 | if (result.hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3943 | subBuilder.MergeFrom(OptionalImportMessage);
|
| 3944 | }
|
| 3945 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3946 | OptionalImportMessage = subBuilder.BuildPartial();
|
| 3947 | break;
|
| 3948 | }
|
| 3949 | case 168: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3950 | object unknown;
|
| 3951 | if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
|
| 3952 | result.hasOptionalNestedEnum = true;
|
| 3953 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3954 | }
|
| 3955 | break;
|
| 3956 | }
|
| 3957 | case 176: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3958 | object unknown;
|
| 3959 | if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
|
| 3960 | result.hasOptionalForeignEnum = true;
|
| 3961 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3962 | }
|
| 3963 | break;
|
| 3964 | }
|
| 3965 | case 184: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3966 | object unknown;
|
| 3967 | if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
|
| 3968 | result.hasOptionalImportEnum = true;
|
| 3969 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3970 | }
|
| 3971 | break;
|
| 3972 | }
|
| 3973 | case 194: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3974 | result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3975 | break;
|
| 3976 | }
|
| 3977 | case 202: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3978 | result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3979 | break;
|
| 3980 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3981 | case 250:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3982 | case 248: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3983 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3984 | break;
|
| 3985 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3986 | case 258:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3987 | case 256: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3988 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3989 | break;
|
| 3990 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3991 | case 266:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3992 | case 264: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3993 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3994 | break;
|
| 3995 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3996 | case 274:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3997 | case 272: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3998 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3999 | break;
|
| 4000 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4001 | case 282:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4002 | case 280: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4003 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4004 | break;
|
| 4005 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4006 | case 290:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4007 | case 288: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4008 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4009 | break;
|
| 4010 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4011 | case 298:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4012 | case 301: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4013 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4014 | break;
|
| 4015 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4016 | case 306:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4017 | case 305: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4018 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4019 | break;
|
| 4020 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4021 | case 314:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4022 | case 317: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4023 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4024 | break;
|
| 4025 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4026 | case 322:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4027 | case 321: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4028 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4029 | break;
|
| 4030 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4031 | case 330:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4032 | case 333: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4033 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4034 | break;
|
| 4035 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4036 | case 338:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4037 | case 337: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4038 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4039 | break;
|
| 4040 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4041 | case 346:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4042 | case 344: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4043 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4044 | break;
|
| 4045 | }
|
| 4046 | case 354: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4047 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4048 | break;
|
| 4049 | }
|
| 4050 | case 362: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4051 | input.ReadPrimitiveArray(pbd::FieldType.Bytes, tag, field_name, result.repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4052 | break;
|
| 4053 | }
|
| 4054 | case 371: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4055 | input.ReadGroupArray(tag, field_name, result.repeatedGroup_, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance, extensionRegistry);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4056 | break;
|
| 4057 | }
|
| 4058 | case 386: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4059 | input.ReadMessageArray(tag, field_name, result.repeatedNestedMessage_, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance, extensionRegistry);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4060 | break;
|
| 4061 | }
|
| 4062 | case 394: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4063 | input.ReadMessageArray(tag, field_name, result.repeatedForeignMessage_, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance, extensionRegistry);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4064 | break;
|
| 4065 | }
|
| 4066 | case 402: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4067 | input.ReadMessageArray(tag, field_name, result.repeatedImportMessage_, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance, extensionRegistry);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4068 | break;
|
| 4069 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4070 | case 410:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4071 | case 408: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4072 | scg::ICollection<object> unknownItems;
|
| 4073 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(tag, field_name, result.repeatedNestedEnum_, out unknownItems);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4074 | break;
|
| 4075 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4076 | case 418:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4077 | case 416: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4078 | scg::ICollection<object> unknownItems;
|
| 4079 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.repeatedForeignEnum_, out unknownItems);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4080 | break;
|
| 4081 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4082 | case 426:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4083 | case 424: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4084 | scg::ICollection<object> unknownItems;
|
| 4085 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(tag, field_name, result.repeatedImportEnum_, out unknownItems);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4086 | break;
|
| 4087 | }
|
| 4088 | case 434: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4089 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4090 | break;
|
| 4091 | }
|
| 4092 | case 442: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4093 | input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4094 | break;
|
| 4095 | }
|
| 4096 | case 488: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4097 | result.hasDefaultInt32 = input.ReadInt32(ref result.defaultInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4098 | break;
|
| 4099 | }
|
| 4100 | case 496: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4101 | result.hasDefaultInt64 = input.ReadInt64(ref result.defaultInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4102 | break;
|
| 4103 | }
|
| 4104 | case 504: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4105 | result.hasDefaultUint32 = input.ReadUInt32(ref result.defaultUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4106 | break;
|
| 4107 | }
|
| 4108 | case 512: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4109 | result.hasDefaultUint64 = input.ReadUInt64(ref result.defaultUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4110 | break;
|
| 4111 | }
|
| 4112 | case 520: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4113 | result.hasDefaultSint32 = input.ReadSInt32(ref result.defaultSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4114 | break;
|
| 4115 | }
|
| 4116 | case 528: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4117 | result.hasDefaultSint64 = input.ReadSInt64(ref result.defaultSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4118 | break;
|
| 4119 | }
|
| 4120 | case 541: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4121 | result.hasDefaultFixed32 = input.ReadFixed32(ref result.defaultFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4122 | break;
|
| 4123 | }
|
| 4124 | case 545: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4125 | result.hasDefaultFixed64 = input.ReadFixed64(ref result.defaultFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4126 | break;
|
| 4127 | }
|
| 4128 | case 557: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4129 | result.hasDefaultSfixed32 = input.ReadSFixed32(ref result.defaultSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4130 | break;
|
| 4131 | }
|
| 4132 | case 561: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4133 | result.hasDefaultSfixed64 = input.ReadSFixed64(ref result.defaultSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4134 | break;
|
| 4135 | }
|
| 4136 | case 573: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4137 | result.hasDefaultFloat = input.ReadFloat(ref result.defaultFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4138 | break;
|
| 4139 | }
|
| 4140 | case 577: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4141 | result.hasDefaultDouble = input.ReadDouble(ref result.defaultDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4142 | break;
|
| 4143 | }
|
| 4144 | case 584: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4145 | result.hasDefaultBool = input.ReadBool(ref result.defaultBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4146 | break;
|
| 4147 | }
|
| 4148 | case 594: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4149 | result.hasDefaultString = input.ReadString(ref result.defaultString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4150 | break;
|
| 4151 | }
|
| 4152 | case 602: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4153 | result.hasDefaultBytes = input.ReadBytes(ref result.defaultBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4154 | break;
|
| 4155 | }
|
| 4156 | case 648: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4157 | object unknown;
|
| 4158 | if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
|
| 4159 | result.hasDefaultNestedEnum = true;
|
| 4160 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4161 | }
|
| 4162 | break;
|
| 4163 | }
|
| 4164 | case 656: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4165 | object unknown;
|
| 4166 | if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
|
| 4167 | result.hasDefaultForeignEnum = true;
|
| 4168 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4169 | }
|
| 4170 | break;
|
| 4171 | }
|
| 4172 | case 664: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4173 | object unknown;
|
| 4174 | if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
|
| 4175 | result.hasDefaultImportEnum = true;
|
| 4176 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4177 | }
|
| 4178 | break;
|
| 4179 | }
|
| 4180 | case 674: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4181 | result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4182 | break;
|
| 4183 | }
|
| 4184 | case 682: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4185 | result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4186 | break;
|
| 4187 | }
|
| 4188 | }
|
| 4189 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 4190 |
|
| 4191 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4192 | }
|
| 4193 |
|
| 4194 |
|
| 4195 | public bool HasOptionalInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4196 | get { return result.hasOptionalInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4197 | }
|
| 4198 | public int OptionalInt32 {
|
| 4199 | get { return result.OptionalInt32; }
|
| 4200 | set { SetOptionalInt32(value); }
|
| 4201 | }
|
| 4202 | public Builder SetOptionalInt32(int value) {
|
| 4203 | result.hasOptionalInt32 = true;
|
| 4204 | result.optionalInt32_ = value;
|
| 4205 | return this;
|
| 4206 | }
|
| 4207 | public Builder ClearOptionalInt32() {
|
| 4208 | result.hasOptionalInt32 = false;
|
| 4209 | result.optionalInt32_ = 0;
|
| 4210 | return this;
|
| 4211 | }
|
| 4212 |
|
| 4213 | public bool HasOptionalInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4214 | get { return result.hasOptionalInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4215 | }
|
| 4216 | public long OptionalInt64 {
|
| 4217 | get { return result.OptionalInt64; }
|
| 4218 | set { SetOptionalInt64(value); }
|
| 4219 | }
|
| 4220 | public Builder SetOptionalInt64(long value) {
|
| 4221 | result.hasOptionalInt64 = true;
|
| 4222 | result.optionalInt64_ = value;
|
| 4223 | return this;
|
| 4224 | }
|
| 4225 | public Builder ClearOptionalInt64() {
|
| 4226 | result.hasOptionalInt64 = false;
|
| 4227 | result.optionalInt64_ = 0L;
|
| 4228 | return this;
|
| 4229 | }
|
| 4230 |
|
| 4231 | public bool HasOptionalUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4232 | get { return result.hasOptionalUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4233 | }
|
| 4234 | [global::System.CLSCompliant(false)]
|
| 4235 | public uint OptionalUint32 {
|
| 4236 | get { return result.OptionalUint32; }
|
| 4237 | set { SetOptionalUint32(value); }
|
| 4238 | }
|
| 4239 | [global::System.CLSCompliant(false)]
|
| 4240 | public Builder SetOptionalUint32(uint value) {
|
| 4241 | result.hasOptionalUint32 = true;
|
| 4242 | result.optionalUint32_ = value;
|
| 4243 | return this;
|
| 4244 | }
|
| 4245 | public Builder ClearOptionalUint32() {
|
| 4246 | result.hasOptionalUint32 = false;
|
| 4247 | result.optionalUint32_ = 0;
|
| 4248 | return this;
|
| 4249 | }
|
| 4250 |
|
| 4251 | public bool HasOptionalUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4252 | get { return result.hasOptionalUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4253 | }
|
| 4254 | [global::System.CLSCompliant(false)]
|
| 4255 | public ulong OptionalUint64 {
|
| 4256 | get { return result.OptionalUint64; }
|
| 4257 | set { SetOptionalUint64(value); }
|
| 4258 | }
|
| 4259 | [global::System.CLSCompliant(false)]
|
| 4260 | public Builder SetOptionalUint64(ulong value) {
|
| 4261 | result.hasOptionalUint64 = true;
|
| 4262 | result.optionalUint64_ = value;
|
| 4263 | return this;
|
| 4264 | }
|
| 4265 | public Builder ClearOptionalUint64() {
|
| 4266 | result.hasOptionalUint64 = false;
|
| 4267 | result.optionalUint64_ = 0UL;
|
| 4268 | return this;
|
| 4269 | }
|
| 4270 |
|
| 4271 | public bool HasOptionalSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4272 | get { return result.hasOptionalSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4273 | }
|
| 4274 | public int OptionalSint32 {
|
| 4275 | get { return result.OptionalSint32; }
|
| 4276 | set { SetOptionalSint32(value); }
|
| 4277 | }
|
| 4278 | public Builder SetOptionalSint32(int value) {
|
| 4279 | result.hasOptionalSint32 = true;
|
| 4280 | result.optionalSint32_ = value;
|
| 4281 | return this;
|
| 4282 | }
|
| 4283 | public Builder ClearOptionalSint32() {
|
| 4284 | result.hasOptionalSint32 = false;
|
| 4285 | result.optionalSint32_ = 0;
|
| 4286 | return this;
|
| 4287 | }
|
| 4288 |
|
| 4289 | public bool HasOptionalSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4290 | get { return result.hasOptionalSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4291 | }
|
| 4292 | public long OptionalSint64 {
|
| 4293 | get { return result.OptionalSint64; }
|
| 4294 | set { SetOptionalSint64(value); }
|
| 4295 | }
|
| 4296 | public Builder SetOptionalSint64(long value) {
|
| 4297 | result.hasOptionalSint64 = true;
|
| 4298 | result.optionalSint64_ = value;
|
| 4299 | return this;
|
| 4300 | }
|
| 4301 | public Builder ClearOptionalSint64() {
|
| 4302 | result.hasOptionalSint64 = false;
|
| 4303 | result.optionalSint64_ = 0;
|
| 4304 | return this;
|
| 4305 | }
|
| 4306 |
|
| 4307 | public bool HasOptionalFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4308 | get { return result.hasOptionalFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4309 | }
|
| 4310 | [global::System.CLSCompliant(false)]
|
| 4311 | public uint OptionalFixed32 {
|
| 4312 | get { return result.OptionalFixed32; }
|
| 4313 | set { SetOptionalFixed32(value); }
|
| 4314 | }
|
| 4315 | [global::System.CLSCompliant(false)]
|
| 4316 | public Builder SetOptionalFixed32(uint value) {
|
| 4317 | result.hasOptionalFixed32 = true;
|
| 4318 | result.optionalFixed32_ = value;
|
| 4319 | return this;
|
| 4320 | }
|
| 4321 | public Builder ClearOptionalFixed32() {
|
| 4322 | result.hasOptionalFixed32 = false;
|
| 4323 | result.optionalFixed32_ = 0;
|
| 4324 | return this;
|
| 4325 | }
|
| 4326 |
|
| 4327 | public bool HasOptionalFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4328 | get { return result.hasOptionalFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4329 | }
|
| 4330 | [global::System.CLSCompliant(false)]
|
| 4331 | public ulong OptionalFixed64 {
|
| 4332 | get { return result.OptionalFixed64; }
|
| 4333 | set { SetOptionalFixed64(value); }
|
| 4334 | }
|
| 4335 | [global::System.CLSCompliant(false)]
|
| 4336 | public Builder SetOptionalFixed64(ulong value) {
|
| 4337 | result.hasOptionalFixed64 = true;
|
| 4338 | result.optionalFixed64_ = value;
|
| 4339 | return this;
|
| 4340 | }
|
| 4341 | public Builder ClearOptionalFixed64() {
|
| 4342 | result.hasOptionalFixed64 = false;
|
| 4343 | result.optionalFixed64_ = 0;
|
| 4344 | return this;
|
| 4345 | }
|
| 4346 |
|
| 4347 | public bool HasOptionalSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4348 | get { return result.hasOptionalSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4349 | }
|
| 4350 | public int OptionalSfixed32 {
|
| 4351 | get { return result.OptionalSfixed32; }
|
| 4352 | set { SetOptionalSfixed32(value); }
|
| 4353 | }
|
| 4354 | public Builder SetOptionalSfixed32(int value) {
|
| 4355 | result.hasOptionalSfixed32 = true;
|
| 4356 | result.optionalSfixed32_ = value;
|
| 4357 | return this;
|
| 4358 | }
|
| 4359 | public Builder ClearOptionalSfixed32() {
|
| 4360 | result.hasOptionalSfixed32 = false;
|
| 4361 | result.optionalSfixed32_ = 0;
|
| 4362 | return this;
|
| 4363 | }
|
| 4364 |
|
| 4365 | public bool HasOptionalSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4366 | get { return result.hasOptionalSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4367 | }
|
| 4368 | public long OptionalSfixed64 {
|
| 4369 | get { return result.OptionalSfixed64; }
|
| 4370 | set { SetOptionalSfixed64(value); }
|
| 4371 | }
|
| 4372 | public Builder SetOptionalSfixed64(long value) {
|
| 4373 | result.hasOptionalSfixed64 = true;
|
| 4374 | result.optionalSfixed64_ = value;
|
| 4375 | return this;
|
| 4376 | }
|
| 4377 | public Builder ClearOptionalSfixed64() {
|
| 4378 | result.hasOptionalSfixed64 = false;
|
| 4379 | result.optionalSfixed64_ = 0;
|
| 4380 | return this;
|
| 4381 | }
|
| 4382 |
|
| 4383 | public bool HasOptionalFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4384 | get { return result.hasOptionalFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4385 | }
|
| 4386 | public float OptionalFloat {
|
| 4387 | get { return result.OptionalFloat; }
|
| 4388 | set { SetOptionalFloat(value); }
|
| 4389 | }
|
| 4390 | public Builder SetOptionalFloat(float value) {
|
| 4391 | result.hasOptionalFloat = true;
|
| 4392 | result.optionalFloat_ = value;
|
| 4393 | return this;
|
| 4394 | }
|
| 4395 | public Builder ClearOptionalFloat() {
|
| 4396 | result.hasOptionalFloat = false;
|
| 4397 | result.optionalFloat_ = 0F;
|
| 4398 | return this;
|
| 4399 | }
|
| 4400 |
|
| 4401 | public bool HasOptionalDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4402 | get { return result.hasOptionalDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4403 | }
|
| 4404 | public double OptionalDouble {
|
| 4405 | get { return result.OptionalDouble; }
|
| 4406 | set { SetOptionalDouble(value); }
|
| 4407 | }
|
| 4408 | public Builder SetOptionalDouble(double value) {
|
| 4409 | result.hasOptionalDouble = true;
|
| 4410 | result.optionalDouble_ = value;
|
| 4411 | return this;
|
| 4412 | }
|
| 4413 | public Builder ClearOptionalDouble() {
|
| 4414 | result.hasOptionalDouble = false;
|
| 4415 | result.optionalDouble_ = 0D;
|
| 4416 | return this;
|
| 4417 | }
|
| 4418 |
|
| 4419 | public bool HasOptionalBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4420 | get { return result.hasOptionalBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4421 | }
|
| 4422 | public bool OptionalBool {
|
| 4423 | get { return result.OptionalBool; }
|
| 4424 | set { SetOptionalBool(value); }
|
| 4425 | }
|
| 4426 | public Builder SetOptionalBool(bool value) {
|
| 4427 | result.hasOptionalBool = true;
|
| 4428 | result.optionalBool_ = value;
|
| 4429 | return this;
|
| 4430 | }
|
| 4431 | public Builder ClearOptionalBool() {
|
| 4432 | result.hasOptionalBool = false;
|
| 4433 | result.optionalBool_ = false;
|
| 4434 | return this;
|
| 4435 | }
|
| 4436 |
|
| 4437 | public bool HasOptionalString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4438 | get { return result.hasOptionalString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4439 | }
|
| 4440 | public string OptionalString {
|
| 4441 | get { return result.OptionalString; }
|
| 4442 | set { SetOptionalString(value); }
|
| 4443 | }
|
| 4444 | public Builder SetOptionalString(string value) {
|
| 4445 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4446 | result.hasOptionalString = true;
|
| 4447 | result.optionalString_ = value;
|
| 4448 | return this;
|
| 4449 | }
|
| 4450 | public Builder ClearOptionalString() {
|
| 4451 | result.hasOptionalString = false;
|
| 4452 | result.optionalString_ = "";
|
| 4453 | return this;
|
| 4454 | }
|
| 4455 |
|
| 4456 | public bool HasOptionalBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4457 | get { return result.hasOptionalBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4458 | }
|
| 4459 | public pb::ByteString OptionalBytes {
|
| 4460 | get { return result.OptionalBytes; }
|
| 4461 | set { SetOptionalBytes(value); }
|
| 4462 | }
|
| 4463 | public Builder SetOptionalBytes(pb::ByteString value) {
|
| 4464 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4465 | result.hasOptionalBytes = true;
|
| 4466 | result.optionalBytes_ = value;
|
| 4467 | return this;
|
| 4468 | }
|
| 4469 | public Builder ClearOptionalBytes() {
|
| 4470 | result.hasOptionalBytes = false;
|
| 4471 | result.optionalBytes_ = pb::ByteString.Empty;
|
| 4472 | return this;
|
| 4473 | }
|
| 4474 |
|
| 4475 | public bool HasOptionalGroup {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4476 | get { return result.hasOptionalGroup; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4477 | }
|
| 4478 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 4479 | get { return result.OptionalGroup; }
|
| 4480 | set { SetOptionalGroup(value); }
|
| 4481 | }
|
| 4482 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4483 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4484 | result.hasOptionalGroup = true;
|
| 4485 | result.optionalGroup_ = value;
|
| 4486 | return this;
|
| 4487 | }
|
| 4488 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) {
|
| 4489 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4490 | result.hasOptionalGroup = true;
|
| 4491 | result.optionalGroup_ = builderForValue.Build();
|
| 4492 | return this;
|
| 4493 | }
|
| 4494 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4495 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4496 | if (result.hasOptionalGroup &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4497 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
|
| 4498 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
|
| 4499 | } else {
|
| 4500 | result.optionalGroup_ = value;
|
| 4501 | }
|
| 4502 | result.hasOptionalGroup = true;
|
| 4503 | return this;
|
| 4504 | }
|
| 4505 | public Builder ClearOptionalGroup() {
|
| 4506 | result.hasOptionalGroup = false;
|
| 4507 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 4508 | return this;
|
| 4509 | }
|
| 4510 |
|
| 4511 | public bool HasOptionalNestedMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4512 | get { return result.hasOptionalNestedMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4513 | }
|
| 4514 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 4515 | get { return result.OptionalNestedMessage; }
|
| 4516 | set { SetOptionalNestedMessage(value); }
|
| 4517 | }
|
| 4518 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4519 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4520 | result.hasOptionalNestedMessage = true;
|
| 4521 | result.optionalNestedMessage_ = value;
|
| 4522 | return this;
|
| 4523 | }
|
| 4524 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4525 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4526 | result.hasOptionalNestedMessage = true;
|
| 4527 | result.optionalNestedMessage_ = builderForValue.Build();
|
| 4528 | return this;
|
| 4529 | }
|
| 4530 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4531 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4532 | if (result.hasOptionalNestedMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4533 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
|
| 4534 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
|
| 4535 | } else {
|
| 4536 | result.optionalNestedMessage_ = value;
|
| 4537 | }
|
| 4538 | result.hasOptionalNestedMessage = true;
|
| 4539 | return this;
|
| 4540 | }
|
| 4541 | public Builder ClearOptionalNestedMessage() {
|
| 4542 | result.hasOptionalNestedMessage = false;
|
| 4543 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 4544 | return this;
|
| 4545 | }
|
| 4546 |
|
| 4547 | public bool HasOptionalForeignMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4548 | get { return result.hasOptionalForeignMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4549 | }
|
| 4550 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 4551 | get { return result.OptionalForeignMessage; }
|
| 4552 | set { SetOptionalForeignMessage(value); }
|
| 4553 | }
|
| 4554 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4555 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4556 | result.hasOptionalForeignMessage = true;
|
| 4557 | result.optionalForeignMessage_ = value;
|
| 4558 | return this;
|
| 4559 | }
|
| 4560 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4561 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4562 | result.hasOptionalForeignMessage = true;
|
| 4563 | result.optionalForeignMessage_ = builderForValue.Build();
|
| 4564 | return this;
|
| 4565 | }
|
| 4566 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4567 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4568 | if (result.hasOptionalForeignMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4569 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
|
| 4570 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
|
| 4571 | } else {
|
| 4572 | result.optionalForeignMessage_ = value;
|
| 4573 | }
|
| 4574 | result.hasOptionalForeignMessage = true;
|
| 4575 | return this;
|
| 4576 | }
|
| 4577 | public Builder ClearOptionalForeignMessage() {
|
| 4578 | result.hasOptionalForeignMessage = false;
|
| 4579 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 4580 | return this;
|
| 4581 | }
|
| 4582 |
|
| 4583 | public bool HasOptionalImportMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4584 | get { return result.hasOptionalImportMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4585 | }
|
| 4586 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 4587 | get { return result.OptionalImportMessage; }
|
| 4588 | set { SetOptionalImportMessage(value); }
|
| 4589 | }
|
| 4590 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4591 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4592 | result.hasOptionalImportMessage = true;
|
| 4593 | result.optionalImportMessage_ = value;
|
| 4594 | return this;
|
| 4595 | }
|
| 4596 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 4597 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4598 | result.hasOptionalImportMessage = true;
|
| 4599 | result.optionalImportMessage_ = builderForValue.Build();
|
| 4600 | return this;
|
| 4601 | }
|
| 4602 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4603 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4604 | if (result.hasOptionalImportMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4605 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
|
| 4606 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
|
| 4607 | } else {
|
| 4608 | result.optionalImportMessage_ = value;
|
| 4609 | }
|
| 4610 | result.hasOptionalImportMessage = true;
|
| 4611 | return this;
|
| 4612 | }
|
| 4613 | public Builder ClearOptionalImportMessage() {
|
| 4614 | result.hasOptionalImportMessage = false;
|
| 4615 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 4616 | return this;
|
| 4617 | }
|
| 4618 |
|
| 4619 | public bool HasOptionalNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4620 | get { return result.hasOptionalNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4621 | }
|
| 4622 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 4623 | get { return result.OptionalNestedEnum; }
|
| 4624 | set { SetOptionalNestedEnum(value); }
|
| 4625 | }
|
| 4626 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 4627 | result.hasOptionalNestedEnum = true;
|
| 4628 | result.optionalNestedEnum_ = value;
|
| 4629 | return this;
|
| 4630 | }
|
| 4631 | public Builder ClearOptionalNestedEnum() {
|
| 4632 | result.hasOptionalNestedEnum = false;
|
| 4633 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 4634 | return this;
|
| 4635 | }
|
| 4636 |
|
| 4637 | public bool HasOptionalForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4638 | get { return result.hasOptionalForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4639 | }
|
| 4640 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 4641 | get { return result.OptionalForeignEnum; }
|
| 4642 | set { SetOptionalForeignEnum(value); }
|
| 4643 | }
|
| 4644 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 4645 | result.hasOptionalForeignEnum = true;
|
| 4646 | result.optionalForeignEnum_ = value;
|
| 4647 | return this;
|
| 4648 | }
|
| 4649 | public Builder ClearOptionalForeignEnum() {
|
| 4650 | result.hasOptionalForeignEnum = false;
|
| 4651 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 4652 | return this;
|
| 4653 | }
|
| 4654 |
|
| 4655 | public bool HasOptionalImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4656 | get { return result.hasOptionalImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4657 | }
|
| 4658 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 4659 | get { return result.OptionalImportEnum; }
|
| 4660 | set { SetOptionalImportEnum(value); }
|
| 4661 | }
|
| 4662 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 4663 | result.hasOptionalImportEnum = true;
|
| 4664 | result.optionalImportEnum_ = value;
|
| 4665 | return this;
|
| 4666 | }
|
| 4667 | public Builder ClearOptionalImportEnum() {
|
| 4668 | result.hasOptionalImportEnum = false;
|
| 4669 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 4670 | return this;
|
| 4671 | }
|
| 4672 |
|
| 4673 | public bool HasOptionalStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4674 | get { return result.hasOptionalStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4675 | }
|
| 4676 | public string OptionalStringPiece {
|
| 4677 | get { return result.OptionalStringPiece; }
|
| 4678 | set { SetOptionalStringPiece(value); }
|
| 4679 | }
|
| 4680 | public Builder SetOptionalStringPiece(string value) {
|
| 4681 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4682 | result.hasOptionalStringPiece = true;
|
| 4683 | result.optionalStringPiece_ = value;
|
| 4684 | return this;
|
| 4685 | }
|
| 4686 | public Builder ClearOptionalStringPiece() {
|
| 4687 | result.hasOptionalStringPiece = false;
|
| 4688 | result.optionalStringPiece_ = "";
|
| 4689 | return this;
|
| 4690 | }
|
| 4691 |
|
| 4692 | public bool HasOptionalCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4693 | get { return result.hasOptionalCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4694 | }
|
| 4695 | public string OptionalCord {
|
| 4696 | get { return result.OptionalCord; }
|
| 4697 | set { SetOptionalCord(value); }
|
| 4698 | }
|
| 4699 | public Builder SetOptionalCord(string value) {
|
| 4700 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4701 | result.hasOptionalCord = true;
|
| 4702 | result.optionalCord_ = value;
|
| 4703 | return this;
|
| 4704 | }
|
| 4705 | public Builder ClearOptionalCord() {
|
| 4706 | result.hasOptionalCord = false;
|
| 4707 | result.optionalCord_ = "";
|
| 4708 | return this;
|
| 4709 | }
|
| 4710 |
|
| 4711 | public pbc::IPopsicleList<int> RepeatedInt32List {
|
| 4712 | get { return result.repeatedInt32_; }
|
| 4713 | }
|
| 4714 | public int RepeatedInt32Count {
|
| 4715 | get { return result.RepeatedInt32Count; }
|
| 4716 | }
|
| 4717 | public int GetRepeatedInt32(int index) {
|
| 4718 | return result.GetRepeatedInt32(index);
|
| 4719 | }
|
| 4720 | public Builder SetRepeatedInt32(int index, int value) {
|
| 4721 | result.repeatedInt32_[index] = value;
|
| 4722 | return this;
|
| 4723 | }
|
| 4724 | public Builder AddRepeatedInt32(int value) {
|
| 4725 | result.repeatedInt32_.Add(value);
|
| 4726 | return this;
|
| 4727 | }
|
| 4728 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
|
| 4729 | base.AddRange(values, result.repeatedInt32_);
|
| 4730 | return this;
|
| 4731 | }
|
| 4732 | public Builder ClearRepeatedInt32() {
|
| 4733 | result.repeatedInt32_.Clear();
|
| 4734 | return this;
|
| 4735 | }
|
| 4736 |
|
| 4737 | public pbc::IPopsicleList<long> RepeatedInt64List {
|
| 4738 | get { return result.repeatedInt64_; }
|
| 4739 | }
|
| 4740 | public int RepeatedInt64Count {
|
| 4741 | get { return result.RepeatedInt64Count; }
|
| 4742 | }
|
| 4743 | public long GetRepeatedInt64(int index) {
|
| 4744 | return result.GetRepeatedInt64(index);
|
| 4745 | }
|
| 4746 | public Builder SetRepeatedInt64(int index, long value) {
|
| 4747 | result.repeatedInt64_[index] = value;
|
| 4748 | return this;
|
| 4749 | }
|
| 4750 | public Builder AddRepeatedInt64(long value) {
|
| 4751 | result.repeatedInt64_.Add(value);
|
| 4752 | return this;
|
| 4753 | }
|
| 4754 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
|
| 4755 | base.AddRange(values, result.repeatedInt64_);
|
| 4756 | return this;
|
| 4757 | }
|
| 4758 | public Builder ClearRepeatedInt64() {
|
| 4759 | result.repeatedInt64_.Clear();
|
| 4760 | return this;
|
| 4761 | }
|
| 4762 |
|
| 4763 | [global::System.CLSCompliant(false)]
|
| 4764 | public pbc::IPopsicleList<uint> RepeatedUint32List {
|
| 4765 | get { return result.repeatedUint32_; }
|
| 4766 | }
|
| 4767 | public int RepeatedUint32Count {
|
| 4768 | get { return result.RepeatedUint32Count; }
|
| 4769 | }
|
| 4770 | [global::System.CLSCompliant(false)]
|
| 4771 | public uint GetRepeatedUint32(int index) {
|
| 4772 | return result.GetRepeatedUint32(index);
|
| 4773 | }
|
| 4774 | [global::System.CLSCompliant(false)]
|
| 4775 | public Builder SetRepeatedUint32(int index, uint value) {
|
| 4776 | result.repeatedUint32_[index] = value;
|
| 4777 | return this;
|
| 4778 | }
|
| 4779 | [global::System.CLSCompliant(false)]
|
| 4780 | public Builder AddRepeatedUint32(uint value) {
|
| 4781 | result.repeatedUint32_.Add(value);
|
| 4782 | return this;
|
| 4783 | }
|
| 4784 | [global::System.CLSCompliant(false)]
|
| 4785 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
|
| 4786 | base.AddRange(values, result.repeatedUint32_);
|
| 4787 | return this;
|
| 4788 | }
|
| 4789 | public Builder ClearRepeatedUint32() {
|
| 4790 | result.repeatedUint32_.Clear();
|
| 4791 | return this;
|
| 4792 | }
|
| 4793 |
|
| 4794 | [global::System.CLSCompliant(false)]
|
| 4795 | public pbc::IPopsicleList<ulong> RepeatedUint64List {
|
| 4796 | get { return result.repeatedUint64_; }
|
| 4797 | }
|
| 4798 | public int RepeatedUint64Count {
|
| 4799 | get { return result.RepeatedUint64Count; }
|
| 4800 | }
|
| 4801 | [global::System.CLSCompliant(false)]
|
| 4802 | public ulong GetRepeatedUint64(int index) {
|
| 4803 | return result.GetRepeatedUint64(index);
|
| 4804 | }
|
| 4805 | [global::System.CLSCompliant(false)]
|
| 4806 | public Builder SetRepeatedUint64(int index, ulong value) {
|
| 4807 | result.repeatedUint64_[index] = value;
|
| 4808 | return this;
|
| 4809 | }
|
| 4810 | [global::System.CLSCompliant(false)]
|
| 4811 | public Builder AddRepeatedUint64(ulong value) {
|
| 4812 | result.repeatedUint64_.Add(value);
|
| 4813 | return this;
|
| 4814 | }
|
| 4815 | [global::System.CLSCompliant(false)]
|
| 4816 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
|
| 4817 | base.AddRange(values, result.repeatedUint64_);
|
| 4818 | return this;
|
| 4819 | }
|
| 4820 | public Builder ClearRepeatedUint64() {
|
| 4821 | result.repeatedUint64_.Clear();
|
| 4822 | return this;
|
| 4823 | }
|
| 4824 |
|
| 4825 | public pbc::IPopsicleList<int> RepeatedSint32List {
|
| 4826 | get { return result.repeatedSint32_; }
|
| 4827 | }
|
| 4828 | public int RepeatedSint32Count {
|
| 4829 | get { return result.RepeatedSint32Count; }
|
| 4830 | }
|
| 4831 | public int GetRepeatedSint32(int index) {
|
| 4832 | return result.GetRepeatedSint32(index);
|
| 4833 | }
|
| 4834 | public Builder SetRepeatedSint32(int index, int value) {
|
| 4835 | result.repeatedSint32_[index] = value;
|
| 4836 | return this;
|
| 4837 | }
|
| 4838 | public Builder AddRepeatedSint32(int value) {
|
| 4839 | result.repeatedSint32_.Add(value);
|
| 4840 | return this;
|
| 4841 | }
|
| 4842 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
|
| 4843 | base.AddRange(values, result.repeatedSint32_);
|
| 4844 | return this;
|
| 4845 | }
|
| 4846 | public Builder ClearRepeatedSint32() {
|
| 4847 | result.repeatedSint32_.Clear();
|
| 4848 | return this;
|
| 4849 | }
|
| 4850 |
|
| 4851 | public pbc::IPopsicleList<long> RepeatedSint64List {
|
| 4852 | get { return result.repeatedSint64_; }
|
| 4853 | }
|
| 4854 | public int RepeatedSint64Count {
|
| 4855 | get { return result.RepeatedSint64Count; }
|
| 4856 | }
|
| 4857 | public long GetRepeatedSint64(int index) {
|
| 4858 | return result.GetRepeatedSint64(index);
|
| 4859 | }
|
| 4860 | public Builder SetRepeatedSint64(int index, long value) {
|
| 4861 | result.repeatedSint64_[index] = value;
|
| 4862 | return this;
|
| 4863 | }
|
| 4864 | public Builder AddRepeatedSint64(long value) {
|
| 4865 | result.repeatedSint64_.Add(value);
|
| 4866 | return this;
|
| 4867 | }
|
| 4868 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
|
| 4869 | base.AddRange(values, result.repeatedSint64_);
|
| 4870 | return this;
|
| 4871 | }
|
| 4872 | public Builder ClearRepeatedSint64() {
|
| 4873 | result.repeatedSint64_.Clear();
|
| 4874 | return this;
|
| 4875 | }
|
| 4876 |
|
| 4877 | [global::System.CLSCompliant(false)]
|
| 4878 | public pbc::IPopsicleList<uint> RepeatedFixed32List {
|
| 4879 | get { return result.repeatedFixed32_; }
|
| 4880 | }
|
| 4881 | public int RepeatedFixed32Count {
|
| 4882 | get { return result.RepeatedFixed32Count; }
|
| 4883 | }
|
| 4884 | [global::System.CLSCompliant(false)]
|
| 4885 | public uint GetRepeatedFixed32(int index) {
|
| 4886 | return result.GetRepeatedFixed32(index);
|
| 4887 | }
|
| 4888 | [global::System.CLSCompliant(false)]
|
| 4889 | public Builder SetRepeatedFixed32(int index, uint value) {
|
| 4890 | result.repeatedFixed32_[index] = value;
|
| 4891 | return this;
|
| 4892 | }
|
| 4893 | [global::System.CLSCompliant(false)]
|
| 4894 | public Builder AddRepeatedFixed32(uint value) {
|
| 4895 | result.repeatedFixed32_.Add(value);
|
| 4896 | return this;
|
| 4897 | }
|
| 4898 | [global::System.CLSCompliant(false)]
|
| 4899 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
|
| 4900 | base.AddRange(values, result.repeatedFixed32_);
|
| 4901 | return this;
|
| 4902 | }
|
| 4903 | public Builder ClearRepeatedFixed32() {
|
| 4904 | result.repeatedFixed32_.Clear();
|
| 4905 | return this;
|
| 4906 | }
|
| 4907 |
|
| 4908 | [global::System.CLSCompliant(false)]
|
| 4909 | public pbc::IPopsicleList<ulong> RepeatedFixed64List {
|
| 4910 | get { return result.repeatedFixed64_; }
|
| 4911 | }
|
| 4912 | public int RepeatedFixed64Count {
|
| 4913 | get { return result.RepeatedFixed64Count; }
|
| 4914 | }
|
| 4915 | [global::System.CLSCompliant(false)]
|
| 4916 | public ulong GetRepeatedFixed64(int index) {
|
| 4917 | return result.GetRepeatedFixed64(index);
|
| 4918 | }
|
| 4919 | [global::System.CLSCompliant(false)]
|
| 4920 | public Builder SetRepeatedFixed64(int index, ulong value) {
|
| 4921 | result.repeatedFixed64_[index] = value;
|
| 4922 | return this;
|
| 4923 | }
|
| 4924 | [global::System.CLSCompliant(false)]
|
| 4925 | public Builder AddRepeatedFixed64(ulong value) {
|
| 4926 | result.repeatedFixed64_.Add(value);
|
| 4927 | return this;
|
| 4928 | }
|
| 4929 | [global::System.CLSCompliant(false)]
|
| 4930 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
|
| 4931 | base.AddRange(values, result.repeatedFixed64_);
|
| 4932 | return this;
|
| 4933 | }
|
| 4934 | public Builder ClearRepeatedFixed64() {
|
| 4935 | result.repeatedFixed64_.Clear();
|
| 4936 | return this;
|
| 4937 | }
|
| 4938 |
|
| 4939 | public pbc::IPopsicleList<int> RepeatedSfixed32List {
|
| 4940 | get { return result.repeatedSfixed32_; }
|
| 4941 | }
|
| 4942 | public int RepeatedSfixed32Count {
|
| 4943 | get { return result.RepeatedSfixed32Count; }
|
| 4944 | }
|
| 4945 | public int GetRepeatedSfixed32(int index) {
|
| 4946 | return result.GetRepeatedSfixed32(index);
|
| 4947 | }
|
| 4948 | public Builder SetRepeatedSfixed32(int index, int value) {
|
| 4949 | result.repeatedSfixed32_[index] = value;
|
| 4950 | return this;
|
| 4951 | }
|
| 4952 | public Builder AddRepeatedSfixed32(int value) {
|
| 4953 | result.repeatedSfixed32_.Add(value);
|
| 4954 | return this;
|
| 4955 | }
|
| 4956 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
|
| 4957 | base.AddRange(values, result.repeatedSfixed32_);
|
| 4958 | return this;
|
| 4959 | }
|
| 4960 | public Builder ClearRepeatedSfixed32() {
|
| 4961 | result.repeatedSfixed32_.Clear();
|
| 4962 | return this;
|
| 4963 | }
|
| 4964 |
|
| 4965 | public pbc::IPopsicleList<long> RepeatedSfixed64List {
|
| 4966 | get { return result.repeatedSfixed64_; }
|
| 4967 | }
|
| 4968 | public int RepeatedSfixed64Count {
|
| 4969 | get { return result.RepeatedSfixed64Count; }
|
| 4970 | }
|
| 4971 | public long GetRepeatedSfixed64(int index) {
|
| 4972 | return result.GetRepeatedSfixed64(index);
|
| 4973 | }
|
| 4974 | public Builder SetRepeatedSfixed64(int index, long value) {
|
| 4975 | result.repeatedSfixed64_[index] = value;
|
| 4976 | return this;
|
| 4977 | }
|
| 4978 | public Builder AddRepeatedSfixed64(long value) {
|
| 4979 | result.repeatedSfixed64_.Add(value);
|
| 4980 | return this;
|
| 4981 | }
|
| 4982 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
|
| 4983 | base.AddRange(values, result.repeatedSfixed64_);
|
| 4984 | return this;
|
| 4985 | }
|
| 4986 | public Builder ClearRepeatedSfixed64() {
|
| 4987 | result.repeatedSfixed64_.Clear();
|
| 4988 | return this;
|
| 4989 | }
|
| 4990 |
|
| 4991 | public pbc::IPopsicleList<float> RepeatedFloatList {
|
| 4992 | get { return result.repeatedFloat_; }
|
| 4993 | }
|
| 4994 | public int RepeatedFloatCount {
|
| 4995 | get { return result.RepeatedFloatCount; }
|
| 4996 | }
|
| 4997 | public float GetRepeatedFloat(int index) {
|
| 4998 | return result.GetRepeatedFloat(index);
|
| 4999 | }
|
| 5000 | public Builder SetRepeatedFloat(int index, float value) {
|
| 5001 | result.repeatedFloat_[index] = value;
|
| 5002 | return this;
|
| 5003 | }
|
| 5004 | public Builder AddRepeatedFloat(float value) {
|
| 5005 | result.repeatedFloat_.Add(value);
|
| 5006 | return this;
|
| 5007 | }
|
| 5008 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
|
| 5009 | base.AddRange(values, result.repeatedFloat_);
|
| 5010 | return this;
|
| 5011 | }
|
| 5012 | public Builder ClearRepeatedFloat() {
|
| 5013 | result.repeatedFloat_.Clear();
|
| 5014 | return this;
|
| 5015 | }
|
| 5016 |
|
| 5017 | public pbc::IPopsicleList<double> RepeatedDoubleList {
|
| 5018 | get { return result.repeatedDouble_; }
|
| 5019 | }
|
| 5020 | public int RepeatedDoubleCount {
|
| 5021 | get { return result.RepeatedDoubleCount; }
|
| 5022 | }
|
| 5023 | public double GetRepeatedDouble(int index) {
|
| 5024 | return result.GetRepeatedDouble(index);
|
| 5025 | }
|
| 5026 | public Builder SetRepeatedDouble(int index, double value) {
|
| 5027 | result.repeatedDouble_[index] = value;
|
| 5028 | return this;
|
| 5029 | }
|
| 5030 | public Builder AddRepeatedDouble(double value) {
|
| 5031 | result.repeatedDouble_.Add(value);
|
| 5032 | return this;
|
| 5033 | }
|
| 5034 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
|
| 5035 | base.AddRange(values, result.repeatedDouble_);
|
| 5036 | return this;
|
| 5037 | }
|
| 5038 | public Builder ClearRepeatedDouble() {
|
| 5039 | result.repeatedDouble_.Clear();
|
| 5040 | return this;
|
| 5041 | }
|
| 5042 |
|
| 5043 | public pbc::IPopsicleList<bool> RepeatedBoolList {
|
| 5044 | get { return result.repeatedBool_; }
|
| 5045 | }
|
| 5046 | public int RepeatedBoolCount {
|
| 5047 | get { return result.RepeatedBoolCount; }
|
| 5048 | }
|
| 5049 | public bool GetRepeatedBool(int index) {
|
| 5050 | return result.GetRepeatedBool(index);
|
| 5051 | }
|
| 5052 | public Builder SetRepeatedBool(int index, bool value) {
|
| 5053 | result.repeatedBool_[index] = value;
|
| 5054 | return this;
|
| 5055 | }
|
| 5056 | public Builder AddRepeatedBool(bool value) {
|
| 5057 | result.repeatedBool_.Add(value);
|
| 5058 | return this;
|
| 5059 | }
|
| 5060 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
|
| 5061 | base.AddRange(values, result.repeatedBool_);
|
| 5062 | return this;
|
| 5063 | }
|
| 5064 | public Builder ClearRepeatedBool() {
|
| 5065 | result.repeatedBool_.Clear();
|
| 5066 | return this;
|
| 5067 | }
|
| 5068 |
|
| 5069 | public pbc::IPopsicleList<string> RepeatedStringList {
|
| 5070 | get { return result.repeatedString_; }
|
| 5071 | }
|
| 5072 | public int RepeatedStringCount {
|
| 5073 | get { return result.RepeatedStringCount; }
|
| 5074 | }
|
| 5075 | public string GetRepeatedString(int index) {
|
| 5076 | return result.GetRepeatedString(index);
|
| 5077 | }
|
| 5078 | public Builder SetRepeatedString(int index, string value) {
|
| 5079 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5080 | result.repeatedString_[index] = value;
|
| 5081 | return this;
|
| 5082 | }
|
| 5083 | public Builder AddRepeatedString(string value) {
|
| 5084 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5085 | result.repeatedString_.Add(value);
|
| 5086 | return this;
|
| 5087 | }
|
| 5088 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
|
| 5089 | base.AddRange(values, result.repeatedString_);
|
| 5090 | return this;
|
| 5091 | }
|
| 5092 | public Builder ClearRepeatedString() {
|
| 5093 | result.repeatedString_.Clear();
|
| 5094 | return this;
|
| 5095 | }
|
| 5096 |
|
| 5097 | public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
|
| 5098 | get { return result.repeatedBytes_; }
|
| 5099 | }
|
| 5100 | public int RepeatedBytesCount {
|
| 5101 | get { return result.RepeatedBytesCount; }
|
| 5102 | }
|
| 5103 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 5104 | return result.GetRepeatedBytes(index);
|
| 5105 | }
|
| 5106 | public Builder SetRepeatedBytes(int index, pb::ByteString value) {
|
| 5107 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5108 | result.repeatedBytes_[index] = value;
|
| 5109 | return this;
|
| 5110 | }
|
| 5111 | public Builder AddRepeatedBytes(pb::ByteString value) {
|
| 5112 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5113 | result.repeatedBytes_.Add(value);
|
| 5114 | return this;
|
| 5115 | }
|
| 5116 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
|
| 5117 | base.AddRange(values, result.repeatedBytes_);
|
| 5118 | return this;
|
| 5119 | }
|
| 5120 | public Builder ClearRepeatedBytes() {
|
| 5121 | result.repeatedBytes_.Clear();
|
| 5122 | return this;
|
| 5123 | }
|
| 5124 |
|
| 5125 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 5126 | get { return result.repeatedGroup_; }
|
| 5127 | }
|
| 5128 | public int RepeatedGroupCount {
|
| 5129 | get { return result.RepeatedGroupCount; }
|
| 5130 | }
|
| 5131 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 5132 | return result.GetRepeatedGroup(index);
|
| 5133 | }
|
| 5134 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5135 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5136 | result.repeatedGroup_[index] = value;
|
| 5137 | return this;
|
| 5138 | }
|
| 5139 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5140 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5141 | result.repeatedGroup_[index] = builderForValue.Build();
|
| 5142 | return this;
|
| 5143 | }
|
| 5144 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5145 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5146 | result.repeatedGroup_.Add(value);
|
| 5147 | return this;
|
| 5148 | }
|
| 5149 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5150 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5151 | result.repeatedGroup_.Add(builderForValue.Build());
|
| 5152 | return this;
|
| 5153 | }
|
| 5154 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) {
|
| 5155 | base.AddRange(values, result.repeatedGroup_);
|
| 5156 | return this;
|
| 5157 | }
|
| 5158 | public Builder ClearRepeatedGroup() {
|
| 5159 | result.repeatedGroup_.Clear();
|
| 5160 | return this;
|
| 5161 | }
|
| 5162 |
|
| 5163 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 5164 | get { return result.repeatedNestedMessage_; }
|
| 5165 | }
|
| 5166 | public int RepeatedNestedMessageCount {
|
| 5167 | get { return result.RepeatedNestedMessageCount; }
|
| 5168 | }
|
| 5169 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 5170 | return result.GetRepeatedNestedMessage(index);
|
| 5171 | }
|
| 5172 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5173 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5174 | result.repeatedNestedMessage_[index] = value;
|
| 5175 | return this;
|
| 5176 | }
|
| 5177 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5178 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5179 | result.repeatedNestedMessage_[index] = builderForValue.Build();
|
| 5180 | return this;
|
| 5181 | }
|
| 5182 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5183 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5184 | result.repeatedNestedMessage_.Add(value);
|
| 5185 | return this;
|
| 5186 | }
|
| 5187 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5188 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5189 | result.repeatedNestedMessage_.Add(builderForValue.Build());
|
| 5190 | return this;
|
| 5191 | }
|
| 5192 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) {
|
| 5193 | base.AddRange(values, result.repeatedNestedMessage_);
|
| 5194 | return this;
|
| 5195 | }
|
| 5196 | public Builder ClearRepeatedNestedMessage() {
|
| 5197 | result.repeatedNestedMessage_.Clear();
|
| 5198 | return this;
|
| 5199 | }
|
| 5200 |
|
| 5201 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 5202 | get { return result.repeatedForeignMessage_; }
|
| 5203 | }
|
| 5204 | public int RepeatedForeignMessageCount {
|
| 5205 | get { return result.RepeatedForeignMessageCount; }
|
| 5206 | }
|
| 5207 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 5208 | return result.GetRepeatedForeignMessage(index);
|
| 5209 | }
|
| 5210 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5211 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5212 | result.repeatedForeignMessage_[index] = value;
|
| 5213 | return this;
|
| 5214 | }
|
| 5215 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5216 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5217 | result.repeatedForeignMessage_[index] = builderForValue.Build();
|
| 5218 | return this;
|
| 5219 | }
|
| 5220 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5221 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5222 | result.repeatedForeignMessage_.Add(value);
|
| 5223 | return this;
|
| 5224 | }
|
| 5225 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5226 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5227 | result.repeatedForeignMessage_.Add(builderForValue.Build());
|
| 5228 | return this;
|
| 5229 | }
|
| 5230 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
|
| 5231 | base.AddRange(values, result.repeatedForeignMessage_);
|
| 5232 | return this;
|
| 5233 | }
|
| 5234 | public Builder ClearRepeatedForeignMessage() {
|
| 5235 | result.repeatedForeignMessage_.Clear();
|
| 5236 | return this;
|
| 5237 | }
|
| 5238 |
|
| 5239 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 5240 | get { return result.repeatedImportMessage_; }
|
| 5241 | }
|
| 5242 | public int RepeatedImportMessageCount {
|
| 5243 | get { return result.RepeatedImportMessageCount; }
|
| 5244 | }
|
| 5245 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 5246 | return result.GetRepeatedImportMessage(index);
|
| 5247 | }
|
| 5248 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5249 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5250 | result.repeatedImportMessage_[index] = value;
|
| 5251 | return this;
|
| 5252 | }
|
| 5253 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5254 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5255 | result.repeatedImportMessage_[index] = builderForValue.Build();
|
| 5256 | return this;
|
| 5257 | }
|
| 5258 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5259 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5260 | result.repeatedImportMessage_.Add(value);
|
| 5261 | return this;
|
| 5262 | }
|
| 5263 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5264 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5265 | result.repeatedImportMessage_.Add(builderForValue.Build());
|
| 5266 | return this;
|
| 5267 | }
|
| 5268 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
|
| 5269 | base.AddRange(values, result.repeatedImportMessage_);
|
| 5270 | return this;
|
| 5271 | }
|
| 5272 | public Builder ClearRepeatedImportMessage() {
|
| 5273 | result.repeatedImportMessage_.Clear();
|
| 5274 | return this;
|
| 5275 | }
|
| 5276 |
|
| 5277 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 5278 | get { return result.repeatedNestedEnum_; }
|
| 5279 | }
|
| 5280 | public int RepeatedNestedEnumCount {
|
| 5281 | get { return result.RepeatedNestedEnumCount; }
|
| 5282 | }
|
| 5283 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 5284 | return result.GetRepeatedNestedEnum(index);
|
| 5285 | }
|
| 5286 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5287 | result.repeatedNestedEnum_[index] = value;
|
| 5288 | return this;
|
| 5289 | }
|
| 5290 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5291 | result.repeatedNestedEnum_.Add(value);
|
| 5292 | return this;
|
| 5293 | }
|
| 5294 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) {
|
| 5295 | base.AddRange(values, result.repeatedNestedEnum_);
|
| 5296 | return this;
|
| 5297 | }
|
| 5298 | public Builder ClearRepeatedNestedEnum() {
|
| 5299 | result.repeatedNestedEnum_.Clear();
|
| 5300 | return this;
|
| 5301 | }
|
| 5302 |
|
| 5303 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 5304 | get { return result.repeatedForeignEnum_; }
|
| 5305 | }
|
| 5306 | public int RepeatedForeignEnumCount {
|
| 5307 | get { return result.RepeatedForeignEnumCount; }
|
| 5308 | }
|
| 5309 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 5310 | return result.GetRepeatedForeignEnum(index);
|
| 5311 | }
|
| 5312 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5313 | result.repeatedForeignEnum_[index] = value;
|
| 5314 | return this;
|
| 5315 | }
|
| 5316 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5317 | result.repeatedForeignEnum_.Add(value);
|
| 5318 | return this;
|
| 5319 | }
|
| 5320 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 5321 | base.AddRange(values, result.repeatedForeignEnum_);
|
| 5322 | return this;
|
| 5323 | }
|
| 5324 | public Builder ClearRepeatedForeignEnum() {
|
| 5325 | result.repeatedForeignEnum_.Clear();
|
| 5326 | return this;
|
| 5327 | }
|
| 5328 |
|
| 5329 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 5330 | get { return result.repeatedImportEnum_; }
|
| 5331 | }
|
| 5332 | public int RepeatedImportEnumCount {
|
| 5333 | get { return result.RepeatedImportEnumCount; }
|
| 5334 | }
|
| 5335 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 5336 | return result.GetRepeatedImportEnum(index);
|
| 5337 | }
|
| 5338 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5339 | result.repeatedImportEnum_[index] = value;
|
| 5340 | return this;
|
| 5341 | }
|
| 5342 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5343 | result.repeatedImportEnum_.Add(value);
|
| 5344 | return this;
|
| 5345 | }
|
| 5346 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) {
|
| 5347 | base.AddRange(values, result.repeatedImportEnum_);
|
| 5348 | return this;
|
| 5349 | }
|
| 5350 | public Builder ClearRepeatedImportEnum() {
|
| 5351 | result.repeatedImportEnum_.Clear();
|
| 5352 | return this;
|
| 5353 | }
|
| 5354 |
|
| 5355 | public pbc::IPopsicleList<string> RepeatedStringPieceList {
|
| 5356 | get { return result.repeatedStringPiece_; }
|
| 5357 | }
|
| 5358 | public int RepeatedStringPieceCount {
|
| 5359 | get { return result.RepeatedStringPieceCount; }
|
| 5360 | }
|
| 5361 | public string GetRepeatedStringPiece(int index) {
|
| 5362 | return result.GetRepeatedStringPiece(index);
|
| 5363 | }
|
| 5364 | public Builder SetRepeatedStringPiece(int index, string value) {
|
| 5365 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5366 | result.repeatedStringPiece_[index] = value;
|
| 5367 | return this;
|
| 5368 | }
|
| 5369 | public Builder AddRepeatedStringPiece(string value) {
|
| 5370 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5371 | result.repeatedStringPiece_.Add(value);
|
| 5372 | return this;
|
| 5373 | }
|
| 5374 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
|
| 5375 | base.AddRange(values, result.repeatedStringPiece_);
|
| 5376 | return this;
|
| 5377 | }
|
| 5378 | public Builder ClearRepeatedStringPiece() {
|
| 5379 | result.repeatedStringPiece_.Clear();
|
| 5380 | return this;
|
| 5381 | }
|
| 5382 |
|
| 5383 | public pbc::IPopsicleList<string> RepeatedCordList {
|
| 5384 | get { return result.repeatedCord_; }
|
| 5385 | }
|
| 5386 | public int RepeatedCordCount {
|
| 5387 | get { return result.RepeatedCordCount; }
|
| 5388 | }
|
| 5389 | public string GetRepeatedCord(int index) {
|
| 5390 | return result.GetRepeatedCord(index);
|
| 5391 | }
|
| 5392 | public Builder SetRepeatedCord(int index, string value) {
|
| 5393 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5394 | result.repeatedCord_[index] = value;
|
| 5395 | return this;
|
| 5396 | }
|
| 5397 | public Builder AddRepeatedCord(string value) {
|
| 5398 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5399 | result.repeatedCord_.Add(value);
|
| 5400 | return this;
|
| 5401 | }
|
| 5402 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
|
| 5403 | base.AddRange(values, result.repeatedCord_);
|
| 5404 | return this;
|
| 5405 | }
|
| 5406 | public Builder ClearRepeatedCord() {
|
| 5407 | result.repeatedCord_.Clear();
|
| 5408 | return this;
|
| 5409 | }
|
| 5410 |
|
| 5411 | public bool HasDefaultInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5412 | get { return result.hasDefaultInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5413 | }
|
| 5414 | public int DefaultInt32 {
|
| 5415 | get { return result.DefaultInt32; }
|
| 5416 | set { SetDefaultInt32(value); }
|
| 5417 | }
|
| 5418 | public Builder SetDefaultInt32(int value) {
|
| 5419 | result.hasDefaultInt32 = true;
|
| 5420 | result.defaultInt32_ = value;
|
| 5421 | return this;
|
| 5422 | }
|
| 5423 | public Builder ClearDefaultInt32() {
|
| 5424 | result.hasDefaultInt32 = false;
|
| 5425 | result.defaultInt32_ = 41;
|
| 5426 | return this;
|
| 5427 | }
|
| 5428 |
|
| 5429 | public bool HasDefaultInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5430 | get { return result.hasDefaultInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5431 | }
|
| 5432 | public long DefaultInt64 {
|
| 5433 | get { return result.DefaultInt64; }
|
| 5434 | set { SetDefaultInt64(value); }
|
| 5435 | }
|
| 5436 | public Builder SetDefaultInt64(long value) {
|
| 5437 | result.hasDefaultInt64 = true;
|
| 5438 | result.defaultInt64_ = value;
|
| 5439 | return this;
|
| 5440 | }
|
| 5441 | public Builder ClearDefaultInt64() {
|
| 5442 | result.hasDefaultInt64 = false;
|
| 5443 | result.defaultInt64_ = 42L;
|
| 5444 | return this;
|
| 5445 | }
|
| 5446 |
|
| 5447 | public bool HasDefaultUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5448 | get { return result.hasDefaultUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5449 | }
|
| 5450 | [global::System.CLSCompliant(false)]
|
| 5451 | public uint DefaultUint32 {
|
| 5452 | get { return result.DefaultUint32; }
|
| 5453 | set { SetDefaultUint32(value); }
|
| 5454 | }
|
| 5455 | [global::System.CLSCompliant(false)]
|
| 5456 | public Builder SetDefaultUint32(uint value) {
|
| 5457 | result.hasDefaultUint32 = true;
|
| 5458 | result.defaultUint32_ = value;
|
| 5459 | return this;
|
| 5460 | }
|
| 5461 | public Builder ClearDefaultUint32() {
|
| 5462 | result.hasDefaultUint32 = false;
|
| 5463 | result.defaultUint32_ = 43;
|
| 5464 | return this;
|
| 5465 | }
|
| 5466 |
|
| 5467 | public bool HasDefaultUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5468 | get { return result.hasDefaultUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5469 | }
|
| 5470 | [global::System.CLSCompliant(false)]
|
| 5471 | public ulong DefaultUint64 {
|
| 5472 | get { return result.DefaultUint64; }
|
| 5473 | set { SetDefaultUint64(value); }
|
| 5474 | }
|
| 5475 | [global::System.CLSCompliant(false)]
|
| 5476 | public Builder SetDefaultUint64(ulong value) {
|
| 5477 | result.hasDefaultUint64 = true;
|
| 5478 | result.defaultUint64_ = value;
|
| 5479 | return this;
|
| 5480 | }
|
| 5481 | public Builder ClearDefaultUint64() {
|
| 5482 | result.hasDefaultUint64 = false;
|
| 5483 | result.defaultUint64_ = 44UL;
|
| 5484 | return this;
|
| 5485 | }
|
| 5486 |
|
| 5487 | public bool HasDefaultSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5488 | get { return result.hasDefaultSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5489 | }
|
| 5490 | public int DefaultSint32 {
|
| 5491 | get { return result.DefaultSint32; }
|
| 5492 | set { SetDefaultSint32(value); }
|
| 5493 | }
|
| 5494 | public Builder SetDefaultSint32(int value) {
|
| 5495 | result.hasDefaultSint32 = true;
|
| 5496 | result.defaultSint32_ = value;
|
| 5497 | return this;
|
| 5498 | }
|
| 5499 | public Builder ClearDefaultSint32() {
|
| 5500 | result.hasDefaultSint32 = false;
|
| 5501 | result.defaultSint32_ = -45;
|
| 5502 | return this;
|
| 5503 | }
|
| 5504 |
|
| 5505 | public bool HasDefaultSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5506 | get { return result.hasDefaultSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5507 | }
|
| 5508 | public long DefaultSint64 {
|
| 5509 | get { return result.DefaultSint64; }
|
| 5510 | set { SetDefaultSint64(value); }
|
| 5511 | }
|
| 5512 | public Builder SetDefaultSint64(long value) {
|
| 5513 | result.hasDefaultSint64 = true;
|
| 5514 | result.defaultSint64_ = value;
|
| 5515 | return this;
|
| 5516 | }
|
| 5517 | public Builder ClearDefaultSint64() {
|
| 5518 | result.hasDefaultSint64 = false;
|
| 5519 | result.defaultSint64_ = 46;
|
| 5520 | return this;
|
| 5521 | }
|
| 5522 |
|
| 5523 | public bool HasDefaultFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5524 | get { return result.hasDefaultFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5525 | }
|
| 5526 | [global::System.CLSCompliant(false)]
|
| 5527 | public uint DefaultFixed32 {
|
| 5528 | get { return result.DefaultFixed32; }
|
| 5529 | set { SetDefaultFixed32(value); }
|
| 5530 | }
|
| 5531 | [global::System.CLSCompliant(false)]
|
| 5532 | public Builder SetDefaultFixed32(uint value) {
|
| 5533 | result.hasDefaultFixed32 = true;
|
| 5534 | result.defaultFixed32_ = value;
|
| 5535 | return this;
|
| 5536 | }
|
| 5537 | public Builder ClearDefaultFixed32() {
|
| 5538 | result.hasDefaultFixed32 = false;
|
| 5539 | result.defaultFixed32_ = 47;
|
| 5540 | return this;
|
| 5541 | }
|
| 5542 |
|
| 5543 | public bool HasDefaultFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5544 | get { return result.hasDefaultFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5545 | }
|
| 5546 | [global::System.CLSCompliant(false)]
|
| 5547 | public ulong DefaultFixed64 {
|
| 5548 | get { return result.DefaultFixed64; }
|
| 5549 | set { SetDefaultFixed64(value); }
|
| 5550 | }
|
| 5551 | [global::System.CLSCompliant(false)]
|
| 5552 | public Builder SetDefaultFixed64(ulong value) {
|
| 5553 | result.hasDefaultFixed64 = true;
|
| 5554 | result.defaultFixed64_ = value;
|
| 5555 | return this;
|
| 5556 | }
|
| 5557 | public Builder ClearDefaultFixed64() {
|
| 5558 | result.hasDefaultFixed64 = false;
|
| 5559 | result.defaultFixed64_ = 48;
|
| 5560 | return this;
|
| 5561 | }
|
| 5562 |
|
| 5563 | public bool HasDefaultSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5564 | get { return result.hasDefaultSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5565 | }
|
| 5566 | public int DefaultSfixed32 {
|
| 5567 | get { return result.DefaultSfixed32; }
|
| 5568 | set { SetDefaultSfixed32(value); }
|
| 5569 | }
|
| 5570 | public Builder SetDefaultSfixed32(int value) {
|
| 5571 | result.hasDefaultSfixed32 = true;
|
| 5572 | result.defaultSfixed32_ = value;
|
| 5573 | return this;
|
| 5574 | }
|
| 5575 | public Builder ClearDefaultSfixed32() {
|
| 5576 | result.hasDefaultSfixed32 = false;
|
| 5577 | result.defaultSfixed32_ = 49;
|
| 5578 | return this;
|
| 5579 | }
|
| 5580 |
|
| 5581 | public bool HasDefaultSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5582 | get { return result.hasDefaultSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5583 | }
|
| 5584 | public long DefaultSfixed64 {
|
| 5585 | get { return result.DefaultSfixed64; }
|
| 5586 | set { SetDefaultSfixed64(value); }
|
| 5587 | }
|
| 5588 | public Builder SetDefaultSfixed64(long value) {
|
| 5589 | result.hasDefaultSfixed64 = true;
|
| 5590 | result.defaultSfixed64_ = value;
|
| 5591 | return this;
|
| 5592 | }
|
| 5593 | public Builder ClearDefaultSfixed64() {
|
| 5594 | result.hasDefaultSfixed64 = false;
|
| 5595 | result.defaultSfixed64_ = -50;
|
| 5596 | return this;
|
| 5597 | }
|
| 5598 |
|
| 5599 | public bool HasDefaultFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5600 | get { return result.hasDefaultFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5601 | }
|
| 5602 | public float DefaultFloat {
|
| 5603 | get { return result.DefaultFloat; }
|
| 5604 | set { SetDefaultFloat(value); }
|
| 5605 | }
|
| 5606 | public Builder SetDefaultFloat(float value) {
|
| 5607 | result.hasDefaultFloat = true;
|
| 5608 | result.defaultFloat_ = value;
|
| 5609 | return this;
|
| 5610 | }
|
| 5611 | public Builder ClearDefaultFloat() {
|
| 5612 | result.hasDefaultFloat = false;
|
| 5613 | result.defaultFloat_ = 51.5F;
|
| 5614 | return this;
|
| 5615 | }
|
| 5616 |
|
| 5617 | public bool HasDefaultDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5618 | get { return result.hasDefaultDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5619 | }
|
| 5620 | public double DefaultDouble {
|
| 5621 | get { return result.DefaultDouble; }
|
| 5622 | set { SetDefaultDouble(value); }
|
| 5623 | }
|
| 5624 | public Builder SetDefaultDouble(double value) {
|
| 5625 | result.hasDefaultDouble = true;
|
| 5626 | result.defaultDouble_ = value;
|
| 5627 | return this;
|
| 5628 | }
|
| 5629 | public Builder ClearDefaultDouble() {
|
| 5630 | result.hasDefaultDouble = false;
|
| 5631 | result.defaultDouble_ = 52000D;
|
| 5632 | return this;
|
| 5633 | }
|
| 5634 |
|
| 5635 | public bool HasDefaultBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5636 | get { return result.hasDefaultBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5637 | }
|
| 5638 | public bool DefaultBool {
|
| 5639 | get { return result.DefaultBool; }
|
| 5640 | set { SetDefaultBool(value); }
|
| 5641 | }
|
| 5642 | public Builder SetDefaultBool(bool value) {
|
| 5643 | result.hasDefaultBool = true;
|
| 5644 | result.defaultBool_ = value;
|
| 5645 | return this;
|
| 5646 | }
|
| 5647 | public Builder ClearDefaultBool() {
|
| 5648 | result.hasDefaultBool = false;
|
| 5649 | result.defaultBool_ = true;
|
| 5650 | return this;
|
| 5651 | }
|
| 5652 |
|
| 5653 | public bool HasDefaultString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5654 | get { return result.hasDefaultString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5655 | }
|
| 5656 | public string DefaultString {
|
| 5657 | get { return result.DefaultString; }
|
| 5658 | set { SetDefaultString(value); }
|
| 5659 | }
|
| 5660 | public Builder SetDefaultString(string value) {
|
| 5661 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5662 | result.hasDefaultString = true;
|
| 5663 | result.defaultString_ = value;
|
| 5664 | return this;
|
| 5665 | }
|
| 5666 | public Builder ClearDefaultString() {
|
| 5667 | result.hasDefaultString = false;
|
| 5668 | result.defaultString_ = "hello";
|
| 5669 | return this;
|
| 5670 | }
|
| 5671 |
|
| 5672 | public bool HasDefaultBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5673 | get { return result.hasDefaultBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5674 | }
|
| 5675 | public pb::ByteString DefaultBytes {
|
| 5676 | get { return result.DefaultBytes; }
|
| 5677 | set { SetDefaultBytes(value); }
|
| 5678 | }
|
| 5679 | public Builder SetDefaultBytes(pb::ByteString value) {
|
| 5680 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5681 | result.hasDefaultBytes = true;
|
| 5682 | result.defaultBytes_ = value;
|
| 5683 | return this;
|
| 5684 | }
|
| 5685 | public Builder ClearDefaultBytes() {
|
| 5686 | result.hasDefaultBytes = false;
|
| 5687 | result.defaultBytes_ = ByteString.FromBase64("d29ybGQ=");
|
| 5688 | return this;
|
| 5689 | }
|
| 5690 |
|
| 5691 | public bool HasDefaultNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5692 | get { return result.hasDefaultNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5693 | }
|
| 5694 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 5695 | get { return result.DefaultNestedEnum; }
|
| 5696 | set { SetDefaultNestedEnum(value); }
|
| 5697 | }
|
| 5698 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5699 | result.hasDefaultNestedEnum = true;
|
| 5700 | result.defaultNestedEnum_ = value;
|
| 5701 | return this;
|
| 5702 | }
|
| 5703 | public Builder ClearDefaultNestedEnum() {
|
| 5704 | result.hasDefaultNestedEnum = false;
|
| 5705 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 5706 | return this;
|
| 5707 | }
|
| 5708 |
|
| 5709 | public bool HasDefaultForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5710 | get { return result.hasDefaultForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5711 | }
|
| 5712 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 5713 | get { return result.DefaultForeignEnum; }
|
| 5714 | set { SetDefaultForeignEnum(value); }
|
| 5715 | }
|
| 5716 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5717 | result.hasDefaultForeignEnum = true;
|
| 5718 | result.defaultForeignEnum_ = value;
|
| 5719 | return this;
|
| 5720 | }
|
| 5721 | public Builder ClearDefaultForeignEnum() {
|
| 5722 | result.hasDefaultForeignEnum = false;
|
| 5723 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 5724 | return this;
|
| 5725 | }
|
| 5726 |
|
| 5727 | public bool HasDefaultImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5728 | get { return result.hasDefaultImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5729 | }
|
| 5730 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 5731 | get { return result.DefaultImportEnum; }
|
| 5732 | set { SetDefaultImportEnum(value); }
|
| 5733 | }
|
| 5734 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5735 | result.hasDefaultImportEnum = true;
|
| 5736 | result.defaultImportEnum_ = value;
|
| 5737 | return this;
|
| 5738 | }
|
| 5739 | public Builder ClearDefaultImportEnum() {
|
| 5740 | result.hasDefaultImportEnum = false;
|
| 5741 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 5742 | return this;
|
| 5743 | }
|
| 5744 |
|
| 5745 | public bool HasDefaultStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5746 | get { return result.hasDefaultStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5747 | }
|
| 5748 | public string DefaultStringPiece {
|
| 5749 | get { return result.DefaultStringPiece; }
|
| 5750 | set { SetDefaultStringPiece(value); }
|
| 5751 | }
|
| 5752 | public Builder SetDefaultStringPiece(string value) {
|
| 5753 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5754 | result.hasDefaultStringPiece = true;
|
| 5755 | result.defaultStringPiece_ = value;
|
| 5756 | return this;
|
| 5757 | }
|
| 5758 | public Builder ClearDefaultStringPiece() {
|
| 5759 | result.hasDefaultStringPiece = false;
|
| 5760 | result.defaultStringPiece_ = "abc";
|
| 5761 | return this;
|
| 5762 | }
|
| 5763 |
|
| 5764 | public bool HasDefaultCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5765 | get { return result.hasDefaultCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5766 | }
|
| 5767 | public string DefaultCord {
|
| 5768 | get { return result.DefaultCord; }
|
| 5769 | set { SetDefaultCord(value); }
|
| 5770 | }
|
| 5771 | public Builder SetDefaultCord(string value) {
|
| 5772 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5773 | result.hasDefaultCord = true;
|
| 5774 | result.defaultCord_ = value;
|
| 5775 | return this;
|
| 5776 | }
|
| 5777 | public Builder ClearDefaultCord() {
|
| 5778 | result.hasDefaultCord = false;
|
| 5779 | result.defaultCord_ = "123";
|
| 5780 | return this;
|
| 5781 | }
|
| 5782 | }
|
| 5783 | static TestAllTypesLite() {
|
| 5784 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5785 | }
|
| 5786 | }
|
| 5787 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5788 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5789 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5790 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5791 | public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
|
| 5792 | private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5793 | private static readonly string[] _foreignMessageLiteFieldNames = new string[] { "c" };
|
| 5794 | private static readonly uint[] _foreignMessageLiteFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5795 | public static ForeignMessageLite DefaultInstance {
|
| 5796 | get { return defaultInstance; }
|
| 5797 | }
|
| 5798 |
|
| 5799 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5800 | get { return defaultInstance; }
|
| 5801 | }
|
| 5802 |
|
| 5803 | protected override ForeignMessageLite ThisMessage {
|
| 5804 | get { return this; }
|
| 5805 | }
|
| 5806 |
|
| 5807 | public const int CFieldNumber = 1;
|
| 5808 | private bool hasC;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 5809 | private int c_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5810 | public bool HasC {
|
| 5811 | get { return hasC; }
|
| 5812 | }
|
| 5813 | public int C {
|
| 5814 | get { return c_; }
|
| 5815 | }
|
| 5816 |
|
| 5817 | public override bool IsInitialized {
|
| 5818 | get {
|
| 5819 | return true;
|
| 5820 | }
|
| 5821 | }
|
| 5822 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 5823 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5824 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5825 | string[] field_names = _foreignMessageLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5826 | if (hasC) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5827 | output.WriteInt32(1, field_names[0], C);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5828 | }
|
| 5829 | }
|
| 5830 |
|
| 5831 | private int memoizedSerializedSize = -1;
|
| 5832 | public override int SerializedSize {
|
| 5833 | get {
|
| 5834 | int size = memoizedSerializedSize;
|
| 5835 | if (size != -1) return size;
|
| 5836 |
|
| 5837 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5838 | if (hasC) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5839 | size += pb::CodedOutputStream.ComputeInt32Size(1, C);
|
| 5840 | }
|
| 5841 | memoizedSerializedSize = size;
|
| 5842 | return size;
|
| 5843 | }
|
| 5844 | }
|
| 5845 |
|
| 5846 | #region Lite runtime methods
|
| 5847 | public override int GetHashCode() {
|
| 5848 | int hash = GetType().GetHashCode();
|
| 5849 | if (hasC) hash ^= c_.GetHashCode();
|
| 5850 | return hash;
|
| 5851 | }
|
| 5852 |
|
| 5853 | public override bool Equals(object obj) {
|
| 5854 | ForeignMessageLite other = obj as ForeignMessageLite;
|
| 5855 | if (other == null) return false;
|
| 5856 | if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
|
| 5857 | return true;
|
| 5858 | }
|
| 5859 |
|
| 5860 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 5861 | PrintField("c", hasC, c_, writer);
|
| 5862 | }
|
| 5863 | #endregion
|
| 5864 |
|
| 5865 | public static ForeignMessageLite ParseFrom(pb::ByteString data) {
|
| 5866 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5867 | }
|
| 5868 | public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 5869 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5870 | }
|
| 5871 | public static ForeignMessageLite ParseFrom(byte[] data) {
|
| 5872 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5873 | }
|
| 5874 | public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 5875 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5876 | }
|
| 5877 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
|
| 5878 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5879 | }
|
| 5880 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5881 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5882 | }
|
| 5883 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 5884 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 5885 | }
|
| 5886 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5887 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 5888 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5889 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5890 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5891 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5892 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5893 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5894 | }
|
| 5895 | public static Builder CreateBuilder() { return new Builder(); }
|
| 5896 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 5897 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 5898 | public static Builder CreateBuilder(ForeignMessageLite prototype) {
|
| 5899 | return (Builder) new Builder().MergeFrom(prototype);
|
| 5900 | }
|
| 5901 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5902 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5903 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5904 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5905 | public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
|
| 5906 | protected override Builder ThisBuilder {
|
| 5907 | get { return this; }
|
| 5908 | }
|
| 5909 | public Builder() {}
|
| 5910 |
|
| 5911 | ForeignMessageLite result = new ForeignMessageLite();
|
| 5912 |
|
| 5913 | protected override ForeignMessageLite MessageBeingBuilt {
|
| 5914 | get { return result; }
|
| 5915 | }
|
| 5916 |
|
| 5917 | public override Builder Clear() {
|
| 5918 | result = new ForeignMessageLite();
|
| 5919 | return this;
|
| 5920 | }
|
| 5921 |
|
| 5922 | public override Builder Clone() {
|
| 5923 | return new Builder().MergeFrom(result);
|
| 5924 | }
|
| 5925 |
|
| 5926 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5927 | get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
|
| 5928 | }
|
| 5929 |
|
| 5930 | public override ForeignMessageLite BuildPartial() {
|
| 5931 | if (result == null) {
|
| 5932 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 5933 | }
|
| 5934 | ForeignMessageLite returnMe = result;
|
| 5935 | result = null;
|
| 5936 | return returnMe;
|
| 5937 | }
|
| 5938 |
|
| 5939 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 5940 | if (other is ForeignMessageLite) {
|
| 5941 | return MergeFrom((ForeignMessageLite) other);
|
| 5942 | } else {
|
| 5943 | base.MergeFrom(other);
|
| 5944 | return this;
|
| 5945 | }
|
| 5946 | }
|
| 5947 |
|
| 5948 | public override Builder MergeFrom(ForeignMessageLite other) {
|
| 5949 | if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
|
| 5950 | if (other.HasC) {
|
| 5951 | C = other.C;
|
| 5952 | }
|
| 5953 | return this;
|
| 5954 | }
|
| 5955 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5956 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5957 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 5958 | }
|
| 5959 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5960 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5961 | uint tag;
|
| 5962 | string field_name;
|
| 5963 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5964 | if(tag == 0 && field_name != null) {
|
| 5965 | int field_ordinal = global::System.Array.BinarySearch(_foreignMessageLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 5966 | if(field_ordinal >= 0)
|
| 5967 | tag = _foreignMessageLiteFieldTags[field_ordinal];
|
| 5968 | else {
|
| 5969 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 5970 | continue;
|
| 5971 | }
|
| 5972 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5973 | switch (tag) {
|
| 5974 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 5975 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5976 | }
|
| 5977 | default: {
|
| 5978 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 5979 | return this;
|
| 5980 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5981 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5982 | break;
|
| 5983 | }
|
| 5984 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5985 | result.hasC = input.ReadInt32(ref result.c_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5986 | break;
|
| 5987 | }
|
| 5988 | }
|
| 5989 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5990 |
|
| 5991 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5992 | }
|
| 5993 |
|
| 5994 |
|
| 5995 | public bool HasC {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5996 | get { return result.hasC; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5997 | }
|
| 5998 | public int C {
|
| 5999 | get { return result.C; }
|
| 6000 | set { SetC(value); }
|
| 6001 | }
|
| 6002 | public Builder SetC(int value) {
|
| 6003 | result.hasC = true;
|
| 6004 | result.c_ = value;
|
| 6005 | return this;
|
| 6006 | }
|
| 6007 | public Builder ClearC() {
|
| 6008 | result.hasC = false;
|
| 6009 | result.c_ = 0;
|
| 6010 | return this;
|
| 6011 | }
|
| 6012 | }
|
| 6013 | static ForeignMessageLite() {
|
| 6014 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 6015 | }
|
| 6016 | }
|
| 6017 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6018 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6019 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6020 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6021 | public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
|
| 6022 | private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6023 | private static readonly string[] _testPackedTypesLiteFieldNames = new string[] { "packed_bool", "packed_double", "packed_enum", "packed_fixed32", "packed_fixed64", "packed_float", "packed_int32", "packed_int64", "packed_sfixed32", "packed_sfixed64", "packed_sint32", "packed_sint64", "packed_uint32", "packed_uint64" };
|
| 6024 | private static readonly uint[] _testPackedTypesLiteFieldTags = new uint[] { 818, 810, 826, 770, 778, 802, 722, 730, 786, 794, 754, 762, 738, 746 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6025 | public static TestPackedTypesLite DefaultInstance {
|
| 6026 | get { return defaultInstance; }
|
| 6027 | }
|
| 6028 |
|
| 6029 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6030 | get { return defaultInstance; }
|
| 6031 | }
|
| 6032 |
|
| 6033 | protected override TestPackedTypesLite ThisMessage {
|
| 6034 | get { return this; }
|
| 6035 | }
|
| 6036 |
|
| 6037 | public const int PackedInt32FieldNumber = 90;
|
| 6038 | private int packedInt32MemoizedSerializedSize;
|
| 6039 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
|
| 6040 | public scg::IList<int> PackedInt32List {
|
| 6041 | get { return pbc::Lists.AsReadOnly(packedInt32_); }
|
| 6042 | }
|
| 6043 | public int PackedInt32Count {
|
| 6044 | get { return packedInt32_.Count; }
|
| 6045 | }
|
| 6046 | public int GetPackedInt32(int index) {
|
| 6047 | return packedInt32_[index];
|
| 6048 | }
|
| 6049 |
|
| 6050 | public const int PackedInt64FieldNumber = 91;
|
| 6051 | private int packedInt64MemoizedSerializedSize;
|
| 6052 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
|
| 6053 | public scg::IList<long> PackedInt64List {
|
| 6054 | get { return pbc::Lists.AsReadOnly(packedInt64_); }
|
| 6055 | }
|
| 6056 | public int PackedInt64Count {
|
| 6057 | get { return packedInt64_.Count; }
|
| 6058 | }
|
| 6059 | public long GetPackedInt64(int index) {
|
| 6060 | return packedInt64_[index];
|
| 6061 | }
|
| 6062 |
|
| 6063 | public const int PackedUint32FieldNumber = 92;
|
| 6064 | private int packedUint32MemoizedSerializedSize;
|
| 6065 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
|
| 6066 | [global::System.CLSCompliant(false)]
|
| 6067 | public scg::IList<uint> PackedUint32List {
|
| 6068 | get { return pbc::Lists.AsReadOnly(packedUint32_); }
|
| 6069 | }
|
| 6070 | public int PackedUint32Count {
|
| 6071 | get { return packedUint32_.Count; }
|
| 6072 | }
|
| 6073 | [global::System.CLSCompliant(false)]
|
| 6074 | public uint GetPackedUint32(int index) {
|
| 6075 | return packedUint32_[index];
|
| 6076 | }
|
| 6077 |
|
| 6078 | public const int PackedUint64FieldNumber = 93;
|
| 6079 | private int packedUint64MemoizedSerializedSize;
|
| 6080 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
|
| 6081 | [global::System.CLSCompliant(false)]
|
| 6082 | public scg::IList<ulong> PackedUint64List {
|
| 6083 | get { return pbc::Lists.AsReadOnly(packedUint64_); }
|
| 6084 | }
|
| 6085 | public int PackedUint64Count {
|
| 6086 | get { return packedUint64_.Count; }
|
| 6087 | }
|
| 6088 | [global::System.CLSCompliant(false)]
|
| 6089 | public ulong GetPackedUint64(int index) {
|
| 6090 | return packedUint64_[index];
|
| 6091 | }
|
| 6092 |
|
| 6093 | public const int PackedSint32FieldNumber = 94;
|
| 6094 | private int packedSint32MemoizedSerializedSize;
|
| 6095 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
|
| 6096 | public scg::IList<int> PackedSint32List {
|
| 6097 | get { return pbc::Lists.AsReadOnly(packedSint32_); }
|
| 6098 | }
|
| 6099 | public int PackedSint32Count {
|
| 6100 | get { return packedSint32_.Count; }
|
| 6101 | }
|
| 6102 | public int GetPackedSint32(int index) {
|
| 6103 | return packedSint32_[index];
|
| 6104 | }
|
| 6105 |
|
| 6106 | public const int PackedSint64FieldNumber = 95;
|
| 6107 | private int packedSint64MemoizedSerializedSize;
|
| 6108 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
|
| 6109 | public scg::IList<long> PackedSint64List {
|
| 6110 | get { return pbc::Lists.AsReadOnly(packedSint64_); }
|
| 6111 | }
|
| 6112 | public int PackedSint64Count {
|
| 6113 | get { return packedSint64_.Count; }
|
| 6114 | }
|
| 6115 | public long GetPackedSint64(int index) {
|
| 6116 | return packedSint64_[index];
|
| 6117 | }
|
| 6118 |
|
| 6119 | public const int PackedFixed32FieldNumber = 96;
|
| 6120 | private int packedFixed32MemoizedSerializedSize;
|
| 6121 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
|
| 6122 | [global::System.CLSCompliant(false)]
|
| 6123 | public scg::IList<uint> PackedFixed32List {
|
| 6124 | get { return pbc::Lists.AsReadOnly(packedFixed32_); }
|
| 6125 | }
|
| 6126 | public int PackedFixed32Count {
|
| 6127 | get { return packedFixed32_.Count; }
|
| 6128 | }
|
| 6129 | [global::System.CLSCompliant(false)]
|
| 6130 | public uint GetPackedFixed32(int index) {
|
| 6131 | return packedFixed32_[index];
|
| 6132 | }
|
| 6133 |
|
| 6134 | public const int PackedFixed64FieldNumber = 97;
|
| 6135 | private int packedFixed64MemoizedSerializedSize;
|
| 6136 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 6137 | [global::System.CLSCompliant(false)]
|
| 6138 | public scg::IList<ulong> PackedFixed64List {
|
| 6139 | get { return pbc::Lists.AsReadOnly(packedFixed64_); }
|
| 6140 | }
|
| 6141 | public int PackedFixed64Count {
|
| 6142 | get { return packedFixed64_.Count; }
|
| 6143 | }
|
| 6144 | [global::System.CLSCompliant(false)]
|
| 6145 | public ulong GetPackedFixed64(int index) {
|
| 6146 | return packedFixed64_[index];
|
| 6147 | }
|
| 6148 |
|
| 6149 | public const int PackedSfixed32FieldNumber = 98;
|
| 6150 | private int packedSfixed32MemoizedSerializedSize;
|
| 6151 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
|
| 6152 | public scg::IList<int> PackedSfixed32List {
|
| 6153 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
|
| 6154 | }
|
| 6155 | public int PackedSfixed32Count {
|
| 6156 | get { return packedSfixed32_.Count; }
|
| 6157 | }
|
| 6158 | public int GetPackedSfixed32(int index) {
|
| 6159 | return packedSfixed32_[index];
|
| 6160 | }
|
| 6161 |
|
| 6162 | public const int PackedSfixed64FieldNumber = 99;
|
| 6163 | private int packedSfixed64MemoizedSerializedSize;
|
| 6164 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
|
| 6165 | public scg::IList<long> PackedSfixed64List {
|
| 6166 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
|
| 6167 | }
|
| 6168 | public int PackedSfixed64Count {
|
| 6169 | get { return packedSfixed64_.Count; }
|
| 6170 | }
|
| 6171 | public long GetPackedSfixed64(int index) {
|
| 6172 | return packedSfixed64_[index];
|
| 6173 | }
|
| 6174 |
|
| 6175 | public const int PackedFloatFieldNumber = 100;
|
| 6176 | private int packedFloatMemoizedSerializedSize;
|
| 6177 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
|
| 6178 | public scg::IList<float> PackedFloatList {
|
| 6179 | get { return pbc::Lists.AsReadOnly(packedFloat_); }
|
| 6180 | }
|
| 6181 | public int PackedFloatCount {
|
| 6182 | get { return packedFloat_.Count; }
|
| 6183 | }
|
| 6184 | public float GetPackedFloat(int index) {
|
| 6185 | return packedFloat_[index];
|
| 6186 | }
|
| 6187 |
|
| 6188 | public const int PackedDoubleFieldNumber = 101;
|
| 6189 | private int packedDoubleMemoizedSerializedSize;
|
| 6190 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
|
| 6191 | public scg::IList<double> PackedDoubleList {
|
| 6192 | get { return pbc::Lists.AsReadOnly(packedDouble_); }
|
| 6193 | }
|
| 6194 | public int PackedDoubleCount {
|
| 6195 | get { return packedDouble_.Count; }
|
| 6196 | }
|
| 6197 | public double GetPackedDouble(int index) {
|
| 6198 | return packedDouble_[index];
|
| 6199 | }
|
| 6200 |
|
| 6201 | public const int PackedBoolFieldNumber = 102;
|
| 6202 | private int packedBoolMemoizedSerializedSize;
|
| 6203 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
|
| 6204 | public scg::IList<bool> PackedBoolList {
|
| 6205 | get { return pbc::Lists.AsReadOnly(packedBool_); }
|
| 6206 | }
|
| 6207 | public int PackedBoolCount {
|
| 6208 | get { return packedBool_.Count; }
|
| 6209 | }
|
| 6210 | public bool GetPackedBool(int index) {
|
| 6211 | return packedBool_[index];
|
| 6212 | }
|
| 6213 |
|
| 6214 | public const int PackedEnumFieldNumber = 103;
|
| 6215 | private int packedEnumMemoizedSerializedSize;
|
| 6216 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 6217 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 6218 | get { return pbc::Lists.AsReadOnly(packedEnum_); }
|
| 6219 | }
|
| 6220 | public int PackedEnumCount {
|
| 6221 | get { return packedEnum_.Count; }
|
| 6222 | }
|
| 6223 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 6224 | return packedEnum_[index];
|
| 6225 | }
|
| 6226 |
|
| 6227 | public override bool IsInitialized {
|
| 6228 | get {
|
| 6229 | return true;
|
| 6230 | }
|
| 6231 | }
|
| 6232 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 6233 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6234 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6235 | string[] field_names = _testPackedTypesLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6236 | if (packedInt32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6237 | output.WritePackedArray(pbd::FieldType.Int32, 90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6238 | }
|
| 6239 | if (packedInt64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6240 | output.WritePackedArray(pbd::FieldType.Int64, 91, field_names[7], packedInt64MemoizedSerializedSize, packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6241 | }
|
| 6242 | if (packedUint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6243 | output.WritePackedArray(pbd::FieldType.UInt32, 92, field_names[12], packedUint32MemoizedSerializedSize, packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6244 | }
|
| 6245 | if (packedUint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6246 | output.WritePackedArray(pbd::FieldType.UInt64, 93, field_names[13], packedUint64MemoizedSerializedSize, packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6247 | }
|
| 6248 | if (packedSint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6249 | output.WritePackedArray(pbd::FieldType.SInt32, 94, field_names[10], packedSint32MemoizedSerializedSize, packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6250 | }
|
| 6251 | if (packedSint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6252 | output.WritePackedArray(pbd::FieldType.SInt64, 95, field_names[11], packedSint64MemoizedSerializedSize, packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6253 | }
|
| 6254 | if (packedFixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6255 | output.WritePackedArray(pbd::FieldType.Fixed32, 96, field_names[3], packedFixed32MemoizedSerializedSize, packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6256 | }
|
| 6257 | if (packedFixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6258 | output.WritePackedArray(pbd::FieldType.Fixed64, 97, field_names[4], packedFixed64MemoizedSerializedSize, packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6259 | }
|
| 6260 | if (packedSfixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6261 | output.WritePackedArray(pbd::FieldType.SFixed32, 98, field_names[8], packedSfixed32MemoizedSerializedSize, packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6262 | }
|
| 6263 | if (packedSfixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6264 | output.WritePackedArray(pbd::FieldType.SFixed64, 99, field_names[9], packedSfixed64MemoizedSerializedSize, packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6265 | }
|
| 6266 | if (packedFloat_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6267 | output.WritePackedArray(pbd::FieldType.Float, 100, field_names[5], packedFloatMemoizedSerializedSize, packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6268 | }
|
| 6269 | if (packedDouble_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6270 | output.WritePackedArray(pbd::FieldType.Double, 101, field_names[1], packedDoubleMemoizedSerializedSize, packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6271 | }
|
| 6272 | if (packedBool_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6273 | output.WritePackedArray(pbd::FieldType.Bool, 102, field_names[0], packedBoolMemoizedSerializedSize, packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6274 | }
|
| 6275 | if (packedEnum_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6276 | output.WritePackedArray(pbd::FieldType.Enum, 103, field_names[2], packedEnumMemoizedSerializedSize, packedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6277 | }
|
| 6278 | }
|
| 6279 |
|
| 6280 | private int memoizedSerializedSize = -1;
|
| 6281 | public override int SerializedSize {
|
| 6282 | get {
|
| 6283 | int size = memoizedSerializedSize;
|
| 6284 | if (size != -1) return size;
|
| 6285 |
|
| 6286 | size = 0;
|
| 6287 | {
|
| 6288 | int dataSize = 0;
|
| 6289 | foreach (int element in PackedInt32List) {
|
| 6290 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 6291 | }
|
| 6292 | size += dataSize;
|
| 6293 | if (packedInt32_.Count != 0) {
|
| 6294 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6295 | }
|
| 6296 | packedInt32MemoizedSerializedSize = dataSize;
|
| 6297 | }
|
| 6298 | {
|
| 6299 | int dataSize = 0;
|
| 6300 | foreach (long element in PackedInt64List) {
|
| 6301 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 6302 | }
|
| 6303 | size += dataSize;
|
| 6304 | if (packedInt64_.Count != 0) {
|
| 6305 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6306 | }
|
| 6307 | packedInt64MemoizedSerializedSize = dataSize;
|
| 6308 | }
|
| 6309 | {
|
| 6310 | int dataSize = 0;
|
| 6311 | foreach (uint element in PackedUint32List) {
|
| 6312 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 6313 | }
|
| 6314 | size += dataSize;
|
| 6315 | if (packedUint32_.Count != 0) {
|
| 6316 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6317 | }
|
| 6318 | packedUint32MemoizedSerializedSize = dataSize;
|
| 6319 | }
|
| 6320 | {
|
| 6321 | int dataSize = 0;
|
| 6322 | foreach (ulong element in PackedUint64List) {
|
| 6323 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 6324 | }
|
| 6325 | size += dataSize;
|
| 6326 | if (packedUint64_.Count != 0) {
|
| 6327 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6328 | }
|
| 6329 | packedUint64MemoizedSerializedSize = dataSize;
|
| 6330 | }
|
| 6331 | {
|
| 6332 | int dataSize = 0;
|
| 6333 | foreach (int element in PackedSint32List) {
|
| 6334 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 6335 | }
|
| 6336 | size += dataSize;
|
| 6337 | if (packedSint32_.Count != 0) {
|
| 6338 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6339 | }
|
| 6340 | packedSint32MemoizedSerializedSize = dataSize;
|
| 6341 | }
|
| 6342 | {
|
| 6343 | int dataSize = 0;
|
| 6344 | foreach (long element in PackedSint64List) {
|
| 6345 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 6346 | }
|
| 6347 | size += dataSize;
|
| 6348 | if (packedSint64_.Count != 0) {
|
| 6349 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6350 | }
|
| 6351 | packedSint64MemoizedSerializedSize = dataSize;
|
| 6352 | }
|
| 6353 | {
|
| 6354 | int dataSize = 0;
|
| 6355 | dataSize = 4 * packedFixed32_.Count;
|
| 6356 | size += dataSize;
|
| 6357 | if (packedFixed32_.Count != 0) {
|
| 6358 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6359 | }
|
| 6360 | packedFixed32MemoizedSerializedSize = dataSize;
|
| 6361 | }
|
| 6362 | {
|
| 6363 | int dataSize = 0;
|
| 6364 | dataSize = 8 * packedFixed64_.Count;
|
| 6365 | size += dataSize;
|
| 6366 | if (packedFixed64_.Count != 0) {
|
| 6367 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6368 | }
|
| 6369 | packedFixed64MemoizedSerializedSize = dataSize;
|
| 6370 | }
|
| 6371 | {
|
| 6372 | int dataSize = 0;
|
| 6373 | dataSize = 4 * packedSfixed32_.Count;
|
| 6374 | size += dataSize;
|
| 6375 | if (packedSfixed32_.Count != 0) {
|
| 6376 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6377 | }
|
| 6378 | packedSfixed32MemoizedSerializedSize = dataSize;
|
| 6379 | }
|
| 6380 | {
|
| 6381 | int dataSize = 0;
|
| 6382 | dataSize = 8 * packedSfixed64_.Count;
|
| 6383 | size += dataSize;
|
| 6384 | if (packedSfixed64_.Count != 0) {
|
| 6385 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6386 | }
|
| 6387 | packedSfixed64MemoizedSerializedSize = dataSize;
|
| 6388 | }
|
| 6389 | {
|
| 6390 | int dataSize = 0;
|
| 6391 | dataSize = 4 * packedFloat_.Count;
|
| 6392 | size += dataSize;
|
| 6393 | if (packedFloat_.Count != 0) {
|
| 6394 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6395 | }
|
| 6396 | packedFloatMemoizedSerializedSize = dataSize;
|
| 6397 | }
|
| 6398 | {
|
| 6399 | int dataSize = 0;
|
| 6400 | dataSize = 8 * packedDouble_.Count;
|
| 6401 | size += dataSize;
|
| 6402 | if (packedDouble_.Count != 0) {
|
| 6403 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6404 | }
|
| 6405 | packedDoubleMemoizedSerializedSize = dataSize;
|
| 6406 | }
|
| 6407 | {
|
| 6408 | int dataSize = 0;
|
| 6409 | dataSize = 1 * packedBool_.Count;
|
| 6410 | size += dataSize;
|
| 6411 | if (packedBool_.Count != 0) {
|
| 6412 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6413 | }
|
| 6414 | packedBoolMemoizedSerializedSize = dataSize;
|
| 6415 | }
|
| 6416 | {
|
| 6417 | int dataSize = 0;
|
| 6418 | if (packedEnum_.Count > 0) {
|
| 6419 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) {
|
| 6420 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 6421 | }
|
| 6422 | size += dataSize;
|
| 6423 | size += 2;
|
| 6424 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
|
| 6425 | }
|
| 6426 | packedEnumMemoizedSerializedSize = dataSize;
|
| 6427 | }
|
| 6428 | memoizedSerializedSize = size;
|
| 6429 | return size;
|
| 6430 | }
|
| 6431 | }
|
| 6432 |
|
| 6433 | #region Lite runtime methods
|
| 6434 | public override int GetHashCode() {
|
| 6435 | int hash = GetType().GetHashCode();
|
| 6436 | foreach(int i in packedInt32_)
|
| 6437 | hash ^= i.GetHashCode();
|
| 6438 | foreach(long i in packedInt64_)
|
| 6439 | hash ^= i.GetHashCode();
|
| 6440 | foreach(uint i in packedUint32_)
|
| 6441 | hash ^= i.GetHashCode();
|
| 6442 | foreach(ulong i in packedUint64_)
|
| 6443 | hash ^= i.GetHashCode();
|
| 6444 | foreach(int i in packedSint32_)
|
| 6445 | hash ^= i.GetHashCode();
|
| 6446 | foreach(long i in packedSint64_)
|
| 6447 | hash ^= i.GetHashCode();
|
| 6448 | foreach(uint i in packedFixed32_)
|
| 6449 | hash ^= i.GetHashCode();
|
| 6450 | foreach(ulong i in packedFixed64_)
|
| 6451 | hash ^= i.GetHashCode();
|
| 6452 | foreach(int i in packedSfixed32_)
|
| 6453 | hash ^= i.GetHashCode();
|
| 6454 | foreach(long i in packedSfixed64_)
|
| 6455 | hash ^= i.GetHashCode();
|
| 6456 | foreach(float i in packedFloat_)
|
| 6457 | hash ^= i.GetHashCode();
|
| 6458 | foreach(double i in packedDouble_)
|
| 6459 | hash ^= i.GetHashCode();
|
| 6460 | foreach(bool i in packedBool_)
|
| 6461 | hash ^= i.GetHashCode();
|
| 6462 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
|
| 6463 | hash ^= i.GetHashCode();
|
| 6464 | return hash;
|
| 6465 | }
|
| 6466 |
|
| 6467 | public override bool Equals(object obj) {
|
| 6468 | TestPackedTypesLite other = obj as TestPackedTypesLite;
|
| 6469 | if (other == null) return false;
|
| 6470 | if(packedInt32_.Count != other.packedInt32_.Count) return false;
|
| 6471 | for(int ix=0; ix < packedInt32_.Count; ix++)
|
| 6472 | if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
|
| 6473 | if(packedInt64_.Count != other.packedInt64_.Count) return false;
|
| 6474 | for(int ix=0; ix < packedInt64_.Count; ix++)
|
| 6475 | if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
|
| 6476 | if(packedUint32_.Count != other.packedUint32_.Count) return false;
|
| 6477 | for(int ix=0; ix < packedUint32_.Count; ix++)
|
| 6478 | if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
|
| 6479 | if(packedUint64_.Count != other.packedUint64_.Count) return false;
|
| 6480 | for(int ix=0; ix < packedUint64_.Count; ix++)
|
| 6481 | if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
|
| 6482 | if(packedSint32_.Count != other.packedSint32_.Count) return false;
|
| 6483 | for(int ix=0; ix < packedSint32_.Count; ix++)
|
| 6484 | if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
|
| 6485 | if(packedSint64_.Count != other.packedSint64_.Count) return false;
|
| 6486 | for(int ix=0; ix < packedSint64_.Count; ix++)
|
| 6487 | if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
|
| 6488 | if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
|
| 6489 | for(int ix=0; ix < packedFixed32_.Count; ix++)
|
| 6490 | if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
|
| 6491 | if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
|
| 6492 | for(int ix=0; ix < packedFixed64_.Count; ix++)
|
| 6493 | if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
|
| 6494 | if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
|
| 6495 | for(int ix=0; ix < packedSfixed32_.Count; ix++)
|
| 6496 | if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
|
| 6497 | if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
|
| 6498 | for(int ix=0; ix < packedSfixed64_.Count; ix++)
|
| 6499 | if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
|
| 6500 | if(packedFloat_.Count != other.packedFloat_.Count) return false;
|
| 6501 | for(int ix=0; ix < packedFloat_.Count; ix++)
|
| 6502 | if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
|
| 6503 | if(packedDouble_.Count != other.packedDouble_.Count) return false;
|
| 6504 | for(int ix=0; ix < packedDouble_.Count; ix++)
|
| 6505 | if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
|
| 6506 | if(packedBool_.Count != other.packedBool_.Count) return false;
|
| 6507 | for(int ix=0; ix < packedBool_.Count; ix++)
|
| 6508 | if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
|
| 6509 | if(packedEnum_.Count != other.packedEnum_.Count) return false;
|
| 6510 | for(int ix=0; ix < packedEnum_.Count; ix++)
|
| 6511 | if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
|
| 6512 | return true;
|
| 6513 | }
|
| 6514 |
|
| 6515 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 6516 | PrintField("packed_int32", packedInt32_, writer);
|
| 6517 | PrintField("packed_int64", packedInt64_, writer);
|
| 6518 | PrintField("packed_uint32", packedUint32_, writer);
|
| 6519 | PrintField("packed_uint64", packedUint64_, writer);
|
| 6520 | PrintField("packed_sint32", packedSint32_, writer);
|
| 6521 | PrintField("packed_sint64", packedSint64_, writer);
|
| 6522 | PrintField("packed_fixed32", packedFixed32_, writer);
|
| 6523 | PrintField("packed_fixed64", packedFixed64_, writer);
|
| 6524 | PrintField("packed_sfixed32", packedSfixed32_, writer);
|
| 6525 | PrintField("packed_sfixed64", packedSfixed64_, writer);
|
| 6526 | PrintField("packed_float", packedFloat_, writer);
|
| 6527 | PrintField("packed_double", packedDouble_, writer);
|
| 6528 | PrintField("packed_bool", packedBool_, writer);
|
| 6529 | PrintField("packed_enum", packedEnum_, writer);
|
| 6530 | }
|
| 6531 | #endregion
|
| 6532 |
|
| 6533 | public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
|
| 6534 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6535 | }
|
| 6536 | public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 6537 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6538 | }
|
| 6539 | public static TestPackedTypesLite ParseFrom(byte[] data) {
|
| 6540 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6541 | }
|
| 6542 | public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 6543 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6544 | }
|
| 6545 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 6546 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6547 | }
|
| 6548 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6549 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6550 | }
|
| 6551 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 6552 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 6553 | }
|
| 6554 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6555 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 6556 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6557 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6558 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6559 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6560 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6561 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6562 | }
|
| 6563 | public static Builder CreateBuilder() { return new Builder(); }
|
| 6564 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 6565 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 6566 | public static Builder CreateBuilder(TestPackedTypesLite prototype) {
|
| 6567 | return (Builder) new Builder().MergeFrom(prototype);
|
| 6568 | }
|
| 6569 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6570 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6571 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6572 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6573 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
|
| 6574 | protected override Builder ThisBuilder {
|
| 6575 | get { return this; }
|
| 6576 | }
|
| 6577 | public Builder() {}
|
| 6578 |
|
| 6579 | TestPackedTypesLite result = new TestPackedTypesLite();
|
| 6580 |
|
| 6581 | protected override TestPackedTypesLite MessageBeingBuilt {
|
| 6582 | get { return result; }
|
| 6583 | }
|
| 6584 |
|
| 6585 | public override Builder Clear() {
|
| 6586 | result = new TestPackedTypesLite();
|
| 6587 | return this;
|
| 6588 | }
|
| 6589 |
|
| 6590 | public override Builder Clone() {
|
| 6591 | return new Builder().MergeFrom(result);
|
| 6592 | }
|
| 6593 |
|
| 6594 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6595 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
|
| 6596 | }
|
| 6597 |
|
| 6598 | public override TestPackedTypesLite BuildPartial() {
|
| 6599 | if (result == null) {
|
| 6600 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 6601 | }
|
| 6602 | result.packedInt32_.MakeReadOnly();
|
| 6603 | result.packedInt64_.MakeReadOnly();
|
| 6604 | result.packedUint32_.MakeReadOnly();
|
| 6605 | result.packedUint64_.MakeReadOnly();
|
| 6606 | result.packedSint32_.MakeReadOnly();
|
| 6607 | result.packedSint64_.MakeReadOnly();
|
| 6608 | result.packedFixed32_.MakeReadOnly();
|
| 6609 | result.packedFixed64_.MakeReadOnly();
|
| 6610 | result.packedSfixed32_.MakeReadOnly();
|
| 6611 | result.packedSfixed64_.MakeReadOnly();
|
| 6612 | result.packedFloat_.MakeReadOnly();
|
| 6613 | result.packedDouble_.MakeReadOnly();
|
| 6614 | result.packedBool_.MakeReadOnly();
|
| 6615 | result.packedEnum_.MakeReadOnly();
|
| 6616 | TestPackedTypesLite returnMe = result;
|
| 6617 | result = null;
|
| 6618 | return returnMe;
|
| 6619 | }
|
| 6620 |
|
| 6621 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 6622 | if (other is TestPackedTypesLite) {
|
| 6623 | return MergeFrom((TestPackedTypesLite) other);
|
| 6624 | } else {
|
| 6625 | base.MergeFrom(other);
|
| 6626 | return this;
|
| 6627 | }
|
| 6628 | }
|
| 6629 |
|
| 6630 | public override Builder MergeFrom(TestPackedTypesLite other) {
|
| 6631 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this;
|
| 6632 | if (other.packedInt32_.Count != 0) {
|
| 6633 | base.AddRange(other.packedInt32_, result.packedInt32_);
|
| 6634 | }
|
| 6635 | if (other.packedInt64_.Count != 0) {
|
| 6636 | base.AddRange(other.packedInt64_, result.packedInt64_);
|
| 6637 | }
|
| 6638 | if (other.packedUint32_.Count != 0) {
|
| 6639 | base.AddRange(other.packedUint32_, result.packedUint32_);
|
| 6640 | }
|
| 6641 | if (other.packedUint64_.Count != 0) {
|
| 6642 | base.AddRange(other.packedUint64_, result.packedUint64_);
|
| 6643 | }
|
| 6644 | if (other.packedSint32_.Count != 0) {
|
| 6645 | base.AddRange(other.packedSint32_, result.packedSint32_);
|
| 6646 | }
|
| 6647 | if (other.packedSint64_.Count != 0) {
|
| 6648 | base.AddRange(other.packedSint64_, result.packedSint64_);
|
| 6649 | }
|
| 6650 | if (other.packedFixed32_.Count != 0) {
|
| 6651 | base.AddRange(other.packedFixed32_, result.packedFixed32_);
|
| 6652 | }
|
| 6653 | if (other.packedFixed64_.Count != 0) {
|
| 6654 | base.AddRange(other.packedFixed64_, result.packedFixed64_);
|
| 6655 | }
|
| 6656 | if (other.packedSfixed32_.Count != 0) {
|
| 6657 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
|
| 6658 | }
|
| 6659 | if (other.packedSfixed64_.Count != 0) {
|
| 6660 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
|
| 6661 | }
|
| 6662 | if (other.packedFloat_.Count != 0) {
|
| 6663 | base.AddRange(other.packedFloat_, result.packedFloat_);
|
| 6664 | }
|
| 6665 | if (other.packedDouble_.Count != 0) {
|
| 6666 | base.AddRange(other.packedDouble_, result.packedDouble_);
|
| 6667 | }
|
| 6668 | if (other.packedBool_.Count != 0) {
|
| 6669 | base.AddRange(other.packedBool_, result.packedBool_);
|
| 6670 | }
|
| 6671 | if (other.packedEnum_.Count != 0) {
|
| 6672 | base.AddRange(other.packedEnum_, result.packedEnum_);
|
| 6673 | }
|
| 6674 | return this;
|
| 6675 | }
|
| 6676 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6677 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6678 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 6679 | }
|
| 6680 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6681 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6682 | uint tag;
|
| 6683 | string field_name;
|
| 6684 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6685 | if(tag == 0 && field_name != null) {
|
| 6686 | int field_ordinal = global::System.Array.BinarySearch(_testPackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 6687 | if(field_ordinal >= 0)
|
| 6688 | tag = _testPackedTypesLiteFieldTags[field_ordinal];
|
| 6689 | else {
|
| 6690 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 6691 | continue;
|
| 6692 | }
|
| 6693 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6694 | switch (tag) {
|
| 6695 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 6696 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6697 | }
|
| 6698 | default: {
|
| 6699 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 6700 | return this;
|
| 6701 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6702 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6703 | break;
|
| 6704 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6705 | case 722:
|
| 6706 | case 720: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6707 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6708 | break;
|
| 6709 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6710 | case 730:
|
| 6711 | case 728: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6712 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6713 | break;
|
| 6714 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6715 | case 738:
|
| 6716 | case 736: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6717 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6718 | break;
|
| 6719 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6720 | case 746:
|
| 6721 | case 744: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6722 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6723 | break;
|
| 6724 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6725 | case 754:
|
| 6726 | case 752: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6727 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6728 | break;
|
| 6729 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6730 | case 762:
|
| 6731 | case 760: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6732 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6733 | break;
|
| 6734 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6735 | case 770:
|
| 6736 | case 773: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6737 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6738 | break;
|
| 6739 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6740 | case 778:
|
| 6741 | case 777: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6742 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6743 | break;
|
| 6744 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6745 | case 786:
|
| 6746 | case 789: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6747 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6748 | break;
|
| 6749 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6750 | case 794:
|
| 6751 | case 793: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6752 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6753 | break;
|
| 6754 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6755 | case 802:
|
| 6756 | case 805: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6757 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6758 | break;
|
| 6759 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6760 | case 810:
|
| 6761 | case 809: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6762 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6763 | break;
|
| 6764 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6765 | case 818:
|
| 6766 | case 816: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6767 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6768 | break;
|
| 6769 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6770 | case 826:
|
| 6771 | case 824: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6772 | scg::ICollection<object> unknownItems;
|
| 6773 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.packedEnum_, out unknownItems);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6774 | break;
|
| 6775 | }
|
| 6776 | }
|
| 6777 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6778 |
|
| 6779 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6780 | }
|
| 6781 |
|
| 6782 |
|
| 6783 | public pbc::IPopsicleList<int> PackedInt32List {
|
| 6784 | get { return result.packedInt32_; }
|
| 6785 | }
|
| 6786 | public int PackedInt32Count {
|
| 6787 | get { return result.PackedInt32Count; }
|
| 6788 | }
|
| 6789 | public int GetPackedInt32(int index) {
|
| 6790 | return result.GetPackedInt32(index);
|
| 6791 | }
|
| 6792 | public Builder SetPackedInt32(int index, int value) {
|
| 6793 | result.packedInt32_[index] = value;
|
| 6794 | return this;
|
| 6795 | }
|
| 6796 | public Builder AddPackedInt32(int value) {
|
| 6797 | result.packedInt32_.Add(value);
|
| 6798 | return this;
|
| 6799 | }
|
| 6800 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
|
| 6801 | base.AddRange(values, result.packedInt32_);
|
| 6802 | return this;
|
| 6803 | }
|
| 6804 | public Builder ClearPackedInt32() {
|
| 6805 | result.packedInt32_.Clear();
|
| 6806 | return this;
|
| 6807 | }
|
| 6808 |
|
| 6809 | public pbc::IPopsicleList<long> PackedInt64List {
|
| 6810 | get { return result.packedInt64_; }
|
| 6811 | }
|
| 6812 | public int PackedInt64Count {
|
| 6813 | get { return result.PackedInt64Count; }
|
| 6814 | }
|
| 6815 | public long GetPackedInt64(int index) {
|
| 6816 | return result.GetPackedInt64(index);
|
| 6817 | }
|
| 6818 | public Builder SetPackedInt64(int index, long value) {
|
| 6819 | result.packedInt64_[index] = value;
|
| 6820 | return this;
|
| 6821 | }
|
| 6822 | public Builder AddPackedInt64(long value) {
|
| 6823 | result.packedInt64_.Add(value);
|
| 6824 | return this;
|
| 6825 | }
|
| 6826 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
|
| 6827 | base.AddRange(values, result.packedInt64_);
|
| 6828 | return this;
|
| 6829 | }
|
| 6830 | public Builder ClearPackedInt64() {
|
| 6831 | result.packedInt64_.Clear();
|
| 6832 | return this;
|
| 6833 | }
|
| 6834 |
|
| 6835 | [global::System.CLSCompliant(false)]
|
| 6836 | public pbc::IPopsicleList<uint> PackedUint32List {
|
| 6837 | get { return result.packedUint32_; }
|
| 6838 | }
|
| 6839 | public int PackedUint32Count {
|
| 6840 | get { return result.PackedUint32Count; }
|
| 6841 | }
|
| 6842 | [global::System.CLSCompliant(false)]
|
| 6843 | public uint GetPackedUint32(int index) {
|
| 6844 | return result.GetPackedUint32(index);
|
| 6845 | }
|
| 6846 | [global::System.CLSCompliant(false)]
|
| 6847 | public Builder SetPackedUint32(int index, uint value) {
|
| 6848 | result.packedUint32_[index] = value;
|
| 6849 | return this;
|
| 6850 | }
|
| 6851 | [global::System.CLSCompliant(false)]
|
| 6852 | public Builder AddPackedUint32(uint value) {
|
| 6853 | result.packedUint32_.Add(value);
|
| 6854 | return this;
|
| 6855 | }
|
| 6856 | [global::System.CLSCompliant(false)]
|
| 6857 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
|
| 6858 | base.AddRange(values, result.packedUint32_);
|
| 6859 | return this;
|
| 6860 | }
|
| 6861 | public Builder ClearPackedUint32() {
|
| 6862 | result.packedUint32_.Clear();
|
| 6863 | return this;
|
| 6864 | }
|
| 6865 |
|
| 6866 | [global::System.CLSCompliant(false)]
|
| 6867 | public pbc::IPopsicleList<ulong> PackedUint64List {
|
| 6868 | get { return result.packedUint64_; }
|
| 6869 | }
|
| 6870 | public int PackedUint64Count {
|
| 6871 | get { return result.PackedUint64Count; }
|
| 6872 | }
|
| 6873 | [global::System.CLSCompliant(false)]
|
| 6874 | public ulong GetPackedUint64(int index) {
|
| 6875 | return result.GetPackedUint64(index);
|
| 6876 | }
|
| 6877 | [global::System.CLSCompliant(false)]
|
| 6878 | public Builder SetPackedUint64(int index, ulong value) {
|
| 6879 | result.packedUint64_[index] = value;
|
| 6880 | return this;
|
| 6881 | }
|
| 6882 | [global::System.CLSCompliant(false)]
|
| 6883 | public Builder AddPackedUint64(ulong value) {
|
| 6884 | result.packedUint64_.Add(value);
|
| 6885 | return this;
|
| 6886 | }
|
| 6887 | [global::System.CLSCompliant(false)]
|
| 6888 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
|
| 6889 | base.AddRange(values, result.packedUint64_);
|
| 6890 | return this;
|
| 6891 | }
|
| 6892 | public Builder ClearPackedUint64() {
|
| 6893 | result.packedUint64_.Clear();
|
| 6894 | return this;
|
| 6895 | }
|
| 6896 |
|
| 6897 | public pbc::IPopsicleList<int> PackedSint32List {
|
| 6898 | get { return result.packedSint32_; }
|
| 6899 | }
|
| 6900 | public int PackedSint32Count {
|
| 6901 | get { return result.PackedSint32Count; }
|
| 6902 | }
|
| 6903 | public int GetPackedSint32(int index) {
|
| 6904 | return result.GetPackedSint32(index);
|
| 6905 | }
|
| 6906 | public Builder SetPackedSint32(int index, int value) {
|
| 6907 | result.packedSint32_[index] = value;
|
| 6908 | return this;
|
| 6909 | }
|
| 6910 | public Builder AddPackedSint32(int value) {
|
| 6911 | result.packedSint32_.Add(value);
|
| 6912 | return this;
|
| 6913 | }
|
| 6914 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
|
| 6915 | base.AddRange(values, result.packedSint32_);
|
| 6916 | return this;
|
| 6917 | }
|
| 6918 | public Builder ClearPackedSint32() {
|
| 6919 | result.packedSint32_.Clear();
|
| 6920 | return this;
|
| 6921 | }
|
| 6922 |
|
| 6923 | public pbc::IPopsicleList<long> PackedSint64List {
|
| 6924 | get { return result.packedSint64_; }
|
| 6925 | }
|
| 6926 | public int PackedSint64Count {
|
| 6927 | get { return result.PackedSint64Count; }
|
| 6928 | }
|
| 6929 | public long GetPackedSint64(int index) {
|
| 6930 | return result.GetPackedSint64(index);
|
| 6931 | }
|
| 6932 | public Builder SetPackedSint64(int index, long value) {
|
| 6933 | result.packedSint64_[index] = value;
|
| 6934 | return this;
|
| 6935 | }
|
| 6936 | public Builder AddPackedSint64(long value) {
|
| 6937 | result.packedSint64_.Add(value);
|
| 6938 | return this;
|
| 6939 | }
|
| 6940 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
|
| 6941 | base.AddRange(values, result.packedSint64_);
|
| 6942 | return this;
|
| 6943 | }
|
| 6944 | public Builder ClearPackedSint64() {
|
| 6945 | result.packedSint64_.Clear();
|
| 6946 | return this;
|
| 6947 | }
|
| 6948 |
|
| 6949 | [global::System.CLSCompliant(false)]
|
| 6950 | public pbc::IPopsicleList<uint> PackedFixed32List {
|
| 6951 | get { return result.packedFixed32_; }
|
| 6952 | }
|
| 6953 | public int PackedFixed32Count {
|
| 6954 | get { return result.PackedFixed32Count; }
|
| 6955 | }
|
| 6956 | [global::System.CLSCompliant(false)]
|
| 6957 | public uint GetPackedFixed32(int index) {
|
| 6958 | return result.GetPackedFixed32(index);
|
| 6959 | }
|
| 6960 | [global::System.CLSCompliant(false)]
|
| 6961 | public Builder SetPackedFixed32(int index, uint value) {
|
| 6962 | result.packedFixed32_[index] = value;
|
| 6963 | return this;
|
| 6964 | }
|
| 6965 | [global::System.CLSCompliant(false)]
|
| 6966 | public Builder AddPackedFixed32(uint value) {
|
| 6967 | result.packedFixed32_.Add(value);
|
| 6968 | return this;
|
| 6969 | }
|
| 6970 | [global::System.CLSCompliant(false)]
|
| 6971 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
|
| 6972 | base.AddRange(values, result.packedFixed32_);
|
| 6973 | return this;
|
| 6974 | }
|
| 6975 | public Builder ClearPackedFixed32() {
|
| 6976 | result.packedFixed32_.Clear();
|
| 6977 | return this;
|
| 6978 | }
|
| 6979 |
|
| 6980 | [global::System.CLSCompliant(false)]
|
| 6981 | public pbc::IPopsicleList<ulong> PackedFixed64List {
|
| 6982 | get { return result.packedFixed64_; }
|
| 6983 | }
|
| 6984 | public int PackedFixed64Count {
|
| 6985 | get { return result.PackedFixed64Count; }
|
| 6986 | }
|
| 6987 | [global::System.CLSCompliant(false)]
|
| 6988 | public ulong GetPackedFixed64(int index) {
|
| 6989 | return result.GetPackedFixed64(index);
|
| 6990 | }
|
| 6991 | [global::System.CLSCompliant(false)]
|
| 6992 | public Builder SetPackedFixed64(int index, ulong value) {
|
| 6993 | result.packedFixed64_[index] = value;
|
| 6994 | return this;
|
| 6995 | }
|
| 6996 | [global::System.CLSCompliant(false)]
|
| 6997 | public Builder AddPackedFixed64(ulong value) {
|
| 6998 | result.packedFixed64_.Add(value);
|
| 6999 | return this;
|
| 7000 | }
|
| 7001 | [global::System.CLSCompliant(false)]
|
| 7002 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
|
| 7003 | base.AddRange(values, result.packedFixed64_);
|
| 7004 | return this;
|
| 7005 | }
|
| 7006 | public Builder ClearPackedFixed64() {
|
| 7007 | result.packedFixed64_.Clear();
|
| 7008 | return this;
|
| 7009 | }
|
| 7010 |
|
| 7011 | public pbc::IPopsicleList<int> PackedSfixed32List {
|
| 7012 | get { return result.packedSfixed32_; }
|
| 7013 | }
|
| 7014 | public int PackedSfixed32Count {
|
| 7015 | get { return result.PackedSfixed32Count; }
|
| 7016 | }
|
| 7017 | public int GetPackedSfixed32(int index) {
|
| 7018 | return result.GetPackedSfixed32(index);
|
| 7019 | }
|
| 7020 | public Builder SetPackedSfixed32(int index, int value) {
|
| 7021 | result.packedSfixed32_[index] = value;
|
| 7022 | return this;
|
| 7023 | }
|
| 7024 | public Builder AddPackedSfixed32(int value) {
|
| 7025 | result.packedSfixed32_.Add(value);
|
| 7026 | return this;
|
| 7027 | }
|
| 7028 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
|
| 7029 | base.AddRange(values, result.packedSfixed32_);
|
| 7030 | return this;
|
| 7031 | }
|
| 7032 | public Builder ClearPackedSfixed32() {
|
| 7033 | result.packedSfixed32_.Clear();
|
| 7034 | return this;
|
| 7035 | }
|
| 7036 |
|
| 7037 | public pbc::IPopsicleList<long> PackedSfixed64List {
|
| 7038 | get { return result.packedSfixed64_; }
|
| 7039 | }
|
| 7040 | public int PackedSfixed64Count {
|
| 7041 | get { return result.PackedSfixed64Count; }
|
| 7042 | }
|
| 7043 | public long GetPackedSfixed64(int index) {
|
| 7044 | return result.GetPackedSfixed64(index);
|
| 7045 | }
|
| 7046 | public Builder SetPackedSfixed64(int index, long value) {
|
| 7047 | result.packedSfixed64_[index] = value;
|
| 7048 | return this;
|
| 7049 | }
|
| 7050 | public Builder AddPackedSfixed64(long value) {
|
| 7051 | result.packedSfixed64_.Add(value);
|
| 7052 | return this;
|
| 7053 | }
|
| 7054 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
|
| 7055 | base.AddRange(values, result.packedSfixed64_);
|
| 7056 | return this;
|
| 7057 | }
|
| 7058 | public Builder ClearPackedSfixed64() {
|
| 7059 | result.packedSfixed64_.Clear();
|
| 7060 | return this;
|
| 7061 | }
|
| 7062 |
|
| 7063 | public pbc::IPopsicleList<float> PackedFloatList {
|
| 7064 | get { return result.packedFloat_; }
|
| 7065 | }
|
| 7066 | public int PackedFloatCount {
|
| 7067 | get { return result.PackedFloatCount; }
|
| 7068 | }
|
| 7069 | public float GetPackedFloat(int index) {
|
| 7070 | return result.GetPackedFloat(index);
|
| 7071 | }
|
| 7072 | public Builder SetPackedFloat(int index, float value) {
|
| 7073 | result.packedFloat_[index] = value;
|
| 7074 | return this;
|
| 7075 | }
|
| 7076 | public Builder AddPackedFloat(float value) {
|
| 7077 | result.packedFloat_.Add(value);
|
| 7078 | return this;
|
| 7079 | }
|
| 7080 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
|
| 7081 | base.AddRange(values, result.packedFloat_);
|
| 7082 | return this;
|
| 7083 | }
|
| 7084 | public Builder ClearPackedFloat() {
|
| 7085 | result.packedFloat_.Clear();
|
| 7086 | return this;
|
| 7087 | }
|
| 7088 |
|
| 7089 | public pbc::IPopsicleList<double> PackedDoubleList {
|
| 7090 | get { return result.packedDouble_; }
|
| 7091 | }
|
| 7092 | public int PackedDoubleCount {
|
| 7093 | get { return result.PackedDoubleCount; }
|
| 7094 | }
|
| 7095 | public double GetPackedDouble(int index) {
|
| 7096 | return result.GetPackedDouble(index);
|
| 7097 | }
|
| 7098 | public Builder SetPackedDouble(int index, double value) {
|
| 7099 | result.packedDouble_[index] = value;
|
| 7100 | return this;
|
| 7101 | }
|
| 7102 | public Builder AddPackedDouble(double value) {
|
| 7103 | result.packedDouble_.Add(value);
|
| 7104 | return this;
|
| 7105 | }
|
| 7106 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
|
| 7107 | base.AddRange(values, result.packedDouble_);
|
| 7108 | return this;
|
| 7109 | }
|
| 7110 | public Builder ClearPackedDouble() {
|
| 7111 | result.packedDouble_.Clear();
|
| 7112 | return this;
|
| 7113 | }
|
| 7114 |
|
| 7115 | public pbc::IPopsicleList<bool> PackedBoolList {
|
| 7116 | get { return result.packedBool_; }
|
| 7117 | }
|
| 7118 | public int PackedBoolCount {
|
| 7119 | get { return result.PackedBoolCount; }
|
| 7120 | }
|
| 7121 | public bool GetPackedBool(int index) {
|
| 7122 | return result.GetPackedBool(index);
|
| 7123 | }
|
| 7124 | public Builder SetPackedBool(int index, bool value) {
|
| 7125 | result.packedBool_[index] = value;
|
| 7126 | return this;
|
| 7127 | }
|
| 7128 | public Builder AddPackedBool(bool value) {
|
| 7129 | result.packedBool_.Add(value);
|
| 7130 | return this;
|
| 7131 | }
|
| 7132 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
|
| 7133 | base.AddRange(values, result.packedBool_);
|
| 7134 | return this;
|
| 7135 | }
|
| 7136 | public Builder ClearPackedBool() {
|
| 7137 | result.packedBool_.Clear();
|
| 7138 | return this;
|
| 7139 | }
|
| 7140 |
|
| 7141 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 7142 | get { return result.packedEnum_; }
|
| 7143 | }
|
| 7144 | public int PackedEnumCount {
|
| 7145 | get { return result.PackedEnumCount; }
|
| 7146 | }
|
| 7147 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 7148 | return result.GetPackedEnum(index);
|
| 7149 | }
|
| 7150 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7151 | result.packedEnum_[index] = value;
|
| 7152 | return this;
|
| 7153 | }
|
| 7154 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7155 | result.packedEnum_.Add(value);
|
| 7156 | return this;
|
| 7157 | }
|
| 7158 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 7159 | base.AddRange(values, result.packedEnum_);
|
| 7160 | return this;
|
| 7161 | }
|
| 7162 | public Builder ClearPackedEnum() {
|
| 7163 | result.packedEnum_.Clear();
|
| 7164 | return this;
|
| 7165 | }
|
| 7166 | }
|
| 7167 | static TestPackedTypesLite() {
|
| 7168 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7169 | }
|
| 7170 | }
|
| 7171 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7172 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7173 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7174 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7175 | public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
|
| 7176 | private static readonly TestUnpackedTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7177 | private static readonly string[] _testUnpackedTypesLiteFieldNames = new string[] { "unpacked_bool", "unpacked_double", "unpacked_enum", "unpacked_fixed32", "unpacked_fixed64", "unpacked_float", "unpacked_int32", "unpacked_int64", "unpacked_sfixed32", "unpacked_sfixed64", "unpacked_sint32", "unpacked_sint64", "unpacked_uint32", "unpacked_uint64" };
|
| 7178 | private static readonly uint[] _testUnpackedTypesLiteFieldTags = new uint[] { 816, 809, 824, 773, 777, 805, 720, 728, 789, 793, 752, 760, 736, 744 };
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7179 | public static TestUnpackedTypesLite DefaultInstance {
|
| 7180 | get { return defaultInstance; }
|
| 7181 | }
|
| 7182 |
|
| 7183 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7184 | get { return defaultInstance; }
|
| 7185 | }
|
| 7186 |
|
| 7187 | protected override TestUnpackedTypesLite ThisMessage {
|
| 7188 | get { return this; }
|
| 7189 | }
|
| 7190 |
|
| 7191 | public const int UnpackedInt32FieldNumber = 90;
|
| 7192 | private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
|
| 7193 | public scg::IList<int> UnpackedInt32List {
|
| 7194 | get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
|
| 7195 | }
|
| 7196 | public int UnpackedInt32Count {
|
| 7197 | get { return unpackedInt32_.Count; }
|
| 7198 | }
|
| 7199 | public int GetUnpackedInt32(int index) {
|
| 7200 | return unpackedInt32_[index];
|
| 7201 | }
|
| 7202 |
|
| 7203 | public const int UnpackedInt64FieldNumber = 91;
|
| 7204 | private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
|
| 7205 | public scg::IList<long> UnpackedInt64List {
|
| 7206 | get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
|
| 7207 | }
|
| 7208 | public int UnpackedInt64Count {
|
| 7209 | get { return unpackedInt64_.Count; }
|
| 7210 | }
|
| 7211 | public long GetUnpackedInt64(int index) {
|
| 7212 | return unpackedInt64_[index];
|
| 7213 | }
|
| 7214 |
|
| 7215 | public const int UnpackedUint32FieldNumber = 92;
|
| 7216 | private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
|
| 7217 | [global::System.CLSCompliant(false)]
|
| 7218 | public scg::IList<uint> UnpackedUint32List {
|
| 7219 | get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
|
| 7220 | }
|
| 7221 | public int UnpackedUint32Count {
|
| 7222 | get { return unpackedUint32_.Count; }
|
| 7223 | }
|
| 7224 | [global::System.CLSCompliant(false)]
|
| 7225 | public uint GetUnpackedUint32(int index) {
|
| 7226 | return unpackedUint32_[index];
|
| 7227 | }
|
| 7228 |
|
| 7229 | public const int UnpackedUint64FieldNumber = 93;
|
| 7230 | private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
|
| 7231 | [global::System.CLSCompliant(false)]
|
| 7232 | public scg::IList<ulong> UnpackedUint64List {
|
| 7233 | get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
|
| 7234 | }
|
| 7235 | public int UnpackedUint64Count {
|
| 7236 | get { return unpackedUint64_.Count; }
|
| 7237 | }
|
| 7238 | [global::System.CLSCompliant(false)]
|
| 7239 | public ulong GetUnpackedUint64(int index) {
|
| 7240 | return unpackedUint64_[index];
|
| 7241 | }
|
| 7242 |
|
| 7243 | public const int UnpackedSint32FieldNumber = 94;
|
| 7244 | private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
|
| 7245 | public scg::IList<int> UnpackedSint32List {
|
| 7246 | get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
|
| 7247 | }
|
| 7248 | public int UnpackedSint32Count {
|
| 7249 | get { return unpackedSint32_.Count; }
|
| 7250 | }
|
| 7251 | public int GetUnpackedSint32(int index) {
|
| 7252 | return unpackedSint32_[index];
|
| 7253 | }
|
| 7254 |
|
| 7255 | public const int UnpackedSint64FieldNumber = 95;
|
| 7256 | private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
|
| 7257 | public scg::IList<long> UnpackedSint64List {
|
| 7258 | get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
|
| 7259 | }
|
| 7260 | public int UnpackedSint64Count {
|
| 7261 | get { return unpackedSint64_.Count; }
|
| 7262 | }
|
| 7263 | public long GetUnpackedSint64(int index) {
|
| 7264 | return unpackedSint64_[index];
|
| 7265 | }
|
| 7266 |
|
| 7267 | public const int UnpackedFixed32FieldNumber = 96;
|
| 7268 | private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
|
| 7269 | [global::System.CLSCompliant(false)]
|
| 7270 | public scg::IList<uint> UnpackedFixed32List {
|
| 7271 | get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
|
| 7272 | }
|
| 7273 | public int UnpackedFixed32Count {
|
| 7274 | get { return unpackedFixed32_.Count; }
|
| 7275 | }
|
| 7276 | [global::System.CLSCompliant(false)]
|
| 7277 | public uint GetUnpackedFixed32(int index) {
|
| 7278 | return unpackedFixed32_[index];
|
| 7279 | }
|
| 7280 |
|
| 7281 | public const int UnpackedFixed64FieldNumber = 97;
|
| 7282 | private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 7283 | [global::System.CLSCompliant(false)]
|
| 7284 | public scg::IList<ulong> UnpackedFixed64List {
|
| 7285 | get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
|
| 7286 | }
|
| 7287 | public int UnpackedFixed64Count {
|
| 7288 | get { return unpackedFixed64_.Count; }
|
| 7289 | }
|
| 7290 | [global::System.CLSCompliant(false)]
|
| 7291 | public ulong GetUnpackedFixed64(int index) {
|
| 7292 | return unpackedFixed64_[index];
|
| 7293 | }
|
| 7294 |
|
| 7295 | public const int UnpackedSfixed32FieldNumber = 98;
|
| 7296 | private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
|
| 7297 | public scg::IList<int> UnpackedSfixed32List {
|
| 7298 | get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
|
| 7299 | }
|
| 7300 | public int UnpackedSfixed32Count {
|
| 7301 | get { return unpackedSfixed32_.Count; }
|
| 7302 | }
|
| 7303 | public int GetUnpackedSfixed32(int index) {
|
| 7304 | return unpackedSfixed32_[index];
|
| 7305 | }
|
| 7306 |
|
| 7307 | public const int UnpackedSfixed64FieldNumber = 99;
|
| 7308 | private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
|
| 7309 | public scg::IList<long> UnpackedSfixed64List {
|
| 7310 | get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
|
| 7311 | }
|
| 7312 | public int UnpackedSfixed64Count {
|
| 7313 | get { return unpackedSfixed64_.Count; }
|
| 7314 | }
|
| 7315 | public long GetUnpackedSfixed64(int index) {
|
| 7316 | return unpackedSfixed64_[index];
|
| 7317 | }
|
| 7318 |
|
| 7319 | public const int UnpackedFloatFieldNumber = 100;
|
| 7320 | private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
|
| 7321 | public scg::IList<float> UnpackedFloatList {
|
| 7322 | get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
|
| 7323 | }
|
| 7324 | public int UnpackedFloatCount {
|
| 7325 | get { return unpackedFloat_.Count; }
|
| 7326 | }
|
| 7327 | public float GetUnpackedFloat(int index) {
|
| 7328 | return unpackedFloat_[index];
|
| 7329 | }
|
| 7330 |
|
| 7331 | public const int UnpackedDoubleFieldNumber = 101;
|
| 7332 | private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
|
| 7333 | public scg::IList<double> UnpackedDoubleList {
|
| 7334 | get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
|
| 7335 | }
|
| 7336 | public int UnpackedDoubleCount {
|
| 7337 | get { return unpackedDouble_.Count; }
|
| 7338 | }
|
| 7339 | public double GetUnpackedDouble(int index) {
|
| 7340 | return unpackedDouble_[index];
|
| 7341 | }
|
| 7342 |
|
| 7343 | public const int UnpackedBoolFieldNumber = 102;
|
| 7344 | private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
|
| 7345 | public scg::IList<bool> UnpackedBoolList {
|
| 7346 | get { return pbc::Lists.AsReadOnly(unpackedBool_); }
|
| 7347 | }
|
| 7348 | public int UnpackedBoolCount {
|
| 7349 | get { return unpackedBool_.Count; }
|
| 7350 | }
|
| 7351 | public bool GetUnpackedBool(int index) {
|
| 7352 | return unpackedBool_[index];
|
| 7353 | }
|
| 7354 |
|
| 7355 | public const int UnpackedEnumFieldNumber = 103;
|
| 7356 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 7357 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 7358 | get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
|
| 7359 | }
|
| 7360 | public int UnpackedEnumCount {
|
| 7361 | get { return unpackedEnum_.Count; }
|
| 7362 | }
|
| 7363 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 7364 | return unpackedEnum_[index];
|
| 7365 | }
|
| 7366 |
|
| 7367 | public override bool IsInitialized {
|
| 7368 | get {
|
| 7369 | return true;
|
| 7370 | }
|
| 7371 | }
|
| 7372 |
|
| 7373 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 7374 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7375 | string[] field_names = _testUnpackedTypesLiteFieldNames;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7376 | if (unpackedInt32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7377 | output.WriteArray(pbd::FieldType.Int32, 90, field_names[6], unpackedInt32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7378 | }
|
| 7379 | if (unpackedInt64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7380 | output.WriteArray(pbd::FieldType.Int64, 91, field_names[7], unpackedInt64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7381 | }
|
| 7382 | if (unpackedUint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7383 | output.WriteArray(pbd::FieldType.UInt32, 92, field_names[12], unpackedUint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7384 | }
|
| 7385 | if (unpackedUint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7386 | output.WriteArray(pbd::FieldType.UInt64, 93, field_names[13], unpackedUint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7387 | }
|
| 7388 | if (unpackedSint32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7389 | output.WriteArray(pbd::FieldType.SInt32, 94, field_names[10], unpackedSint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7390 | }
|
| 7391 | if (unpackedSint64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7392 | output.WriteArray(pbd::FieldType.SInt64, 95, field_names[11], unpackedSint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7393 | }
|
| 7394 | if (unpackedFixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7395 | output.WriteArray(pbd::FieldType.Fixed32, 96, field_names[3], unpackedFixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7396 | }
|
| 7397 | if (unpackedFixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7398 | output.WriteArray(pbd::FieldType.Fixed64, 97, field_names[4], unpackedFixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7399 | }
|
| 7400 | if (unpackedSfixed32_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7401 | output.WriteArray(pbd::FieldType.SFixed32, 98, field_names[8], unpackedSfixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7402 | }
|
| 7403 | if (unpackedSfixed64_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7404 | output.WriteArray(pbd::FieldType.SFixed64, 99, field_names[9], unpackedSfixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7405 | }
|
| 7406 | if (unpackedFloat_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7407 | output.WriteArray(pbd::FieldType.Float, 100, field_names[5], unpackedFloat_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7408 | }
|
| 7409 | if (unpackedDouble_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7410 | output.WriteArray(pbd::FieldType.Double, 101, field_names[1], unpackedDouble_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7411 | }
|
| 7412 | if (unpackedBool_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7413 | output.WriteArray(pbd::FieldType.Bool, 102, field_names[0], unpackedBool_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7414 | }
|
| 7415 | if (unpackedEnum_.Count > 0) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7416 | output.WriteArray(pbd::FieldType.Enum, 103, field_names[2], unpackedEnum_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7417 | }
|
| 7418 | }
|
| 7419 |
|
| 7420 | private int memoizedSerializedSize = -1;
|
| 7421 | public override int SerializedSize {
|
| 7422 | get {
|
| 7423 | int size = memoizedSerializedSize;
|
| 7424 | if (size != -1) return size;
|
| 7425 |
|
| 7426 | size = 0;
|
| 7427 | {
|
| 7428 | int dataSize = 0;
|
| 7429 | foreach (int element in UnpackedInt32List) {
|
| 7430 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 7431 | }
|
| 7432 | size += dataSize;
|
| 7433 | size += 2 * unpackedInt32_.Count;
|
| 7434 | }
|
| 7435 | {
|
| 7436 | int dataSize = 0;
|
| 7437 | foreach (long element in UnpackedInt64List) {
|
| 7438 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 7439 | }
|
| 7440 | size += dataSize;
|
| 7441 | size += 2 * unpackedInt64_.Count;
|
| 7442 | }
|
| 7443 | {
|
| 7444 | int dataSize = 0;
|
| 7445 | foreach (uint element in UnpackedUint32List) {
|
| 7446 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 7447 | }
|
| 7448 | size += dataSize;
|
| 7449 | size += 2 * unpackedUint32_.Count;
|
| 7450 | }
|
| 7451 | {
|
| 7452 | int dataSize = 0;
|
| 7453 | foreach (ulong element in UnpackedUint64List) {
|
| 7454 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 7455 | }
|
| 7456 | size += dataSize;
|
| 7457 | size += 2 * unpackedUint64_.Count;
|
| 7458 | }
|
| 7459 | {
|
| 7460 | int dataSize = 0;
|
| 7461 | foreach (int element in UnpackedSint32List) {
|
| 7462 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 7463 | }
|
| 7464 | size += dataSize;
|
| 7465 | size += 2 * unpackedSint32_.Count;
|
| 7466 | }
|
| 7467 | {
|
| 7468 | int dataSize = 0;
|
| 7469 | foreach (long element in UnpackedSint64List) {
|
| 7470 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 7471 | }
|
| 7472 | size += dataSize;
|
| 7473 | size += 2 * unpackedSint64_.Count;
|
| 7474 | }
|
| 7475 | {
|
| 7476 | int dataSize = 0;
|
| 7477 | dataSize = 4 * unpackedFixed32_.Count;
|
| 7478 | size += dataSize;
|
| 7479 | size += 2 * unpackedFixed32_.Count;
|
| 7480 | }
|
| 7481 | {
|
| 7482 | int dataSize = 0;
|
| 7483 | dataSize = 8 * unpackedFixed64_.Count;
|
| 7484 | size += dataSize;
|
| 7485 | size += 2 * unpackedFixed64_.Count;
|
| 7486 | }
|
| 7487 | {
|
| 7488 | int dataSize = 0;
|
| 7489 | dataSize = 4 * unpackedSfixed32_.Count;
|
| 7490 | size += dataSize;
|
| 7491 | size += 2 * unpackedSfixed32_.Count;
|
| 7492 | }
|
| 7493 | {
|
| 7494 | int dataSize = 0;
|
| 7495 | dataSize = 8 * unpackedSfixed64_.Count;
|
| 7496 | size += dataSize;
|
| 7497 | size += 2 * unpackedSfixed64_.Count;
|
| 7498 | }
|
| 7499 | {
|
| 7500 | int dataSize = 0;
|
| 7501 | dataSize = 4 * unpackedFloat_.Count;
|
| 7502 | size += dataSize;
|
| 7503 | size += 2 * unpackedFloat_.Count;
|
| 7504 | }
|
| 7505 | {
|
| 7506 | int dataSize = 0;
|
| 7507 | dataSize = 8 * unpackedDouble_.Count;
|
| 7508 | size += dataSize;
|
| 7509 | size += 2 * unpackedDouble_.Count;
|
| 7510 | }
|
| 7511 | {
|
| 7512 | int dataSize = 0;
|
| 7513 | dataSize = 1 * unpackedBool_.Count;
|
| 7514 | size += dataSize;
|
| 7515 | size += 2 * unpackedBool_.Count;
|
| 7516 | }
|
| 7517 | {
|
| 7518 | int dataSize = 0;
|
| 7519 | if (unpackedEnum_.Count > 0) {
|
| 7520 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in unpackedEnum_) {
|
| 7521 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 7522 | }
|
| 7523 | size += dataSize;
|
| 7524 | size += 2 * unpackedEnum_.Count;
|
| 7525 | }
|
| 7526 | }
|
| 7527 | memoizedSerializedSize = size;
|
| 7528 | return size;
|
| 7529 | }
|
| 7530 | }
|
| 7531 |
|
| 7532 | #region Lite runtime methods
|
| 7533 | public override int GetHashCode() {
|
| 7534 | int hash = GetType().GetHashCode();
|
| 7535 | foreach(int i in unpackedInt32_)
|
| 7536 | hash ^= i.GetHashCode();
|
| 7537 | foreach(long i in unpackedInt64_)
|
| 7538 | hash ^= i.GetHashCode();
|
| 7539 | foreach(uint i in unpackedUint32_)
|
| 7540 | hash ^= i.GetHashCode();
|
| 7541 | foreach(ulong i in unpackedUint64_)
|
| 7542 | hash ^= i.GetHashCode();
|
| 7543 | foreach(int i in unpackedSint32_)
|
| 7544 | hash ^= i.GetHashCode();
|
| 7545 | foreach(long i in unpackedSint64_)
|
| 7546 | hash ^= i.GetHashCode();
|
| 7547 | foreach(uint i in unpackedFixed32_)
|
| 7548 | hash ^= i.GetHashCode();
|
| 7549 | foreach(ulong i in unpackedFixed64_)
|
| 7550 | hash ^= i.GetHashCode();
|
| 7551 | foreach(int i in unpackedSfixed32_)
|
| 7552 | hash ^= i.GetHashCode();
|
| 7553 | foreach(long i in unpackedSfixed64_)
|
| 7554 | hash ^= i.GetHashCode();
|
| 7555 | foreach(float i in unpackedFloat_)
|
| 7556 | hash ^= i.GetHashCode();
|
| 7557 | foreach(double i in unpackedDouble_)
|
| 7558 | hash ^= i.GetHashCode();
|
| 7559 | foreach(bool i in unpackedBool_)
|
| 7560 | hash ^= i.GetHashCode();
|
| 7561 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in unpackedEnum_)
|
| 7562 | hash ^= i.GetHashCode();
|
| 7563 | return hash;
|
| 7564 | }
|
| 7565 |
|
| 7566 | public override bool Equals(object obj) {
|
| 7567 | TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
|
| 7568 | if (other == null) return false;
|
| 7569 | if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
|
| 7570 | for(int ix=0; ix < unpackedInt32_.Count; ix++)
|
| 7571 | if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
|
| 7572 | if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
|
| 7573 | for(int ix=0; ix < unpackedInt64_.Count; ix++)
|
| 7574 | if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
|
| 7575 | if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
|
| 7576 | for(int ix=0; ix < unpackedUint32_.Count; ix++)
|
| 7577 | if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
|
| 7578 | if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
|
| 7579 | for(int ix=0; ix < unpackedUint64_.Count; ix++)
|
| 7580 | if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
|
| 7581 | if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
|
| 7582 | for(int ix=0; ix < unpackedSint32_.Count; ix++)
|
| 7583 | if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
|
| 7584 | if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
|
| 7585 | for(int ix=0; ix < unpackedSint64_.Count; ix++)
|
| 7586 | if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
|
| 7587 | if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
|
| 7588 | for(int ix=0; ix < unpackedFixed32_.Count; ix++)
|
| 7589 | if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
|
| 7590 | if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
|
| 7591 | for(int ix=0; ix < unpackedFixed64_.Count; ix++)
|
| 7592 | if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
|
| 7593 | if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
|
| 7594 | for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
|
| 7595 | if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
|
| 7596 | if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
|
| 7597 | for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
|
| 7598 | if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
|
| 7599 | if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
|
| 7600 | for(int ix=0; ix < unpackedFloat_.Count; ix++)
|
| 7601 | if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
|
| 7602 | if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
|
| 7603 | for(int ix=0; ix < unpackedDouble_.Count; ix++)
|
| 7604 | if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
|
| 7605 | if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
|
| 7606 | for(int ix=0; ix < unpackedBool_.Count; ix++)
|
| 7607 | if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
|
| 7608 | if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
|
| 7609 | for(int ix=0; ix < unpackedEnum_.Count; ix++)
|
| 7610 | if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
|
| 7611 | return true;
|
| 7612 | }
|
| 7613 |
|
| 7614 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7615 | PrintField("unpacked_int32", unpackedInt32_, writer);
|
| 7616 | PrintField("unpacked_int64", unpackedInt64_, writer);
|
| 7617 | PrintField("unpacked_uint32", unpackedUint32_, writer);
|
| 7618 | PrintField("unpacked_uint64", unpackedUint64_, writer);
|
| 7619 | PrintField("unpacked_sint32", unpackedSint32_, writer);
|
| 7620 | PrintField("unpacked_sint64", unpackedSint64_, writer);
|
| 7621 | PrintField("unpacked_fixed32", unpackedFixed32_, writer);
|
| 7622 | PrintField("unpacked_fixed64", unpackedFixed64_, writer);
|
| 7623 | PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
|
| 7624 | PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
|
| 7625 | PrintField("unpacked_float", unpackedFloat_, writer);
|
| 7626 | PrintField("unpacked_double", unpackedDouble_, writer);
|
| 7627 | PrintField("unpacked_bool", unpackedBool_, writer);
|
| 7628 | PrintField("unpacked_enum", unpackedEnum_, writer);
|
| 7629 | }
|
| 7630 | #endregion
|
| 7631 |
|
| 7632 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
|
| 7633 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7634 | }
|
| 7635 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7636 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7637 | }
|
| 7638 | public static TestUnpackedTypesLite ParseFrom(byte[] data) {
|
| 7639 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7640 | }
|
| 7641 | public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7642 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7643 | }
|
| 7644 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 7645 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7646 | }
|
| 7647 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7648 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7649 | }
|
| 7650 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7651 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7652 | }
|
| 7653 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7654 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7655 | }
|
| 7656 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
| 7657 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7658 | }
|
| 7659 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7660 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7661 | }
|
| 7662 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7663 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7664 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7665 | public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
|
| 7666 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7667 | }
|
| 7668 |
|
| 7669 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7670 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7671 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 7672 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
|
| 7673 | protected override Builder ThisBuilder {
|
| 7674 | get { return this; }
|
| 7675 | }
|
| 7676 | public Builder() {}
|
| 7677 |
|
| 7678 | TestUnpackedTypesLite result = new TestUnpackedTypesLite();
|
| 7679 |
|
| 7680 | protected override TestUnpackedTypesLite MessageBeingBuilt {
|
| 7681 | get { return result; }
|
| 7682 | }
|
| 7683 |
|
| 7684 | public override Builder Clear() {
|
| 7685 | result = new TestUnpackedTypesLite();
|
| 7686 | return this;
|
| 7687 | }
|
| 7688 |
|
| 7689 | public override Builder Clone() {
|
| 7690 | return new Builder().MergeFrom(result);
|
| 7691 | }
|
| 7692 |
|
| 7693 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7694 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
|
| 7695 | }
|
| 7696 |
|
| 7697 | public override TestUnpackedTypesLite BuildPartial() {
|
| 7698 | if (result == null) {
|
| 7699 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7700 | }
|
| 7701 | result.unpackedInt32_.MakeReadOnly();
|
| 7702 | result.unpackedInt64_.MakeReadOnly();
|
| 7703 | result.unpackedUint32_.MakeReadOnly();
|
| 7704 | result.unpackedUint64_.MakeReadOnly();
|
| 7705 | result.unpackedSint32_.MakeReadOnly();
|
| 7706 | result.unpackedSint64_.MakeReadOnly();
|
| 7707 | result.unpackedFixed32_.MakeReadOnly();
|
| 7708 | result.unpackedFixed64_.MakeReadOnly();
|
| 7709 | result.unpackedSfixed32_.MakeReadOnly();
|
| 7710 | result.unpackedSfixed64_.MakeReadOnly();
|
| 7711 | result.unpackedFloat_.MakeReadOnly();
|
| 7712 | result.unpackedDouble_.MakeReadOnly();
|
| 7713 | result.unpackedBool_.MakeReadOnly();
|
| 7714 | result.unpackedEnum_.MakeReadOnly();
|
| 7715 | TestUnpackedTypesLite returnMe = result;
|
| 7716 | result = null;
|
| 7717 | return returnMe;
|
| 7718 | }
|
| 7719 |
|
| 7720 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7721 | if (other is TestUnpackedTypesLite) {
|
| 7722 | return MergeFrom((TestUnpackedTypesLite) other);
|
| 7723 | } else {
|
| 7724 | base.MergeFrom(other);
|
| 7725 | return this;
|
| 7726 | }
|
| 7727 | }
|
| 7728 |
|
| 7729 | public override Builder MergeFrom(TestUnpackedTypesLite other) {
|
| 7730 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
|
| 7731 | if (other.unpackedInt32_.Count != 0) {
|
| 7732 | base.AddRange(other.unpackedInt32_, result.unpackedInt32_);
|
| 7733 | }
|
| 7734 | if (other.unpackedInt64_.Count != 0) {
|
| 7735 | base.AddRange(other.unpackedInt64_, result.unpackedInt64_);
|
| 7736 | }
|
| 7737 | if (other.unpackedUint32_.Count != 0) {
|
| 7738 | base.AddRange(other.unpackedUint32_, result.unpackedUint32_);
|
| 7739 | }
|
| 7740 | if (other.unpackedUint64_.Count != 0) {
|
| 7741 | base.AddRange(other.unpackedUint64_, result.unpackedUint64_);
|
| 7742 | }
|
| 7743 | if (other.unpackedSint32_.Count != 0) {
|
| 7744 | base.AddRange(other.unpackedSint32_, result.unpackedSint32_);
|
| 7745 | }
|
| 7746 | if (other.unpackedSint64_.Count != 0) {
|
| 7747 | base.AddRange(other.unpackedSint64_, result.unpackedSint64_);
|
| 7748 | }
|
| 7749 | if (other.unpackedFixed32_.Count != 0) {
|
| 7750 | base.AddRange(other.unpackedFixed32_, result.unpackedFixed32_);
|
| 7751 | }
|
| 7752 | if (other.unpackedFixed64_.Count != 0) {
|
| 7753 | base.AddRange(other.unpackedFixed64_, result.unpackedFixed64_);
|
| 7754 | }
|
| 7755 | if (other.unpackedSfixed32_.Count != 0) {
|
| 7756 | base.AddRange(other.unpackedSfixed32_, result.unpackedSfixed32_);
|
| 7757 | }
|
| 7758 | if (other.unpackedSfixed64_.Count != 0) {
|
| 7759 | base.AddRange(other.unpackedSfixed64_, result.unpackedSfixed64_);
|
| 7760 | }
|
| 7761 | if (other.unpackedFloat_.Count != 0) {
|
| 7762 | base.AddRange(other.unpackedFloat_, result.unpackedFloat_);
|
| 7763 | }
|
| 7764 | if (other.unpackedDouble_.Count != 0) {
|
| 7765 | base.AddRange(other.unpackedDouble_, result.unpackedDouble_);
|
| 7766 | }
|
| 7767 | if (other.unpackedBool_.Count != 0) {
|
| 7768 | base.AddRange(other.unpackedBool_, result.unpackedBool_);
|
| 7769 | }
|
| 7770 | if (other.unpackedEnum_.Count != 0) {
|
| 7771 | base.AddRange(other.unpackedEnum_, result.unpackedEnum_);
|
| 7772 | }
|
| 7773 | return this;
|
| 7774 | }
|
| 7775 |
|
| 7776 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 7777 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7778 | }
|
| 7779 |
|
| 7780 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7781 | uint tag;
|
| 7782 | string field_name;
|
| 7783 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7784 | if(tag == 0 && field_name != null) {
|
| 7785 | int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 7786 | if(field_ordinal >= 0)
|
| 7787 | tag = _testUnpackedTypesLiteFieldTags[field_ordinal];
|
| 7788 | else {
|
| 7789 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 7790 | continue;
|
| 7791 | }
|
| 7792 | }
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7793 | switch (tag) {
|
| 7794 | case 0: {
|
| 7795 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 7796 | }
|
| 7797 | default: {
|
| 7798 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7799 | return this;
|
| 7800 | }
|
| 7801 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 7802 | break;
|
| 7803 | }
|
| 7804 | case 722:
|
| 7805 | case 720: {
|
| 7806 | input.ReadPrimitiveArray(pbd::FieldType.Int32, tag, field_name, result.unpackedInt32_);
|
| 7807 | break;
|
| 7808 | }
|
| 7809 | case 730:
|
| 7810 | case 728: {
|
| 7811 | input.ReadPrimitiveArray(pbd::FieldType.Int64, tag, field_name, result.unpackedInt64_);
|
| 7812 | break;
|
| 7813 | }
|
| 7814 | case 738:
|
| 7815 | case 736: {
|
| 7816 | input.ReadPrimitiveArray(pbd::FieldType.UInt32, tag, field_name, result.unpackedUint32_);
|
| 7817 | break;
|
| 7818 | }
|
| 7819 | case 746:
|
| 7820 | case 744: {
|
| 7821 | input.ReadPrimitiveArray(pbd::FieldType.UInt64, tag, field_name, result.unpackedUint64_);
|
| 7822 | break;
|
| 7823 | }
|
| 7824 | case 754:
|
| 7825 | case 752: {
|
| 7826 | input.ReadPrimitiveArray(pbd::FieldType.SInt32, tag, field_name, result.unpackedSint32_);
|
| 7827 | break;
|
| 7828 | }
|
| 7829 | case 762:
|
| 7830 | case 760: {
|
| 7831 | input.ReadPrimitiveArray(pbd::FieldType.SInt64, tag, field_name, result.unpackedSint64_);
|
| 7832 | break;
|
| 7833 | }
|
| 7834 | case 770:
|
| 7835 | case 773: {
|
| 7836 | input.ReadPrimitiveArray(pbd::FieldType.Fixed32, tag, field_name, result.unpackedFixed32_);
|
| 7837 | break;
|
| 7838 | }
|
| 7839 | case 778:
|
| 7840 | case 777: {
|
| 7841 | input.ReadPrimitiveArray(pbd::FieldType.Fixed64, tag, field_name, result.unpackedFixed64_);
|
| 7842 | break;
|
| 7843 | }
|
| 7844 | case 786:
|
| 7845 | case 789: {
|
| 7846 | input.ReadPrimitiveArray(pbd::FieldType.SFixed32, tag, field_name, result.unpackedSfixed32_);
|
| 7847 | break;
|
| 7848 | }
|
| 7849 | case 794:
|
| 7850 | case 793: {
|
| 7851 | input.ReadPrimitiveArray(pbd::FieldType.SFixed64, tag, field_name, result.unpackedSfixed64_);
|
| 7852 | break;
|
| 7853 | }
|
| 7854 | case 802:
|
| 7855 | case 805: {
|
| 7856 | input.ReadPrimitiveArray(pbd::FieldType.Float, tag, field_name, result.unpackedFloat_);
|
| 7857 | break;
|
| 7858 | }
|
| 7859 | case 810:
|
| 7860 | case 809: {
|
| 7861 | input.ReadPrimitiveArray(pbd::FieldType.Double, tag, field_name, result.unpackedDouble_);
|
| 7862 | break;
|
| 7863 | }
|
| 7864 | case 818:
|
| 7865 | case 816: {
|
| 7866 | input.ReadPrimitiveArray(pbd::FieldType.Bool, tag, field_name, result.unpackedBool_);
|
| 7867 | break;
|
| 7868 | }
|
| 7869 | case 826:
|
| 7870 | case 824: {
|
| 7871 | scg::ICollection<object> unknownItems;
|
| 7872 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
|
| 7873 | break;
|
| 7874 | }
|
| 7875 | }
|
| 7876 | }
|
| 7877 |
|
| 7878 | return this;
|
| 7879 | }
|
| 7880 |
|
| 7881 |
|
| 7882 | public pbc::IPopsicleList<int> UnpackedInt32List {
|
| 7883 | get { return result.unpackedInt32_; }
|
| 7884 | }
|
| 7885 | public int UnpackedInt32Count {
|
| 7886 | get { return result.UnpackedInt32Count; }
|
| 7887 | }
|
| 7888 | public int GetUnpackedInt32(int index) {
|
| 7889 | return result.GetUnpackedInt32(index);
|
| 7890 | }
|
| 7891 | public Builder SetUnpackedInt32(int index, int value) {
|
| 7892 | result.unpackedInt32_[index] = value;
|
| 7893 | return this;
|
| 7894 | }
|
| 7895 | public Builder AddUnpackedInt32(int value) {
|
| 7896 | result.unpackedInt32_.Add(value);
|
| 7897 | return this;
|
| 7898 | }
|
| 7899 | public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
|
| 7900 | base.AddRange(values, result.unpackedInt32_);
|
| 7901 | return this;
|
| 7902 | }
|
| 7903 | public Builder ClearUnpackedInt32() {
|
| 7904 | result.unpackedInt32_.Clear();
|
| 7905 | return this;
|
| 7906 | }
|
| 7907 |
|
| 7908 | public pbc::IPopsicleList<long> UnpackedInt64List {
|
| 7909 | get { return result.unpackedInt64_; }
|
| 7910 | }
|
| 7911 | public int UnpackedInt64Count {
|
| 7912 | get { return result.UnpackedInt64Count; }
|
| 7913 | }
|
| 7914 | public long GetUnpackedInt64(int index) {
|
| 7915 | return result.GetUnpackedInt64(index);
|
| 7916 | }
|
| 7917 | public Builder SetUnpackedInt64(int index, long value) {
|
| 7918 | result.unpackedInt64_[index] = value;
|
| 7919 | return this;
|
| 7920 | }
|
| 7921 | public Builder AddUnpackedInt64(long value) {
|
| 7922 | result.unpackedInt64_.Add(value);
|
| 7923 | return this;
|
| 7924 | }
|
| 7925 | public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
|
| 7926 | base.AddRange(values, result.unpackedInt64_);
|
| 7927 | return this;
|
| 7928 | }
|
| 7929 | public Builder ClearUnpackedInt64() {
|
| 7930 | result.unpackedInt64_.Clear();
|
| 7931 | return this;
|
| 7932 | }
|
| 7933 |
|
| 7934 | [global::System.CLSCompliant(false)]
|
| 7935 | public pbc::IPopsicleList<uint> UnpackedUint32List {
|
| 7936 | get { return result.unpackedUint32_; }
|
| 7937 | }
|
| 7938 | public int UnpackedUint32Count {
|
| 7939 | get { return result.UnpackedUint32Count; }
|
| 7940 | }
|
| 7941 | [global::System.CLSCompliant(false)]
|
| 7942 | public uint GetUnpackedUint32(int index) {
|
| 7943 | return result.GetUnpackedUint32(index);
|
| 7944 | }
|
| 7945 | [global::System.CLSCompliant(false)]
|
| 7946 | public Builder SetUnpackedUint32(int index, uint value) {
|
| 7947 | result.unpackedUint32_[index] = value;
|
| 7948 | return this;
|
| 7949 | }
|
| 7950 | [global::System.CLSCompliant(false)]
|
| 7951 | public Builder AddUnpackedUint32(uint value) {
|
| 7952 | result.unpackedUint32_.Add(value);
|
| 7953 | return this;
|
| 7954 | }
|
| 7955 | [global::System.CLSCompliant(false)]
|
| 7956 | public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
|
| 7957 | base.AddRange(values, result.unpackedUint32_);
|
| 7958 | return this;
|
| 7959 | }
|
| 7960 | public Builder ClearUnpackedUint32() {
|
| 7961 | result.unpackedUint32_.Clear();
|
| 7962 | return this;
|
| 7963 | }
|
| 7964 |
|
| 7965 | [global::System.CLSCompliant(false)]
|
| 7966 | public pbc::IPopsicleList<ulong> UnpackedUint64List {
|
| 7967 | get { return result.unpackedUint64_; }
|
| 7968 | }
|
| 7969 | public int UnpackedUint64Count {
|
| 7970 | get { return result.UnpackedUint64Count; }
|
| 7971 | }
|
| 7972 | [global::System.CLSCompliant(false)]
|
| 7973 | public ulong GetUnpackedUint64(int index) {
|
| 7974 | return result.GetUnpackedUint64(index);
|
| 7975 | }
|
| 7976 | [global::System.CLSCompliant(false)]
|
| 7977 | public Builder SetUnpackedUint64(int index, ulong value) {
|
| 7978 | result.unpackedUint64_[index] = value;
|
| 7979 | return this;
|
| 7980 | }
|
| 7981 | [global::System.CLSCompliant(false)]
|
| 7982 | public Builder AddUnpackedUint64(ulong value) {
|
| 7983 | result.unpackedUint64_.Add(value);
|
| 7984 | return this;
|
| 7985 | }
|
| 7986 | [global::System.CLSCompliant(false)]
|
| 7987 | public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
|
| 7988 | base.AddRange(values, result.unpackedUint64_);
|
| 7989 | return this;
|
| 7990 | }
|
| 7991 | public Builder ClearUnpackedUint64() {
|
| 7992 | result.unpackedUint64_.Clear();
|
| 7993 | return this;
|
| 7994 | }
|
| 7995 |
|
| 7996 | public pbc::IPopsicleList<int> UnpackedSint32List {
|
| 7997 | get { return result.unpackedSint32_; }
|
| 7998 | }
|
| 7999 | public int UnpackedSint32Count {
|
| 8000 | get { return result.UnpackedSint32Count; }
|
| 8001 | }
|
| 8002 | public int GetUnpackedSint32(int index) {
|
| 8003 | return result.GetUnpackedSint32(index);
|
| 8004 | }
|
| 8005 | public Builder SetUnpackedSint32(int index, int value) {
|
| 8006 | result.unpackedSint32_[index] = value;
|
| 8007 | return this;
|
| 8008 | }
|
| 8009 | public Builder AddUnpackedSint32(int value) {
|
| 8010 | result.unpackedSint32_.Add(value);
|
| 8011 | return this;
|
| 8012 | }
|
| 8013 | public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
|
| 8014 | base.AddRange(values, result.unpackedSint32_);
|
| 8015 | return this;
|
| 8016 | }
|
| 8017 | public Builder ClearUnpackedSint32() {
|
| 8018 | result.unpackedSint32_.Clear();
|
| 8019 | return this;
|
| 8020 | }
|
| 8021 |
|
| 8022 | public pbc::IPopsicleList<long> UnpackedSint64List {
|
| 8023 | get { return result.unpackedSint64_; }
|
| 8024 | }
|
| 8025 | public int UnpackedSint64Count {
|
| 8026 | get { return result.UnpackedSint64Count; }
|
| 8027 | }
|
| 8028 | public long GetUnpackedSint64(int index) {
|
| 8029 | return result.GetUnpackedSint64(index);
|
| 8030 | }
|
| 8031 | public Builder SetUnpackedSint64(int index, long value) {
|
| 8032 | result.unpackedSint64_[index] = value;
|
| 8033 | return this;
|
| 8034 | }
|
| 8035 | public Builder AddUnpackedSint64(long value) {
|
| 8036 | result.unpackedSint64_.Add(value);
|
| 8037 | return this;
|
| 8038 | }
|
| 8039 | public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
|
| 8040 | base.AddRange(values, result.unpackedSint64_);
|
| 8041 | return this;
|
| 8042 | }
|
| 8043 | public Builder ClearUnpackedSint64() {
|
| 8044 | result.unpackedSint64_.Clear();
|
| 8045 | return this;
|
| 8046 | }
|
| 8047 |
|
| 8048 | [global::System.CLSCompliant(false)]
|
| 8049 | public pbc::IPopsicleList<uint> UnpackedFixed32List {
|
| 8050 | get { return result.unpackedFixed32_; }
|
| 8051 | }
|
| 8052 | public int UnpackedFixed32Count {
|
| 8053 | get { return result.UnpackedFixed32Count; }
|
| 8054 | }
|
| 8055 | [global::System.CLSCompliant(false)]
|
| 8056 | public uint GetUnpackedFixed32(int index) {
|
| 8057 | return result.GetUnpackedFixed32(index);
|
| 8058 | }
|
| 8059 | [global::System.CLSCompliant(false)]
|
| 8060 | public Builder SetUnpackedFixed32(int index, uint value) {
|
| 8061 | result.unpackedFixed32_[index] = value;
|
| 8062 | return this;
|
| 8063 | }
|
| 8064 | [global::System.CLSCompliant(false)]
|
| 8065 | public Builder AddUnpackedFixed32(uint value) {
|
| 8066 | result.unpackedFixed32_.Add(value);
|
| 8067 | return this;
|
| 8068 | }
|
| 8069 | [global::System.CLSCompliant(false)]
|
| 8070 | public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
|
| 8071 | base.AddRange(values, result.unpackedFixed32_);
|
| 8072 | return this;
|
| 8073 | }
|
| 8074 | public Builder ClearUnpackedFixed32() {
|
| 8075 | result.unpackedFixed32_.Clear();
|
| 8076 | return this;
|
| 8077 | }
|
| 8078 |
|
| 8079 | [global::System.CLSCompliant(false)]
|
| 8080 | public pbc::IPopsicleList<ulong> UnpackedFixed64List {
|
| 8081 | get { return result.unpackedFixed64_; }
|
| 8082 | }
|
| 8083 | public int UnpackedFixed64Count {
|
| 8084 | get { return result.UnpackedFixed64Count; }
|
| 8085 | }
|
| 8086 | [global::System.CLSCompliant(false)]
|
| 8087 | public ulong GetUnpackedFixed64(int index) {
|
| 8088 | return result.GetUnpackedFixed64(index);
|
| 8089 | }
|
| 8090 | [global::System.CLSCompliant(false)]
|
| 8091 | public Builder SetUnpackedFixed64(int index, ulong value) {
|
| 8092 | result.unpackedFixed64_[index] = value;
|
| 8093 | return this;
|
| 8094 | }
|
| 8095 | [global::System.CLSCompliant(false)]
|
| 8096 | public Builder AddUnpackedFixed64(ulong value) {
|
| 8097 | result.unpackedFixed64_.Add(value);
|
| 8098 | return this;
|
| 8099 | }
|
| 8100 | [global::System.CLSCompliant(false)]
|
| 8101 | public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
|
| 8102 | base.AddRange(values, result.unpackedFixed64_);
|
| 8103 | return this;
|
| 8104 | }
|
| 8105 | public Builder ClearUnpackedFixed64() {
|
| 8106 | result.unpackedFixed64_.Clear();
|
| 8107 | return this;
|
| 8108 | }
|
| 8109 |
|
| 8110 | public pbc::IPopsicleList<int> UnpackedSfixed32List {
|
| 8111 | get { return result.unpackedSfixed32_; }
|
| 8112 | }
|
| 8113 | public int UnpackedSfixed32Count {
|
| 8114 | get { return result.UnpackedSfixed32Count; }
|
| 8115 | }
|
| 8116 | public int GetUnpackedSfixed32(int index) {
|
| 8117 | return result.GetUnpackedSfixed32(index);
|
| 8118 | }
|
| 8119 | public Builder SetUnpackedSfixed32(int index, int value) {
|
| 8120 | result.unpackedSfixed32_[index] = value;
|
| 8121 | return this;
|
| 8122 | }
|
| 8123 | public Builder AddUnpackedSfixed32(int value) {
|
| 8124 | result.unpackedSfixed32_.Add(value);
|
| 8125 | return this;
|
| 8126 | }
|
| 8127 | public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
|
| 8128 | base.AddRange(values, result.unpackedSfixed32_);
|
| 8129 | return this;
|
| 8130 | }
|
| 8131 | public Builder ClearUnpackedSfixed32() {
|
| 8132 | result.unpackedSfixed32_.Clear();
|
| 8133 | return this;
|
| 8134 | }
|
| 8135 |
|
| 8136 | public pbc::IPopsicleList<long> UnpackedSfixed64List {
|
| 8137 | get { return result.unpackedSfixed64_; }
|
| 8138 | }
|
| 8139 | public int UnpackedSfixed64Count {
|
| 8140 | get { return result.UnpackedSfixed64Count; }
|
| 8141 | }
|
| 8142 | public long GetUnpackedSfixed64(int index) {
|
| 8143 | return result.GetUnpackedSfixed64(index);
|
| 8144 | }
|
| 8145 | public Builder SetUnpackedSfixed64(int index, long value) {
|
| 8146 | result.unpackedSfixed64_[index] = value;
|
| 8147 | return this;
|
| 8148 | }
|
| 8149 | public Builder AddUnpackedSfixed64(long value) {
|
| 8150 | result.unpackedSfixed64_.Add(value);
|
| 8151 | return this;
|
| 8152 | }
|
| 8153 | public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
|
| 8154 | base.AddRange(values, result.unpackedSfixed64_);
|
| 8155 | return this;
|
| 8156 | }
|
| 8157 | public Builder ClearUnpackedSfixed64() {
|
| 8158 | result.unpackedSfixed64_.Clear();
|
| 8159 | return this;
|
| 8160 | }
|
| 8161 |
|
| 8162 | public pbc::IPopsicleList<float> UnpackedFloatList {
|
| 8163 | get { return result.unpackedFloat_; }
|
| 8164 | }
|
| 8165 | public int UnpackedFloatCount {
|
| 8166 | get { return result.UnpackedFloatCount; }
|
| 8167 | }
|
| 8168 | public float GetUnpackedFloat(int index) {
|
| 8169 | return result.GetUnpackedFloat(index);
|
| 8170 | }
|
| 8171 | public Builder SetUnpackedFloat(int index, float value) {
|
| 8172 | result.unpackedFloat_[index] = value;
|
| 8173 | return this;
|
| 8174 | }
|
| 8175 | public Builder AddUnpackedFloat(float value) {
|
| 8176 | result.unpackedFloat_.Add(value);
|
| 8177 | return this;
|
| 8178 | }
|
| 8179 | public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
|
| 8180 | base.AddRange(values, result.unpackedFloat_);
|
| 8181 | return this;
|
| 8182 | }
|
| 8183 | public Builder ClearUnpackedFloat() {
|
| 8184 | result.unpackedFloat_.Clear();
|
| 8185 | return this;
|
| 8186 | }
|
| 8187 |
|
| 8188 | public pbc::IPopsicleList<double> UnpackedDoubleList {
|
| 8189 | get { return result.unpackedDouble_; }
|
| 8190 | }
|
| 8191 | public int UnpackedDoubleCount {
|
| 8192 | get { return result.UnpackedDoubleCount; }
|
| 8193 | }
|
| 8194 | public double GetUnpackedDouble(int index) {
|
| 8195 | return result.GetUnpackedDouble(index);
|
| 8196 | }
|
| 8197 | public Builder SetUnpackedDouble(int index, double value) {
|
| 8198 | result.unpackedDouble_[index] = value;
|
| 8199 | return this;
|
| 8200 | }
|
| 8201 | public Builder AddUnpackedDouble(double value) {
|
| 8202 | result.unpackedDouble_.Add(value);
|
| 8203 | return this;
|
| 8204 | }
|
| 8205 | public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
|
| 8206 | base.AddRange(values, result.unpackedDouble_);
|
| 8207 | return this;
|
| 8208 | }
|
| 8209 | public Builder ClearUnpackedDouble() {
|
| 8210 | result.unpackedDouble_.Clear();
|
| 8211 | return this;
|
| 8212 | }
|
| 8213 |
|
| 8214 | public pbc::IPopsicleList<bool> UnpackedBoolList {
|
| 8215 | get { return result.unpackedBool_; }
|
| 8216 | }
|
| 8217 | public int UnpackedBoolCount {
|
| 8218 | get { return result.UnpackedBoolCount; }
|
| 8219 | }
|
| 8220 | public bool GetUnpackedBool(int index) {
|
| 8221 | return result.GetUnpackedBool(index);
|
| 8222 | }
|
| 8223 | public Builder SetUnpackedBool(int index, bool value) {
|
| 8224 | result.unpackedBool_[index] = value;
|
| 8225 | return this;
|
| 8226 | }
|
| 8227 | public Builder AddUnpackedBool(bool value) {
|
| 8228 | result.unpackedBool_.Add(value);
|
| 8229 | return this;
|
| 8230 | }
|
| 8231 | public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
|
| 8232 | base.AddRange(values, result.unpackedBool_);
|
| 8233 | return this;
|
| 8234 | }
|
| 8235 | public Builder ClearUnpackedBool() {
|
| 8236 | result.unpackedBool_.Clear();
|
| 8237 | return this;
|
| 8238 | }
|
| 8239 |
|
| 8240 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 8241 | get { return result.unpackedEnum_; }
|
| 8242 | }
|
| 8243 | public int UnpackedEnumCount {
|
| 8244 | get { return result.UnpackedEnumCount; }
|
| 8245 | }
|
| 8246 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 8247 | return result.GetUnpackedEnum(index);
|
| 8248 | }
|
| 8249 | public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8250 | result.unpackedEnum_[index] = value;
|
| 8251 | return this;
|
| 8252 | }
|
| 8253 | public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8254 | result.unpackedEnum_.Add(value);
|
| 8255 | return this;
|
| 8256 | }
|
| 8257 | public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 8258 | base.AddRange(values, result.unpackedEnum_);
|
| 8259 | return this;
|
| 8260 | }
|
| 8261 | public Builder ClearUnpackedEnum() {
|
| 8262 | result.unpackedEnum_.Clear();
|
| 8263 | return this;
|
| 8264 | }
|
| 8265 | }
|
| 8266 | static TestUnpackedTypesLite() {
|
| 8267 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8268 | }
|
| 8269 | }
|
| 8270 |
|
| 8271 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8272 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8273 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8274 | public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
|
| 8275 | private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8276 | private static readonly string[] _testAllExtensionsLiteFieldNames = new string[] { };
|
| 8277 | private static readonly uint[] _testAllExtensionsLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8278 | public static TestAllExtensionsLite DefaultInstance {
|
| 8279 | get { return defaultInstance; }
|
| 8280 | }
|
| 8281 |
|
| 8282 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8283 | get { return defaultInstance; }
|
| 8284 | }
|
| 8285 |
|
| 8286 | protected override TestAllExtensionsLite ThisMessage {
|
| 8287 | get { return this; }
|
| 8288 | }
|
| 8289 |
|
| 8290 | public override bool IsInitialized {
|
| 8291 | get {
|
| 8292 | if (!ExtensionsAreInitialized) return false;
|
| 8293 | return true;
|
| 8294 | }
|
| 8295 | }
|
| 8296 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8297 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8298 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8299 | string[] field_names = _testAllExtensionsLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8300 | pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8301 | extensionWriter.WriteUntil(536870912, output);
|
| 8302 | }
|
| 8303 |
|
| 8304 | private int memoizedSerializedSize = -1;
|
| 8305 | public override int SerializedSize {
|
| 8306 | get {
|
| 8307 | int size = memoizedSerializedSize;
|
| 8308 | if (size != -1) return size;
|
| 8309 |
|
| 8310 | size = 0;
|
| 8311 | size += ExtensionsSerializedSize;
|
| 8312 | memoizedSerializedSize = size;
|
| 8313 | return size;
|
| 8314 | }
|
| 8315 | }
|
| 8316 |
|
| 8317 | #region Lite runtime methods
|
| 8318 | public override int GetHashCode() {
|
| 8319 | int hash = GetType().GetHashCode();
|
| 8320 | hash ^= base.GetHashCode();
|
| 8321 | return hash;
|
| 8322 | }
|
| 8323 |
|
| 8324 | public override bool Equals(object obj) {
|
| 8325 | TestAllExtensionsLite other = obj as TestAllExtensionsLite;
|
| 8326 | if (other == null) return false;
|
| 8327 | if (!base.Equals(other)) return false;
|
| 8328 | return true;
|
| 8329 | }
|
| 8330 |
|
| 8331 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8332 | base.PrintTo(writer);
|
| 8333 | }
|
| 8334 | #endregion
|
| 8335 |
|
| 8336 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8337 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8338 | }
|
| 8339 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8340 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8341 | }
|
| 8342 | public static TestAllExtensionsLite ParseFrom(byte[] data) {
|
| 8343 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8344 | }
|
| 8345 | public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8346 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8347 | }
|
| 8348 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 8349 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8350 | }
|
| 8351 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8352 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8353 | }
|
| 8354 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8355 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8356 | }
|
| 8357 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8358 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8359 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8360 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8361 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8362 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8363 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8364 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8365 | }
|
| 8366 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8367 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8368 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8369 | public static Builder CreateBuilder(TestAllExtensionsLite prototype) {
|
| 8370 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8371 | }
|
| 8372 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8373 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8374 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8375 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8376 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
|
| 8377 | protected override Builder ThisBuilder {
|
| 8378 | get { return this; }
|
| 8379 | }
|
| 8380 | public Builder() {}
|
| 8381 |
|
| 8382 | TestAllExtensionsLite result = new TestAllExtensionsLite();
|
| 8383 |
|
| 8384 | protected override TestAllExtensionsLite MessageBeingBuilt {
|
| 8385 | get { return result; }
|
| 8386 | }
|
| 8387 |
|
| 8388 | public override Builder Clear() {
|
| 8389 | result = new TestAllExtensionsLite();
|
| 8390 | return this;
|
| 8391 | }
|
| 8392 |
|
| 8393 | public override Builder Clone() {
|
| 8394 | return new Builder().MergeFrom(result);
|
| 8395 | }
|
| 8396 |
|
| 8397 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8398 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
|
| 8399 | }
|
| 8400 |
|
| 8401 | public override TestAllExtensionsLite BuildPartial() {
|
| 8402 | if (result == null) {
|
| 8403 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8404 | }
|
| 8405 | TestAllExtensionsLite returnMe = result;
|
| 8406 | result = null;
|
| 8407 | return returnMe;
|
| 8408 | }
|
| 8409 |
|
| 8410 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8411 | if (other is TestAllExtensionsLite) {
|
| 8412 | return MergeFrom((TestAllExtensionsLite) other);
|
| 8413 | } else {
|
| 8414 | base.MergeFrom(other);
|
| 8415 | return this;
|
| 8416 | }
|
| 8417 | }
|
| 8418 |
|
| 8419 | public override Builder MergeFrom(TestAllExtensionsLite other) {
|
| 8420 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
|
| 8421 | this.MergeExtensionFields(other);
|
| 8422 | return this;
|
| 8423 | }
|
| 8424 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8425 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8426 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8427 | }
|
| 8428 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8429 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8430 | uint tag;
|
| 8431 | string field_name;
|
| 8432 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8433 | if(tag == 0 && field_name != null) {
|
| 8434 | int field_ordinal = global::System.Array.BinarySearch(_testAllExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8435 | if(field_ordinal >= 0)
|
| 8436 | tag = _testAllExtensionsLiteFieldTags[field_ordinal];
|
| 8437 | else {
|
| 8438 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8439 | continue;
|
| 8440 | }
|
| 8441 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8442 | switch (tag) {
|
| 8443 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8444 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8445 | }
|
| 8446 | default: {
|
| 8447 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8448 | return this;
|
| 8449 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8450 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8451 | break;
|
| 8452 | }
|
| 8453 | }
|
| 8454 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8455 |
|
| 8456 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8457 | }
|
| 8458 |
|
| 8459 | }
|
| 8460 | static TestAllExtensionsLite() {
|
| 8461 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8462 | }
|
| 8463 | }
|
| 8464 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8465 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8466 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8467 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8468 | public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
|
| 8469 | private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8470 | private static readonly string[] _optionalGroupExtensionLiteFieldNames = new string[] { "a" };
|
| 8471 | private static readonly uint[] _optionalGroupExtensionLiteFieldTags = new uint[] { 136 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8472 | public static OptionalGroup_extension_lite DefaultInstance {
|
| 8473 | get { return defaultInstance; }
|
| 8474 | }
|
| 8475 |
|
| 8476 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8477 | get { return defaultInstance; }
|
| 8478 | }
|
| 8479 |
|
| 8480 | protected override OptionalGroup_extension_lite ThisMessage {
|
| 8481 | get { return this; }
|
| 8482 | }
|
| 8483 |
|
| 8484 | public const int AFieldNumber = 17;
|
| 8485 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 8486 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8487 | public bool HasA {
|
| 8488 | get { return hasA; }
|
| 8489 | }
|
| 8490 | public int A {
|
| 8491 | get { return a_; }
|
| 8492 | }
|
| 8493 |
|
| 8494 | public override bool IsInitialized {
|
| 8495 | get {
|
| 8496 | return true;
|
| 8497 | }
|
| 8498 | }
|
| 8499 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8500 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8501 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8502 | string[] field_names = _optionalGroupExtensionLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8503 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8504 | output.WriteInt32(17, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8505 | }
|
| 8506 | }
|
| 8507 |
|
| 8508 | private int memoizedSerializedSize = -1;
|
| 8509 | public override int SerializedSize {
|
| 8510 | get {
|
| 8511 | int size = memoizedSerializedSize;
|
| 8512 | if (size != -1) return size;
|
| 8513 |
|
| 8514 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8515 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8516 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 8517 | }
|
| 8518 | memoizedSerializedSize = size;
|
| 8519 | return size;
|
| 8520 | }
|
| 8521 | }
|
| 8522 |
|
| 8523 | #region Lite runtime methods
|
| 8524 | public override int GetHashCode() {
|
| 8525 | int hash = GetType().GetHashCode();
|
| 8526 | if (hasA) hash ^= a_.GetHashCode();
|
| 8527 | return hash;
|
| 8528 | }
|
| 8529 |
|
| 8530 | public override bool Equals(object obj) {
|
| 8531 | OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
|
| 8532 | if (other == null) return false;
|
| 8533 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8534 | return true;
|
| 8535 | }
|
| 8536 |
|
| 8537 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8538 | PrintField("a", hasA, a_, writer);
|
| 8539 | }
|
| 8540 | #endregion
|
| 8541 |
|
| 8542 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8543 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8544 | }
|
| 8545 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8546 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8547 | }
|
| 8548 | public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
|
| 8549 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8550 | }
|
| 8551 | public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8552 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8553 | }
|
| 8554 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8555 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8556 | }
|
| 8557 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8558 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8559 | }
|
| 8560 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8561 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8562 | }
|
| 8563 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8564 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8565 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8566 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8567 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8568 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8569 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8570 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8571 | }
|
| 8572 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8573 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8574 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8575 | public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) {
|
| 8576 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8577 | }
|
| 8578 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8579 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8580 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8581 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8582 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
|
| 8583 | protected override Builder ThisBuilder {
|
| 8584 | get { return this; }
|
| 8585 | }
|
| 8586 | public Builder() {}
|
| 8587 |
|
| 8588 | OptionalGroup_extension_lite result = new OptionalGroup_extension_lite();
|
| 8589 |
|
| 8590 | protected override OptionalGroup_extension_lite MessageBeingBuilt {
|
| 8591 | get { return result; }
|
| 8592 | }
|
| 8593 |
|
| 8594 | public override Builder Clear() {
|
| 8595 | result = new OptionalGroup_extension_lite();
|
| 8596 | return this;
|
| 8597 | }
|
| 8598 |
|
| 8599 | public override Builder Clone() {
|
| 8600 | return new Builder().MergeFrom(result);
|
| 8601 | }
|
| 8602 |
|
| 8603 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8604 | get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
|
| 8605 | }
|
| 8606 |
|
| 8607 | public override OptionalGroup_extension_lite BuildPartial() {
|
| 8608 | if (result == null) {
|
| 8609 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8610 | }
|
| 8611 | OptionalGroup_extension_lite returnMe = result;
|
| 8612 | result = null;
|
| 8613 | return returnMe;
|
| 8614 | }
|
| 8615 |
|
| 8616 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8617 | if (other is OptionalGroup_extension_lite) {
|
| 8618 | return MergeFrom((OptionalGroup_extension_lite) other);
|
| 8619 | } else {
|
| 8620 | base.MergeFrom(other);
|
| 8621 | return this;
|
| 8622 | }
|
| 8623 | }
|
| 8624 |
|
| 8625 | public override Builder MergeFrom(OptionalGroup_extension_lite other) {
|
| 8626 | if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
|
| 8627 | if (other.HasA) {
|
| 8628 | A = other.A;
|
| 8629 | }
|
| 8630 | return this;
|
| 8631 | }
|
| 8632 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8633 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8634 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8635 | }
|
| 8636 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8637 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8638 | uint tag;
|
| 8639 | string field_name;
|
| 8640 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8641 | if(tag == 0 && field_name != null) {
|
| 8642 | int field_ordinal = global::System.Array.BinarySearch(_optionalGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8643 | if(field_ordinal >= 0)
|
| 8644 | tag = _optionalGroupExtensionLiteFieldTags[field_ordinal];
|
| 8645 | else {
|
| 8646 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8647 | continue;
|
| 8648 | }
|
| 8649 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8650 | switch (tag) {
|
| 8651 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8652 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8653 | }
|
| 8654 | default: {
|
| 8655 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8656 | return this;
|
| 8657 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8658 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8659 | break;
|
| 8660 | }
|
| 8661 | case 136: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8662 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8663 | break;
|
| 8664 | }
|
| 8665 | }
|
| 8666 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8667 |
|
| 8668 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8669 | }
|
| 8670 |
|
| 8671 |
|
| 8672 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8673 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8674 | }
|
| 8675 | public int A {
|
| 8676 | get { return result.A; }
|
| 8677 | set { SetA(value); }
|
| 8678 | }
|
| 8679 | public Builder SetA(int value) {
|
| 8680 | result.hasA = true;
|
| 8681 | result.a_ = value;
|
| 8682 | return this;
|
| 8683 | }
|
| 8684 | public Builder ClearA() {
|
| 8685 | result.hasA = false;
|
| 8686 | result.a_ = 0;
|
| 8687 | return this;
|
| 8688 | }
|
| 8689 | }
|
| 8690 | static OptionalGroup_extension_lite() {
|
| 8691 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8692 | }
|
| 8693 | }
|
| 8694 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8695 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8696 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8697 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8698 | public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
|
| 8699 | private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8700 | private static readonly string[] _repeatedGroupExtensionLiteFieldNames = new string[] { "a" };
|
| 8701 | private static readonly uint[] _repeatedGroupExtensionLiteFieldTags = new uint[] { 376 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8702 | public static RepeatedGroup_extension_lite DefaultInstance {
|
| 8703 | get { return defaultInstance; }
|
| 8704 | }
|
| 8705 |
|
| 8706 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8707 | get { return defaultInstance; }
|
| 8708 | }
|
| 8709 |
|
| 8710 | protected override RepeatedGroup_extension_lite ThisMessage {
|
| 8711 | get { return this; }
|
| 8712 | }
|
| 8713 |
|
| 8714 | public const int AFieldNumber = 47;
|
| 8715 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 8716 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8717 | public bool HasA {
|
| 8718 | get { return hasA; }
|
| 8719 | }
|
| 8720 | public int A {
|
| 8721 | get { return a_; }
|
| 8722 | }
|
| 8723 |
|
| 8724 | public override bool IsInitialized {
|
| 8725 | get {
|
| 8726 | return true;
|
| 8727 | }
|
| 8728 | }
|
| 8729 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8730 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8731 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8732 | string[] field_names = _repeatedGroupExtensionLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8733 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8734 | output.WriteInt32(47, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8735 | }
|
| 8736 | }
|
| 8737 |
|
| 8738 | private int memoizedSerializedSize = -1;
|
| 8739 | public override int SerializedSize {
|
| 8740 | get {
|
| 8741 | int size = memoizedSerializedSize;
|
| 8742 | if (size != -1) return size;
|
| 8743 |
|
| 8744 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8745 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8746 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 8747 | }
|
| 8748 | memoizedSerializedSize = size;
|
| 8749 | return size;
|
| 8750 | }
|
| 8751 | }
|
| 8752 |
|
| 8753 | #region Lite runtime methods
|
| 8754 | public override int GetHashCode() {
|
| 8755 | int hash = GetType().GetHashCode();
|
| 8756 | if (hasA) hash ^= a_.GetHashCode();
|
| 8757 | return hash;
|
| 8758 | }
|
| 8759 |
|
| 8760 | public override bool Equals(object obj) {
|
| 8761 | RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
|
| 8762 | if (other == null) return false;
|
| 8763 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8764 | return true;
|
| 8765 | }
|
| 8766 |
|
| 8767 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8768 | PrintField("a", hasA, a_, writer);
|
| 8769 | }
|
| 8770 | #endregion
|
| 8771 |
|
| 8772 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8773 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8774 | }
|
| 8775 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8776 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8777 | }
|
| 8778 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
|
| 8779 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8780 | }
|
| 8781 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8782 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8783 | }
|
| 8784 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8785 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8786 | }
|
| 8787 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8788 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8789 | }
|
| 8790 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8791 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8792 | }
|
| 8793 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8794 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8795 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8796 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8797 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8798 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8799 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8800 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8801 | }
|
| 8802 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8803 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8804 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8805 | public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) {
|
| 8806 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8807 | }
|
| 8808 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8809 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8810 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8811 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8812 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
|
| 8813 | protected override Builder ThisBuilder {
|
| 8814 | get { return this; }
|
| 8815 | }
|
| 8816 | public Builder() {}
|
| 8817 |
|
| 8818 | RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite();
|
| 8819 |
|
| 8820 | protected override RepeatedGroup_extension_lite MessageBeingBuilt {
|
| 8821 | get { return result; }
|
| 8822 | }
|
| 8823 |
|
| 8824 | public override Builder Clear() {
|
| 8825 | result = new RepeatedGroup_extension_lite();
|
| 8826 | return this;
|
| 8827 | }
|
| 8828 |
|
| 8829 | public override Builder Clone() {
|
| 8830 | return new Builder().MergeFrom(result);
|
| 8831 | }
|
| 8832 |
|
| 8833 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8834 | get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
|
| 8835 | }
|
| 8836 |
|
| 8837 | public override RepeatedGroup_extension_lite BuildPartial() {
|
| 8838 | if (result == null) {
|
| 8839 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8840 | }
|
| 8841 | RepeatedGroup_extension_lite returnMe = result;
|
| 8842 | result = null;
|
| 8843 | return returnMe;
|
| 8844 | }
|
| 8845 |
|
| 8846 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8847 | if (other is RepeatedGroup_extension_lite) {
|
| 8848 | return MergeFrom((RepeatedGroup_extension_lite) other);
|
| 8849 | } else {
|
| 8850 | base.MergeFrom(other);
|
| 8851 | return this;
|
| 8852 | }
|
| 8853 | }
|
| 8854 |
|
| 8855 | public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
|
| 8856 | if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
|
| 8857 | if (other.HasA) {
|
| 8858 | A = other.A;
|
| 8859 | }
|
| 8860 | return this;
|
| 8861 | }
|
| 8862 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8863 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8864 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8865 | }
|
| 8866 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8867 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8868 | uint tag;
|
| 8869 | string field_name;
|
| 8870 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8871 | if(tag == 0 && field_name != null) {
|
| 8872 | int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8873 | if(field_ordinal >= 0)
|
| 8874 | tag = _repeatedGroupExtensionLiteFieldTags[field_ordinal];
|
| 8875 | else {
|
| 8876 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8877 | continue;
|
| 8878 | }
|
| 8879 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8880 | switch (tag) {
|
| 8881 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8882 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8883 | }
|
| 8884 | default: {
|
| 8885 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8886 | return this;
|
| 8887 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8888 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8889 | break;
|
| 8890 | }
|
| 8891 | case 376: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8892 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8893 | break;
|
| 8894 | }
|
| 8895 | }
|
| 8896 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8897 |
|
| 8898 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8899 | }
|
| 8900 |
|
| 8901 |
|
| 8902 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8903 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8904 | }
|
| 8905 | public int A {
|
| 8906 | get { return result.A; }
|
| 8907 | set { SetA(value); }
|
| 8908 | }
|
| 8909 | public Builder SetA(int value) {
|
| 8910 | result.hasA = true;
|
| 8911 | result.a_ = value;
|
| 8912 | return this;
|
| 8913 | }
|
| 8914 | public Builder ClearA() {
|
| 8915 | result.hasA = false;
|
| 8916 | result.a_ = 0;
|
| 8917 | return this;
|
| 8918 | }
|
| 8919 | }
|
| 8920 | static RepeatedGroup_extension_lite() {
|
| 8921 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8922 | }
|
| 8923 | }
|
| 8924 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8925 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8926 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8927 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8928 | public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
|
| 8929 | private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8930 | private static readonly string[] _testPackedExtensionsLiteFieldNames = new string[] { };
|
| 8931 | private static readonly uint[] _testPackedExtensionsLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8932 | public static TestPackedExtensionsLite DefaultInstance {
|
| 8933 | get { return defaultInstance; }
|
| 8934 | }
|
| 8935 |
|
| 8936 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 8937 | get { return defaultInstance; }
|
| 8938 | }
|
| 8939 |
|
| 8940 | protected override TestPackedExtensionsLite ThisMessage {
|
| 8941 | get { return this; }
|
| 8942 | }
|
| 8943 |
|
| 8944 | public override bool IsInitialized {
|
| 8945 | get {
|
| 8946 | if (!ExtensionsAreInitialized) return false;
|
| 8947 | return true;
|
| 8948 | }
|
| 8949 | }
|
| 8950 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8951 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8952 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8953 | string[] field_names = _testPackedExtensionsLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8954 | pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8955 | extensionWriter.WriteUntil(536870912, output);
|
| 8956 | }
|
| 8957 |
|
| 8958 | private int memoizedSerializedSize = -1;
|
| 8959 | public override int SerializedSize {
|
| 8960 | get {
|
| 8961 | int size = memoizedSerializedSize;
|
| 8962 | if (size != -1) return size;
|
| 8963 |
|
| 8964 | size = 0;
|
| 8965 | size += ExtensionsSerializedSize;
|
| 8966 | memoizedSerializedSize = size;
|
| 8967 | return size;
|
| 8968 | }
|
| 8969 | }
|
| 8970 |
|
| 8971 | #region Lite runtime methods
|
| 8972 | public override int GetHashCode() {
|
| 8973 | int hash = GetType().GetHashCode();
|
| 8974 | hash ^= base.GetHashCode();
|
| 8975 | return hash;
|
| 8976 | }
|
| 8977 |
|
| 8978 | public override bool Equals(object obj) {
|
| 8979 | TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
|
| 8980 | if (other == null) return false;
|
| 8981 | if (!base.Equals(other)) return false;
|
| 8982 | return true;
|
| 8983 | }
|
| 8984 |
|
| 8985 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8986 | base.PrintTo(writer);
|
| 8987 | }
|
| 8988 | #endregion
|
| 8989 |
|
| 8990 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8991 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8992 | }
|
| 8993 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8994 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8995 | }
|
| 8996 | public static TestPackedExtensionsLite ParseFrom(byte[] data) {
|
| 8997 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8998 | }
|
| 8999 | public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9000 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9001 | }
|
| 9002 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 9003 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9004 | }
|
| 9005 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9006 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9007 | }
|
| 9008 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9009 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9010 | }
|
| 9011 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9012 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9013 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9014 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9015 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9016 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9017 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9018 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9019 | }
|
| 9020 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9021 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9022 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9023 | public static Builder CreateBuilder(TestPackedExtensionsLite prototype) {
|
| 9024 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9025 | }
|
| 9026 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9027 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9028 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9029 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9030 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
|
| 9031 | protected override Builder ThisBuilder {
|
| 9032 | get { return this; }
|
| 9033 | }
|
| 9034 | public Builder() {}
|
| 9035 |
|
| 9036 | TestPackedExtensionsLite result = new TestPackedExtensionsLite();
|
| 9037 |
|
| 9038 | protected override TestPackedExtensionsLite MessageBeingBuilt {
|
| 9039 | get { return result; }
|
| 9040 | }
|
| 9041 |
|
| 9042 | public override Builder Clear() {
|
| 9043 | result = new TestPackedExtensionsLite();
|
| 9044 | return this;
|
| 9045 | }
|
| 9046 |
|
| 9047 | public override Builder Clone() {
|
| 9048 | return new Builder().MergeFrom(result);
|
| 9049 | }
|
| 9050 |
|
| 9051 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 9052 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
|
| 9053 | }
|
| 9054 |
|
| 9055 | public override TestPackedExtensionsLite BuildPartial() {
|
| 9056 | if (result == null) {
|
| 9057 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9058 | }
|
| 9059 | TestPackedExtensionsLite returnMe = result;
|
| 9060 | result = null;
|
| 9061 | return returnMe;
|
| 9062 | }
|
| 9063 |
|
| 9064 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9065 | if (other is TestPackedExtensionsLite) {
|
| 9066 | return MergeFrom((TestPackedExtensionsLite) other);
|
| 9067 | } else {
|
| 9068 | base.MergeFrom(other);
|
| 9069 | return this;
|
| 9070 | }
|
| 9071 | }
|
| 9072 |
|
| 9073 | public override Builder MergeFrom(TestPackedExtensionsLite other) {
|
| 9074 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
|
| 9075 | this.MergeExtensionFields(other);
|
| 9076 | return this;
|
| 9077 | }
|
| 9078 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9079 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9080 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9081 | }
|
| 9082 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9083 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9084 | uint tag;
|
| 9085 | string field_name;
|
| 9086 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9087 | if(tag == 0 && field_name != null) {
|
| 9088 | int field_ordinal = global::System.Array.BinarySearch(_testPackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9089 | if(field_ordinal >= 0)
|
| 9090 | tag = _testPackedExtensionsLiteFieldTags[field_ordinal];
|
| 9091 | else {
|
| 9092 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9093 | continue;
|
| 9094 | }
|
| 9095 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9096 | switch (tag) {
|
| 9097 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9098 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9099 | }
|
| 9100 | default: {
|
| 9101 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9102 | return this;
|
| 9103 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9104 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9105 | break;
|
| 9106 | }
|
| 9107 | }
|
| 9108 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9109 |
|
| 9110 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9111 | }
|
| 9112 |
|
| 9113 | }
|
| 9114 | static TestPackedExtensionsLite() {
|
| 9115 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9116 | }
|
| 9117 | }
|
| 9118 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9119 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9120 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9121 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9122 | public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
|
| 9123 | private static readonly TestUnpackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9124 | private static readonly string[] _testUnpackedExtensionsLiteFieldNames = new string[] { };
|
| 9125 | private static readonly uint[] _testUnpackedExtensionsLiteFieldTags = new uint[] { };
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9126 | public static TestUnpackedExtensionsLite DefaultInstance {
|
| 9127 | get { return defaultInstance; }
|
| 9128 | }
|
| 9129 |
|
| 9130 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 9131 | get { return defaultInstance; }
|
| 9132 | }
|
| 9133 |
|
| 9134 | protected override TestUnpackedExtensionsLite ThisMessage {
|
| 9135 | get { return this; }
|
| 9136 | }
|
| 9137 |
|
| 9138 | public override bool IsInitialized {
|
| 9139 | get {
|
| 9140 | if (!ExtensionsAreInitialized) return false;
|
| 9141 | return true;
|
| 9142 | }
|
| 9143 | }
|
| 9144 |
|
| 9145 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 9146 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9147 | string[] field_names = _testUnpackedExtensionsLiteFieldNames;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9148 | pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 9149 | extensionWriter.WriteUntil(536870912, output);
|
| 9150 | }
|
| 9151 |
|
| 9152 | private int memoizedSerializedSize = -1;
|
| 9153 | public override int SerializedSize {
|
| 9154 | get {
|
| 9155 | int size = memoizedSerializedSize;
|
| 9156 | if (size != -1) return size;
|
| 9157 |
|
| 9158 | size = 0;
|
| 9159 | size += ExtensionsSerializedSize;
|
| 9160 | memoizedSerializedSize = size;
|
| 9161 | return size;
|
| 9162 | }
|
| 9163 | }
|
| 9164 |
|
| 9165 | #region Lite runtime methods
|
| 9166 | public override int GetHashCode() {
|
| 9167 | int hash = GetType().GetHashCode();
|
| 9168 | hash ^= base.GetHashCode();
|
| 9169 | return hash;
|
| 9170 | }
|
| 9171 |
|
| 9172 | public override bool Equals(object obj) {
|
| 9173 | TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
|
| 9174 | if (other == null) return false;
|
| 9175 | if (!base.Equals(other)) return false;
|
| 9176 | return true;
|
| 9177 | }
|
| 9178 |
|
| 9179 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9180 | base.PrintTo(writer);
|
| 9181 | }
|
| 9182 | #endregion
|
| 9183 |
|
| 9184 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 9185 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9186 | }
|
| 9187 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9188 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9189 | }
|
| 9190 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
|
| 9191 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9192 | }
|
| 9193 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9194 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9195 | }
|
| 9196 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 9197 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9198 | }
|
| 9199 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9200 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9201 | }
|
| 9202 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9203 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9204 | }
|
| 9205 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9206 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9207 | }
|
| 9208 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
| 9209 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9210 | }
|
| 9211 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9212 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9213 | }
|
| 9214 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9215 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9216 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9217 | public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
|
| 9218 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9219 | }
|
| 9220 |
|
| 9221 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9222 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9223 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 9224 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
|
| 9225 | protected override Builder ThisBuilder {
|
| 9226 | get { return this; }
|
| 9227 | }
|
| 9228 | public Builder() {}
|
| 9229 |
|
| 9230 | TestUnpackedExtensionsLite result = new TestUnpackedExtensionsLite();
|
| 9231 |
|
| 9232 | protected override TestUnpackedExtensionsLite MessageBeingBuilt {
|
| 9233 | get { return result; }
|
| 9234 | }
|
| 9235 |
|
| 9236 | public override Builder Clear() {
|
| 9237 | result = new TestUnpackedExtensionsLite();
|
| 9238 | return this;
|
| 9239 | }
|
| 9240 |
|
| 9241 | public override Builder Clone() {
|
| 9242 | return new Builder().MergeFrom(result);
|
| 9243 | }
|
| 9244 |
|
| 9245 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 9246 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
|
| 9247 | }
|
| 9248 |
|
| 9249 | public override TestUnpackedExtensionsLite BuildPartial() {
|
| 9250 | if (result == null) {
|
| 9251 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9252 | }
|
| 9253 | TestUnpackedExtensionsLite returnMe = result;
|
| 9254 | result = null;
|
| 9255 | return returnMe;
|
| 9256 | }
|
| 9257 |
|
| 9258 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9259 | if (other is TestUnpackedExtensionsLite) {
|
| 9260 | return MergeFrom((TestUnpackedExtensionsLite) other);
|
| 9261 | } else {
|
| 9262 | base.MergeFrom(other);
|
| 9263 | return this;
|
| 9264 | }
|
| 9265 | }
|
| 9266 |
|
| 9267 | public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
|
| 9268 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
|
| 9269 | this.MergeExtensionFields(other);
|
| 9270 | return this;
|
| 9271 | }
|
| 9272 |
|
| 9273 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 9274 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9275 | }
|
| 9276 |
|
| 9277 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9278 | uint tag;
|
| 9279 | string field_name;
|
| 9280 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9281 | if(tag == 0 && field_name != null) {
|
| 9282 | int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9283 | if(field_ordinal >= 0)
|
| 9284 | tag = _testUnpackedExtensionsLiteFieldTags[field_ordinal];
|
| 9285 | else {
|
| 9286 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9287 | continue;
|
| 9288 | }
|
| 9289 | }
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9290 | switch (tag) {
|
| 9291 | case 0: {
|
| 9292 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 9293 | }
|
| 9294 | default: {
|
| 9295 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9296 | return this;
|
| 9297 | }
|
| 9298 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9299 | break;
|
| 9300 | }
|
| 9301 | }
|
| 9302 | }
|
| 9303 |
|
| 9304 | return this;
|
| 9305 | }
|
| 9306 |
|
| 9307 | }
|
| 9308 | static TestUnpackedExtensionsLite() {
|
| 9309 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9310 | }
|
| 9311 | }
|
| 9312 |
|
| 9313 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9314 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9315 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9316 | public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
|
| 9317 | private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9318 | private static readonly string[] _testNestedExtensionLiteFieldNames = new string[] { };
|
| 9319 | private static readonly uint[] _testNestedExtensionLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9320 | public static TestNestedExtensionLite DefaultInstance {
|
| 9321 | get { return defaultInstance; }
|
| 9322 | }
|
| 9323 |
|
| 9324 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9325 | get { return defaultInstance; }
|
| 9326 | }
|
| 9327 |
|
| 9328 | protected override TestNestedExtensionLite ThisMessage {
|
| 9329 | get { return this; }
|
| 9330 | }
|
| 9331 |
|
| 9332 | public const int NestedExtensionFieldNumber = 12345;
|
| 9333 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
|
| 9334 | public override bool IsInitialized {
|
| 9335 | get {
|
| 9336 | return true;
|
| 9337 | }
|
| 9338 | }
|
| 9339 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9340 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9341 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9342 | string[] field_names = _testNestedExtensionLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9343 | }
|
| 9344 |
|
| 9345 | private int memoizedSerializedSize = -1;
|
| 9346 | public override int SerializedSize {
|
| 9347 | get {
|
| 9348 | int size = memoizedSerializedSize;
|
| 9349 | if (size != -1) return size;
|
| 9350 |
|
| 9351 | size = 0;
|
| 9352 | memoizedSerializedSize = size;
|
| 9353 | return size;
|
| 9354 | }
|
| 9355 | }
|
| 9356 |
|
| 9357 | #region Lite runtime methods
|
| 9358 | public override int GetHashCode() {
|
| 9359 | int hash = GetType().GetHashCode();
|
| 9360 | return hash;
|
| 9361 | }
|
| 9362 |
|
| 9363 | public override bool Equals(object obj) {
|
| 9364 | TestNestedExtensionLite other = obj as TestNestedExtensionLite;
|
| 9365 | if (other == null) return false;
|
| 9366 | return true;
|
| 9367 | }
|
| 9368 |
|
| 9369 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9370 | }
|
| 9371 | #endregion
|
| 9372 |
|
| 9373 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
|
| 9374 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9375 | }
|
| 9376 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9377 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9378 | }
|
| 9379 | public static TestNestedExtensionLite ParseFrom(byte[] data) {
|
| 9380 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9381 | }
|
| 9382 | public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9383 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9384 | }
|
| 9385 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
|
| 9386 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9387 | }
|
| 9388 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9389 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9390 | }
|
| 9391 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9392 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9393 | }
|
| 9394 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9395 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9396 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9397 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9398 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9399 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9400 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9401 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9402 | }
|
| 9403 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9404 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9405 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9406 | public static Builder CreateBuilder(TestNestedExtensionLite prototype) {
|
| 9407 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9408 | }
|
| 9409 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9410 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9411 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9412 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9413 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
|
| 9414 | protected override Builder ThisBuilder {
|
| 9415 | get { return this; }
|
| 9416 | }
|
| 9417 | public Builder() {}
|
| 9418 |
|
| 9419 | TestNestedExtensionLite result = new TestNestedExtensionLite();
|
| 9420 |
|
| 9421 | protected override TestNestedExtensionLite MessageBeingBuilt {
|
| 9422 | get { return result; }
|
| 9423 | }
|
| 9424 |
|
| 9425 | public override Builder Clear() {
|
| 9426 | result = new TestNestedExtensionLite();
|
| 9427 | return this;
|
| 9428 | }
|
| 9429 |
|
| 9430 | public override Builder Clone() {
|
| 9431 | return new Builder().MergeFrom(result);
|
| 9432 | }
|
| 9433 |
|
| 9434 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9435 | get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
|
| 9436 | }
|
| 9437 |
|
| 9438 | public override TestNestedExtensionLite BuildPartial() {
|
| 9439 | if (result == null) {
|
| 9440 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9441 | }
|
| 9442 | TestNestedExtensionLite returnMe = result;
|
| 9443 | result = null;
|
| 9444 | return returnMe;
|
| 9445 | }
|
| 9446 |
|
| 9447 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9448 | if (other is TestNestedExtensionLite) {
|
| 9449 | return MergeFrom((TestNestedExtensionLite) other);
|
| 9450 | } else {
|
| 9451 | base.MergeFrom(other);
|
| 9452 | return this;
|
| 9453 | }
|
| 9454 | }
|
| 9455 |
|
| 9456 | public override Builder MergeFrom(TestNestedExtensionLite other) {
|
| 9457 | if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
|
| 9458 | return this;
|
| 9459 | }
|
| 9460 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9461 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9462 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9463 | }
|
| 9464 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9465 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9466 | uint tag;
|
| 9467 | string field_name;
|
| 9468 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9469 | if(tag == 0 && field_name != null) {
|
| 9470 | int field_ordinal = global::System.Array.BinarySearch(_testNestedExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9471 | if(field_ordinal >= 0)
|
| 9472 | tag = _testNestedExtensionLiteFieldTags[field_ordinal];
|
| 9473 | else {
|
| 9474 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9475 | continue;
|
| 9476 | }
|
| 9477 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9478 | switch (tag) {
|
| 9479 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9480 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9481 | }
|
| 9482 | default: {
|
| 9483 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9484 | return this;
|
| 9485 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9486 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9487 | break;
|
| 9488 | }
|
| 9489 | }
|
| 9490 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9491 |
|
| 9492 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9493 | }
|
| 9494 |
|
| 9495 | }
|
| 9496 | static TestNestedExtensionLite() {
|
| 9497 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9498 | }
|
| 9499 | }
|
| 9500 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9501 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9502 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9503 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9504 | public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
|
| 9505 | private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9506 | private static readonly string[] _testDeprecatedLiteFieldNames = new string[] { "deprecated_field" };
|
| 9507 | private static readonly uint[] _testDeprecatedLiteFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9508 | public static TestDeprecatedLite DefaultInstance {
|
| 9509 | get { return defaultInstance; }
|
| 9510 | }
|
| 9511 |
|
| 9512 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9513 | get { return defaultInstance; }
|
| 9514 | }
|
| 9515 |
|
| 9516 | protected override TestDeprecatedLite ThisMessage {
|
| 9517 | get { return this; }
|
| 9518 | }
|
| 9519 |
|
| 9520 | public const int DeprecatedFieldFieldNumber = 1;
|
| 9521 | private bool hasDeprecatedField;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame^] | 9522 | private int deprecatedField_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9523 | public bool HasDeprecatedField {
|
| 9524 | get { return hasDeprecatedField; }
|
| 9525 | }
|
| 9526 | public int DeprecatedField {
|
| 9527 | get { return deprecatedField_; }
|
| 9528 | }
|
| 9529 |
|
| 9530 | public override bool IsInitialized {
|
| 9531 | get {
|
| 9532 | return true;
|
| 9533 | }
|
| 9534 | }
|
| 9535 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9536 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9537 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9538 | string[] field_names = _testDeprecatedLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9539 | if (hasDeprecatedField) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9540 | output.WriteInt32(1, field_names[0], DeprecatedField);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9541 | }
|
| 9542 | }
|
| 9543 |
|
| 9544 | private int memoizedSerializedSize = -1;
|
| 9545 | public override int SerializedSize {
|
| 9546 | get {
|
| 9547 | int size = memoizedSerializedSize;
|
| 9548 | if (size != -1) return size;
|
| 9549 |
|
| 9550 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9551 | if (hasDeprecatedField) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9552 | size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
|
| 9553 | }
|
| 9554 | memoizedSerializedSize = size;
|
| 9555 | return size;
|
| 9556 | }
|
| 9557 | }
|
| 9558 |
|
| 9559 | #region Lite runtime methods
|
| 9560 | public override int GetHashCode() {
|
| 9561 | int hash = GetType().GetHashCode();
|
| 9562 | if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
|
| 9563 | return hash;
|
| 9564 | }
|
| 9565 |
|
| 9566 | public override bool Equals(object obj) {
|
| 9567 | TestDeprecatedLite other = obj as TestDeprecatedLite;
|
| 9568 | if (other == null) return false;
|
| 9569 | if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
|
| 9570 | return true;
|
| 9571 | }
|
| 9572 |
|
| 9573 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9574 | PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
|
| 9575 | }
|
| 9576 | #endregion
|
| 9577 |
|
| 9578 | public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
|
| 9579 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9580 | }
|
| 9581 | public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9582 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9583 | }
|
| 9584 | public static TestDeprecatedLite ParseFrom(byte[] data) {
|
| 9585 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9586 | }
|
| 9587 | public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9588 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9589 | }
|
| 9590 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
|
| 9591 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9592 | }
|
| 9593 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9594 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9595 | }
|
| 9596 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9597 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9598 | }
|
| 9599 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9600 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9601 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9602 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9603 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9604 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9605 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9606 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9607 | }
|
| 9608 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9609 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9610 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9611 | public static Builder CreateBuilder(TestDeprecatedLite prototype) {
|
| 9612 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9613 | }
|
| 9614 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9615 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9616 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9617 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9618 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
|
| 9619 | protected override Builder ThisBuilder {
|
| 9620 | get { return this; }
|
| 9621 | }
|
| 9622 | public Builder() {}
|
| 9623 |
|
| 9624 | TestDeprecatedLite result = new TestDeprecatedLite();
|
| 9625 |
|
| 9626 | protected override TestDeprecatedLite MessageBeingBuilt {
|
| 9627 | get { return result; }
|
| 9628 | }
|
| 9629 |
|
| 9630 | public override Builder Clear() {
|
| 9631 | result = new TestDeprecatedLite();
|
| 9632 | return this;
|
| 9633 | }
|
| 9634 |
|
| 9635 | public override Builder Clone() {
|
| 9636 | return new Builder().MergeFrom(result);
|
| 9637 | }
|
| 9638 |
|
| 9639 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9640 | get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
|
| 9641 | }
|
| 9642 |
|
| 9643 | public override TestDeprecatedLite BuildPartial() {
|
| 9644 | if (result == null) {
|
| 9645 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9646 | }
|
| 9647 | TestDeprecatedLite returnMe = result;
|
| 9648 | result = null;
|
| 9649 | return returnMe;
|
| 9650 | }
|
| 9651 |
|
| 9652 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9653 | if (other is TestDeprecatedLite) {
|
| 9654 | return MergeFrom((TestDeprecatedLite) other);
|
| 9655 | } else {
|
| 9656 | base.MergeFrom(other);
|
| 9657 | return this;
|
| 9658 | }
|
| 9659 | }
|
| 9660 |
|
| 9661 | public override Builder MergeFrom(TestDeprecatedLite other) {
|
| 9662 | if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
|
| 9663 | if (other.HasDeprecatedField) {
|
| 9664 | DeprecatedField = other.DeprecatedField;
|
| 9665 | }
|
| 9666 | return this;
|
| 9667 | }
|
| 9668 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9669 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9670 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9671 | }
|
| 9672 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9673 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9674 | uint tag;
|
| 9675 | string field_name;
|
| 9676 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9677 | if(tag == 0 && field_name != null) {
|
| 9678 | int field_ordinal = global::System.Array.BinarySearch(_testDeprecatedLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9679 | if(field_ordinal >= 0)
|
| 9680 | tag = _testDeprecatedLiteFieldTags[field_ordinal];
|
| 9681 | else {
|
| 9682 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9683 | continue;
|
| 9684 | }
|
| 9685 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9686 | switch (tag) {
|
| 9687 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9688 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9689 | }
|
| 9690 | default: {
|
| 9691 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9692 | return this;
|
| 9693 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9694 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9695 | break;
|
| 9696 | }
|
| 9697 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9698 | result.hasDeprecatedField = input.ReadInt32(ref result.deprecatedField_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9699 | break;
|
| 9700 | }
|
| 9701 | }
|
| 9702 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9703 |
|
| 9704 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9705 | }
|
| 9706 |
|
| 9707 |
|
| 9708 | public bool HasDeprecatedField {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9709 | get { return result.hasDeprecatedField; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9710 | }
|
| 9711 | public int DeprecatedField {
|
| 9712 | get { return result.DeprecatedField; }
|
| 9713 | set { SetDeprecatedField(value); }
|
| 9714 | }
|
| 9715 | public Builder SetDeprecatedField(int value) {
|
| 9716 | result.hasDeprecatedField = true;
|
| 9717 | result.deprecatedField_ = value;
|
| 9718 | return this;
|
| 9719 | }
|
| 9720 | public Builder ClearDeprecatedField() {
|
| 9721 | result.hasDeprecatedField = false;
|
| 9722 | result.deprecatedField_ = 0;
|
| 9723 | return this;
|
| 9724 | }
|
| 9725 | }
|
| 9726 | static TestDeprecatedLite() {
|
| 9727 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9728 | }
|
| 9729 | }
|
| 9730 |
|
| 9731 | #endregion
|
| 9732 |
|
| 9733 | }
|