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!
|
csharptest | 2d88733 | 2011-08-12 20:13:44 -0500 | [diff] [blame] | 2 | #pragma warning disable 1591
|
| 3 | #region Designer generated code
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4 |
|
| 5 | using pb = global::Google.ProtocolBuffers;
|
| 6 | using pbc = global::Google.ProtocolBuffers.Collections;
|
| 7 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
| 8 | using scg = global::System.Collections.Generic;
|
| 9 | namespace Google.ProtocolBuffers.TestProtos {
|
| 10 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 11 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 12 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 13 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 14 | public static partial class UnitTestLiteProtoFile {
|
| 15 |
|
| 16 | #region Extension registration
|
| 17 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
| 18 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite);
|
| 19 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite);
|
| 20 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite);
|
| 21 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite);
|
| 22 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite);
|
| 23 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite);
|
| 24 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite);
|
| 25 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite);
|
| 26 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite);
|
| 27 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite);
|
| 28 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite);
|
| 29 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite);
|
| 30 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite);
|
| 31 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite);
|
| 32 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite);
|
| 33 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite);
|
| 34 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite);
|
| 35 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite);
|
| 36 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite);
|
| 37 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite);
|
| 38 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite);
|
| 39 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite);
|
| 40 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite);
|
| 41 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite);
|
| 42 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite);
|
| 43 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite);
|
| 44 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite);
|
| 45 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite);
|
| 46 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite);
|
| 47 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite);
|
| 48 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite);
|
| 49 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite);
|
| 50 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite);
|
| 51 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite);
|
| 52 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite);
|
| 53 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite);
|
| 54 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite);
|
| 55 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite);
|
| 56 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite);
|
| 57 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite);
|
| 58 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite);
|
| 59 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite);
|
| 60 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite);
|
| 61 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite);
|
| 62 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite);
|
| 63 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite);
|
| 64 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite);
|
| 65 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite);
|
| 66 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite);
|
| 67 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite);
|
| 68 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite);
|
| 69 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite);
|
| 70 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite);
|
| 71 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite);
|
| 72 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite);
|
| 73 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite);
|
| 74 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite);
|
| 75 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite);
|
| 76 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite);
|
| 77 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite);
|
| 78 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite);
|
| 79 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite);
|
| 80 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite);
|
| 81 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite);
|
| 82 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite);
|
| 83 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite);
|
| 84 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite);
|
| 85 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite);
|
| 86 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite);
|
| 87 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite);
|
| 88 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite);
|
| 89 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite);
|
| 90 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite);
|
| 91 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite);
|
| 92 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite);
|
| 93 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite);
|
| 94 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite);
|
| 95 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite);
|
| 96 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite);
|
| 97 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite);
|
| 98 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite);
|
| 99 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 100 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite);
|
| 101 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite);
|
| 102 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite);
|
| 103 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite);
|
| 104 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite);
|
| 105 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite);
|
| 106 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite);
|
| 107 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite);
|
| 108 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite);
|
| 109 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite);
|
| 110 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite);
|
| 111 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite);
|
| 112 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite);
|
| 113 | registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 114 | registry.Add(global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension);
|
| 115 | }
|
| 116 | #endregion
|
| 117 | #region Extensions
|
| 118 | public const int OptionalInt32ExtensionLiteFieldNumber = 1;
|
| 119 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalInt32ExtensionLite;
|
| 120 | public const int OptionalInt64ExtensionLiteFieldNumber = 2;
|
| 121 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalInt64ExtensionLite;
|
| 122 | public const int OptionalUint32ExtensionLiteFieldNumber = 3;
|
| 123 | [global::System.CLSCompliant(false)]
|
| 124 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalUint32ExtensionLite;
|
| 125 | public const int OptionalUint64ExtensionLiteFieldNumber = 4;
|
| 126 | [global::System.CLSCompliant(false)]
|
| 127 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalUint64ExtensionLite;
|
| 128 | public const int OptionalSint32ExtensionLiteFieldNumber = 5;
|
| 129 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSint32ExtensionLite;
|
| 130 | public const int OptionalSint64ExtensionLiteFieldNumber = 6;
|
| 131 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSint64ExtensionLite;
|
| 132 | public const int OptionalFixed32ExtensionLiteFieldNumber = 7;
|
| 133 | [global::System.CLSCompliant(false)]
|
| 134 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> OptionalFixed32ExtensionLite;
|
| 135 | public const int OptionalFixed64ExtensionLiteFieldNumber = 8;
|
| 136 | [global::System.CLSCompliant(false)]
|
| 137 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> OptionalFixed64ExtensionLite;
|
| 138 | public const int OptionalSfixed32ExtensionLiteFieldNumber = 9;
|
| 139 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> OptionalSfixed32ExtensionLite;
|
| 140 | public const int OptionalSfixed64ExtensionLiteFieldNumber = 10;
|
| 141 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> OptionalSfixed64ExtensionLite;
|
| 142 | public const int OptionalFloatExtensionLiteFieldNumber = 11;
|
| 143 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> OptionalFloatExtensionLite;
|
| 144 | public const int OptionalDoubleExtensionLiteFieldNumber = 12;
|
| 145 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> OptionalDoubleExtensionLite;
|
| 146 | public const int OptionalBoolExtensionLiteFieldNumber = 13;
|
| 147 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> OptionalBoolExtensionLite;
|
| 148 | public const int OptionalStringExtensionLiteFieldNumber = 14;
|
| 149 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringExtensionLite;
|
| 150 | public const int OptionalBytesExtensionLiteFieldNumber = 15;
|
| 151 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> OptionalBytesExtensionLite;
|
| 152 | public const int OptionalGroupExtensionLiteFieldNumber = 16;
|
| 153 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite> OptionalGroupExtensionLite;
|
| 154 | public const int OptionalNestedMessageExtensionLiteFieldNumber = 18;
|
| 155 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> OptionalNestedMessageExtensionLite;
|
| 156 | public const int OptionalForeignMessageExtensionLiteFieldNumber = 19;
|
| 157 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> OptionalForeignMessageExtensionLite;
|
| 158 | public const int OptionalImportMessageExtensionLiteFieldNumber = 20;
|
| 159 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> OptionalImportMessageExtensionLite;
|
| 160 | public const int OptionalNestedEnumExtensionLiteFieldNumber = 21;
|
| 161 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> OptionalNestedEnumExtensionLite;
|
| 162 | public const int OptionalForeignEnumExtensionLiteFieldNumber = 22;
|
| 163 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> OptionalForeignEnumExtensionLite;
|
| 164 | public const int OptionalImportEnumExtensionLiteFieldNumber = 23;
|
| 165 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> OptionalImportEnumExtensionLite;
|
| 166 | public const int OptionalStringPieceExtensionLiteFieldNumber = 24;
|
| 167 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalStringPieceExtensionLite;
|
| 168 | public const int OptionalCordExtensionLiteFieldNumber = 25;
|
| 169 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> OptionalCordExtensionLite;
|
| 170 | public const int RepeatedInt32ExtensionLiteFieldNumber = 31;
|
| 171 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedInt32ExtensionLite;
|
| 172 | public const int RepeatedInt64ExtensionLiteFieldNumber = 32;
|
| 173 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedInt64ExtensionLite;
|
| 174 | public const int RepeatedUint32ExtensionLiteFieldNumber = 33;
|
| 175 | [global::System.CLSCompliant(false)]
|
| 176 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedUint32ExtensionLite;
|
| 177 | public const int RepeatedUint64ExtensionLiteFieldNumber = 34;
|
| 178 | [global::System.CLSCompliant(false)]
|
| 179 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedUint64ExtensionLite;
|
| 180 | public const int RepeatedSint32ExtensionLiteFieldNumber = 35;
|
| 181 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSint32ExtensionLite;
|
| 182 | public const int RepeatedSint64ExtensionLiteFieldNumber = 36;
|
| 183 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSint64ExtensionLite;
|
| 184 | public const int RepeatedFixed32ExtensionLiteFieldNumber = 37;
|
| 185 | [global::System.CLSCompliant(false)]
|
| 186 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> RepeatedFixed32ExtensionLite;
|
| 187 | public const int RepeatedFixed64ExtensionLiteFieldNumber = 38;
|
| 188 | [global::System.CLSCompliant(false)]
|
| 189 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> RepeatedFixed64ExtensionLite;
|
| 190 | public const int RepeatedSfixed32ExtensionLiteFieldNumber = 39;
|
| 191 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> RepeatedSfixed32ExtensionLite;
|
| 192 | public const int RepeatedSfixed64ExtensionLiteFieldNumber = 40;
|
| 193 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> RepeatedSfixed64ExtensionLite;
|
| 194 | public const int RepeatedFloatExtensionLiteFieldNumber = 41;
|
| 195 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> RepeatedFloatExtensionLite;
|
| 196 | public const int RepeatedDoubleExtensionLiteFieldNumber = 42;
|
| 197 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> RepeatedDoubleExtensionLite;
|
| 198 | public const int RepeatedBoolExtensionLiteFieldNumber = 43;
|
| 199 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> RepeatedBoolExtensionLite;
|
| 200 | public const int RepeatedStringExtensionLiteFieldNumber = 44;
|
| 201 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringExtensionLite;
|
| 202 | public const int RepeatedBytesExtensionLiteFieldNumber = 45;
|
| 203 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> RepeatedBytesExtensionLite;
|
| 204 | public const int RepeatedGroupExtensionLiteFieldNumber = 46;
|
| 205 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite> RepeatedGroupExtensionLite;
|
| 206 | public const int RepeatedNestedMessageExtensionLiteFieldNumber = 48;
|
| 207 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageExtensionLite;
|
| 208 | public const int RepeatedForeignMessageExtensionLiteFieldNumber = 49;
|
| 209 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageExtensionLite;
|
| 210 | public const int RepeatedImportMessageExtensionLiteFieldNumber = 50;
|
| 211 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageExtensionLite;
|
| 212 | public const int RepeatedNestedEnumExtensionLiteFieldNumber = 51;
|
| 213 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumExtensionLite;
|
| 214 | public const int RepeatedForeignEnumExtensionLiteFieldNumber = 52;
|
| 215 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumExtensionLite;
|
| 216 | public const int RepeatedImportEnumExtensionLiteFieldNumber = 53;
|
| 217 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumExtensionLite;
|
| 218 | public const int RepeatedStringPieceExtensionLiteFieldNumber = 54;
|
| 219 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedStringPieceExtensionLite;
|
| 220 | public const int RepeatedCordExtensionLiteFieldNumber = 55;
|
| 221 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> RepeatedCordExtensionLite;
|
| 222 | public const int DefaultInt32ExtensionLiteFieldNumber = 61;
|
| 223 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultInt32ExtensionLite;
|
| 224 | public const int DefaultInt64ExtensionLiteFieldNumber = 62;
|
| 225 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultInt64ExtensionLite;
|
| 226 | public const int DefaultUint32ExtensionLiteFieldNumber = 63;
|
| 227 | [global::System.CLSCompliant(false)]
|
| 228 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultUint32ExtensionLite;
|
| 229 | public const int DefaultUint64ExtensionLiteFieldNumber = 64;
|
| 230 | [global::System.CLSCompliant(false)]
|
| 231 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultUint64ExtensionLite;
|
| 232 | public const int DefaultSint32ExtensionLiteFieldNumber = 65;
|
| 233 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSint32ExtensionLite;
|
| 234 | public const int DefaultSint64ExtensionLiteFieldNumber = 66;
|
| 235 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSint64ExtensionLite;
|
| 236 | public const int DefaultFixed32ExtensionLiteFieldNumber = 67;
|
| 237 | [global::System.CLSCompliant(false)]
|
| 238 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint> DefaultFixed32ExtensionLite;
|
| 239 | public const int DefaultFixed64ExtensionLiteFieldNumber = 68;
|
| 240 | [global::System.CLSCompliant(false)]
|
| 241 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong> DefaultFixed64ExtensionLite;
|
| 242 | public const int DefaultSfixed32ExtensionLiteFieldNumber = 69;
|
| 243 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> DefaultSfixed32ExtensionLite;
|
| 244 | public const int DefaultSfixed64ExtensionLiteFieldNumber = 70;
|
| 245 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long> DefaultSfixed64ExtensionLite;
|
| 246 | public const int DefaultFloatExtensionLiteFieldNumber = 71;
|
| 247 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float> DefaultFloatExtensionLite;
|
| 248 | public const int DefaultDoubleExtensionLiteFieldNumber = 72;
|
| 249 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double> DefaultDoubleExtensionLite;
|
| 250 | public const int DefaultBoolExtensionLiteFieldNumber = 73;
|
| 251 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool> DefaultBoolExtensionLite;
|
| 252 | public const int DefaultStringExtensionLiteFieldNumber = 74;
|
| 253 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringExtensionLite;
|
| 254 | public const int DefaultBytesExtensionLiteFieldNumber = 75;
|
| 255 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString> DefaultBytesExtensionLite;
|
| 256 | public const int DefaultNestedEnumExtensionLiteFieldNumber = 81;
|
| 257 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> DefaultNestedEnumExtensionLite;
|
| 258 | public const int DefaultForeignEnumExtensionLiteFieldNumber = 82;
|
| 259 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> DefaultForeignEnumExtensionLite;
|
| 260 | public const int DefaultImportEnumExtensionLiteFieldNumber = 83;
|
| 261 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> DefaultImportEnumExtensionLite;
|
| 262 | public const int DefaultStringPieceExtensionLiteFieldNumber = 84;
|
| 263 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultStringPieceExtensionLite;
|
| 264 | public const int DefaultCordExtensionLiteFieldNumber = 85;
|
| 265 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string> DefaultCordExtensionLite;
|
| 266 | public const int PackedInt32ExtensionLiteFieldNumber = 90;
|
| 267 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedInt32ExtensionLite;
|
| 268 | public const int PackedInt64ExtensionLiteFieldNumber = 91;
|
| 269 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedInt64ExtensionLite;
|
| 270 | public const int PackedUint32ExtensionLiteFieldNumber = 92;
|
| 271 | [global::System.CLSCompliant(false)]
|
| 272 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedUint32ExtensionLite;
|
| 273 | public const int PackedUint64ExtensionLiteFieldNumber = 93;
|
| 274 | [global::System.CLSCompliant(false)]
|
| 275 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedUint64ExtensionLite;
|
| 276 | public const int PackedSint32ExtensionLiteFieldNumber = 94;
|
| 277 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSint32ExtensionLite;
|
| 278 | public const int PackedSint64ExtensionLiteFieldNumber = 95;
|
| 279 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSint64ExtensionLite;
|
| 280 | public const int PackedFixed32ExtensionLiteFieldNumber = 96;
|
| 281 | [global::System.CLSCompliant(false)]
|
| 282 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint> PackedFixed32ExtensionLite;
|
| 283 | public const int PackedFixed64ExtensionLiteFieldNumber = 97;
|
| 284 | [global::System.CLSCompliant(false)]
|
| 285 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong> PackedFixed64ExtensionLite;
|
| 286 | public const int PackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 287 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int> PackedSfixed32ExtensionLite;
|
| 288 | public const int PackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 289 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long> PackedSfixed64ExtensionLite;
|
| 290 | public const int PackedFloatExtensionLiteFieldNumber = 100;
|
| 291 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float> PackedFloatExtensionLite;
|
| 292 | public const int PackedDoubleExtensionLiteFieldNumber = 101;
|
| 293 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double> PackedDoubleExtensionLite;
|
| 294 | public const int PackedBoolExtensionLiteFieldNumber = 102;
|
| 295 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool> PackedBoolExtensionLite;
|
| 296 | public const int PackedEnumExtensionLiteFieldNumber = 103;
|
| 297 | 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] | 298 | public const int UnpackedInt32ExtensionLiteFieldNumber = 90;
|
| 299 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedInt32ExtensionLite;
|
| 300 | public const int UnpackedInt64ExtensionLiteFieldNumber = 91;
|
| 301 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedInt64ExtensionLite;
|
| 302 | public const int UnpackedUint32ExtensionLiteFieldNumber = 92;
|
| 303 | [global::System.CLSCompliant(false)]
|
| 304 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedUint32ExtensionLite;
|
| 305 | public const int UnpackedUint64ExtensionLiteFieldNumber = 93;
|
| 306 | [global::System.CLSCompliant(false)]
|
| 307 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedUint64ExtensionLite;
|
| 308 | public const int UnpackedSint32ExtensionLiteFieldNumber = 94;
|
| 309 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSint32ExtensionLite;
|
| 310 | public const int UnpackedSint64ExtensionLiteFieldNumber = 95;
|
| 311 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSint64ExtensionLite;
|
| 312 | public const int UnpackedFixed32ExtensionLiteFieldNumber = 96;
|
| 313 | [global::System.CLSCompliant(false)]
|
| 314 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint> UnpackedFixed32ExtensionLite;
|
| 315 | public const int UnpackedFixed64ExtensionLiteFieldNumber = 97;
|
| 316 | [global::System.CLSCompliant(false)]
|
| 317 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong> UnpackedFixed64ExtensionLite;
|
| 318 | public const int UnpackedSfixed32ExtensionLiteFieldNumber = 98;
|
| 319 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int> UnpackedSfixed32ExtensionLite;
|
| 320 | public const int UnpackedSfixed64ExtensionLiteFieldNumber = 99;
|
| 321 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long> UnpackedSfixed64ExtensionLite;
|
| 322 | public const int UnpackedFloatExtensionLiteFieldNumber = 100;
|
| 323 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float> UnpackedFloatExtensionLite;
|
| 324 | public const int UnpackedDoubleExtensionLiteFieldNumber = 101;
|
| 325 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double> UnpackedDoubleExtensionLite;
|
| 326 | public const int UnpackedBoolExtensionLiteFieldNumber = 102;
|
| 327 | public static pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool> UnpackedBoolExtensionLite;
|
| 328 | public const int UnpackedEnumExtensionLiteFieldNumber = 103;
|
| 329 | 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] | 330 | #endregion
|
| 331 |
|
| 332 | #region Static variables
|
| 333 | #endregion
|
| 334 | #region Extensions
|
| 335 | internal static readonly object Descriptor;
|
| 336 | static UnitTestLiteProtoFile() {
|
| 337 | Descriptor = null;
|
| 338 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtension =
|
| 339 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 340 | "protobuf_unittest.TestNestedExtensionLite.nested_extension",
|
| 341 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 342 | default(int),
|
| 343 | null,
|
| 344 | null,
|
| 345 | global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.NestedExtensionFieldNumber,
|
| 346 | pbd::FieldType.Int32);
|
| 347 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLite =
|
| 348 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 349 | "protobuf_unittest.optional_int32_extension_lite",
|
| 350 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 351 | default(int),
|
| 352 | null,
|
| 353 | null,
|
| 354 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt32ExtensionLiteFieldNumber,
|
| 355 | pbd::FieldType.Int32);
|
| 356 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLite =
|
| 357 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 358 | "protobuf_unittest.optional_int64_extension_lite",
|
| 359 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 360 | default(long),
|
| 361 | null,
|
| 362 | null,
|
| 363 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalInt64ExtensionLiteFieldNumber,
|
| 364 | pbd::FieldType.Int64);
|
| 365 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLite =
|
| 366 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 367 | "protobuf_unittest.optional_uint32_extension_lite",
|
| 368 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 369 | default(uint),
|
| 370 | null,
|
| 371 | null,
|
| 372 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint32ExtensionLiteFieldNumber,
|
| 373 | pbd::FieldType.UInt32);
|
| 374 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLite =
|
| 375 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 376 | "protobuf_unittest.optional_uint64_extension_lite",
|
| 377 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 378 | default(ulong),
|
| 379 | null,
|
| 380 | null,
|
| 381 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalUint64ExtensionLiteFieldNumber,
|
| 382 | pbd::FieldType.UInt64);
|
| 383 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLite =
|
| 384 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 385 | "protobuf_unittest.optional_sint32_extension_lite",
|
| 386 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 387 | default(int),
|
| 388 | null,
|
| 389 | null,
|
| 390 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint32ExtensionLiteFieldNumber,
|
| 391 | pbd::FieldType.SInt32);
|
| 392 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLite =
|
| 393 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 394 | "protobuf_unittest.optional_sint64_extension_lite",
|
| 395 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 396 | default(long),
|
| 397 | null,
|
| 398 | null,
|
| 399 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSint64ExtensionLiteFieldNumber,
|
| 400 | pbd::FieldType.SInt64);
|
| 401 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLite =
|
| 402 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 403 | "protobuf_unittest.optional_fixed32_extension_lite",
|
| 404 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 405 | default(uint),
|
| 406 | null,
|
| 407 | null,
|
| 408 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed32ExtensionLiteFieldNumber,
|
| 409 | pbd::FieldType.Fixed32);
|
| 410 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLite =
|
| 411 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 412 | "protobuf_unittest.optional_fixed64_extension_lite",
|
| 413 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 414 | default(ulong),
|
| 415 | null,
|
| 416 | null,
|
| 417 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFixed64ExtensionLiteFieldNumber,
|
| 418 | pbd::FieldType.Fixed64);
|
| 419 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLite =
|
| 420 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 421 | "protobuf_unittest.optional_sfixed32_extension_lite",
|
| 422 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 423 | default(int),
|
| 424 | null,
|
| 425 | null,
|
| 426 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed32ExtensionLiteFieldNumber,
|
| 427 | pbd::FieldType.SFixed32);
|
| 428 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLite =
|
| 429 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 430 | "protobuf_unittest.optional_sfixed64_extension_lite",
|
| 431 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 432 | default(long),
|
| 433 | null,
|
| 434 | null,
|
| 435 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalSfixed64ExtensionLiteFieldNumber,
|
| 436 | pbd::FieldType.SFixed64);
|
| 437 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLite =
|
| 438 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 439 | "protobuf_unittest.optional_float_extension_lite",
|
| 440 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 441 | default(float),
|
| 442 | null,
|
| 443 | null,
|
| 444 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalFloatExtensionLiteFieldNumber,
|
| 445 | pbd::FieldType.Float);
|
| 446 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLite =
|
| 447 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 448 | "protobuf_unittest.optional_double_extension_lite",
|
| 449 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 450 | default(double),
|
| 451 | null,
|
| 452 | null,
|
| 453 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalDoubleExtensionLiteFieldNumber,
|
| 454 | pbd::FieldType.Double);
|
| 455 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLite =
|
| 456 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 457 | "protobuf_unittest.optional_bool_extension_lite",
|
| 458 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 459 | default(bool),
|
| 460 | null,
|
| 461 | null,
|
| 462 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBoolExtensionLiteFieldNumber,
|
| 463 | pbd::FieldType.Bool);
|
| 464 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLite =
|
| 465 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 466 | "protobuf_unittest.optional_string_extension_lite",
|
| 467 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 468 | null,
|
| 469 | null,
|
| 470 | null,
|
| 471 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringExtensionLiteFieldNumber,
|
| 472 | pbd::FieldType.String);
|
| 473 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLite =
|
| 474 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 475 | "protobuf_unittest.optional_bytes_extension_lite",
|
| 476 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 477 | null,
|
| 478 | null,
|
| 479 | null,
|
| 480 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalBytesExtensionLiteFieldNumber,
|
| 481 | pbd::FieldType.Bytes);
|
| 482 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLite =
|
| 483 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite>(
|
| 484 | "protobuf_unittest.optionalgroup_extension_lite",
|
| 485 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 486 | null,
|
| 487 | global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance,
|
| 488 | null,
|
| 489 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalGroupExtensionLiteFieldNumber,
|
| 490 | pbd::FieldType.Group);
|
| 491 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLite =
|
| 492 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 493 | "protobuf_unittest.optional_nested_message_extension_lite",
|
| 494 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 495 | null,
|
| 496 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 497 | null,
|
| 498 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedMessageExtensionLiteFieldNumber,
|
| 499 | pbd::FieldType.Message);
|
| 500 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLite =
|
| 501 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 502 | "protobuf_unittest.optional_foreign_message_extension_lite",
|
| 503 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 504 | null,
|
| 505 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 506 | null,
|
| 507 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignMessageExtensionLiteFieldNumber,
|
| 508 | pbd::FieldType.Message);
|
| 509 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLite =
|
| 510 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 511 | "protobuf_unittest.optional_import_message_extension_lite",
|
| 512 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 513 | null,
|
| 514 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 515 | null,
|
| 516 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportMessageExtensionLiteFieldNumber,
|
| 517 | pbd::FieldType.Message);
|
| 518 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLite =
|
| 519 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 520 | "protobuf_unittest.optional_nested_enum_extension_lite",
|
| 521 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 522 | default(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum),
|
| 523 | null,
|
| 524 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 525 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalNestedEnumExtensionLiteFieldNumber,
|
| 526 | pbd::FieldType.Enum);
|
| 527 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLite =
|
| 528 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 529 | "protobuf_unittest.optional_foreign_enum_extension_lite",
|
| 530 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 531 | default(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite),
|
| 532 | null,
|
| 533 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 534 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalForeignEnumExtensionLiteFieldNumber,
|
| 535 | pbd::FieldType.Enum);
|
| 536 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLite =
|
| 537 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 538 | "protobuf_unittest.optional_import_enum_extension_lite",
|
| 539 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 540 | default(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite),
|
| 541 | null,
|
| 542 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 543 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalImportEnumExtensionLiteFieldNumber,
|
| 544 | pbd::FieldType.Enum);
|
| 545 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLite =
|
| 546 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 547 | "protobuf_unittest.optional_string_piece_extension_lite",
|
| 548 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 549 | null,
|
| 550 | null,
|
| 551 | null,
|
| 552 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalStringPieceExtensionLiteFieldNumber,
|
| 553 | pbd::FieldType.String);
|
| 554 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLite =
|
| 555 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 556 | "protobuf_unittest.optional_cord_extension_lite",
|
| 557 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 558 | null,
|
| 559 | null,
|
| 560 | null,
|
| 561 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.OptionalCordExtensionLiteFieldNumber,
|
| 562 | pbd::FieldType.String);
|
| 563 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLite =
|
| 564 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 565 | "protobuf_unittest.repeated_int32_extension_lite",
|
| 566 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 567 | null,
|
| 568 | null,
|
| 569 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt32ExtensionLiteFieldNumber,
|
| 570 | pbd::FieldType.Int32,
|
| 571 | false);
|
| 572 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLite =
|
| 573 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 574 | "protobuf_unittest.repeated_int64_extension_lite",
|
| 575 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 576 | null,
|
| 577 | null,
|
| 578 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedInt64ExtensionLiteFieldNumber,
|
| 579 | pbd::FieldType.Int64,
|
| 580 | false);
|
| 581 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLite =
|
| 582 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 583 | "protobuf_unittest.repeated_uint32_extension_lite",
|
| 584 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 585 | null,
|
| 586 | null,
|
| 587 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint32ExtensionLiteFieldNumber,
|
| 588 | pbd::FieldType.UInt32,
|
| 589 | false);
|
| 590 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLite =
|
| 591 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 592 | "protobuf_unittest.repeated_uint64_extension_lite",
|
| 593 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 594 | null,
|
| 595 | null,
|
| 596 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedUint64ExtensionLiteFieldNumber,
|
| 597 | pbd::FieldType.UInt64,
|
| 598 | false);
|
| 599 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLite =
|
| 600 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 601 | "protobuf_unittest.repeated_sint32_extension_lite",
|
| 602 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 603 | null,
|
| 604 | null,
|
| 605 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint32ExtensionLiteFieldNumber,
|
| 606 | pbd::FieldType.SInt32,
|
| 607 | false);
|
| 608 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLite =
|
| 609 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 610 | "protobuf_unittest.repeated_sint64_extension_lite",
|
| 611 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 612 | null,
|
| 613 | null,
|
| 614 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSint64ExtensionLiteFieldNumber,
|
| 615 | pbd::FieldType.SInt64,
|
| 616 | false);
|
| 617 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLite =
|
| 618 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 619 | "protobuf_unittest.repeated_fixed32_extension_lite",
|
| 620 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 621 | null,
|
| 622 | null,
|
| 623 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed32ExtensionLiteFieldNumber,
|
| 624 | pbd::FieldType.Fixed32,
|
| 625 | false);
|
| 626 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLite =
|
| 627 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 628 | "protobuf_unittest.repeated_fixed64_extension_lite",
|
| 629 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 630 | null,
|
| 631 | null,
|
| 632 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFixed64ExtensionLiteFieldNumber,
|
| 633 | pbd::FieldType.Fixed64,
|
| 634 | false);
|
| 635 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLite =
|
| 636 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 637 | "protobuf_unittest.repeated_sfixed32_extension_lite",
|
| 638 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 639 | null,
|
| 640 | null,
|
| 641 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed32ExtensionLiteFieldNumber,
|
| 642 | pbd::FieldType.SFixed32,
|
| 643 | false);
|
| 644 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLite =
|
| 645 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 646 | "protobuf_unittest.repeated_sfixed64_extension_lite",
|
| 647 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 648 | null,
|
| 649 | null,
|
| 650 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedSfixed64ExtensionLiteFieldNumber,
|
| 651 | pbd::FieldType.SFixed64,
|
| 652 | false);
|
| 653 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLite =
|
| 654 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 655 | "protobuf_unittest.repeated_float_extension_lite",
|
| 656 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 657 | null,
|
| 658 | null,
|
| 659 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedFloatExtensionLiteFieldNumber,
|
| 660 | pbd::FieldType.Float,
|
| 661 | false);
|
| 662 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLite =
|
| 663 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 664 | "protobuf_unittest.repeated_double_extension_lite",
|
| 665 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 666 | null,
|
| 667 | null,
|
| 668 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedDoubleExtensionLiteFieldNumber,
|
| 669 | pbd::FieldType.Double,
|
| 670 | false);
|
| 671 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLite =
|
| 672 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 673 | "protobuf_unittest.repeated_bool_extension_lite",
|
| 674 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 675 | null,
|
| 676 | null,
|
| 677 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBoolExtensionLiteFieldNumber,
|
| 678 | pbd::FieldType.Bool,
|
| 679 | false);
|
| 680 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLite =
|
| 681 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 682 | "protobuf_unittest.repeated_string_extension_lite",
|
| 683 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 684 | null,
|
| 685 | null,
|
| 686 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringExtensionLiteFieldNumber,
|
| 687 | pbd::FieldType.String,
|
| 688 | false);
|
| 689 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLite =
|
| 690 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 691 | "protobuf_unittest.repeated_bytes_extension_lite",
|
| 692 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 693 | null,
|
| 694 | null,
|
| 695 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedBytesExtensionLiteFieldNumber,
|
| 696 | pbd::FieldType.Bytes,
|
| 697 | false);
|
| 698 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLite =
|
| 699 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite>(
|
| 700 | "protobuf_unittest.repeatedgroup_extension_lite",
|
| 701 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 702 | global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance,
|
| 703 | null,
|
| 704 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedGroupExtensionLiteFieldNumber,
|
| 705 | pbd::FieldType.Group,
|
| 706 | false);
|
| 707 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLite =
|
| 708 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>(
|
| 709 | "protobuf_unittest.repeated_nested_message_extension_lite",
|
| 710 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 711 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance,
|
| 712 | null,
|
| 713 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedMessageExtensionLiteFieldNumber,
|
| 714 | pbd::FieldType.Message,
|
| 715 | false);
|
| 716 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLite =
|
| 717 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>(
|
| 718 | "protobuf_unittest.repeated_foreign_message_extension_lite",
|
| 719 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 720 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance,
|
| 721 | null,
|
| 722 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignMessageExtensionLiteFieldNumber,
|
| 723 | pbd::FieldType.Message,
|
| 724 | false);
|
| 725 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLite =
|
| 726 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>(
|
| 727 | "protobuf_unittest.repeated_import_message_extension_lite",
|
| 728 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 729 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance,
|
| 730 | null,
|
| 731 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportMessageExtensionLiteFieldNumber,
|
| 732 | pbd::FieldType.Message,
|
| 733 | false);
|
| 734 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLite =
|
| 735 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 736 | "protobuf_unittest.repeated_nested_enum_extension_lite",
|
| 737 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 738 | null,
|
| 739 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 740 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedNestedEnumExtensionLiteFieldNumber,
|
| 741 | pbd::FieldType.Enum,
|
| 742 | false);
|
| 743 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLite =
|
| 744 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 745 | "protobuf_unittest.repeated_foreign_enum_extension_lite",
|
| 746 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 747 | null,
|
| 748 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 749 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedForeignEnumExtensionLiteFieldNumber,
|
| 750 | pbd::FieldType.Enum,
|
| 751 | false);
|
| 752 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLite =
|
| 753 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 754 | "protobuf_unittest.repeated_import_enum_extension_lite",
|
| 755 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 756 | null,
|
| 757 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 758 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedImportEnumExtensionLiteFieldNumber,
|
| 759 | pbd::FieldType.Enum,
|
| 760 | false);
|
| 761 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLite =
|
| 762 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 763 | "protobuf_unittest.repeated_string_piece_extension_lite",
|
| 764 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 765 | null,
|
| 766 | null,
|
| 767 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedStringPieceExtensionLiteFieldNumber,
|
| 768 | pbd::FieldType.String,
|
| 769 | false);
|
| 770 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLite =
|
| 771 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 772 | "protobuf_unittest.repeated_cord_extension_lite",
|
| 773 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 774 | null,
|
| 775 | null,
|
| 776 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.RepeatedCordExtensionLiteFieldNumber,
|
| 777 | pbd::FieldType.String,
|
| 778 | false);
|
| 779 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLite =
|
| 780 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 781 | "protobuf_unittest.default_int32_extension_lite",
|
| 782 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 783 | 41,
|
| 784 | null,
|
| 785 | null,
|
| 786 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt32ExtensionLiteFieldNumber,
|
| 787 | pbd::FieldType.Int32);
|
| 788 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLite =
|
| 789 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 790 | "protobuf_unittest.default_int64_extension_lite",
|
| 791 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 792 | 42L,
|
| 793 | null,
|
| 794 | null,
|
| 795 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultInt64ExtensionLiteFieldNumber,
|
| 796 | pbd::FieldType.Int64);
|
| 797 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLite =
|
| 798 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 799 | "protobuf_unittest.default_uint32_extension_lite",
|
| 800 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 801 | 43,
|
| 802 | null,
|
| 803 | null,
|
| 804 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint32ExtensionLiteFieldNumber,
|
| 805 | pbd::FieldType.UInt32);
|
| 806 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLite =
|
| 807 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 808 | "protobuf_unittest.default_uint64_extension_lite",
|
| 809 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 810 | 44UL,
|
| 811 | null,
|
| 812 | null,
|
| 813 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultUint64ExtensionLiteFieldNumber,
|
| 814 | pbd::FieldType.UInt64);
|
| 815 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLite =
|
| 816 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 817 | "protobuf_unittest.default_sint32_extension_lite",
|
| 818 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 819 | -45,
|
| 820 | null,
|
| 821 | null,
|
| 822 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint32ExtensionLiteFieldNumber,
|
| 823 | pbd::FieldType.SInt32);
|
| 824 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLite =
|
| 825 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 826 | "protobuf_unittest.default_sint64_extension_lite",
|
| 827 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 828 | 46,
|
| 829 | null,
|
| 830 | null,
|
| 831 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSint64ExtensionLiteFieldNumber,
|
| 832 | pbd::FieldType.SInt64);
|
| 833 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLite =
|
| 834 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, uint>(
|
| 835 | "protobuf_unittest.default_fixed32_extension_lite",
|
| 836 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 837 | 47,
|
| 838 | null,
|
| 839 | null,
|
| 840 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed32ExtensionLiteFieldNumber,
|
| 841 | pbd::FieldType.Fixed32);
|
| 842 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLite =
|
| 843 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, ulong>(
|
| 844 | "protobuf_unittest.default_fixed64_extension_lite",
|
| 845 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 846 | 48,
|
| 847 | null,
|
| 848 | null,
|
| 849 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFixed64ExtensionLiteFieldNumber,
|
| 850 | pbd::FieldType.Fixed64);
|
| 851 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLite =
|
| 852 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int>(
|
| 853 | "protobuf_unittest.default_sfixed32_extension_lite",
|
| 854 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 855 | 49,
|
| 856 | null,
|
| 857 | null,
|
| 858 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed32ExtensionLiteFieldNumber,
|
| 859 | pbd::FieldType.SFixed32);
|
| 860 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLite =
|
| 861 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, long>(
|
| 862 | "protobuf_unittest.default_sfixed64_extension_lite",
|
| 863 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 864 | -50,
|
| 865 | null,
|
| 866 | null,
|
| 867 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultSfixed64ExtensionLiteFieldNumber,
|
| 868 | pbd::FieldType.SFixed64);
|
| 869 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLite =
|
| 870 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, float>(
|
| 871 | "protobuf_unittest.default_float_extension_lite",
|
| 872 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 873 | 51.5F,
|
| 874 | null,
|
| 875 | null,
|
| 876 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultFloatExtensionLiteFieldNumber,
|
| 877 | pbd::FieldType.Float);
|
| 878 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLite =
|
| 879 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, double>(
|
| 880 | "protobuf_unittest.default_double_extension_lite",
|
| 881 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 882 | 52000D,
|
| 883 | null,
|
| 884 | null,
|
| 885 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultDoubleExtensionLiteFieldNumber,
|
| 886 | pbd::FieldType.Double);
|
| 887 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLite =
|
| 888 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, bool>(
|
| 889 | "protobuf_unittest.default_bool_extension_lite",
|
| 890 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 891 | true,
|
| 892 | null,
|
| 893 | null,
|
| 894 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBoolExtensionLiteFieldNumber,
|
| 895 | pbd::FieldType.Bool);
|
| 896 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLite =
|
| 897 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 898 | "protobuf_unittest.default_string_extension_lite",
|
| 899 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 900 | "hello",
|
| 901 | null,
|
| 902 | null,
|
| 903 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringExtensionLiteFieldNumber,
|
| 904 | pbd::FieldType.String);
|
| 905 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLite =
|
| 906 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, pb::ByteString>(
|
| 907 | "protobuf_unittest.default_bytes_extension_lite",
|
| 908 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
csharptest | 02760b2 | 2011-07-14 14:46:42 -0500 | [diff] [blame] | 909 | pb::ByteString.FromBase64("d29ybGQ="),
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 910 | null,
|
| 911 | null,
|
| 912 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultBytesExtensionLiteFieldNumber,
|
| 913 | pbd::FieldType.Bytes);
|
| 914 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLite =
|
| 915 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(
|
| 916 | "protobuf_unittest.default_nested_enum_extension_lite",
|
| 917 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 918 | global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR,
|
| 919 | null,
|
| 920 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>(),
|
| 921 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultNestedEnumExtensionLiteFieldNumber,
|
| 922 | pbd::FieldType.Enum);
|
| 923 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLite =
|
| 924 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 925 | "protobuf_unittest.default_foreign_enum_extension_lite",
|
| 926 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 927 | global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR,
|
| 928 | null,
|
| 929 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 930 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultForeignEnumExtensionLiteFieldNumber,
|
| 931 | pbd::FieldType.Enum);
|
| 932 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLite =
|
| 933 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(
|
| 934 | "protobuf_unittest.default_import_enum_extension_lite",
|
| 935 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 936 | global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR,
|
| 937 | null,
|
| 938 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>(),
|
| 939 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultImportEnumExtensionLiteFieldNumber,
|
| 940 | pbd::FieldType.Enum);
|
| 941 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLite =
|
| 942 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 943 | "protobuf_unittest.default_string_piece_extension_lite",
|
| 944 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 945 | "abc",
|
| 946 | null,
|
| 947 | null,
|
| 948 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultStringPieceExtensionLiteFieldNumber,
|
| 949 | pbd::FieldType.String);
|
| 950 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLite =
|
| 951 | new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, string>(
|
| 952 | "protobuf_unittest.default_cord_extension_lite",
|
| 953 | global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance,
|
| 954 | "123",
|
| 955 | null,
|
| 956 | null,
|
| 957 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.DefaultCordExtensionLiteFieldNumber,
|
| 958 | pbd::FieldType.String);
|
| 959 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLite =
|
| 960 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 961 | "protobuf_unittest.packed_int32_extension_lite",
|
| 962 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 963 | null,
|
| 964 | null,
|
| 965 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt32ExtensionLiteFieldNumber,
|
| 966 | pbd::FieldType.Int32,
|
| 967 | true);
|
| 968 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLite =
|
| 969 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 970 | "protobuf_unittest.packed_int64_extension_lite",
|
| 971 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 972 | null,
|
| 973 | null,
|
| 974 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedInt64ExtensionLiteFieldNumber,
|
| 975 | pbd::FieldType.Int64,
|
| 976 | true);
|
| 977 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLite =
|
| 978 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 979 | "protobuf_unittest.packed_uint32_extension_lite",
|
| 980 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 981 | null,
|
| 982 | null,
|
| 983 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint32ExtensionLiteFieldNumber,
|
| 984 | pbd::FieldType.UInt32,
|
| 985 | true);
|
| 986 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLite =
|
| 987 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 988 | "protobuf_unittest.packed_uint64_extension_lite",
|
| 989 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 990 | null,
|
| 991 | null,
|
| 992 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedUint64ExtensionLiteFieldNumber,
|
| 993 | pbd::FieldType.UInt64,
|
| 994 | true);
|
| 995 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLite =
|
| 996 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 997 | "protobuf_unittest.packed_sint32_extension_lite",
|
| 998 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 999 | null,
|
| 1000 | null,
|
| 1001 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint32ExtensionLiteFieldNumber,
|
| 1002 | pbd::FieldType.SInt32,
|
| 1003 | true);
|
| 1004 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLite =
|
| 1005 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1006 | "protobuf_unittest.packed_sint64_extension_lite",
|
| 1007 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1008 | null,
|
| 1009 | null,
|
| 1010 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSint64ExtensionLiteFieldNumber,
|
| 1011 | pbd::FieldType.SInt64,
|
| 1012 | true);
|
| 1013 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLite =
|
| 1014 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, uint>(
|
| 1015 | "protobuf_unittest.packed_fixed32_extension_lite",
|
| 1016 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1017 | null,
|
| 1018 | null,
|
| 1019 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed32ExtensionLiteFieldNumber,
|
| 1020 | pbd::FieldType.Fixed32,
|
| 1021 | true);
|
| 1022 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLite =
|
| 1023 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, ulong>(
|
| 1024 | "protobuf_unittest.packed_fixed64_extension_lite",
|
| 1025 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1026 | null,
|
| 1027 | null,
|
| 1028 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFixed64ExtensionLiteFieldNumber,
|
| 1029 | pbd::FieldType.Fixed64,
|
| 1030 | true);
|
| 1031 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLite =
|
| 1032 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, int>(
|
| 1033 | "protobuf_unittest.packed_sfixed32_extension_lite",
|
| 1034 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1035 | null,
|
| 1036 | null,
|
| 1037 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed32ExtensionLiteFieldNumber,
|
| 1038 | pbd::FieldType.SFixed32,
|
| 1039 | true);
|
| 1040 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLite =
|
| 1041 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, long>(
|
| 1042 | "protobuf_unittest.packed_sfixed64_extension_lite",
|
| 1043 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1044 | null,
|
| 1045 | null,
|
| 1046 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedSfixed64ExtensionLiteFieldNumber,
|
| 1047 | pbd::FieldType.SFixed64,
|
| 1048 | true);
|
| 1049 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLite =
|
| 1050 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, float>(
|
| 1051 | "protobuf_unittest.packed_float_extension_lite",
|
| 1052 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1053 | null,
|
| 1054 | null,
|
| 1055 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedFloatExtensionLiteFieldNumber,
|
| 1056 | pbd::FieldType.Float,
|
| 1057 | true);
|
| 1058 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLite =
|
| 1059 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, double>(
|
| 1060 | "protobuf_unittest.packed_double_extension_lite",
|
| 1061 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1062 | null,
|
| 1063 | null,
|
| 1064 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedDoubleExtensionLiteFieldNumber,
|
| 1065 | pbd::FieldType.Double,
|
| 1066 | true);
|
| 1067 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLite =
|
| 1068 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, bool>(
|
| 1069 | "protobuf_unittest.packed_bool_extension_lite",
|
| 1070 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1071 | null,
|
| 1072 | null,
|
| 1073 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedBoolExtensionLiteFieldNumber,
|
| 1074 | pbd::FieldType.Bool,
|
| 1075 | true);
|
| 1076 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLite =
|
| 1077 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1078 | "protobuf_unittest.packed_enum_extension_lite",
|
| 1079 | global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance,
|
| 1080 | null,
|
| 1081 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1082 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.PackedEnumExtensionLiteFieldNumber,
|
| 1083 | pbd::FieldType.Enum,
|
| 1084 | true);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 1085 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLite =
|
| 1086 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1087 | "protobuf_unittest.unpacked_int32_extension_lite",
|
| 1088 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1089 | null,
|
| 1090 | null,
|
| 1091 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt32ExtensionLiteFieldNumber,
|
| 1092 | pbd::FieldType.Int32,
|
| 1093 | false);
|
| 1094 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLite =
|
| 1095 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1096 | "protobuf_unittest.unpacked_int64_extension_lite",
|
| 1097 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1098 | null,
|
| 1099 | null,
|
| 1100 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedInt64ExtensionLiteFieldNumber,
|
| 1101 | pbd::FieldType.Int64,
|
| 1102 | false);
|
| 1103 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLite =
|
| 1104 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1105 | "protobuf_unittest.unpacked_uint32_extension_lite",
|
| 1106 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1107 | null,
|
| 1108 | null,
|
| 1109 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint32ExtensionLiteFieldNumber,
|
| 1110 | pbd::FieldType.UInt32,
|
| 1111 | false);
|
| 1112 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLite =
|
| 1113 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1114 | "protobuf_unittest.unpacked_uint64_extension_lite",
|
| 1115 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1116 | null,
|
| 1117 | null,
|
| 1118 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedUint64ExtensionLiteFieldNumber,
|
| 1119 | pbd::FieldType.UInt64,
|
| 1120 | false);
|
| 1121 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLite =
|
| 1122 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1123 | "protobuf_unittest.unpacked_sint32_extension_lite",
|
| 1124 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1125 | null,
|
| 1126 | null,
|
| 1127 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint32ExtensionLiteFieldNumber,
|
| 1128 | pbd::FieldType.SInt32,
|
| 1129 | false);
|
| 1130 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLite =
|
| 1131 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1132 | "protobuf_unittest.unpacked_sint64_extension_lite",
|
| 1133 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1134 | null,
|
| 1135 | null,
|
| 1136 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSint64ExtensionLiteFieldNumber,
|
| 1137 | pbd::FieldType.SInt64,
|
| 1138 | false);
|
| 1139 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLite =
|
| 1140 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>(
|
| 1141 | "protobuf_unittest.unpacked_fixed32_extension_lite",
|
| 1142 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1143 | null,
|
| 1144 | null,
|
| 1145 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed32ExtensionLiteFieldNumber,
|
| 1146 | pbd::FieldType.Fixed32,
|
| 1147 | false);
|
| 1148 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLite =
|
| 1149 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>(
|
| 1150 | "protobuf_unittest.unpacked_fixed64_extension_lite",
|
| 1151 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1152 | null,
|
| 1153 | null,
|
| 1154 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFixed64ExtensionLiteFieldNumber,
|
| 1155 | pbd::FieldType.Fixed64,
|
| 1156 | false);
|
| 1157 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLite =
|
| 1158 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>(
|
| 1159 | "protobuf_unittest.unpacked_sfixed32_extension_lite",
|
| 1160 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1161 | null,
|
| 1162 | null,
|
| 1163 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed32ExtensionLiteFieldNumber,
|
| 1164 | pbd::FieldType.SFixed32,
|
| 1165 | false);
|
| 1166 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLite =
|
| 1167 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>(
|
| 1168 | "protobuf_unittest.unpacked_sfixed64_extension_lite",
|
| 1169 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1170 | null,
|
| 1171 | null,
|
| 1172 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedSfixed64ExtensionLiteFieldNumber,
|
| 1173 | pbd::FieldType.SFixed64,
|
| 1174 | false);
|
| 1175 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLite =
|
| 1176 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, float>(
|
| 1177 | "protobuf_unittest.unpacked_float_extension_lite",
|
| 1178 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1179 | null,
|
| 1180 | null,
|
| 1181 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedFloatExtensionLiteFieldNumber,
|
| 1182 | pbd::FieldType.Float,
|
| 1183 | false);
|
| 1184 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLite =
|
| 1185 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, double>(
|
| 1186 | "protobuf_unittest.unpacked_double_extension_lite",
|
| 1187 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1188 | null,
|
| 1189 | null,
|
| 1190 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedDoubleExtensionLiteFieldNumber,
|
| 1191 | pbd::FieldType.Double,
|
| 1192 | false);
|
| 1193 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLite =
|
| 1194 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, bool>(
|
| 1195 | "protobuf_unittest.unpacked_bool_extension_lite",
|
| 1196 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1197 | null,
|
| 1198 | null,
|
| 1199 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedBoolExtensionLiteFieldNumber,
|
| 1200 | pbd::FieldType.Bool,
|
| 1201 | false);
|
| 1202 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLite =
|
| 1203 | new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(
|
| 1204 | "protobuf_unittest.unpacked_enum_extension_lite",
|
| 1205 | global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,
|
| 1206 | null,
|
| 1207 | new EnumLiteMap<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(),
|
| 1208 | global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.UnpackedEnumExtensionLiteFieldNumber,
|
| 1209 | pbd::FieldType.Enum,
|
| 1210 | false);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1211 | }
|
| 1212 | #endregion
|
| 1213 |
|
| 1214 | }
|
| 1215 | #region Enums
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1216 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1217 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1218 | public enum ForeignEnumLite {
|
| 1219 | FOREIGN_LITE_FOO = 4,
|
| 1220 | FOREIGN_LITE_BAR = 5,
|
| 1221 | FOREIGN_LITE_BAZ = 6,
|
| 1222 | }
|
| 1223 |
|
| 1224 | #endregion
|
| 1225 |
|
| 1226 | #region Messages
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1227 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1228 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1229 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1230 | public sealed partial class TestAllTypesLite : pb::GeneratedMessageLite<TestAllTypesLite, TestAllTypesLite.Builder> {
|
| 1231 | private static readonly TestAllTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1232 | 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" };
|
| 1233 | 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] | 1234 | public static TestAllTypesLite DefaultInstance {
|
| 1235 | get { return defaultInstance; }
|
| 1236 | }
|
| 1237 |
|
| 1238 | public override TestAllTypesLite DefaultInstanceForType {
|
| 1239 | get { return defaultInstance; }
|
| 1240 | }
|
| 1241 |
|
| 1242 | protected override TestAllTypesLite ThisMessage {
|
| 1243 | get { return this; }
|
| 1244 | }
|
| 1245 |
|
| 1246 | #region Nested types
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1247 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1248 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1249 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1250 | public static class Types {
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1251 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1252 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1253 | public enum NestedEnum {
|
| 1254 | FOO = 1,
|
| 1255 | BAR = 2,
|
| 1256 | BAZ = 3,
|
| 1257 | }
|
| 1258 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1259 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1260 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1261 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1262 | public sealed partial class NestedMessage : pb::GeneratedMessageLite<NestedMessage, NestedMessage.Builder> {
|
| 1263 | private static readonly NestedMessage defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1264 | private static readonly string[] _nestedMessageFieldNames = new string[] { "bb" };
|
| 1265 | private static readonly uint[] _nestedMessageFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1266 | public static NestedMessage DefaultInstance {
|
| 1267 | get { return defaultInstance; }
|
| 1268 | }
|
| 1269 |
|
| 1270 | public override NestedMessage DefaultInstanceForType {
|
| 1271 | get { return defaultInstance; }
|
| 1272 | }
|
| 1273 |
|
| 1274 | protected override NestedMessage ThisMessage {
|
| 1275 | get { return this; }
|
| 1276 | }
|
| 1277 |
|
| 1278 | public const int BbFieldNumber = 1;
|
| 1279 | private bool hasBb;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1280 | private int bb_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1281 | public bool HasBb {
|
| 1282 | get { return hasBb; }
|
| 1283 | }
|
| 1284 | public int Bb {
|
| 1285 | get { return bb_; }
|
| 1286 | }
|
| 1287 |
|
| 1288 | public override bool IsInitialized {
|
| 1289 | get {
|
| 1290 | return true;
|
| 1291 | }
|
| 1292 | }
|
| 1293 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1294 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1295 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1296 | string[] field_names = _nestedMessageFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1297 | if (hasBb) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1298 | output.WriteInt32(1, field_names[0], Bb);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1299 | }
|
| 1300 | }
|
| 1301 |
|
| 1302 | private int memoizedSerializedSize = -1;
|
| 1303 | public override int SerializedSize {
|
| 1304 | get {
|
| 1305 | int size = memoizedSerializedSize;
|
| 1306 | if (size != -1) return size;
|
| 1307 |
|
| 1308 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1309 | if (hasBb) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1310 | size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
|
| 1311 | }
|
| 1312 | memoizedSerializedSize = size;
|
| 1313 | return size;
|
| 1314 | }
|
| 1315 | }
|
| 1316 |
|
| 1317 | #region Lite runtime methods
|
| 1318 | public override int GetHashCode() {
|
| 1319 | int hash = GetType().GetHashCode();
|
| 1320 | if (hasBb) hash ^= bb_.GetHashCode();
|
| 1321 | return hash;
|
| 1322 | }
|
| 1323 |
|
| 1324 | public override bool Equals(object obj) {
|
| 1325 | NestedMessage other = obj as NestedMessage;
|
| 1326 | if (other == null) return false;
|
| 1327 | if (hasBb != other.hasBb || (hasBb && !bb_.Equals(other.bb_))) return false;
|
| 1328 | return true;
|
| 1329 | }
|
| 1330 |
|
| 1331 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1332 | PrintField("bb", hasBb, bb_, writer);
|
| 1333 | }
|
| 1334 | #endregion
|
| 1335 |
|
| 1336 | public static NestedMessage ParseFrom(pb::ByteString data) {
|
| 1337 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1338 | }
|
| 1339 | public static NestedMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1340 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1341 | }
|
| 1342 | public static NestedMessage ParseFrom(byte[] data) {
|
| 1343 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1344 | }
|
| 1345 | public static NestedMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1346 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1347 | }
|
| 1348 | public static NestedMessage ParseFrom(global::System.IO.Stream input) {
|
| 1349 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1350 | }
|
| 1351 | public static NestedMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1352 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1353 | }
|
| 1354 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1355 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1356 | }
|
| 1357 | public static NestedMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1358 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1359 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1360 | public static NestedMessage ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1361 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1362 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1363 | public static NestedMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1364 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1365 | }
|
| 1366 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1367 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1368 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1369 | public static Builder CreateBuilder(NestedMessage prototype) {
|
| 1370 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1371 | }
|
| 1372 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1373 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1374 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1375 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1376 | public sealed partial class Builder : pb::GeneratedBuilderLite<NestedMessage, Builder> {
|
| 1377 | protected override Builder ThisBuilder {
|
| 1378 | get { return this; }
|
| 1379 | }
|
| 1380 | public Builder() {}
|
| 1381 |
|
| 1382 | NestedMessage result = new NestedMessage();
|
| 1383 |
|
| 1384 | protected override NestedMessage MessageBeingBuilt {
|
| 1385 | get { return result; }
|
| 1386 | }
|
| 1387 |
|
| 1388 | public override Builder Clear() {
|
| 1389 | result = new NestedMessage();
|
| 1390 | return this;
|
| 1391 | }
|
| 1392 |
|
| 1393 | public override Builder Clone() {
|
| 1394 | return new Builder().MergeFrom(result);
|
| 1395 | }
|
| 1396 |
|
| 1397 | public override NestedMessage DefaultInstanceForType {
|
| 1398 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance; }
|
| 1399 | }
|
| 1400 |
|
| 1401 | public override NestedMessage BuildPartial() {
|
| 1402 | if (result == null) {
|
| 1403 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1404 | }
|
| 1405 | NestedMessage returnMe = result;
|
| 1406 | result = null;
|
| 1407 | return returnMe;
|
| 1408 | }
|
| 1409 |
|
| 1410 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1411 | if (other is NestedMessage) {
|
| 1412 | return MergeFrom((NestedMessage) other);
|
| 1413 | } else {
|
| 1414 | base.MergeFrom(other);
|
| 1415 | return this;
|
| 1416 | }
|
| 1417 | }
|
| 1418 |
|
| 1419 | public override Builder MergeFrom(NestedMessage other) {
|
| 1420 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) return this;
|
| 1421 | if (other.HasBb) {
|
| 1422 | Bb = other.Bb;
|
| 1423 | }
|
| 1424 | return this;
|
| 1425 | }
|
| 1426 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1427 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1428 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1429 | }
|
| 1430 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1431 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1432 | uint tag;
|
| 1433 | string field_name;
|
| 1434 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1435 | if(tag == 0 && field_name != null) {
|
| 1436 | int field_ordinal = global::System.Array.BinarySearch(_nestedMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1437 | if(field_ordinal >= 0)
|
| 1438 | tag = _nestedMessageFieldTags[field_ordinal];
|
| 1439 | else {
|
| 1440 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1441 | continue;
|
| 1442 | }
|
| 1443 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1444 | switch (tag) {
|
| 1445 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1446 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1447 | }
|
| 1448 | default: {
|
| 1449 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1450 | return this;
|
| 1451 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1452 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1453 | break;
|
| 1454 | }
|
| 1455 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1456 | result.hasBb = input.ReadInt32(ref result.bb_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1457 | break;
|
| 1458 | }
|
| 1459 | }
|
| 1460 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1461 |
|
| 1462 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1463 | }
|
| 1464 |
|
| 1465 |
|
| 1466 | public bool HasBb {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1467 | get { return result.hasBb; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1468 | }
|
| 1469 | public int Bb {
|
| 1470 | get { return result.Bb; }
|
| 1471 | set { SetBb(value); }
|
| 1472 | }
|
| 1473 | public Builder SetBb(int value) {
|
| 1474 | result.hasBb = true;
|
| 1475 | result.bb_ = value;
|
| 1476 | return this;
|
| 1477 | }
|
| 1478 | public Builder ClearBb() {
|
| 1479 | result.hasBb = false;
|
| 1480 | result.bb_ = 0;
|
| 1481 | return this;
|
| 1482 | }
|
| 1483 | }
|
| 1484 | static NestedMessage() {
|
| 1485 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1486 | }
|
| 1487 | }
|
| 1488 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1489 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1490 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1491 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1492 | public sealed partial class OptionalGroup : pb::GeneratedMessageLite<OptionalGroup, OptionalGroup.Builder> {
|
| 1493 | private static readonly OptionalGroup defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1494 | private static readonly string[] _optionalGroupFieldNames = new string[] { "a" };
|
| 1495 | private static readonly uint[] _optionalGroupFieldTags = new uint[] { 136 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1496 | public static OptionalGroup DefaultInstance {
|
| 1497 | get { return defaultInstance; }
|
| 1498 | }
|
| 1499 |
|
| 1500 | public override OptionalGroup DefaultInstanceForType {
|
| 1501 | get { return defaultInstance; }
|
| 1502 | }
|
| 1503 |
|
| 1504 | protected override OptionalGroup ThisMessage {
|
| 1505 | get { return this; }
|
| 1506 | }
|
| 1507 |
|
| 1508 | public const int AFieldNumber = 17;
|
| 1509 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1510 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1511 | public bool HasA {
|
| 1512 | get { return hasA; }
|
| 1513 | }
|
| 1514 | public int A {
|
| 1515 | get { return a_; }
|
| 1516 | }
|
| 1517 |
|
| 1518 | public override bool IsInitialized {
|
| 1519 | get {
|
| 1520 | return true;
|
| 1521 | }
|
| 1522 | }
|
| 1523 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1524 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1525 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1526 | string[] field_names = _optionalGroupFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1527 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1528 | output.WriteInt32(17, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1529 | }
|
| 1530 | }
|
| 1531 |
|
| 1532 | private int memoizedSerializedSize = -1;
|
| 1533 | public override int SerializedSize {
|
| 1534 | get {
|
| 1535 | int size = memoizedSerializedSize;
|
| 1536 | if (size != -1) return size;
|
| 1537 |
|
| 1538 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1539 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1540 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 1541 | }
|
| 1542 | memoizedSerializedSize = size;
|
| 1543 | return size;
|
| 1544 | }
|
| 1545 | }
|
| 1546 |
|
| 1547 | #region Lite runtime methods
|
| 1548 | public override int GetHashCode() {
|
| 1549 | int hash = GetType().GetHashCode();
|
| 1550 | if (hasA) hash ^= a_.GetHashCode();
|
| 1551 | return hash;
|
| 1552 | }
|
| 1553 |
|
| 1554 | public override bool Equals(object obj) {
|
| 1555 | OptionalGroup other = obj as OptionalGroup;
|
| 1556 | if (other == null) return false;
|
| 1557 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1558 | return true;
|
| 1559 | }
|
| 1560 |
|
| 1561 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1562 | PrintField("a", hasA, a_, writer);
|
| 1563 | }
|
| 1564 | #endregion
|
| 1565 |
|
| 1566 | public static OptionalGroup ParseFrom(pb::ByteString data) {
|
| 1567 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1568 | }
|
| 1569 | public static OptionalGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1570 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1571 | }
|
| 1572 | public static OptionalGroup ParseFrom(byte[] data) {
|
| 1573 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1574 | }
|
| 1575 | public static OptionalGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1576 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1577 | }
|
| 1578 | public static OptionalGroup ParseFrom(global::System.IO.Stream input) {
|
| 1579 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1580 | }
|
| 1581 | public static OptionalGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1582 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1583 | }
|
| 1584 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1585 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1586 | }
|
| 1587 | public static OptionalGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1588 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1589 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1590 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1591 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1592 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1593 | public static OptionalGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1594 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1595 | }
|
| 1596 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1597 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1598 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1599 | public static Builder CreateBuilder(OptionalGroup prototype) {
|
| 1600 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1601 | }
|
| 1602 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1603 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1604 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1605 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1606 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup, Builder> {
|
| 1607 | protected override Builder ThisBuilder {
|
| 1608 | get { return this; }
|
| 1609 | }
|
| 1610 | public Builder() {}
|
| 1611 |
|
| 1612 | OptionalGroup result = new OptionalGroup();
|
| 1613 |
|
| 1614 | protected override OptionalGroup MessageBeingBuilt {
|
| 1615 | get { return result; }
|
| 1616 | }
|
| 1617 |
|
| 1618 | public override Builder Clear() {
|
| 1619 | result = new OptionalGroup();
|
| 1620 | return this;
|
| 1621 | }
|
| 1622 |
|
| 1623 | public override Builder Clone() {
|
| 1624 | return new Builder().MergeFrom(result);
|
| 1625 | }
|
| 1626 |
|
| 1627 | public override OptionalGroup DefaultInstanceForType {
|
| 1628 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance; }
|
| 1629 | }
|
| 1630 |
|
| 1631 | public override OptionalGroup BuildPartial() {
|
| 1632 | if (result == null) {
|
| 1633 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1634 | }
|
| 1635 | OptionalGroup returnMe = result;
|
| 1636 | result = null;
|
| 1637 | return returnMe;
|
| 1638 | }
|
| 1639 |
|
| 1640 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1641 | if (other is OptionalGroup) {
|
| 1642 | return MergeFrom((OptionalGroup) other);
|
| 1643 | } else {
|
| 1644 | base.MergeFrom(other);
|
| 1645 | return this;
|
| 1646 | }
|
| 1647 | }
|
| 1648 |
|
| 1649 | public override Builder MergeFrom(OptionalGroup other) {
|
| 1650 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) return this;
|
| 1651 | if (other.HasA) {
|
| 1652 | A = other.A;
|
| 1653 | }
|
| 1654 | return this;
|
| 1655 | }
|
| 1656 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1657 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1658 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1659 | }
|
| 1660 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1661 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1662 | uint tag;
|
| 1663 | string field_name;
|
| 1664 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1665 | if(tag == 0 && field_name != null) {
|
| 1666 | int field_ordinal = global::System.Array.BinarySearch(_optionalGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1667 | if(field_ordinal >= 0)
|
| 1668 | tag = _optionalGroupFieldTags[field_ordinal];
|
| 1669 | else {
|
| 1670 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1671 | continue;
|
| 1672 | }
|
| 1673 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1674 | switch (tag) {
|
| 1675 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1676 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1677 | }
|
| 1678 | default: {
|
| 1679 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1680 | return this;
|
| 1681 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1682 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1683 | break;
|
| 1684 | }
|
| 1685 | case 136: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1686 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1687 | break;
|
| 1688 | }
|
| 1689 | }
|
| 1690 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1691 |
|
| 1692 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1693 | }
|
| 1694 |
|
| 1695 |
|
| 1696 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1697 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1698 | }
|
| 1699 | public int A {
|
| 1700 | get { return result.A; }
|
| 1701 | set { SetA(value); }
|
| 1702 | }
|
| 1703 | public Builder SetA(int value) {
|
| 1704 | result.hasA = true;
|
| 1705 | result.a_ = value;
|
| 1706 | return this;
|
| 1707 | }
|
| 1708 | public Builder ClearA() {
|
| 1709 | result.hasA = false;
|
| 1710 | result.a_ = 0;
|
| 1711 | return this;
|
| 1712 | }
|
| 1713 | }
|
| 1714 | static OptionalGroup() {
|
| 1715 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1716 | }
|
| 1717 | }
|
| 1718 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1719 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1720 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1721 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1722 | public sealed partial class RepeatedGroup : pb::GeneratedMessageLite<RepeatedGroup, RepeatedGroup.Builder> {
|
| 1723 | private static readonly RepeatedGroup defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1724 | private static readonly string[] _repeatedGroupFieldNames = new string[] { "a" };
|
| 1725 | private static readonly uint[] _repeatedGroupFieldTags = new uint[] { 376 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1726 | public static RepeatedGroup DefaultInstance {
|
| 1727 | get { return defaultInstance; }
|
| 1728 | }
|
| 1729 |
|
| 1730 | public override RepeatedGroup DefaultInstanceForType {
|
| 1731 | get { return defaultInstance; }
|
| 1732 | }
|
| 1733 |
|
| 1734 | protected override RepeatedGroup ThisMessage {
|
| 1735 | get { return this; }
|
| 1736 | }
|
| 1737 |
|
| 1738 | public const int AFieldNumber = 47;
|
| 1739 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1740 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1741 | public bool HasA {
|
| 1742 | get { return hasA; }
|
| 1743 | }
|
| 1744 | public int A {
|
| 1745 | get { return a_; }
|
| 1746 | }
|
| 1747 |
|
| 1748 | public override bool IsInitialized {
|
| 1749 | get {
|
| 1750 | return true;
|
| 1751 | }
|
| 1752 | }
|
| 1753 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 1754 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1755 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1756 | string[] field_names = _repeatedGroupFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1757 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1758 | output.WriteInt32(47, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1759 | }
|
| 1760 | }
|
| 1761 |
|
| 1762 | private int memoizedSerializedSize = -1;
|
| 1763 | public override int SerializedSize {
|
| 1764 | get {
|
| 1765 | int size = memoizedSerializedSize;
|
| 1766 | if (size != -1) return size;
|
| 1767 |
|
| 1768 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1769 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1770 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 1771 | }
|
| 1772 | memoizedSerializedSize = size;
|
| 1773 | return size;
|
| 1774 | }
|
| 1775 | }
|
| 1776 |
|
| 1777 | #region Lite runtime methods
|
| 1778 | public override int GetHashCode() {
|
| 1779 | int hash = GetType().GetHashCode();
|
| 1780 | if (hasA) hash ^= a_.GetHashCode();
|
| 1781 | return hash;
|
| 1782 | }
|
| 1783 |
|
| 1784 | public override bool Equals(object obj) {
|
| 1785 | RepeatedGroup other = obj as RepeatedGroup;
|
| 1786 | if (other == null) return false;
|
| 1787 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 1788 | return true;
|
| 1789 | }
|
| 1790 |
|
| 1791 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 1792 | PrintField("a", hasA, a_, writer);
|
| 1793 | }
|
| 1794 | #endregion
|
| 1795 |
|
| 1796 | public static RepeatedGroup ParseFrom(pb::ByteString data) {
|
| 1797 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1798 | }
|
| 1799 | public static RepeatedGroup ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1800 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1801 | }
|
| 1802 | public static RepeatedGroup ParseFrom(byte[] data) {
|
| 1803 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1804 | }
|
| 1805 | public static RepeatedGroup ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1806 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1807 | }
|
| 1808 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input) {
|
| 1809 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1810 | }
|
| 1811 | public static RepeatedGroup ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1812 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1813 | }
|
| 1814 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1815 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1816 | }
|
| 1817 | public static RepeatedGroup ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1818 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1819 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1820 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1821 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1822 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1823 | public static RepeatedGroup ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1824 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1825 | }
|
| 1826 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1827 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1828 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1829 | public static Builder CreateBuilder(RepeatedGroup prototype) {
|
| 1830 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1831 | }
|
| 1832 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 1833 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1834 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1835 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1836 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup, Builder> {
|
| 1837 | protected override Builder ThisBuilder {
|
| 1838 | get { return this; }
|
| 1839 | }
|
| 1840 | public Builder() {}
|
| 1841 |
|
| 1842 | RepeatedGroup result = new RepeatedGroup();
|
| 1843 |
|
| 1844 | protected override RepeatedGroup MessageBeingBuilt {
|
| 1845 | get { return result; }
|
| 1846 | }
|
| 1847 |
|
| 1848 | public override Builder Clear() {
|
| 1849 | result = new RepeatedGroup();
|
| 1850 | return this;
|
| 1851 | }
|
| 1852 |
|
| 1853 | public override Builder Clone() {
|
| 1854 | return new Builder().MergeFrom(result);
|
| 1855 | }
|
| 1856 |
|
| 1857 | public override RepeatedGroup DefaultInstanceForType {
|
| 1858 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance; }
|
| 1859 | }
|
| 1860 |
|
| 1861 | public override RepeatedGroup BuildPartial() {
|
| 1862 | if (result == null) {
|
| 1863 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1864 | }
|
| 1865 | RepeatedGroup returnMe = result;
|
| 1866 | result = null;
|
| 1867 | return returnMe;
|
| 1868 | }
|
| 1869 |
|
| 1870 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 1871 | if (other is RepeatedGroup) {
|
| 1872 | return MergeFrom((RepeatedGroup) other);
|
| 1873 | } else {
|
| 1874 | base.MergeFrom(other);
|
| 1875 | return this;
|
| 1876 | }
|
| 1877 | }
|
| 1878 |
|
| 1879 | public override Builder MergeFrom(RepeatedGroup other) {
|
| 1880 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.DefaultInstance) return this;
|
| 1881 | if (other.HasA) {
|
| 1882 | A = other.A;
|
| 1883 | }
|
| 1884 | return this;
|
| 1885 | }
|
| 1886 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1887 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1888 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1889 | }
|
| 1890 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 1891 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1892 | uint tag;
|
| 1893 | string field_name;
|
| 1894 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1895 | if(tag == 0 && field_name != null) {
|
| 1896 | int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1897 | if(field_ordinal >= 0)
|
| 1898 | tag = _repeatedGroupFieldTags[field_ordinal];
|
| 1899 | else {
|
| 1900 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 1901 | continue;
|
| 1902 | }
|
| 1903 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1904 | switch (tag) {
|
| 1905 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 1906 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1907 | }
|
| 1908 | default: {
|
| 1909 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1910 | return this;
|
| 1911 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 1912 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1913 | break;
|
| 1914 | }
|
| 1915 | case 376: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 1916 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1917 | break;
|
| 1918 | }
|
| 1919 | }
|
| 1920 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 1921 |
|
| 1922 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1923 | }
|
| 1924 |
|
| 1925 |
|
| 1926 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 1927 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1928 | }
|
| 1929 | public int A {
|
| 1930 | get { return result.A; }
|
| 1931 | set { SetA(value); }
|
| 1932 | }
|
| 1933 | public Builder SetA(int value) {
|
| 1934 | result.hasA = true;
|
| 1935 | result.a_ = value;
|
| 1936 | return this;
|
| 1937 | }
|
| 1938 | public Builder ClearA() {
|
| 1939 | result.hasA = false;
|
| 1940 | result.a_ = 0;
|
| 1941 | return this;
|
| 1942 | }
|
| 1943 | }
|
| 1944 | static RepeatedGroup() {
|
| 1945 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 1946 | }
|
| 1947 | }
|
| 1948 |
|
| 1949 | }
|
| 1950 | #endregion
|
| 1951 |
|
| 1952 | public const int OptionalInt32FieldNumber = 1;
|
| 1953 | private bool hasOptionalInt32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1954 | private int optionalInt32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1955 | public bool HasOptionalInt32 {
|
| 1956 | get { return hasOptionalInt32; }
|
| 1957 | }
|
| 1958 | public int OptionalInt32 {
|
| 1959 | get { return optionalInt32_; }
|
| 1960 | }
|
| 1961 |
|
| 1962 | public const int OptionalInt64FieldNumber = 2;
|
| 1963 | private bool hasOptionalInt64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1964 | private long optionalInt64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1965 | public bool HasOptionalInt64 {
|
| 1966 | get { return hasOptionalInt64; }
|
| 1967 | }
|
| 1968 | public long OptionalInt64 {
|
| 1969 | get { return optionalInt64_; }
|
| 1970 | }
|
| 1971 |
|
| 1972 | public const int OptionalUint32FieldNumber = 3;
|
| 1973 | private bool hasOptionalUint32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1974 | private uint optionalUint32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1975 | public bool HasOptionalUint32 {
|
| 1976 | get { return hasOptionalUint32; }
|
| 1977 | }
|
| 1978 | [global::System.CLSCompliant(false)]
|
| 1979 | public uint OptionalUint32 {
|
| 1980 | get { return optionalUint32_; }
|
| 1981 | }
|
| 1982 |
|
| 1983 | public const int OptionalUint64FieldNumber = 4;
|
| 1984 | private bool hasOptionalUint64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1985 | private ulong optionalUint64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1986 | public bool HasOptionalUint64 {
|
| 1987 | get { return hasOptionalUint64; }
|
| 1988 | }
|
| 1989 | [global::System.CLSCompliant(false)]
|
| 1990 | public ulong OptionalUint64 {
|
| 1991 | get { return optionalUint64_; }
|
| 1992 | }
|
| 1993 |
|
| 1994 | public const int OptionalSint32FieldNumber = 5;
|
| 1995 | private bool hasOptionalSint32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 1996 | private int optionalSint32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 1997 | public bool HasOptionalSint32 {
|
| 1998 | get { return hasOptionalSint32; }
|
| 1999 | }
|
| 2000 | public int OptionalSint32 {
|
| 2001 | get { return optionalSint32_; }
|
| 2002 | }
|
| 2003 |
|
| 2004 | public const int OptionalSint64FieldNumber = 6;
|
| 2005 | private bool hasOptionalSint64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2006 | private long optionalSint64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2007 | public bool HasOptionalSint64 {
|
| 2008 | get { return hasOptionalSint64; }
|
| 2009 | }
|
| 2010 | public long OptionalSint64 {
|
| 2011 | get { return optionalSint64_; }
|
| 2012 | }
|
| 2013 |
|
| 2014 | public const int OptionalFixed32FieldNumber = 7;
|
| 2015 | private bool hasOptionalFixed32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2016 | private uint optionalFixed32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2017 | public bool HasOptionalFixed32 {
|
| 2018 | get { return hasOptionalFixed32; }
|
| 2019 | }
|
| 2020 | [global::System.CLSCompliant(false)]
|
| 2021 | public uint OptionalFixed32 {
|
| 2022 | get { return optionalFixed32_; }
|
| 2023 | }
|
| 2024 |
|
| 2025 | public const int OptionalFixed64FieldNumber = 8;
|
| 2026 | private bool hasOptionalFixed64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2027 | private ulong optionalFixed64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2028 | public bool HasOptionalFixed64 {
|
| 2029 | get { return hasOptionalFixed64; }
|
| 2030 | }
|
| 2031 | [global::System.CLSCompliant(false)]
|
| 2032 | public ulong OptionalFixed64 {
|
| 2033 | get { return optionalFixed64_; }
|
| 2034 | }
|
| 2035 |
|
| 2036 | public const int OptionalSfixed32FieldNumber = 9;
|
| 2037 | private bool hasOptionalSfixed32;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2038 | private int optionalSfixed32_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2039 | public bool HasOptionalSfixed32 {
|
| 2040 | get { return hasOptionalSfixed32; }
|
| 2041 | }
|
| 2042 | public int OptionalSfixed32 {
|
| 2043 | get { return optionalSfixed32_; }
|
| 2044 | }
|
| 2045 |
|
| 2046 | public const int OptionalSfixed64FieldNumber = 10;
|
| 2047 | private bool hasOptionalSfixed64;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2048 | private long optionalSfixed64_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2049 | public bool HasOptionalSfixed64 {
|
| 2050 | get { return hasOptionalSfixed64; }
|
| 2051 | }
|
| 2052 | public long OptionalSfixed64 {
|
| 2053 | get { return optionalSfixed64_; }
|
| 2054 | }
|
| 2055 |
|
| 2056 | public const int OptionalFloatFieldNumber = 11;
|
| 2057 | private bool hasOptionalFloat;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2058 | private float optionalFloat_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2059 | public bool HasOptionalFloat {
|
| 2060 | get { return hasOptionalFloat; }
|
| 2061 | }
|
| 2062 | public float OptionalFloat {
|
| 2063 | get { return optionalFloat_; }
|
| 2064 | }
|
| 2065 |
|
| 2066 | public const int OptionalDoubleFieldNumber = 12;
|
| 2067 | private bool hasOptionalDouble;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2068 | private double optionalDouble_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2069 | public bool HasOptionalDouble {
|
| 2070 | get { return hasOptionalDouble; }
|
| 2071 | }
|
| 2072 | public double OptionalDouble {
|
| 2073 | get { return optionalDouble_; }
|
| 2074 | }
|
| 2075 |
|
| 2076 | public const int OptionalBoolFieldNumber = 13;
|
| 2077 | private bool hasOptionalBool;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2078 | private bool optionalBool_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2079 | public bool HasOptionalBool {
|
| 2080 | get { return hasOptionalBool; }
|
| 2081 | }
|
| 2082 | public bool OptionalBool {
|
| 2083 | get { return optionalBool_; }
|
| 2084 | }
|
| 2085 |
|
| 2086 | public const int OptionalStringFieldNumber = 14;
|
| 2087 | private bool hasOptionalString;
|
| 2088 | private string optionalString_ = "";
|
| 2089 | public bool HasOptionalString {
|
| 2090 | get { return hasOptionalString; }
|
| 2091 | }
|
| 2092 | public string OptionalString {
|
| 2093 | get { return optionalString_; }
|
| 2094 | }
|
| 2095 |
|
| 2096 | public const int OptionalBytesFieldNumber = 15;
|
| 2097 | private bool hasOptionalBytes;
|
| 2098 | private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
|
| 2099 | public bool HasOptionalBytes {
|
| 2100 | get { return hasOptionalBytes; }
|
| 2101 | }
|
| 2102 | public pb::ByteString OptionalBytes {
|
| 2103 | get { return optionalBytes_; }
|
| 2104 | }
|
| 2105 |
|
| 2106 | public const int OptionalGroupFieldNumber = 16;
|
| 2107 | private bool hasOptionalGroup;
|
| 2108 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 2109 | public bool HasOptionalGroup {
|
| 2110 | get { return hasOptionalGroup; }
|
| 2111 | }
|
| 2112 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 2113 | get { return optionalGroup_; }
|
| 2114 | }
|
| 2115 |
|
| 2116 | public const int OptionalNestedMessageFieldNumber = 18;
|
| 2117 | private bool hasOptionalNestedMessage;
|
| 2118 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 2119 | public bool HasOptionalNestedMessage {
|
| 2120 | get { return hasOptionalNestedMessage; }
|
| 2121 | }
|
| 2122 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 2123 | get { return optionalNestedMessage_; }
|
| 2124 | }
|
| 2125 |
|
| 2126 | public const int OptionalForeignMessageFieldNumber = 19;
|
| 2127 | private bool hasOptionalForeignMessage;
|
| 2128 | private global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 2129 | public bool HasOptionalForeignMessage {
|
| 2130 | get { return hasOptionalForeignMessage; }
|
| 2131 | }
|
| 2132 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 2133 | get { return optionalForeignMessage_; }
|
| 2134 | }
|
| 2135 |
|
| 2136 | public const int OptionalImportMessageFieldNumber = 20;
|
| 2137 | private bool hasOptionalImportMessage;
|
| 2138 | private global::Google.ProtocolBuffers.TestProtos.ImportMessageLite optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 2139 | public bool HasOptionalImportMessage {
|
| 2140 | get { return hasOptionalImportMessage; }
|
| 2141 | }
|
| 2142 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 2143 | get { return optionalImportMessage_; }
|
| 2144 | }
|
| 2145 |
|
| 2146 | public const int OptionalNestedEnumFieldNumber = 21;
|
| 2147 | private bool hasOptionalNestedEnum;
|
| 2148 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 2149 | public bool HasOptionalNestedEnum {
|
| 2150 | get { return hasOptionalNestedEnum; }
|
| 2151 | }
|
| 2152 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 2153 | get { return optionalNestedEnum_; }
|
| 2154 | }
|
| 2155 |
|
| 2156 | public const int OptionalForeignEnumFieldNumber = 22;
|
| 2157 | private bool hasOptionalForeignEnum;
|
| 2158 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 2159 | public bool HasOptionalForeignEnum {
|
| 2160 | get { return hasOptionalForeignEnum; }
|
| 2161 | }
|
| 2162 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 2163 | get { return optionalForeignEnum_; }
|
| 2164 | }
|
| 2165 |
|
| 2166 | public const int OptionalImportEnumFieldNumber = 23;
|
| 2167 | private bool hasOptionalImportEnum;
|
| 2168 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 2169 | public bool HasOptionalImportEnum {
|
| 2170 | get { return hasOptionalImportEnum; }
|
| 2171 | }
|
| 2172 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 2173 | get { return optionalImportEnum_; }
|
| 2174 | }
|
| 2175 |
|
| 2176 | public const int OptionalStringPieceFieldNumber = 24;
|
| 2177 | private bool hasOptionalStringPiece;
|
| 2178 | private string optionalStringPiece_ = "";
|
| 2179 | public bool HasOptionalStringPiece {
|
| 2180 | get { return hasOptionalStringPiece; }
|
| 2181 | }
|
| 2182 | public string OptionalStringPiece {
|
| 2183 | get { return optionalStringPiece_; }
|
| 2184 | }
|
| 2185 |
|
| 2186 | public const int OptionalCordFieldNumber = 25;
|
| 2187 | private bool hasOptionalCord;
|
| 2188 | private string optionalCord_ = "";
|
| 2189 | public bool HasOptionalCord {
|
| 2190 | get { return hasOptionalCord; }
|
| 2191 | }
|
| 2192 | public string OptionalCord {
|
| 2193 | get { return optionalCord_; }
|
| 2194 | }
|
| 2195 |
|
| 2196 | public const int RepeatedInt32FieldNumber = 31;
|
| 2197 | private pbc::PopsicleList<int> repeatedInt32_ = new pbc::PopsicleList<int>();
|
| 2198 | public scg::IList<int> RepeatedInt32List {
|
| 2199 | get { return pbc::Lists.AsReadOnly(repeatedInt32_); }
|
| 2200 | }
|
| 2201 | public int RepeatedInt32Count {
|
| 2202 | get { return repeatedInt32_.Count; }
|
| 2203 | }
|
| 2204 | public int GetRepeatedInt32(int index) {
|
| 2205 | return repeatedInt32_[index];
|
| 2206 | }
|
| 2207 |
|
| 2208 | public const int RepeatedInt64FieldNumber = 32;
|
| 2209 | private pbc::PopsicleList<long> repeatedInt64_ = new pbc::PopsicleList<long>();
|
| 2210 | public scg::IList<long> RepeatedInt64List {
|
| 2211 | get { return pbc::Lists.AsReadOnly(repeatedInt64_); }
|
| 2212 | }
|
| 2213 | public int RepeatedInt64Count {
|
| 2214 | get { return repeatedInt64_.Count; }
|
| 2215 | }
|
| 2216 | public long GetRepeatedInt64(int index) {
|
| 2217 | return repeatedInt64_[index];
|
| 2218 | }
|
| 2219 |
|
| 2220 | public const int RepeatedUint32FieldNumber = 33;
|
| 2221 | private pbc::PopsicleList<uint> repeatedUint32_ = new pbc::PopsicleList<uint>();
|
| 2222 | [global::System.CLSCompliant(false)]
|
| 2223 | public scg::IList<uint> RepeatedUint32List {
|
| 2224 | get { return pbc::Lists.AsReadOnly(repeatedUint32_); }
|
| 2225 | }
|
| 2226 | public int RepeatedUint32Count {
|
| 2227 | get { return repeatedUint32_.Count; }
|
| 2228 | }
|
| 2229 | [global::System.CLSCompliant(false)]
|
| 2230 | public uint GetRepeatedUint32(int index) {
|
| 2231 | return repeatedUint32_[index];
|
| 2232 | }
|
| 2233 |
|
| 2234 | public const int RepeatedUint64FieldNumber = 34;
|
| 2235 | private pbc::PopsicleList<ulong> repeatedUint64_ = new pbc::PopsicleList<ulong>();
|
| 2236 | [global::System.CLSCompliant(false)]
|
| 2237 | public scg::IList<ulong> RepeatedUint64List {
|
| 2238 | get { return pbc::Lists.AsReadOnly(repeatedUint64_); }
|
| 2239 | }
|
| 2240 | public int RepeatedUint64Count {
|
| 2241 | get { return repeatedUint64_.Count; }
|
| 2242 | }
|
| 2243 | [global::System.CLSCompliant(false)]
|
| 2244 | public ulong GetRepeatedUint64(int index) {
|
| 2245 | return repeatedUint64_[index];
|
| 2246 | }
|
| 2247 |
|
| 2248 | public const int RepeatedSint32FieldNumber = 35;
|
| 2249 | private pbc::PopsicleList<int> repeatedSint32_ = new pbc::PopsicleList<int>();
|
| 2250 | public scg::IList<int> RepeatedSint32List {
|
| 2251 | get { return pbc::Lists.AsReadOnly(repeatedSint32_); }
|
| 2252 | }
|
| 2253 | public int RepeatedSint32Count {
|
| 2254 | get { return repeatedSint32_.Count; }
|
| 2255 | }
|
| 2256 | public int GetRepeatedSint32(int index) {
|
| 2257 | return repeatedSint32_[index];
|
| 2258 | }
|
| 2259 |
|
| 2260 | public const int RepeatedSint64FieldNumber = 36;
|
| 2261 | private pbc::PopsicleList<long> repeatedSint64_ = new pbc::PopsicleList<long>();
|
| 2262 | public scg::IList<long> RepeatedSint64List {
|
| 2263 | get { return pbc::Lists.AsReadOnly(repeatedSint64_); }
|
| 2264 | }
|
| 2265 | public int RepeatedSint64Count {
|
| 2266 | get { return repeatedSint64_.Count; }
|
| 2267 | }
|
| 2268 | public long GetRepeatedSint64(int index) {
|
| 2269 | return repeatedSint64_[index];
|
| 2270 | }
|
| 2271 |
|
| 2272 | public const int RepeatedFixed32FieldNumber = 37;
|
| 2273 | private pbc::PopsicleList<uint> repeatedFixed32_ = new pbc::PopsicleList<uint>();
|
| 2274 | [global::System.CLSCompliant(false)]
|
| 2275 | public scg::IList<uint> RepeatedFixed32List {
|
| 2276 | get { return pbc::Lists.AsReadOnly(repeatedFixed32_); }
|
| 2277 | }
|
| 2278 | public int RepeatedFixed32Count {
|
| 2279 | get { return repeatedFixed32_.Count; }
|
| 2280 | }
|
| 2281 | [global::System.CLSCompliant(false)]
|
| 2282 | public uint GetRepeatedFixed32(int index) {
|
| 2283 | return repeatedFixed32_[index];
|
| 2284 | }
|
| 2285 |
|
| 2286 | public const int RepeatedFixed64FieldNumber = 38;
|
| 2287 | private pbc::PopsicleList<ulong> repeatedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 2288 | [global::System.CLSCompliant(false)]
|
| 2289 | public scg::IList<ulong> RepeatedFixed64List {
|
| 2290 | get { return pbc::Lists.AsReadOnly(repeatedFixed64_); }
|
| 2291 | }
|
| 2292 | public int RepeatedFixed64Count {
|
| 2293 | get { return repeatedFixed64_.Count; }
|
| 2294 | }
|
| 2295 | [global::System.CLSCompliant(false)]
|
| 2296 | public ulong GetRepeatedFixed64(int index) {
|
| 2297 | return repeatedFixed64_[index];
|
| 2298 | }
|
| 2299 |
|
| 2300 | public const int RepeatedSfixed32FieldNumber = 39;
|
| 2301 | private pbc::PopsicleList<int> repeatedSfixed32_ = new pbc::PopsicleList<int>();
|
| 2302 | public scg::IList<int> RepeatedSfixed32List {
|
| 2303 | get { return pbc::Lists.AsReadOnly(repeatedSfixed32_); }
|
| 2304 | }
|
| 2305 | public int RepeatedSfixed32Count {
|
| 2306 | get { return repeatedSfixed32_.Count; }
|
| 2307 | }
|
| 2308 | public int GetRepeatedSfixed32(int index) {
|
| 2309 | return repeatedSfixed32_[index];
|
| 2310 | }
|
| 2311 |
|
| 2312 | public const int RepeatedSfixed64FieldNumber = 40;
|
| 2313 | private pbc::PopsicleList<long> repeatedSfixed64_ = new pbc::PopsicleList<long>();
|
| 2314 | public scg::IList<long> RepeatedSfixed64List {
|
| 2315 | get { return pbc::Lists.AsReadOnly(repeatedSfixed64_); }
|
| 2316 | }
|
| 2317 | public int RepeatedSfixed64Count {
|
| 2318 | get { return repeatedSfixed64_.Count; }
|
| 2319 | }
|
| 2320 | public long GetRepeatedSfixed64(int index) {
|
| 2321 | return repeatedSfixed64_[index];
|
| 2322 | }
|
| 2323 |
|
| 2324 | public const int RepeatedFloatFieldNumber = 41;
|
| 2325 | private pbc::PopsicleList<float> repeatedFloat_ = new pbc::PopsicleList<float>();
|
| 2326 | public scg::IList<float> RepeatedFloatList {
|
| 2327 | get { return pbc::Lists.AsReadOnly(repeatedFloat_); }
|
| 2328 | }
|
| 2329 | public int RepeatedFloatCount {
|
| 2330 | get { return repeatedFloat_.Count; }
|
| 2331 | }
|
| 2332 | public float GetRepeatedFloat(int index) {
|
| 2333 | return repeatedFloat_[index];
|
| 2334 | }
|
| 2335 |
|
| 2336 | public const int RepeatedDoubleFieldNumber = 42;
|
| 2337 | private pbc::PopsicleList<double> repeatedDouble_ = new pbc::PopsicleList<double>();
|
| 2338 | public scg::IList<double> RepeatedDoubleList {
|
| 2339 | get { return pbc::Lists.AsReadOnly(repeatedDouble_); }
|
| 2340 | }
|
| 2341 | public int RepeatedDoubleCount {
|
| 2342 | get { return repeatedDouble_.Count; }
|
| 2343 | }
|
| 2344 | public double GetRepeatedDouble(int index) {
|
| 2345 | return repeatedDouble_[index];
|
| 2346 | }
|
| 2347 |
|
| 2348 | public const int RepeatedBoolFieldNumber = 43;
|
| 2349 | private pbc::PopsicleList<bool> repeatedBool_ = new pbc::PopsicleList<bool>();
|
| 2350 | public scg::IList<bool> RepeatedBoolList {
|
| 2351 | get { return pbc::Lists.AsReadOnly(repeatedBool_); }
|
| 2352 | }
|
| 2353 | public int RepeatedBoolCount {
|
| 2354 | get { return repeatedBool_.Count; }
|
| 2355 | }
|
| 2356 | public bool GetRepeatedBool(int index) {
|
| 2357 | return repeatedBool_[index];
|
| 2358 | }
|
| 2359 |
|
| 2360 | public const int RepeatedStringFieldNumber = 44;
|
| 2361 | private pbc::PopsicleList<string> repeatedString_ = new pbc::PopsicleList<string>();
|
| 2362 | public scg::IList<string> RepeatedStringList {
|
| 2363 | get { return pbc::Lists.AsReadOnly(repeatedString_); }
|
| 2364 | }
|
| 2365 | public int RepeatedStringCount {
|
| 2366 | get { return repeatedString_.Count; }
|
| 2367 | }
|
| 2368 | public string GetRepeatedString(int index) {
|
| 2369 | return repeatedString_[index];
|
| 2370 | }
|
| 2371 |
|
| 2372 | public const int RepeatedBytesFieldNumber = 45;
|
| 2373 | private pbc::PopsicleList<pb::ByteString> repeatedBytes_ = new pbc::PopsicleList<pb::ByteString>();
|
| 2374 | public scg::IList<pb::ByteString> RepeatedBytesList {
|
| 2375 | get { return pbc::Lists.AsReadOnly(repeatedBytes_); }
|
| 2376 | }
|
| 2377 | public int RepeatedBytesCount {
|
| 2378 | get { return repeatedBytes_.Count; }
|
| 2379 | }
|
| 2380 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 2381 | return repeatedBytes_[index];
|
| 2382 | }
|
| 2383 |
|
| 2384 | public const int RepeatedGroupFieldNumber = 46;
|
| 2385 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> repeatedGroup_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup>();
|
| 2386 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 2387 | get { return repeatedGroup_; }
|
| 2388 | }
|
| 2389 | public int RepeatedGroupCount {
|
| 2390 | get { return repeatedGroup_.Count; }
|
| 2391 | }
|
| 2392 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 2393 | return repeatedGroup_[index];
|
| 2394 | }
|
| 2395 |
|
| 2396 | public const int RepeatedNestedMessageFieldNumber = 48;
|
| 2397 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> repeatedNestedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage>();
|
| 2398 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 2399 | get { return repeatedNestedMessage_; }
|
| 2400 | }
|
| 2401 | public int RepeatedNestedMessageCount {
|
| 2402 | get { return repeatedNestedMessage_.Count; }
|
| 2403 | }
|
| 2404 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 2405 | return repeatedNestedMessage_[index];
|
| 2406 | }
|
| 2407 |
|
| 2408 | public const int RepeatedForeignMessageFieldNumber = 49;
|
| 2409 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> repeatedForeignMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite>();
|
| 2410 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 2411 | get { return repeatedForeignMessage_; }
|
| 2412 | }
|
| 2413 | public int RepeatedForeignMessageCount {
|
| 2414 | get { return repeatedForeignMessage_.Count; }
|
| 2415 | }
|
| 2416 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 2417 | return repeatedForeignMessage_[index];
|
| 2418 | }
|
| 2419 |
|
| 2420 | public const int RepeatedImportMessageFieldNumber = 50;
|
| 2421 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> repeatedImportMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite>();
|
| 2422 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 2423 | get { return repeatedImportMessage_; }
|
| 2424 | }
|
| 2425 | public int RepeatedImportMessageCount {
|
| 2426 | get { return repeatedImportMessage_.Count; }
|
| 2427 | }
|
| 2428 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 2429 | return repeatedImportMessage_[index];
|
| 2430 | }
|
| 2431 |
|
| 2432 | public const int RepeatedNestedEnumFieldNumber = 51;
|
| 2433 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> repeatedNestedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum>();
|
| 2434 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 2435 | get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
|
| 2436 | }
|
| 2437 | public int RepeatedNestedEnumCount {
|
| 2438 | get { return repeatedNestedEnum_.Count; }
|
| 2439 | }
|
| 2440 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 2441 | return repeatedNestedEnum_[index];
|
| 2442 | }
|
| 2443 |
|
| 2444 | public const int RepeatedForeignEnumFieldNumber = 52;
|
| 2445 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> repeatedForeignEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 2446 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 2447 | get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
|
| 2448 | }
|
| 2449 | public int RepeatedForeignEnumCount {
|
| 2450 | get { return repeatedForeignEnum_.Count; }
|
| 2451 | }
|
| 2452 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 2453 | return repeatedForeignEnum_[index];
|
| 2454 | }
|
| 2455 |
|
| 2456 | public const int RepeatedImportEnumFieldNumber = 53;
|
| 2457 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> repeatedImportEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite>();
|
| 2458 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 2459 | get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
|
| 2460 | }
|
| 2461 | public int RepeatedImportEnumCount {
|
| 2462 | get { return repeatedImportEnum_.Count; }
|
| 2463 | }
|
| 2464 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 2465 | return repeatedImportEnum_[index];
|
| 2466 | }
|
| 2467 |
|
| 2468 | public const int RepeatedStringPieceFieldNumber = 54;
|
| 2469 | private pbc::PopsicleList<string> repeatedStringPiece_ = new pbc::PopsicleList<string>();
|
| 2470 | public scg::IList<string> RepeatedStringPieceList {
|
| 2471 | get { return pbc::Lists.AsReadOnly(repeatedStringPiece_); }
|
| 2472 | }
|
| 2473 | public int RepeatedStringPieceCount {
|
| 2474 | get { return repeatedStringPiece_.Count; }
|
| 2475 | }
|
| 2476 | public string GetRepeatedStringPiece(int index) {
|
| 2477 | return repeatedStringPiece_[index];
|
| 2478 | }
|
| 2479 |
|
| 2480 | public const int RepeatedCordFieldNumber = 55;
|
| 2481 | private pbc::PopsicleList<string> repeatedCord_ = new pbc::PopsicleList<string>();
|
| 2482 | public scg::IList<string> RepeatedCordList {
|
| 2483 | get { return pbc::Lists.AsReadOnly(repeatedCord_); }
|
| 2484 | }
|
| 2485 | public int RepeatedCordCount {
|
| 2486 | get { return repeatedCord_.Count; }
|
| 2487 | }
|
| 2488 | public string GetRepeatedCord(int index) {
|
| 2489 | return repeatedCord_[index];
|
| 2490 | }
|
| 2491 |
|
| 2492 | public const int DefaultInt32FieldNumber = 61;
|
| 2493 | private bool hasDefaultInt32;
|
| 2494 | private int defaultInt32_ = 41;
|
| 2495 | public bool HasDefaultInt32 {
|
| 2496 | get { return hasDefaultInt32; }
|
| 2497 | }
|
| 2498 | public int DefaultInt32 {
|
| 2499 | get { return defaultInt32_; }
|
| 2500 | }
|
| 2501 |
|
| 2502 | public const int DefaultInt64FieldNumber = 62;
|
| 2503 | private bool hasDefaultInt64;
|
| 2504 | private long defaultInt64_ = 42L;
|
| 2505 | public bool HasDefaultInt64 {
|
| 2506 | get { return hasDefaultInt64; }
|
| 2507 | }
|
| 2508 | public long DefaultInt64 {
|
| 2509 | get { return defaultInt64_; }
|
| 2510 | }
|
| 2511 |
|
| 2512 | public const int DefaultUint32FieldNumber = 63;
|
| 2513 | private bool hasDefaultUint32;
|
| 2514 | private uint defaultUint32_ = 43;
|
| 2515 | public bool HasDefaultUint32 {
|
| 2516 | get { return hasDefaultUint32; }
|
| 2517 | }
|
| 2518 | [global::System.CLSCompliant(false)]
|
| 2519 | public uint DefaultUint32 {
|
| 2520 | get { return defaultUint32_; }
|
| 2521 | }
|
| 2522 |
|
| 2523 | public const int DefaultUint64FieldNumber = 64;
|
| 2524 | private bool hasDefaultUint64;
|
| 2525 | private ulong defaultUint64_ = 44UL;
|
| 2526 | public bool HasDefaultUint64 {
|
| 2527 | get { return hasDefaultUint64; }
|
| 2528 | }
|
| 2529 | [global::System.CLSCompliant(false)]
|
| 2530 | public ulong DefaultUint64 {
|
| 2531 | get { return defaultUint64_; }
|
| 2532 | }
|
| 2533 |
|
| 2534 | public const int DefaultSint32FieldNumber = 65;
|
| 2535 | private bool hasDefaultSint32;
|
| 2536 | private int defaultSint32_ = -45;
|
| 2537 | public bool HasDefaultSint32 {
|
| 2538 | get { return hasDefaultSint32; }
|
| 2539 | }
|
| 2540 | public int DefaultSint32 {
|
| 2541 | get { return defaultSint32_; }
|
| 2542 | }
|
| 2543 |
|
| 2544 | public const int DefaultSint64FieldNumber = 66;
|
| 2545 | private bool hasDefaultSint64;
|
| 2546 | private long defaultSint64_ = 46;
|
| 2547 | public bool HasDefaultSint64 {
|
| 2548 | get { return hasDefaultSint64; }
|
| 2549 | }
|
| 2550 | public long DefaultSint64 {
|
| 2551 | get { return defaultSint64_; }
|
| 2552 | }
|
| 2553 |
|
| 2554 | public const int DefaultFixed32FieldNumber = 67;
|
| 2555 | private bool hasDefaultFixed32;
|
| 2556 | private uint defaultFixed32_ = 47;
|
| 2557 | public bool HasDefaultFixed32 {
|
| 2558 | get { return hasDefaultFixed32; }
|
| 2559 | }
|
| 2560 | [global::System.CLSCompliant(false)]
|
| 2561 | public uint DefaultFixed32 {
|
| 2562 | get { return defaultFixed32_; }
|
| 2563 | }
|
| 2564 |
|
| 2565 | public const int DefaultFixed64FieldNumber = 68;
|
| 2566 | private bool hasDefaultFixed64;
|
| 2567 | private ulong defaultFixed64_ = 48;
|
| 2568 | public bool HasDefaultFixed64 {
|
| 2569 | get { return hasDefaultFixed64; }
|
| 2570 | }
|
| 2571 | [global::System.CLSCompliant(false)]
|
| 2572 | public ulong DefaultFixed64 {
|
| 2573 | get { return defaultFixed64_; }
|
| 2574 | }
|
| 2575 |
|
| 2576 | public const int DefaultSfixed32FieldNumber = 69;
|
| 2577 | private bool hasDefaultSfixed32;
|
| 2578 | private int defaultSfixed32_ = 49;
|
| 2579 | public bool HasDefaultSfixed32 {
|
| 2580 | get { return hasDefaultSfixed32; }
|
| 2581 | }
|
| 2582 | public int DefaultSfixed32 {
|
| 2583 | get { return defaultSfixed32_; }
|
| 2584 | }
|
| 2585 |
|
| 2586 | public const int DefaultSfixed64FieldNumber = 70;
|
| 2587 | private bool hasDefaultSfixed64;
|
| 2588 | private long defaultSfixed64_ = -50;
|
| 2589 | public bool HasDefaultSfixed64 {
|
| 2590 | get { return hasDefaultSfixed64; }
|
| 2591 | }
|
| 2592 | public long DefaultSfixed64 {
|
| 2593 | get { return defaultSfixed64_; }
|
| 2594 | }
|
| 2595 |
|
| 2596 | public const int DefaultFloatFieldNumber = 71;
|
| 2597 | private bool hasDefaultFloat;
|
| 2598 | private float defaultFloat_ = 51.5F;
|
| 2599 | public bool HasDefaultFloat {
|
| 2600 | get { return hasDefaultFloat; }
|
| 2601 | }
|
| 2602 | public float DefaultFloat {
|
| 2603 | get { return defaultFloat_; }
|
| 2604 | }
|
| 2605 |
|
| 2606 | public const int DefaultDoubleFieldNumber = 72;
|
| 2607 | private bool hasDefaultDouble;
|
| 2608 | private double defaultDouble_ = 52000D;
|
| 2609 | public bool HasDefaultDouble {
|
| 2610 | get { return hasDefaultDouble; }
|
| 2611 | }
|
| 2612 | public double DefaultDouble {
|
| 2613 | get { return defaultDouble_; }
|
| 2614 | }
|
| 2615 |
|
| 2616 | public const int DefaultBoolFieldNumber = 73;
|
| 2617 | private bool hasDefaultBool;
|
| 2618 | private bool defaultBool_ = true;
|
| 2619 | public bool HasDefaultBool {
|
| 2620 | get { return hasDefaultBool; }
|
| 2621 | }
|
| 2622 | public bool DefaultBool {
|
| 2623 | get { return defaultBool_; }
|
| 2624 | }
|
| 2625 |
|
| 2626 | public const int DefaultStringFieldNumber = 74;
|
| 2627 | private bool hasDefaultString;
|
| 2628 | private string defaultString_ = "hello";
|
| 2629 | public bool HasDefaultString {
|
| 2630 | get { return hasDefaultString; }
|
| 2631 | }
|
| 2632 | public string DefaultString {
|
| 2633 | get { return defaultString_; }
|
| 2634 | }
|
| 2635 |
|
| 2636 | public const int DefaultBytesFieldNumber = 75;
|
| 2637 | private bool hasDefaultBytes;
|
csharptest | 02760b2 | 2011-07-14 14:46:42 -0500 | [diff] [blame] | 2638 | private pb::ByteString defaultBytes_ = pb::ByteString.FromBase64("d29ybGQ=");
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2639 | public bool HasDefaultBytes {
|
| 2640 | get { return hasDefaultBytes; }
|
| 2641 | }
|
| 2642 | public pb::ByteString DefaultBytes {
|
| 2643 | get { return defaultBytes_; }
|
| 2644 | }
|
| 2645 |
|
| 2646 | public const int DefaultNestedEnumFieldNumber = 81;
|
| 2647 | private bool hasDefaultNestedEnum;
|
| 2648 | private global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 2649 | public bool HasDefaultNestedEnum {
|
| 2650 | get { return hasDefaultNestedEnum; }
|
| 2651 | }
|
| 2652 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 2653 | get { return defaultNestedEnum_; }
|
| 2654 | }
|
| 2655 |
|
| 2656 | public const int DefaultForeignEnumFieldNumber = 82;
|
| 2657 | private bool hasDefaultForeignEnum;
|
| 2658 | private global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 2659 | public bool HasDefaultForeignEnum {
|
| 2660 | get { return hasDefaultForeignEnum; }
|
| 2661 | }
|
| 2662 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 2663 | get { return defaultForeignEnum_; }
|
| 2664 | }
|
| 2665 |
|
| 2666 | public const int DefaultImportEnumFieldNumber = 83;
|
| 2667 | private bool hasDefaultImportEnum;
|
| 2668 | private global::Google.ProtocolBuffers.TestProtos.ImportEnumLite defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 2669 | public bool HasDefaultImportEnum {
|
| 2670 | get { return hasDefaultImportEnum; }
|
| 2671 | }
|
| 2672 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 2673 | get { return defaultImportEnum_; }
|
| 2674 | }
|
| 2675 |
|
| 2676 | public const int DefaultStringPieceFieldNumber = 84;
|
| 2677 | private bool hasDefaultStringPiece;
|
| 2678 | private string defaultStringPiece_ = "abc";
|
| 2679 | public bool HasDefaultStringPiece {
|
| 2680 | get { return hasDefaultStringPiece; }
|
| 2681 | }
|
| 2682 | public string DefaultStringPiece {
|
| 2683 | get { return defaultStringPiece_; }
|
| 2684 | }
|
| 2685 |
|
| 2686 | public const int DefaultCordFieldNumber = 85;
|
| 2687 | private bool hasDefaultCord;
|
| 2688 | private string defaultCord_ = "123";
|
| 2689 | public bool HasDefaultCord {
|
| 2690 | get { return hasDefaultCord; }
|
| 2691 | }
|
| 2692 | public string DefaultCord {
|
| 2693 | get { return defaultCord_; }
|
| 2694 | }
|
| 2695 |
|
| 2696 | public override bool IsInitialized {
|
| 2697 | get {
|
| 2698 | return true;
|
| 2699 | }
|
| 2700 | }
|
| 2701 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 2702 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2703 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2704 | string[] field_names = _testAllTypesLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2705 | if (hasOptionalInt32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2706 | output.WriteInt32(1, field_names[31], OptionalInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2707 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2708 | if (hasOptionalInt64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2709 | output.WriteInt64(2, field_names[32], OptionalInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2710 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2711 | if (hasOptionalUint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2712 | output.WriteUInt32(3, field_names[41], OptionalUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2713 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2714 | if (hasOptionalUint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2715 | output.WriteUInt64(4, field_names[42], OptionalUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2716 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2717 | if (hasOptionalSint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2718 | output.WriteSInt32(5, field_names[37], OptionalSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2719 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2720 | if (hasOptionalSint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2721 | output.WriteSInt64(6, field_names[38], OptionalSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2722 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2723 | if (hasOptionalFixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2724 | output.WriteFixed32(7, field_names[24], OptionalFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2725 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2726 | if (hasOptionalFixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2727 | output.WriteFixed64(8, field_names[25], OptionalFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2728 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2729 | if (hasOptionalSfixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2730 | output.WriteSFixed32(9, field_names[35], OptionalSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2731 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2732 | if (hasOptionalSfixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2733 | output.WriteSFixed64(10, field_names[36], OptionalSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2734 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2735 | if (hasOptionalFloat) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2736 | output.WriteFloat(11, field_names[26], OptionalFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2737 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2738 | if (hasOptionalDouble) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2739 | output.WriteDouble(12, field_names[23], OptionalDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2740 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2741 | if (hasOptionalBool) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2742 | output.WriteBool(13, field_names[20], OptionalBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2743 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2744 | if (hasOptionalString) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2745 | output.WriteString(14, field_names[39], OptionalString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2746 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2747 | if (hasOptionalBytes) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2748 | output.WriteBytes(15, field_names[21], OptionalBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2749 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2750 | if (hasOptionalGroup) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2751 | output.WriteGroup(16, field_names[43], OptionalGroup);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2752 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2753 | if (hasOptionalNestedMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2754 | output.WriteMessage(18, field_names[34], OptionalNestedMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2755 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2756 | if (hasOptionalForeignMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2757 | output.WriteMessage(19, field_names[28], OptionalForeignMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2758 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2759 | if (hasOptionalImportMessage) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2760 | output.WriteMessage(20, field_names[30], OptionalImportMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2761 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2762 | if (hasOptionalNestedEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2763 | output.WriteEnum(21, field_names[33], (int) OptionalNestedEnum, OptionalNestedEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2764 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2765 | if (hasOptionalForeignEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2766 | output.WriteEnum(22, field_names[27], (int) OptionalForeignEnum, OptionalForeignEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2767 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2768 | if (hasOptionalImportEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2769 | output.WriteEnum(23, field_names[29], (int) OptionalImportEnum, OptionalImportEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2770 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2771 | if (hasOptionalStringPiece) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2772 | output.WriteString(24, field_names[40], OptionalStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2773 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2774 | if (hasOptionalCord) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2775 | output.WriteString(25, field_names[22], OptionalCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2776 | }
|
| 2777 | if (repeatedInt32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2778 | output.WriteInt32Array(31, field_names[55], repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2779 | }
|
| 2780 | if (repeatedInt64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2781 | output.WriteInt64Array(32, field_names[56], repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2782 | }
|
| 2783 | if (repeatedUint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2784 | output.WriteUInt32Array(33, field_names[65], repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2785 | }
|
| 2786 | if (repeatedUint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2787 | output.WriteUInt64Array(34, field_names[66], repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2788 | }
|
| 2789 | if (repeatedSint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2790 | output.WriteSInt32Array(35, field_names[61], repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2791 | }
|
| 2792 | if (repeatedSint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2793 | output.WriteSInt64Array(36, field_names[62], repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2794 | }
|
| 2795 | if (repeatedFixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2796 | output.WriteFixed32Array(37, field_names[48], repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2797 | }
|
| 2798 | if (repeatedFixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2799 | output.WriteFixed64Array(38, field_names[49], repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2800 | }
|
| 2801 | if (repeatedSfixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2802 | output.WriteSFixed32Array(39, field_names[59], repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2803 | }
|
| 2804 | if (repeatedSfixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2805 | output.WriteSFixed64Array(40, field_names[60], repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2806 | }
|
| 2807 | if (repeatedFloat_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2808 | output.WriteFloatArray(41, field_names[50], repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2809 | }
|
| 2810 | if (repeatedDouble_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2811 | output.WriteDoubleArray(42, field_names[47], repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2812 | }
|
| 2813 | if (repeatedBool_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2814 | output.WriteBoolArray(43, field_names[44], repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2815 | }
|
| 2816 | if (repeatedString_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2817 | output.WriteStringArray(44, field_names[63], repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2818 | }
|
| 2819 | if (repeatedBytes_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2820 | output.WriteBytesArray(45, field_names[45], repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2821 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2822 | if (repeatedGroup_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2823 | output.WriteGroupArray(46, field_names[67], repeatedGroup_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2824 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2825 | if (repeatedNestedMessage_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2826 | output.WriteMessageArray(48, field_names[58], repeatedNestedMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2827 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2828 | if (repeatedForeignMessage_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2829 | output.WriteMessageArray(49, field_names[52], repeatedForeignMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2830 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 2831 | if (repeatedImportMessage_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2832 | output.WriteMessageArray(50, field_names[54], repeatedImportMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2833 | }
|
| 2834 | if (repeatedNestedEnum_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2835 | output.WriteEnumArray(51, field_names[57], repeatedNestedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2836 | }
|
| 2837 | if (repeatedForeignEnum_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2838 | output.WriteEnumArray(52, field_names[51], repeatedForeignEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2839 | }
|
| 2840 | if (repeatedImportEnum_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2841 | output.WriteEnumArray(53, field_names[53], repeatedImportEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2842 | }
|
| 2843 | if (repeatedStringPiece_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2844 | output.WriteStringArray(54, field_names[64], repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2845 | }
|
| 2846 | if (repeatedCord_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 2847 | output.WriteStringArray(55, field_names[46], repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2848 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2849 | if (hasDefaultInt32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2850 | output.WriteInt32(61, field_names[9], DefaultInt32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2851 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2852 | if (hasDefaultInt64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2853 | output.WriteInt64(62, field_names[10], DefaultInt64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2854 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2855 | if (hasDefaultUint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2856 | output.WriteUInt32(63, field_names[18], DefaultUint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2857 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2858 | if (hasDefaultUint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2859 | output.WriteUInt64(64, field_names[19], DefaultUint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2860 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2861 | if (hasDefaultSint32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2862 | output.WriteSInt32(65, field_names[14], DefaultSint32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2863 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2864 | if (hasDefaultSint64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2865 | output.WriteSInt64(66, field_names[15], DefaultSint64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2866 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2867 | if (hasDefaultFixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2868 | output.WriteFixed32(67, field_names[4], DefaultFixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2869 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2870 | if (hasDefaultFixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2871 | output.WriteFixed64(68, field_names[5], DefaultFixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2872 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2873 | if (hasDefaultSfixed32) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2874 | output.WriteSFixed32(69, field_names[12], DefaultSfixed32);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2875 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2876 | if (hasDefaultSfixed64) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2877 | output.WriteSFixed64(70, field_names[13], DefaultSfixed64);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2878 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2879 | if (hasDefaultFloat) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2880 | output.WriteFloat(71, field_names[6], DefaultFloat);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2881 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2882 | if (hasDefaultDouble) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2883 | output.WriteDouble(72, field_names[3], DefaultDouble);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2884 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2885 | if (hasDefaultBool) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2886 | output.WriteBool(73, field_names[0], DefaultBool);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2887 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2888 | if (hasDefaultString) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2889 | output.WriteString(74, field_names[16], DefaultString);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2890 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2891 | if (hasDefaultBytes) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2892 | output.WriteBytes(75, field_names[1], DefaultBytes);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2893 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2894 | if (hasDefaultNestedEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2895 | output.WriteEnum(81, field_names[11], (int) DefaultNestedEnum, DefaultNestedEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2896 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2897 | if (hasDefaultForeignEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2898 | output.WriteEnum(82, field_names[7], (int) DefaultForeignEnum, DefaultForeignEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2899 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2900 | if (hasDefaultImportEnum) {
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 2901 | output.WriteEnum(83, field_names[8], (int) DefaultImportEnum, DefaultImportEnum);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2902 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2903 | if (hasDefaultStringPiece) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2904 | output.WriteString(84, field_names[17], DefaultStringPiece);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2905 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2906 | if (hasDefaultCord) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 2907 | output.WriteString(85, field_names[2], DefaultCord);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2908 | }
|
| 2909 | }
|
| 2910 |
|
| 2911 | private int memoizedSerializedSize = -1;
|
| 2912 | public override int SerializedSize {
|
| 2913 | get {
|
| 2914 | int size = memoizedSerializedSize;
|
| 2915 | if (size != -1) return size;
|
| 2916 |
|
| 2917 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2918 | if (hasOptionalInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2919 | size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
|
| 2920 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2921 | if (hasOptionalInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2922 | size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
|
| 2923 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2924 | if (hasOptionalUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2925 | size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
|
| 2926 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2927 | if (hasOptionalUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2928 | size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
|
| 2929 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2930 | if (hasOptionalSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2931 | size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
|
| 2932 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2933 | if (hasOptionalSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2934 | size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
|
| 2935 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2936 | if (hasOptionalFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2937 | size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
|
| 2938 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2939 | if (hasOptionalFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2940 | size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
|
| 2941 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2942 | if (hasOptionalSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2943 | size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
|
| 2944 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2945 | if (hasOptionalSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2946 | size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
|
| 2947 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2948 | if (hasOptionalFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2949 | size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
|
| 2950 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2951 | if (hasOptionalDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2952 | size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
|
| 2953 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2954 | if (hasOptionalBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2955 | size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
|
| 2956 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2957 | if (hasOptionalString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2958 | size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
|
| 2959 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2960 | if (hasOptionalBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2961 | size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
|
| 2962 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2963 | if (hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2964 | size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
|
| 2965 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2966 | if (hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2967 | size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
|
| 2968 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2969 | if (hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2970 | size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
|
| 2971 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2972 | if (hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2973 | size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
|
| 2974 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2975 | if (hasOptionalNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2976 | size += pb::CodedOutputStream.ComputeEnumSize(21, (int) OptionalNestedEnum);
|
| 2977 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2978 | if (hasOptionalForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2979 | size += pb::CodedOutputStream.ComputeEnumSize(22, (int) OptionalForeignEnum);
|
| 2980 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2981 | if (hasOptionalImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2982 | size += pb::CodedOutputStream.ComputeEnumSize(23, (int) OptionalImportEnum);
|
| 2983 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2984 | if (hasOptionalStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2985 | size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
|
| 2986 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 2987 | if (hasOptionalCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2988 | size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
|
| 2989 | }
|
| 2990 | {
|
| 2991 | int dataSize = 0;
|
| 2992 | foreach (int element in RepeatedInt32List) {
|
| 2993 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 2994 | }
|
| 2995 | size += dataSize;
|
| 2996 | size += 2 * repeatedInt32_.Count;
|
| 2997 | }
|
| 2998 | {
|
| 2999 | int dataSize = 0;
|
| 3000 | foreach (long element in RepeatedInt64List) {
|
| 3001 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 3002 | }
|
| 3003 | size += dataSize;
|
| 3004 | size += 2 * repeatedInt64_.Count;
|
| 3005 | }
|
| 3006 | {
|
| 3007 | int dataSize = 0;
|
| 3008 | foreach (uint element in RepeatedUint32List) {
|
| 3009 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 3010 | }
|
| 3011 | size += dataSize;
|
| 3012 | size += 2 * repeatedUint32_.Count;
|
| 3013 | }
|
| 3014 | {
|
| 3015 | int dataSize = 0;
|
| 3016 | foreach (ulong element in RepeatedUint64List) {
|
| 3017 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 3018 | }
|
| 3019 | size += dataSize;
|
| 3020 | size += 2 * repeatedUint64_.Count;
|
| 3021 | }
|
| 3022 | {
|
| 3023 | int dataSize = 0;
|
| 3024 | foreach (int element in RepeatedSint32List) {
|
| 3025 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 3026 | }
|
| 3027 | size += dataSize;
|
| 3028 | size += 2 * repeatedSint32_.Count;
|
| 3029 | }
|
| 3030 | {
|
| 3031 | int dataSize = 0;
|
| 3032 | foreach (long element in RepeatedSint64List) {
|
| 3033 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 3034 | }
|
| 3035 | size += dataSize;
|
| 3036 | size += 2 * repeatedSint64_.Count;
|
| 3037 | }
|
| 3038 | {
|
| 3039 | int dataSize = 0;
|
| 3040 | dataSize = 4 * repeatedFixed32_.Count;
|
| 3041 | size += dataSize;
|
| 3042 | size += 2 * repeatedFixed32_.Count;
|
| 3043 | }
|
| 3044 | {
|
| 3045 | int dataSize = 0;
|
| 3046 | dataSize = 8 * repeatedFixed64_.Count;
|
| 3047 | size += dataSize;
|
| 3048 | size += 2 * repeatedFixed64_.Count;
|
| 3049 | }
|
| 3050 | {
|
| 3051 | int dataSize = 0;
|
| 3052 | dataSize = 4 * repeatedSfixed32_.Count;
|
| 3053 | size += dataSize;
|
| 3054 | size += 2 * repeatedSfixed32_.Count;
|
| 3055 | }
|
| 3056 | {
|
| 3057 | int dataSize = 0;
|
| 3058 | dataSize = 8 * repeatedSfixed64_.Count;
|
| 3059 | size += dataSize;
|
| 3060 | size += 2 * repeatedSfixed64_.Count;
|
| 3061 | }
|
| 3062 | {
|
| 3063 | int dataSize = 0;
|
| 3064 | dataSize = 4 * repeatedFloat_.Count;
|
| 3065 | size += dataSize;
|
| 3066 | size += 2 * repeatedFloat_.Count;
|
| 3067 | }
|
| 3068 | {
|
| 3069 | int dataSize = 0;
|
| 3070 | dataSize = 8 * repeatedDouble_.Count;
|
| 3071 | size += dataSize;
|
| 3072 | size += 2 * repeatedDouble_.Count;
|
| 3073 | }
|
| 3074 | {
|
| 3075 | int dataSize = 0;
|
| 3076 | dataSize = 1 * repeatedBool_.Count;
|
| 3077 | size += dataSize;
|
| 3078 | size += 2 * repeatedBool_.Count;
|
| 3079 | }
|
| 3080 | {
|
| 3081 | int dataSize = 0;
|
| 3082 | foreach (string element in RepeatedStringList) {
|
| 3083 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3084 | }
|
| 3085 | size += dataSize;
|
| 3086 | size += 2 * repeatedString_.Count;
|
| 3087 | }
|
| 3088 | {
|
| 3089 | int dataSize = 0;
|
| 3090 | foreach (pb::ByteString element in RepeatedBytesList) {
|
| 3091 | dataSize += pb::CodedOutputStream.ComputeBytesSizeNoTag(element);
|
| 3092 | }
|
| 3093 | size += dataSize;
|
| 3094 | size += 2 * repeatedBytes_.Count;
|
| 3095 | }
|
| 3096 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup element in RepeatedGroupList) {
|
| 3097 | size += pb::CodedOutputStream.ComputeGroupSize(46, element);
|
| 3098 | }
|
| 3099 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage element in RepeatedNestedMessageList) {
|
| 3100 | size += pb::CodedOutputStream.ComputeMessageSize(48, element);
|
| 3101 | }
|
| 3102 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite element in RepeatedForeignMessageList) {
|
| 3103 | size += pb::CodedOutputStream.ComputeMessageSize(49, element);
|
| 3104 | }
|
| 3105 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessageLite element in RepeatedImportMessageList) {
|
| 3106 | size += pb::CodedOutputStream.ComputeMessageSize(50, element);
|
| 3107 | }
|
| 3108 | {
|
| 3109 | int dataSize = 0;
|
| 3110 | if (repeatedNestedEnum_.Count > 0) {
|
| 3111 | foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum element in repeatedNestedEnum_) {
|
| 3112 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3113 | }
|
| 3114 | size += dataSize;
|
| 3115 | size += 2 * repeatedNestedEnum_.Count;
|
| 3116 | }
|
| 3117 | }
|
| 3118 | {
|
| 3119 | int dataSize = 0;
|
| 3120 | if (repeatedForeignEnum_.Count > 0) {
|
| 3121 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in repeatedForeignEnum_) {
|
| 3122 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3123 | }
|
| 3124 | size += dataSize;
|
| 3125 | size += 2 * repeatedForeignEnum_.Count;
|
| 3126 | }
|
| 3127 | }
|
| 3128 | {
|
| 3129 | int dataSize = 0;
|
| 3130 | if (repeatedImportEnum_.Count > 0) {
|
| 3131 | foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnumLite element in repeatedImportEnum_) {
|
| 3132 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 3133 | }
|
| 3134 | size += dataSize;
|
| 3135 | size += 2 * repeatedImportEnum_.Count;
|
| 3136 | }
|
| 3137 | }
|
| 3138 | {
|
| 3139 | int dataSize = 0;
|
| 3140 | foreach (string element in RepeatedStringPieceList) {
|
| 3141 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3142 | }
|
| 3143 | size += dataSize;
|
| 3144 | size += 2 * repeatedStringPiece_.Count;
|
| 3145 | }
|
| 3146 | {
|
| 3147 | int dataSize = 0;
|
| 3148 | foreach (string element in RepeatedCordList) {
|
| 3149 | dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
|
| 3150 | }
|
| 3151 | size += dataSize;
|
| 3152 | size += 2 * repeatedCord_.Count;
|
| 3153 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3154 | if (hasDefaultInt32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3155 | size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
|
| 3156 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3157 | if (hasDefaultInt64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3158 | size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
|
| 3159 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3160 | if (hasDefaultUint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3161 | size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
|
| 3162 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3163 | if (hasDefaultUint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3164 | size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
|
| 3165 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3166 | if (hasDefaultSint32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3167 | size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
|
| 3168 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3169 | if (hasDefaultSint64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3170 | size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
|
| 3171 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3172 | if (hasDefaultFixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3173 | size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
|
| 3174 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3175 | if (hasDefaultFixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3176 | size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
|
| 3177 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3178 | if (hasDefaultSfixed32) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3179 | size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
|
| 3180 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3181 | if (hasDefaultSfixed64) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3182 | size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
|
| 3183 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3184 | if (hasDefaultFloat) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3185 | size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
|
| 3186 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3187 | if (hasDefaultDouble) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3188 | size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
|
| 3189 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3190 | if (hasDefaultBool) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3191 | size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
|
| 3192 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3193 | if (hasDefaultString) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3194 | size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
|
| 3195 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3196 | if (hasDefaultBytes) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3197 | size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
|
| 3198 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3199 | if (hasDefaultNestedEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3200 | size += pb::CodedOutputStream.ComputeEnumSize(81, (int) DefaultNestedEnum);
|
| 3201 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3202 | if (hasDefaultForeignEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3203 | size += pb::CodedOutputStream.ComputeEnumSize(82, (int) DefaultForeignEnum);
|
| 3204 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3205 | if (hasDefaultImportEnum) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3206 | size += pb::CodedOutputStream.ComputeEnumSize(83, (int) DefaultImportEnum);
|
| 3207 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3208 | if (hasDefaultStringPiece) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3209 | size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
|
| 3210 | }
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3211 | if (hasDefaultCord) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3212 | size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
|
| 3213 | }
|
| 3214 | memoizedSerializedSize = size;
|
| 3215 | return size;
|
| 3216 | }
|
| 3217 | }
|
| 3218 |
|
| 3219 | #region Lite runtime methods
|
| 3220 | public override int GetHashCode() {
|
| 3221 | int hash = GetType().GetHashCode();
|
| 3222 | if (hasOptionalInt32) hash ^= optionalInt32_.GetHashCode();
|
| 3223 | if (hasOptionalInt64) hash ^= optionalInt64_.GetHashCode();
|
| 3224 | if (hasOptionalUint32) hash ^= optionalUint32_.GetHashCode();
|
| 3225 | if (hasOptionalUint64) hash ^= optionalUint64_.GetHashCode();
|
| 3226 | if (hasOptionalSint32) hash ^= optionalSint32_.GetHashCode();
|
| 3227 | if (hasOptionalSint64) hash ^= optionalSint64_.GetHashCode();
|
| 3228 | if (hasOptionalFixed32) hash ^= optionalFixed32_.GetHashCode();
|
| 3229 | if (hasOptionalFixed64) hash ^= optionalFixed64_.GetHashCode();
|
| 3230 | if (hasOptionalSfixed32) hash ^= optionalSfixed32_.GetHashCode();
|
| 3231 | if (hasOptionalSfixed64) hash ^= optionalSfixed64_.GetHashCode();
|
| 3232 | if (hasOptionalFloat) hash ^= optionalFloat_.GetHashCode();
|
| 3233 | if (hasOptionalDouble) hash ^= optionalDouble_.GetHashCode();
|
| 3234 | if (hasOptionalBool) hash ^= optionalBool_.GetHashCode();
|
| 3235 | if (hasOptionalString) hash ^= optionalString_.GetHashCode();
|
| 3236 | if (hasOptionalBytes) hash ^= optionalBytes_.GetHashCode();
|
| 3237 | if (hasOptionalGroup) hash ^= optionalGroup_.GetHashCode();
|
| 3238 | if (hasOptionalNestedMessage) hash ^= optionalNestedMessage_.GetHashCode();
|
| 3239 | if (hasOptionalForeignMessage) hash ^= optionalForeignMessage_.GetHashCode();
|
| 3240 | if (hasOptionalImportMessage) hash ^= optionalImportMessage_.GetHashCode();
|
| 3241 | if (hasOptionalNestedEnum) hash ^= optionalNestedEnum_.GetHashCode();
|
| 3242 | if (hasOptionalForeignEnum) hash ^= optionalForeignEnum_.GetHashCode();
|
| 3243 | if (hasOptionalImportEnum) hash ^= optionalImportEnum_.GetHashCode();
|
| 3244 | if (hasOptionalStringPiece) hash ^= optionalStringPiece_.GetHashCode();
|
| 3245 | if (hasOptionalCord) hash ^= optionalCord_.GetHashCode();
|
| 3246 | foreach(int i in repeatedInt32_)
|
| 3247 | hash ^= i.GetHashCode();
|
| 3248 | foreach(long i in repeatedInt64_)
|
| 3249 | hash ^= i.GetHashCode();
|
| 3250 | foreach(uint i in repeatedUint32_)
|
| 3251 | hash ^= i.GetHashCode();
|
| 3252 | foreach(ulong i in repeatedUint64_)
|
| 3253 | hash ^= i.GetHashCode();
|
| 3254 | foreach(int i in repeatedSint32_)
|
| 3255 | hash ^= i.GetHashCode();
|
| 3256 | foreach(long i in repeatedSint64_)
|
| 3257 | hash ^= i.GetHashCode();
|
| 3258 | foreach(uint i in repeatedFixed32_)
|
| 3259 | hash ^= i.GetHashCode();
|
| 3260 | foreach(ulong i in repeatedFixed64_)
|
| 3261 | hash ^= i.GetHashCode();
|
| 3262 | foreach(int i in repeatedSfixed32_)
|
| 3263 | hash ^= i.GetHashCode();
|
| 3264 | foreach(long i in repeatedSfixed64_)
|
| 3265 | hash ^= i.GetHashCode();
|
| 3266 | foreach(float i in repeatedFloat_)
|
| 3267 | hash ^= i.GetHashCode();
|
| 3268 | foreach(double i in repeatedDouble_)
|
| 3269 | hash ^= i.GetHashCode();
|
| 3270 | foreach(bool i in repeatedBool_)
|
| 3271 | hash ^= i.GetHashCode();
|
| 3272 | foreach(string i in repeatedString_)
|
| 3273 | hash ^= i.GetHashCode();
|
| 3274 | foreach(pb::ByteString i in repeatedBytes_)
|
| 3275 | hash ^= i.GetHashCode();
|
| 3276 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup i in repeatedGroup_)
|
| 3277 | hash ^= i.GetHashCode();
|
| 3278 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage i in repeatedNestedMessage_)
|
| 3279 | hash ^= i.GetHashCode();
|
| 3280 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite i in repeatedForeignMessage_)
|
| 3281 | hash ^= i.GetHashCode();
|
| 3282 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite i in repeatedImportMessage_)
|
| 3283 | hash ^= i.GetHashCode();
|
| 3284 | foreach(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum i in repeatedNestedEnum_)
|
| 3285 | hash ^= i.GetHashCode();
|
| 3286 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in repeatedForeignEnum_)
|
| 3287 | hash ^= i.GetHashCode();
|
| 3288 | foreach(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite i in repeatedImportEnum_)
|
| 3289 | hash ^= i.GetHashCode();
|
| 3290 | foreach(string i in repeatedStringPiece_)
|
| 3291 | hash ^= i.GetHashCode();
|
| 3292 | foreach(string i in repeatedCord_)
|
| 3293 | hash ^= i.GetHashCode();
|
| 3294 | if (hasDefaultInt32) hash ^= defaultInt32_.GetHashCode();
|
| 3295 | if (hasDefaultInt64) hash ^= defaultInt64_.GetHashCode();
|
| 3296 | if (hasDefaultUint32) hash ^= defaultUint32_.GetHashCode();
|
| 3297 | if (hasDefaultUint64) hash ^= defaultUint64_.GetHashCode();
|
| 3298 | if (hasDefaultSint32) hash ^= defaultSint32_.GetHashCode();
|
| 3299 | if (hasDefaultSint64) hash ^= defaultSint64_.GetHashCode();
|
| 3300 | if (hasDefaultFixed32) hash ^= defaultFixed32_.GetHashCode();
|
| 3301 | if (hasDefaultFixed64) hash ^= defaultFixed64_.GetHashCode();
|
| 3302 | if (hasDefaultSfixed32) hash ^= defaultSfixed32_.GetHashCode();
|
| 3303 | if (hasDefaultSfixed64) hash ^= defaultSfixed64_.GetHashCode();
|
| 3304 | if (hasDefaultFloat) hash ^= defaultFloat_.GetHashCode();
|
| 3305 | if (hasDefaultDouble) hash ^= defaultDouble_.GetHashCode();
|
| 3306 | if (hasDefaultBool) hash ^= defaultBool_.GetHashCode();
|
| 3307 | if (hasDefaultString) hash ^= defaultString_.GetHashCode();
|
| 3308 | if (hasDefaultBytes) hash ^= defaultBytes_.GetHashCode();
|
| 3309 | if (hasDefaultNestedEnum) hash ^= defaultNestedEnum_.GetHashCode();
|
| 3310 | if (hasDefaultForeignEnum) hash ^= defaultForeignEnum_.GetHashCode();
|
| 3311 | if (hasDefaultImportEnum) hash ^= defaultImportEnum_.GetHashCode();
|
| 3312 | if (hasDefaultStringPiece) hash ^= defaultStringPiece_.GetHashCode();
|
| 3313 | if (hasDefaultCord) hash ^= defaultCord_.GetHashCode();
|
| 3314 | return hash;
|
| 3315 | }
|
| 3316 |
|
| 3317 | public override bool Equals(object obj) {
|
| 3318 | TestAllTypesLite other = obj as TestAllTypesLite;
|
| 3319 | if (other == null) return false;
|
| 3320 | if (hasOptionalInt32 != other.hasOptionalInt32 || (hasOptionalInt32 && !optionalInt32_.Equals(other.optionalInt32_))) return false;
|
| 3321 | if (hasOptionalInt64 != other.hasOptionalInt64 || (hasOptionalInt64 && !optionalInt64_.Equals(other.optionalInt64_))) return false;
|
| 3322 | if (hasOptionalUint32 != other.hasOptionalUint32 || (hasOptionalUint32 && !optionalUint32_.Equals(other.optionalUint32_))) return false;
|
| 3323 | if (hasOptionalUint64 != other.hasOptionalUint64 || (hasOptionalUint64 && !optionalUint64_.Equals(other.optionalUint64_))) return false;
|
| 3324 | if (hasOptionalSint32 != other.hasOptionalSint32 || (hasOptionalSint32 && !optionalSint32_.Equals(other.optionalSint32_))) return false;
|
| 3325 | if (hasOptionalSint64 != other.hasOptionalSint64 || (hasOptionalSint64 && !optionalSint64_.Equals(other.optionalSint64_))) return false;
|
| 3326 | if (hasOptionalFixed32 != other.hasOptionalFixed32 || (hasOptionalFixed32 && !optionalFixed32_.Equals(other.optionalFixed32_))) return false;
|
| 3327 | if (hasOptionalFixed64 != other.hasOptionalFixed64 || (hasOptionalFixed64 && !optionalFixed64_.Equals(other.optionalFixed64_))) return false;
|
| 3328 | if (hasOptionalSfixed32 != other.hasOptionalSfixed32 || (hasOptionalSfixed32 && !optionalSfixed32_.Equals(other.optionalSfixed32_))) return false;
|
| 3329 | if (hasOptionalSfixed64 != other.hasOptionalSfixed64 || (hasOptionalSfixed64 && !optionalSfixed64_.Equals(other.optionalSfixed64_))) return false;
|
| 3330 | if (hasOptionalFloat != other.hasOptionalFloat || (hasOptionalFloat && !optionalFloat_.Equals(other.optionalFloat_))) return false;
|
| 3331 | if (hasOptionalDouble != other.hasOptionalDouble || (hasOptionalDouble && !optionalDouble_.Equals(other.optionalDouble_))) return false;
|
| 3332 | if (hasOptionalBool != other.hasOptionalBool || (hasOptionalBool && !optionalBool_.Equals(other.optionalBool_))) return false;
|
| 3333 | if (hasOptionalString != other.hasOptionalString || (hasOptionalString && !optionalString_.Equals(other.optionalString_))) return false;
|
| 3334 | if (hasOptionalBytes != other.hasOptionalBytes || (hasOptionalBytes && !optionalBytes_.Equals(other.optionalBytes_))) return false;
|
| 3335 | if (hasOptionalGroup != other.hasOptionalGroup || (hasOptionalGroup && !optionalGroup_.Equals(other.optionalGroup_))) return false;
|
| 3336 | if (hasOptionalNestedMessage != other.hasOptionalNestedMessage || (hasOptionalNestedMessage && !optionalNestedMessage_.Equals(other.optionalNestedMessage_))) return false;
|
| 3337 | if (hasOptionalForeignMessage != other.hasOptionalForeignMessage || (hasOptionalForeignMessage && !optionalForeignMessage_.Equals(other.optionalForeignMessage_))) return false;
|
| 3338 | if (hasOptionalImportMessage != other.hasOptionalImportMessage || (hasOptionalImportMessage && !optionalImportMessage_.Equals(other.optionalImportMessage_))) return false;
|
| 3339 | if (hasOptionalNestedEnum != other.hasOptionalNestedEnum || (hasOptionalNestedEnum && !optionalNestedEnum_.Equals(other.optionalNestedEnum_))) return false;
|
| 3340 | if (hasOptionalForeignEnum != other.hasOptionalForeignEnum || (hasOptionalForeignEnum && !optionalForeignEnum_.Equals(other.optionalForeignEnum_))) return false;
|
| 3341 | if (hasOptionalImportEnum != other.hasOptionalImportEnum || (hasOptionalImportEnum && !optionalImportEnum_.Equals(other.optionalImportEnum_))) return false;
|
| 3342 | if (hasOptionalStringPiece != other.hasOptionalStringPiece || (hasOptionalStringPiece && !optionalStringPiece_.Equals(other.optionalStringPiece_))) return false;
|
| 3343 | if (hasOptionalCord != other.hasOptionalCord || (hasOptionalCord && !optionalCord_.Equals(other.optionalCord_))) return false;
|
| 3344 | if(repeatedInt32_.Count != other.repeatedInt32_.Count) return false;
|
| 3345 | for(int ix=0; ix < repeatedInt32_.Count; ix++)
|
| 3346 | if(!repeatedInt32_[ix].Equals(other.repeatedInt32_[ix])) return false;
|
| 3347 | if(repeatedInt64_.Count != other.repeatedInt64_.Count) return false;
|
| 3348 | for(int ix=0; ix < repeatedInt64_.Count; ix++)
|
| 3349 | if(!repeatedInt64_[ix].Equals(other.repeatedInt64_[ix])) return false;
|
| 3350 | if(repeatedUint32_.Count != other.repeatedUint32_.Count) return false;
|
| 3351 | for(int ix=0; ix < repeatedUint32_.Count; ix++)
|
| 3352 | if(!repeatedUint32_[ix].Equals(other.repeatedUint32_[ix])) return false;
|
| 3353 | if(repeatedUint64_.Count != other.repeatedUint64_.Count) return false;
|
| 3354 | for(int ix=0; ix < repeatedUint64_.Count; ix++)
|
| 3355 | if(!repeatedUint64_[ix].Equals(other.repeatedUint64_[ix])) return false;
|
| 3356 | if(repeatedSint32_.Count != other.repeatedSint32_.Count) return false;
|
| 3357 | for(int ix=0; ix < repeatedSint32_.Count; ix++)
|
| 3358 | if(!repeatedSint32_[ix].Equals(other.repeatedSint32_[ix])) return false;
|
| 3359 | if(repeatedSint64_.Count != other.repeatedSint64_.Count) return false;
|
| 3360 | for(int ix=0; ix < repeatedSint64_.Count; ix++)
|
| 3361 | if(!repeatedSint64_[ix].Equals(other.repeatedSint64_[ix])) return false;
|
| 3362 | if(repeatedFixed32_.Count != other.repeatedFixed32_.Count) return false;
|
| 3363 | for(int ix=0; ix < repeatedFixed32_.Count; ix++)
|
| 3364 | if(!repeatedFixed32_[ix].Equals(other.repeatedFixed32_[ix])) return false;
|
| 3365 | if(repeatedFixed64_.Count != other.repeatedFixed64_.Count) return false;
|
| 3366 | for(int ix=0; ix < repeatedFixed64_.Count; ix++)
|
| 3367 | if(!repeatedFixed64_[ix].Equals(other.repeatedFixed64_[ix])) return false;
|
| 3368 | if(repeatedSfixed32_.Count != other.repeatedSfixed32_.Count) return false;
|
| 3369 | for(int ix=0; ix < repeatedSfixed32_.Count; ix++)
|
| 3370 | if(!repeatedSfixed32_[ix].Equals(other.repeatedSfixed32_[ix])) return false;
|
| 3371 | if(repeatedSfixed64_.Count != other.repeatedSfixed64_.Count) return false;
|
| 3372 | for(int ix=0; ix < repeatedSfixed64_.Count; ix++)
|
| 3373 | if(!repeatedSfixed64_[ix].Equals(other.repeatedSfixed64_[ix])) return false;
|
| 3374 | if(repeatedFloat_.Count != other.repeatedFloat_.Count) return false;
|
| 3375 | for(int ix=0; ix < repeatedFloat_.Count; ix++)
|
| 3376 | if(!repeatedFloat_[ix].Equals(other.repeatedFloat_[ix])) return false;
|
| 3377 | if(repeatedDouble_.Count != other.repeatedDouble_.Count) return false;
|
| 3378 | for(int ix=0; ix < repeatedDouble_.Count; ix++)
|
| 3379 | if(!repeatedDouble_[ix].Equals(other.repeatedDouble_[ix])) return false;
|
| 3380 | if(repeatedBool_.Count != other.repeatedBool_.Count) return false;
|
| 3381 | for(int ix=0; ix < repeatedBool_.Count; ix++)
|
| 3382 | if(!repeatedBool_[ix].Equals(other.repeatedBool_[ix])) return false;
|
| 3383 | if(repeatedString_.Count != other.repeatedString_.Count) return false;
|
| 3384 | for(int ix=0; ix < repeatedString_.Count; ix++)
|
| 3385 | if(!repeatedString_[ix].Equals(other.repeatedString_[ix])) return false;
|
| 3386 | if(repeatedBytes_.Count != other.repeatedBytes_.Count) return false;
|
| 3387 | for(int ix=0; ix < repeatedBytes_.Count; ix++)
|
| 3388 | if(!repeatedBytes_[ix].Equals(other.repeatedBytes_[ix])) return false;
|
| 3389 | if(repeatedGroup_.Count != other.repeatedGroup_.Count) return false;
|
| 3390 | for(int ix=0; ix < repeatedGroup_.Count; ix++)
|
| 3391 | if(!repeatedGroup_[ix].Equals(other.repeatedGroup_[ix])) return false;
|
| 3392 | if(repeatedNestedMessage_.Count != other.repeatedNestedMessage_.Count) return false;
|
| 3393 | for(int ix=0; ix < repeatedNestedMessage_.Count; ix++)
|
| 3394 | if(!repeatedNestedMessage_[ix].Equals(other.repeatedNestedMessage_[ix])) return false;
|
| 3395 | if(repeatedForeignMessage_.Count != other.repeatedForeignMessage_.Count) return false;
|
| 3396 | for(int ix=0; ix < repeatedForeignMessage_.Count; ix++)
|
| 3397 | if(!repeatedForeignMessage_[ix].Equals(other.repeatedForeignMessage_[ix])) return false;
|
| 3398 | if(repeatedImportMessage_.Count != other.repeatedImportMessage_.Count) return false;
|
| 3399 | for(int ix=0; ix < repeatedImportMessage_.Count; ix++)
|
| 3400 | if(!repeatedImportMessage_[ix].Equals(other.repeatedImportMessage_[ix])) return false;
|
| 3401 | if(repeatedNestedEnum_.Count != other.repeatedNestedEnum_.Count) return false;
|
| 3402 | for(int ix=0; ix < repeatedNestedEnum_.Count; ix++)
|
| 3403 | if(!repeatedNestedEnum_[ix].Equals(other.repeatedNestedEnum_[ix])) return false;
|
| 3404 | if(repeatedForeignEnum_.Count != other.repeatedForeignEnum_.Count) return false;
|
| 3405 | for(int ix=0; ix < repeatedForeignEnum_.Count; ix++)
|
| 3406 | if(!repeatedForeignEnum_[ix].Equals(other.repeatedForeignEnum_[ix])) return false;
|
| 3407 | if(repeatedImportEnum_.Count != other.repeatedImportEnum_.Count) return false;
|
| 3408 | for(int ix=0; ix < repeatedImportEnum_.Count; ix++)
|
| 3409 | if(!repeatedImportEnum_[ix].Equals(other.repeatedImportEnum_[ix])) return false;
|
| 3410 | if(repeatedStringPiece_.Count != other.repeatedStringPiece_.Count) return false;
|
| 3411 | for(int ix=0; ix < repeatedStringPiece_.Count; ix++)
|
| 3412 | if(!repeatedStringPiece_[ix].Equals(other.repeatedStringPiece_[ix])) return false;
|
| 3413 | if(repeatedCord_.Count != other.repeatedCord_.Count) return false;
|
| 3414 | for(int ix=0; ix < repeatedCord_.Count; ix++)
|
| 3415 | if(!repeatedCord_[ix].Equals(other.repeatedCord_[ix])) return false;
|
| 3416 | if (hasDefaultInt32 != other.hasDefaultInt32 || (hasDefaultInt32 && !defaultInt32_.Equals(other.defaultInt32_))) return false;
|
| 3417 | if (hasDefaultInt64 != other.hasDefaultInt64 || (hasDefaultInt64 && !defaultInt64_.Equals(other.defaultInt64_))) return false;
|
| 3418 | if (hasDefaultUint32 != other.hasDefaultUint32 || (hasDefaultUint32 && !defaultUint32_.Equals(other.defaultUint32_))) return false;
|
| 3419 | if (hasDefaultUint64 != other.hasDefaultUint64 || (hasDefaultUint64 && !defaultUint64_.Equals(other.defaultUint64_))) return false;
|
| 3420 | if (hasDefaultSint32 != other.hasDefaultSint32 || (hasDefaultSint32 && !defaultSint32_.Equals(other.defaultSint32_))) return false;
|
| 3421 | if (hasDefaultSint64 != other.hasDefaultSint64 || (hasDefaultSint64 && !defaultSint64_.Equals(other.defaultSint64_))) return false;
|
| 3422 | if (hasDefaultFixed32 != other.hasDefaultFixed32 || (hasDefaultFixed32 && !defaultFixed32_.Equals(other.defaultFixed32_))) return false;
|
| 3423 | if (hasDefaultFixed64 != other.hasDefaultFixed64 || (hasDefaultFixed64 && !defaultFixed64_.Equals(other.defaultFixed64_))) return false;
|
| 3424 | if (hasDefaultSfixed32 != other.hasDefaultSfixed32 || (hasDefaultSfixed32 && !defaultSfixed32_.Equals(other.defaultSfixed32_))) return false;
|
| 3425 | if (hasDefaultSfixed64 != other.hasDefaultSfixed64 || (hasDefaultSfixed64 && !defaultSfixed64_.Equals(other.defaultSfixed64_))) return false;
|
| 3426 | if (hasDefaultFloat != other.hasDefaultFloat || (hasDefaultFloat && !defaultFloat_.Equals(other.defaultFloat_))) return false;
|
| 3427 | if (hasDefaultDouble != other.hasDefaultDouble || (hasDefaultDouble && !defaultDouble_.Equals(other.defaultDouble_))) return false;
|
| 3428 | if (hasDefaultBool != other.hasDefaultBool || (hasDefaultBool && !defaultBool_.Equals(other.defaultBool_))) return false;
|
| 3429 | if (hasDefaultString != other.hasDefaultString || (hasDefaultString && !defaultString_.Equals(other.defaultString_))) return false;
|
| 3430 | if (hasDefaultBytes != other.hasDefaultBytes || (hasDefaultBytes && !defaultBytes_.Equals(other.defaultBytes_))) return false;
|
| 3431 | if (hasDefaultNestedEnum != other.hasDefaultNestedEnum || (hasDefaultNestedEnum && !defaultNestedEnum_.Equals(other.defaultNestedEnum_))) return false;
|
| 3432 | if (hasDefaultForeignEnum != other.hasDefaultForeignEnum || (hasDefaultForeignEnum && !defaultForeignEnum_.Equals(other.defaultForeignEnum_))) return false;
|
| 3433 | if (hasDefaultImportEnum != other.hasDefaultImportEnum || (hasDefaultImportEnum && !defaultImportEnum_.Equals(other.defaultImportEnum_))) return false;
|
| 3434 | if (hasDefaultStringPiece != other.hasDefaultStringPiece || (hasDefaultStringPiece && !defaultStringPiece_.Equals(other.defaultStringPiece_))) return false;
|
| 3435 | if (hasDefaultCord != other.hasDefaultCord || (hasDefaultCord && !defaultCord_.Equals(other.defaultCord_))) return false;
|
| 3436 | return true;
|
| 3437 | }
|
| 3438 |
|
| 3439 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 3440 | PrintField("optional_int32", hasOptionalInt32, optionalInt32_, writer);
|
| 3441 | PrintField("optional_int64", hasOptionalInt64, optionalInt64_, writer);
|
| 3442 | PrintField("optional_uint32", hasOptionalUint32, optionalUint32_, writer);
|
| 3443 | PrintField("optional_uint64", hasOptionalUint64, optionalUint64_, writer);
|
| 3444 | PrintField("optional_sint32", hasOptionalSint32, optionalSint32_, writer);
|
| 3445 | PrintField("optional_sint64", hasOptionalSint64, optionalSint64_, writer);
|
| 3446 | PrintField("optional_fixed32", hasOptionalFixed32, optionalFixed32_, writer);
|
| 3447 | PrintField("optional_fixed64", hasOptionalFixed64, optionalFixed64_, writer);
|
| 3448 | PrintField("optional_sfixed32", hasOptionalSfixed32, optionalSfixed32_, writer);
|
| 3449 | PrintField("optional_sfixed64", hasOptionalSfixed64, optionalSfixed64_, writer);
|
| 3450 | PrintField("optional_float", hasOptionalFloat, optionalFloat_, writer);
|
| 3451 | PrintField("optional_double", hasOptionalDouble, optionalDouble_, writer);
|
| 3452 | PrintField("optional_bool", hasOptionalBool, optionalBool_, writer);
|
| 3453 | PrintField("optional_string", hasOptionalString, optionalString_, writer);
|
| 3454 | PrintField("optional_bytes", hasOptionalBytes, optionalBytes_, writer);
|
| 3455 | PrintField("OptionalGroup", hasOptionalGroup, optionalGroup_, writer);
|
| 3456 | PrintField("optional_nested_message", hasOptionalNestedMessage, optionalNestedMessage_, writer);
|
| 3457 | PrintField("optional_foreign_message", hasOptionalForeignMessage, optionalForeignMessage_, writer);
|
| 3458 | PrintField("optional_import_message", hasOptionalImportMessage, optionalImportMessage_, writer);
|
| 3459 | PrintField("optional_nested_enum", hasOptionalNestedEnum, optionalNestedEnum_, writer);
|
| 3460 | PrintField("optional_foreign_enum", hasOptionalForeignEnum, optionalForeignEnum_, writer);
|
| 3461 | PrintField("optional_import_enum", hasOptionalImportEnum, optionalImportEnum_, writer);
|
| 3462 | PrintField("optional_string_piece", hasOptionalStringPiece, optionalStringPiece_, writer);
|
| 3463 | PrintField("optional_cord", hasOptionalCord, optionalCord_, writer);
|
| 3464 | PrintField("repeated_int32", repeatedInt32_, writer);
|
| 3465 | PrintField("repeated_int64", repeatedInt64_, writer);
|
| 3466 | PrintField("repeated_uint32", repeatedUint32_, writer);
|
| 3467 | PrintField("repeated_uint64", repeatedUint64_, writer);
|
| 3468 | PrintField("repeated_sint32", repeatedSint32_, writer);
|
| 3469 | PrintField("repeated_sint64", repeatedSint64_, writer);
|
| 3470 | PrintField("repeated_fixed32", repeatedFixed32_, writer);
|
| 3471 | PrintField("repeated_fixed64", repeatedFixed64_, writer);
|
| 3472 | PrintField("repeated_sfixed32", repeatedSfixed32_, writer);
|
| 3473 | PrintField("repeated_sfixed64", repeatedSfixed64_, writer);
|
| 3474 | PrintField("repeated_float", repeatedFloat_, writer);
|
| 3475 | PrintField("repeated_double", repeatedDouble_, writer);
|
| 3476 | PrintField("repeated_bool", repeatedBool_, writer);
|
| 3477 | PrintField("repeated_string", repeatedString_, writer);
|
| 3478 | PrintField("repeated_bytes", repeatedBytes_, writer);
|
| 3479 | PrintField("RepeatedGroup", repeatedGroup_, writer);
|
| 3480 | PrintField("repeated_nested_message", repeatedNestedMessage_, writer);
|
| 3481 | PrintField("repeated_foreign_message", repeatedForeignMessage_, writer);
|
| 3482 | PrintField("repeated_import_message", repeatedImportMessage_, writer);
|
| 3483 | PrintField("repeated_nested_enum", repeatedNestedEnum_, writer);
|
| 3484 | PrintField("repeated_foreign_enum", repeatedForeignEnum_, writer);
|
| 3485 | PrintField("repeated_import_enum", repeatedImportEnum_, writer);
|
| 3486 | PrintField("repeated_string_piece", repeatedStringPiece_, writer);
|
| 3487 | PrintField("repeated_cord", repeatedCord_, writer);
|
| 3488 | PrintField("default_int32", hasDefaultInt32, defaultInt32_, writer);
|
| 3489 | PrintField("default_int64", hasDefaultInt64, defaultInt64_, writer);
|
| 3490 | PrintField("default_uint32", hasDefaultUint32, defaultUint32_, writer);
|
| 3491 | PrintField("default_uint64", hasDefaultUint64, defaultUint64_, writer);
|
| 3492 | PrintField("default_sint32", hasDefaultSint32, defaultSint32_, writer);
|
| 3493 | PrintField("default_sint64", hasDefaultSint64, defaultSint64_, writer);
|
| 3494 | PrintField("default_fixed32", hasDefaultFixed32, defaultFixed32_, writer);
|
| 3495 | PrintField("default_fixed64", hasDefaultFixed64, defaultFixed64_, writer);
|
| 3496 | PrintField("default_sfixed32", hasDefaultSfixed32, defaultSfixed32_, writer);
|
| 3497 | PrintField("default_sfixed64", hasDefaultSfixed64, defaultSfixed64_, writer);
|
| 3498 | PrintField("default_float", hasDefaultFloat, defaultFloat_, writer);
|
| 3499 | PrintField("default_double", hasDefaultDouble, defaultDouble_, writer);
|
| 3500 | PrintField("default_bool", hasDefaultBool, defaultBool_, writer);
|
| 3501 | PrintField("default_string", hasDefaultString, defaultString_, writer);
|
| 3502 | PrintField("default_bytes", hasDefaultBytes, defaultBytes_, writer);
|
| 3503 | PrintField("default_nested_enum", hasDefaultNestedEnum, defaultNestedEnum_, writer);
|
| 3504 | PrintField("default_foreign_enum", hasDefaultForeignEnum, defaultForeignEnum_, writer);
|
| 3505 | PrintField("default_import_enum", hasDefaultImportEnum, defaultImportEnum_, writer);
|
| 3506 | PrintField("default_string_piece", hasDefaultStringPiece, defaultStringPiece_, writer);
|
| 3507 | PrintField("default_cord", hasDefaultCord, defaultCord_, writer);
|
| 3508 | }
|
| 3509 | #endregion
|
| 3510 |
|
| 3511 | public static TestAllTypesLite ParseFrom(pb::ByteString data) {
|
| 3512 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3513 | }
|
| 3514 | public static TestAllTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 3515 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3516 | }
|
| 3517 | public static TestAllTypesLite ParseFrom(byte[] data) {
|
| 3518 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 3519 | }
|
| 3520 | public static TestAllTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 3521 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 3522 | }
|
| 3523 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 3524 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3525 | }
|
| 3526 | public static TestAllTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3527 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3528 | }
|
| 3529 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 3530 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 3531 | }
|
| 3532 | public static TestAllTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 3533 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 3534 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3535 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3536 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 3537 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3538 | public static TestAllTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3539 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 3540 | }
|
| 3541 | public static Builder CreateBuilder() { return new Builder(); }
|
| 3542 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 3543 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 3544 | public static Builder CreateBuilder(TestAllTypesLite prototype) {
|
| 3545 | return (Builder) new Builder().MergeFrom(prototype);
|
| 3546 | }
|
| 3547 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 3548 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 3549 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 3550 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3551 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestAllTypesLite, Builder> {
|
| 3552 | protected override Builder ThisBuilder {
|
| 3553 | get { return this; }
|
| 3554 | }
|
| 3555 | public Builder() {}
|
| 3556 |
|
| 3557 | TestAllTypesLite result = new TestAllTypesLite();
|
| 3558 |
|
| 3559 | protected override TestAllTypesLite MessageBeingBuilt {
|
| 3560 | get { return result; }
|
| 3561 | }
|
| 3562 |
|
| 3563 | public override Builder Clear() {
|
| 3564 | result = new TestAllTypesLite();
|
| 3565 | return this;
|
| 3566 | }
|
| 3567 |
|
| 3568 | public override Builder Clone() {
|
| 3569 | return new Builder().MergeFrom(result);
|
| 3570 | }
|
| 3571 |
|
| 3572 | public override TestAllTypesLite DefaultInstanceForType {
|
| 3573 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance; }
|
| 3574 | }
|
| 3575 |
|
| 3576 | public override TestAllTypesLite BuildPartial() {
|
| 3577 | if (result == null) {
|
| 3578 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 3579 | }
|
| 3580 | result.repeatedInt32_.MakeReadOnly();
|
| 3581 | result.repeatedInt64_.MakeReadOnly();
|
| 3582 | result.repeatedUint32_.MakeReadOnly();
|
| 3583 | result.repeatedUint64_.MakeReadOnly();
|
| 3584 | result.repeatedSint32_.MakeReadOnly();
|
| 3585 | result.repeatedSint64_.MakeReadOnly();
|
| 3586 | result.repeatedFixed32_.MakeReadOnly();
|
| 3587 | result.repeatedFixed64_.MakeReadOnly();
|
| 3588 | result.repeatedSfixed32_.MakeReadOnly();
|
| 3589 | result.repeatedSfixed64_.MakeReadOnly();
|
| 3590 | result.repeatedFloat_.MakeReadOnly();
|
| 3591 | result.repeatedDouble_.MakeReadOnly();
|
| 3592 | result.repeatedBool_.MakeReadOnly();
|
| 3593 | result.repeatedString_.MakeReadOnly();
|
| 3594 | result.repeatedBytes_.MakeReadOnly();
|
| 3595 | result.repeatedGroup_.MakeReadOnly();
|
| 3596 | result.repeatedNestedMessage_.MakeReadOnly();
|
| 3597 | result.repeatedForeignMessage_.MakeReadOnly();
|
| 3598 | result.repeatedImportMessage_.MakeReadOnly();
|
| 3599 | result.repeatedNestedEnum_.MakeReadOnly();
|
| 3600 | result.repeatedForeignEnum_.MakeReadOnly();
|
| 3601 | result.repeatedImportEnum_.MakeReadOnly();
|
| 3602 | result.repeatedStringPiece_.MakeReadOnly();
|
| 3603 | result.repeatedCord_.MakeReadOnly();
|
| 3604 | TestAllTypesLite returnMe = result;
|
| 3605 | result = null;
|
| 3606 | return returnMe;
|
| 3607 | }
|
| 3608 |
|
| 3609 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 3610 | if (other is TestAllTypesLite) {
|
| 3611 | return MergeFrom((TestAllTypesLite) other);
|
| 3612 | } else {
|
| 3613 | base.MergeFrom(other);
|
| 3614 | return this;
|
| 3615 | }
|
| 3616 | }
|
| 3617 |
|
| 3618 | public override Builder MergeFrom(TestAllTypesLite other) {
|
| 3619 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.DefaultInstance) return this;
|
| 3620 | if (other.HasOptionalInt32) {
|
| 3621 | OptionalInt32 = other.OptionalInt32;
|
| 3622 | }
|
| 3623 | if (other.HasOptionalInt64) {
|
| 3624 | OptionalInt64 = other.OptionalInt64;
|
| 3625 | }
|
| 3626 | if (other.HasOptionalUint32) {
|
| 3627 | OptionalUint32 = other.OptionalUint32;
|
| 3628 | }
|
| 3629 | if (other.HasOptionalUint64) {
|
| 3630 | OptionalUint64 = other.OptionalUint64;
|
| 3631 | }
|
| 3632 | if (other.HasOptionalSint32) {
|
| 3633 | OptionalSint32 = other.OptionalSint32;
|
| 3634 | }
|
| 3635 | if (other.HasOptionalSint64) {
|
| 3636 | OptionalSint64 = other.OptionalSint64;
|
| 3637 | }
|
| 3638 | if (other.HasOptionalFixed32) {
|
| 3639 | OptionalFixed32 = other.OptionalFixed32;
|
| 3640 | }
|
| 3641 | if (other.HasOptionalFixed64) {
|
| 3642 | OptionalFixed64 = other.OptionalFixed64;
|
| 3643 | }
|
| 3644 | if (other.HasOptionalSfixed32) {
|
| 3645 | OptionalSfixed32 = other.OptionalSfixed32;
|
| 3646 | }
|
| 3647 | if (other.HasOptionalSfixed64) {
|
| 3648 | OptionalSfixed64 = other.OptionalSfixed64;
|
| 3649 | }
|
| 3650 | if (other.HasOptionalFloat) {
|
| 3651 | OptionalFloat = other.OptionalFloat;
|
| 3652 | }
|
| 3653 | if (other.HasOptionalDouble) {
|
| 3654 | OptionalDouble = other.OptionalDouble;
|
| 3655 | }
|
| 3656 | if (other.HasOptionalBool) {
|
| 3657 | OptionalBool = other.OptionalBool;
|
| 3658 | }
|
| 3659 | if (other.HasOptionalString) {
|
| 3660 | OptionalString = other.OptionalString;
|
| 3661 | }
|
| 3662 | if (other.HasOptionalBytes) {
|
| 3663 | OptionalBytes = other.OptionalBytes;
|
| 3664 | }
|
| 3665 | if (other.HasOptionalGroup) {
|
| 3666 | MergeOptionalGroup(other.OptionalGroup);
|
| 3667 | }
|
| 3668 | if (other.HasOptionalNestedMessage) {
|
| 3669 | MergeOptionalNestedMessage(other.OptionalNestedMessage);
|
| 3670 | }
|
| 3671 | if (other.HasOptionalForeignMessage) {
|
| 3672 | MergeOptionalForeignMessage(other.OptionalForeignMessage);
|
| 3673 | }
|
| 3674 | if (other.HasOptionalImportMessage) {
|
| 3675 | MergeOptionalImportMessage(other.OptionalImportMessage);
|
| 3676 | }
|
| 3677 | if (other.HasOptionalNestedEnum) {
|
| 3678 | OptionalNestedEnum = other.OptionalNestedEnum;
|
| 3679 | }
|
| 3680 | if (other.HasOptionalForeignEnum) {
|
| 3681 | OptionalForeignEnum = other.OptionalForeignEnum;
|
| 3682 | }
|
| 3683 | if (other.HasOptionalImportEnum) {
|
| 3684 | OptionalImportEnum = other.OptionalImportEnum;
|
| 3685 | }
|
| 3686 | if (other.HasOptionalStringPiece) {
|
| 3687 | OptionalStringPiece = other.OptionalStringPiece;
|
| 3688 | }
|
| 3689 | if (other.HasOptionalCord) {
|
| 3690 | OptionalCord = other.OptionalCord;
|
| 3691 | }
|
| 3692 | if (other.repeatedInt32_.Count != 0) {
|
| 3693 | base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
|
| 3694 | }
|
| 3695 | if (other.repeatedInt64_.Count != 0) {
|
| 3696 | base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
|
| 3697 | }
|
| 3698 | if (other.repeatedUint32_.Count != 0) {
|
| 3699 | base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
|
| 3700 | }
|
| 3701 | if (other.repeatedUint64_.Count != 0) {
|
| 3702 | base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
|
| 3703 | }
|
| 3704 | if (other.repeatedSint32_.Count != 0) {
|
| 3705 | base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
|
| 3706 | }
|
| 3707 | if (other.repeatedSint64_.Count != 0) {
|
| 3708 | base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
|
| 3709 | }
|
| 3710 | if (other.repeatedFixed32_.Count != 0) {
|
| 3711 | base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
|
| 3712 | }
|
| 3713 | if (other.repeatedFixed64_.Count != 0) {
|
| 3714 | base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
|
| 3715 | }
|
| 3716 | if (other.repeatedSfixed32_.Count != 0) {
|
| 3717 | base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
|
| 3718 | }
|
| 3719 | if (other.repeatedSfixed64_.Count != 0) {
|
| 3720 | base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
|
| 3721 | }
|
| 3722 | if (other.repeatedFloat_.Count != 0) {
|
| 3723 | base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
|
| 3724 | }
|
| 3725 | if (other.repeatedDouble_.Count != 0) {
|
| 3726 | base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
|
| 3727 | }
|
| 3728 | if (other.repeatedBool_.Count != 0) {
|
| 3729 | base.AddRange(other.repeatedBool_, result.repeatedBool_);
|
| 3730 | }
|
| 3731 | if (other.repeatedString_.Count != 0) {
|
| 3732 | base.AddRange(other.repeatedString_, result.repeatedString_);
|
| 3733 | }
|
| 3734 | if (other.repeatedBytes_.Count != 0) {
|
| 3735 | base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
|
| 3736 | }
|
| 3737 | if (other.repeatedGroup_.Count != 0) {
|
| 3738 | base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
|
| 3739 | }
|
| 3740 | if (other.repeatedNestedMessage_.Count != 0) {
|
| 3741 | base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
|
| 3742 | }
|
| 3743 | if (other.repeatedForeignMessage_.Count != 0) {
|
| 3744 | base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
|
| 3745 | }
|
| 3746 | if (other.repeatedImportMessage_.Count != 0) {
|
| 3747 | base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
|
| 3748 | }
|
| 3749 | if (other.repeatedNestedEnum_.Count != 0) {
|
| 3750 | base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
|
| 3751 | }
|
| 3752 | if (other.repeatedForeignEnum_.Count != 0) {
|
| 3753 | base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
|
| 3754 | }
|
| 3755 | if (other.repeatedImportEnum_.Count != 0) {
|
| 3756 | base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
|
| 3757 | }
|
| 3758 | if (other.repeatedStringPiece_.Count != 0) {
|
| 3759 | base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
|
| 3760 | }
|
| 3761 | if (other.repeatedCord_.Count != 0) {
|
| 3762 | base.AddRange(other.repeatedCord_, result.repeatedCord_);
|
| 3763 | }
|
| 3764 | if (other.HasDefaultInt32) {
|
| 3765 | DefaultInt32 = other.DefaultInt32;
|
| 3766 | }
|
| 3767 | if (other.HasDefaultInt64) {
|
| 3768 | DefaultInt64 = other.DefaultInt64;
|
| 3769 | }
|
| 3770 | if (other.HasDefaultUint32) {
|
| 3771 | DefaultUint32 = other.DefaultUint32;
|
| 3772 | }
|
| 3773 | if (other.HasDefaultUint64) {
|
| 3774 | DefaultUint64 = other.DefaultUint64;
|
| 3775 | }
|
| 3776 | if (other.HasDefaultSint32) {
|
| 3777 | DefaultSint32 = other.DefaultSint32;
|
| 3778 | }
|
| 3779 | if (other.HasDefaultSint64) {
|
| 3780 | DefaultSint64 = other.DefaultSint64;
|
| 3781 | }
|
| 3782 | if (other.HasDefaultFixed32) {
|
| 3783 | DefaultFixed32 = other.DefaultFixed32;
|
| 3784 | }
|
| 3785 | if (other.HasDefaultFixed64) {
|
| 3786 | DefaultFixed64 = other.DefaultFixed64;
|
| 3787 | }
|
| 3788 | if (other.HasDefaultSfixed32) {
|
| 3789 | DefaultSfixed32 = other.DefaultSfixed32;
|
| 3790 | }
|
| 3791 | if (other.HasDefaultSfixed64) {
|
| 3792 | DefaultSfixed64 = other.DefaultSfixed64;
|
| 3793 | }
|
| 3794 | if (other.HasDefaultFloat) {
|
| 3795 | DefaultFloat = other.DefaultFloat;
|
| 3796 | }
|
| 3797 | if (other.HasDefaultDouble) {
|
| 3798 | DefaultDouble = other.DefaultDouble;
|
| 3799 | }
|
| 3800 | if (other.HasDefaultBool) {
|
| 3801 | DefaultBool = other.DefaultBool;
|
| 3802 | }
|
| 3803 | if (other.HasDefaultString) {
|
| 3804 | DefaultString = other.DefaultString;
|
| 3805 | }
|
| 3806 | if (other.HasDefaultBytes) {
|
| 3807 | DefaultBytes = other.DefaultBytes;
|
| 3808 | }
|
| 3809 | if (other.HasDefaultNestedEnum) {
|
| 3810 | DefaultNestedEnum = other.DefaultNestedEnum;
|
| 3811 | }
|
| 3812 | if (other.HasDefaultForeignEnum) {
|
| 3813 | DefaultForeignEnum = other.DefaultForeignEnum;
|
| 3814 | }
|
| 3815 | if (other.HasDefaultImportEnum) {
|
| 3816 | DefaultImportEnum = other.DefaultImportEnum;
|
| 3817 | }
|
| 3818 | if (other.HasDefaultStringPiece) {
|
| 3819 | DefaultStringPiece = other.DefaultStringPiece;
|
| 3820 | }
|
| 3821 | if (other.HasDefaultCord) {
|
| 3822 | DefaultCord = other.DefaultCord;
|
| 3823 | }
|
| 3824 | return this;
|
| 3825 | }
|
| 3826 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3827 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3828 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 3829 | }
|
| 3830 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 3831 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 3832 | uint tag;
|
| 3833 | string field_name;
|
| 3834 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3835 | if(tag == 0 && field_name != null) {
|
| 3836 | int field_ordinal = global::System.Array.BinarySearch(_testAllTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 3837 | if(field_ordinal >= 0)
|
| 3838 | tag = _testAllTypesLiteFieldTags[field_ordinal];
|
| 3839 | else {
|
| 3840 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 3841 | continue;
|
| 3842 | }
|
| 3843 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3844 | switch (tag) {
|
| 3845 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 3846 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3847 | }
|
| 3848 | default: {
|
| 3849 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 3850 | return this;
|
| 3851 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3852 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3853 | break;
|
| 3854 | }
|
| 3855 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3856 | result.hasOptionalInt32 = input.ReadInt32(ref result.optionalInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3857 | break;
|
| 3858 | }
|
| 3859 | case 16: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3860 | result.hasOptionalInt64 = input.ReadInt64(ref result.optionalInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3861 | break;
|
| 3862 | }
|
| 3863 | case 24: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3864 | result.hasOptionalUint32 = input.ReadUInt32(ref result.optionalUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3865 | break;
|
| 3866 | }
|
| 3867 | case 32: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3868 | result.hasOptionalUint64 = input.ReadUInt64(ref result.optionalUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3869 | break;
|
| 3870 | }
|
| 3871 | case 40: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3872 | result.hasOptionalSint32 = input.ReadSInt32(ref result.optionalSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3873 | break;
|
| 3874 | }
|
| 3875 | case 48: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3876 | result.hasOptionalSint64 = input.ReadSInt64(ref result.optionalSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3877 | break;
|
| 3878 | }
|
| 3879 | case 61: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3880 | result.hasOptionalFixed32 = input.ReadFixed32(ref result.optionalFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3881 | break;
|
| 3882 | }
|
| 3883 | case 65: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3884 | result.hasOptionalFixed64 = input.ReadFixed64(ref result.optionalFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3885 | break;
|
| 3886 | }
|
| 3887 | case 77: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3888 | result.hasOptionalSfixed32 = input.ReadSFixed32(ref result.optionalSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3889 | break;
|
| 3890 | }
|
| 3891 | case 81: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3892 | result.hasOptionalSfixed64 = input.ReadSFixed64(ref result.optionalSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3893 | break;
|
| 3894 | }
|
| 3895 | case 93: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3896 | result.hasOptionalFloat = input.ReadFloat(ref result.optionalFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3897 | break;
|
| 3898 | }
|
| 3899 | case 97: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3900 | result.hasOptionalDouble = input.ReadDouble(ref result.optionalDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3901 | break;
|
| 3902 | }
|
| 3903 | case 104: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3904 | result.hasOptionalBool = input.ReadBool(ref result.optionalBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3905 | break;
|
| 3906 | }
|
| 3907 | case 114: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3908 | result.hasOptionalString = input.ReadString(ref result.optionalString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3909 | break;
|
| 3910 | }
|
| 3911 | case 122: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3912 | result.hasOptionalBytes = input.ReadBytes(ref result.optionalBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3913 | break;
|
| 3914 | }
|
| 3915 | case 131: {
|
| 3916 | 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] | 3917 | if (result.hasOptionalGroup) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3918 | subBuilder.MergeFrom(OptionalGroup);
|
| 3919 | }
|
| 3920 | input.ReadGroup(16, subBuilder, extensionRegistry);
|
| 3921 | OptionalGroup = subBuilder.BuildPartial();
|
| 3922 | break;
|
| 3923 | }
|
| 3924 | case 146: {
|
| 3925 | 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] | 3926 | if (result.hasOptionalNestedMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3927 | subBuilder.MergeFrom(OptionalNestedMessage);
|
| 3928 | }
|
| 3929 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3930 | OptionalNestedMessage = subBuilder.BuildPartial();
|
| 3931 | break;
|
| 3932 | }
|
| 3933 | case 154: {
|
| 3934 | global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3935 | if (result.hasOptionalForeignMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3936 | subBuilder.MergeFrom(OptionalForeignMessage);
|
| 3937 | }
|
| 3938 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3939 | OptionalForeignMessage = subBuilder.BuildPartial();
|
| 3940 | break;
|
| 3941 | }
|
| 3942 | case 162: {
|
| 3943 | global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder();
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 3944 | if (result.hasOptionalImportMessage) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3945 | subBuilder.MergeFrom(OptionalImportMessage);
|
| 3946 | }
|
| 3947 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 3948 | OptionalImportMessage = subBuilder.BuildPartial();
|
| 3949 | break;
|
| 3950 | }
|
| 3951 | case 168: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3952 | object unknown;
|
| 3953 | if(input.ReadEnum(ref result.optionalNestedEnum_, out unknown)) {
|
| 3954 | result.hasOptionalNestedEnum = true;
|
| 3955 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3956 | }
|
| 3957 | break;
|
| 3958 | }
|
| 3959 | case 176: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3960 | object unknown;
|
| 3961 | if(input.ReadEnum(ref result.optionalForeignEnum_, out unknown)) {
|
| 3962 | result.hasOptionalForeignEnum = true;
|
| 3963 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3964 | }
|
| 3965 | break;
|
| 3966 | }
|
| 3967 | case 184: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 3968 | object unknown;
|
| 3969 | if(input.ReadEnum(ref result.optionalImportEnum_, out unknown)) {
|
| 3970 | result.hasOptionalImportEnum = true;
|
| 3971 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3972 | }
|
| 3973 | break;
|
| 3974 | }
|
| 3975 | case 194: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3976 | result.hasOptionalStringPiece = input.ReadString(ref result.optionalStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3977 | break;
|
| 3978 | }
|
| 3979 | case 202: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 3980 | result.hasOptionalCord = input.ReadString(ref result.optionalCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3981 | break;
|
| 3982 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3983 | case 250:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3984 | case 248: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 3985 | input.ReadInt32Array(tag, field_name, result.repeatedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3986 | break;
|
| 3987 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3988 | case 258:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3989 | case 256: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 3990 | input.ReadInt64Array(tag, field_name, result.repeatedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3991 | break;
|
| 3992 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3993 | case 266:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3994 | case 264: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 3995 | input.ReadUInt32Array(tag, field_name, result.repeatedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3996 | break;
|
| 3997 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 3998 | case 274:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 3999 | case 272: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4000 | input.ReadUInt64Array(tag, field_name, result.repeatedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4001 | break;
|
| 4002 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4003 | case 282:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4004 | case 280: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4005 | input.ReadSInt32Array(tag, field_name, result.repeatedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4006 | break;
|
| 4007 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4008 | case 290:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4009 | case 288: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4010 | input.ReadSInt64Array(tag, field_name, result.repeatedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4011 | break;
|
| 4012 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4013 | case 298:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4014 | case 301: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4015 | input.ReadFixed32Array(tag, field_name, result.repeatedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4016 | break;
|
| 4017 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4018 | case 306:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4019 | case 305: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4020 | input.ReadFixed64Array(tag, field_name, result.repeatedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4021 | break;
|
| 4022 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4023 | case 314:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4024 | case 317: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4025 | input.ReadSFixed32Array(tag, field_name, result.repeatedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4026 | break;
|
| 4027 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4028 | case 322:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4029 | case 321: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4030 | input.ReadSFixed64Array(tag, field_name, result.repeatedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4031 | break;
|
| 4032 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4033 | case 330:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4034 | case 333: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4035 | input.ReadFloatArray(tag, field_name, result.repeatedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4036 | break;
|
| 4037 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4038 | case 338:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4039 | case 337: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4040 | input.ReadDoubleArray(tag, field_name, result.repeatedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4041 | break;
|
| 4042 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4043 | case 346:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4044 | case 344: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4045 | input.ReadBoolArray(tag, field_name, result.repeatedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4046 | break;
|
| 4047 | }
|
| 4048 | case 354: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4049 | input.ReadStringArray(tag, field_name, result.repeatedString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4050 | break;
|
| 4051 | }
|
| 4052 | case 362: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4053 | input.ReadBytesArray(tag, field_name, result.repeatedBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4054 | break;
|
| 4055 | }
|
| 4056 | case 371: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4057 | 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] | 4058 | break;
|
| 4059 | }
|
| 4060 | case 386: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4061 | 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] | 4062 | break;
|
| 4063 | }
|
| 4064 | case 394: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4065 | 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] | 4066 | break;
|
| 4067 | }
|
| 4068 | case 402: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4069 | 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] | 4070 | break;
|
| 4071 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4072 | case 410:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4073 | case 408: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4074 | scg::ICollection<object> unknownItems;
|
| 4075 | 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] | 4076 | break;
|
| 4077 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4078 | case 418:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4079 | case 416: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4080 | scg::ICollection<object> unknownItems;
|
| 4081 | 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] | 4082 | break;
|
| 4083 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 4084 | case 426:
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4085 | case 424: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4086 | scg::ICollection<object> unknownItems;
|
| 4087 | 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] | 4088 | break;
|
| 4089 | }
|
| 4090 | case 434: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4091 | input.ReadStringArray(tag, field_name, result.repeatedStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4092 | break;
|
| 4093 | }
|
| 4094 | case 442: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 4095 | input.ReadStringArray(tag, field_name, result.repeatedCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4096 | break;
|
| 4097 | }
|
| 4098 | case 488: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4099 | result.hasDefaultInt32 = input.ReadInt32(ref result.defaultInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4100 | break;
|
| 4101 | }
|
| 4102 | case 496: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4103 | result.hasDefaultInt64 = input.ReadInt64(ref result.defaultInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4104 | break;
|
| 4105 | }
|
| 4106 | case 504: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4107 | result.hasDefaultUint32 = input.ReadUInt32(ref result.defaultUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4108 | break;
|
| 4109 | }
|
| 4110 | case 512: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4111 | result.hasDefaultUint64 = input.ReadUInt64(ref result.defaultUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4112 | break;
|
| 4113 | }
|
| 4114 | case 520: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4115 | result.hasDefaultSint32 = input.ReadSInt32(ref result.defaultSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4116 | break;
|
| 4117 | }
|
| 4118 | case 528: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4119 | result.hasDefaultSint64 = input.ReadSInt64(ref result.defaultSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4120 | break;
|
| 4121 | }
|
| 4122 | case 541: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4123 | result.hasDefaultFixed32 = input.ReadFixed32(ref result.defaultFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4124 | break;
|
| 4125 | }
|
| 4126 | case 545: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4127 | result.hasDefaultFixed64 = input.ReadFixed64(ref result.defaultFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4128 | break;
|
| 4129 | }
|
| 4130 | case 557: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4131 | result.hasDefaultSfixed32 = input.ReadSFixed32(ref result.defaultSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4132 | break;
|
| 4133 | }
|
| 4134 | case 561: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4135 | result.hasDefaultSfixed64 = input.ReadSFixed64(ref result.defaultSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4136 | break;
|
| 4137 | }
|
| 4138 | case 573: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4139 | result.hasDefaultFloat = input.ReadFloat(ref result.defaultFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4140 | break;
|
| 4141 | }
|
| 4142 | case 577: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4143 | result.hasDefaultDouble = input.ReadDouble(ref result.defaultDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4144 | break;
|
| 4145 | }
|
| 4146 | case 584: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4147 | result.hasDefaultBool = input.ReadBool(ref result.defaultBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4148 | break;
|
| 4149 | }
|
| 4150 | case 594: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4151 | result.hasDefaultString = input.ReadString(ref result.defaultString_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4152 | break;
|
| 4153 | }
|
| 4154 | case 602: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4155 | result.hasDefaultBytes = input.ReadBytes(ref result.defaultBytes_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4156 | break;
|
| 4157 | }
|
| 4158 | case 648: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4159 | object unknown;
|
| 4160 | if(input.ReadEnum(ref result.defaultNestedEnum_, out unknown)) {
|
| 4161 | result.hasDefaultNestedEnum = true;
|
| 4162 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4163 | }
|
| 4164 | break;
|
| 4165 | }
|
| 4166 | case 656: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4167 | object unknown;
|
| 4168 | if(input.ReadEnum(ref result.defaultForeignEnum_, out unknown)) {
|
| 4169 | result.hasDefaultForeignEnum = true;
|
| 4170 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4171 | }
|
| 4172 | break;
|
| 4173 | }
|
| 4174 | case 664: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 4175 | object unknown;
|
| 4176 | if(input.ReadEnum(ref result.defaultImportEnum_, out unknown)) {
|
| 4177 | result.hasDefaultImportEnum = true;
|
| 4178 | } else if(unknown is int) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4179 | }
|
| 4180 | break;
|
| 4181 | }
|
| 4182 | case 674: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4183 | result.hasDefaultStringPiece = input.ReadString(ref result.defaultStringPiece_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4184 | break;
|
| 4185 | }
|
| 4186 | case 682: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 4187 | result.hasDefaultCord = input.ReadString(ref result.defaultCord_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4188 | break;
|
| 4189 | }
|
| 4190 | }
|
| 4191 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 4192 |
|
| 4193 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4194 | }
|
| 4195 |
|
| 4196 |
|
| 4197 | public bool HasOptionalInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4198 | get { return result.hasOptionalInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4199 | }
|
| 4200 | public int OptionalInt32 {
|
| 4201 | get { return result.OptionalInt32; }
|
| 4202 | set { SetOptionalInt32(value); }
|
| 4203 | }
|
| 4204 | public Builder SetOptionalInt32(int value) {
|
| 4205 | result.hasOptionalInt32 = true;
|
| 4206 | result.optionalInt32_ = value;
|
| 4207 | return this;
|
| 4208 | }
|
| 4209 | public Builder ClearOptionalInt32() {
|
| 4210 | result.hasOptionalInt32 = false;
|
| 4211 | result.optionalInt32_ = 0;
|
| 4212 | return this;
|
| 4213 | }
|
| 4214 |
|
| 4215 | public bool HasOptionalInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4216 | get { return result.hasOptionalInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4217 | }
|
| 4218 | public long OptionalInt64 {
|
| 4219 | get { return result.OptionalInt64; }
|
| 4220 | set { SetOptionalInt64(value); }
|
| 4221 | }
|
| 4222 | public Builder SetOptionalInt64(long value) {
|
| 4223 | result.hasOptionalInt64 = true;
|
| 4224 | result.optionalInt64_ = value;
|
| 4225 | return this;
|
| 4226 | }
|
| 4227 | public Builder ClearOptionalInt64() {
|
| 4228 | result.hasOptionalInt64 = false;
|
| 4229 | result.optionalInt64_ = 0L;
|
| 4230 | return this;
|
| 4231 | }
|
| 4232 |
|
| 4233 | public bool HasOptionalUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4234 | get { return result.hasOptionalUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4235 | }
|
| 4236 | [global::System.CLSCompliant(false)]
|
| 4237 | public uint OptionalUint32 {
|
| 4238 | get { return result.OptionalUint32; }
|
| 4239 | set { SetOptionalUint32(value); }
|
| 4240 | }
|
| 4241 | [global::System.CLSCompliant(false)]
|
| 4242 | public Builder SetOptionalUint32(uint value) {
|
| 4243 | result.hasOptionalUint32 = true;
|
| 4244 | result.optionalUint32_ = value;
|
| 4245 | return this;
|
| 4246 | }
|
| 4247 | public Builder ClearOptionalUint32() {
|
| 4248 | result.hasOptionalUint32 = false;
|
| 4249 | result.optionalUint32_ = 0;
|
| 4250 | return this;
|
| 4251 | }
|
| 4252 |
|
| 4253 | public bool HasOptionalUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4254 | get { return result.hasOptionalUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4255 | }
|
| 4256 | [global::System.CLSCompliant(false)]
|
| 4257 | public ulong OptionalUint64 {
|
| 4258 | get { return result.OptionalUint64; }
|
| 4259 | set { SetOptionalUint64(value); }
|
| 4260 | }
|
| 4261 | [global::System.CLSCompliant(false)]
|
| 4262 | public Builder SetOptionalUint64(ulong value) {
|
| 4263 | result.hasOptionalUint64 = true;
|
| 4264 | result.optionalUint64_ = value;
|
| 4265 | return this;
|
| 4266 | }
|
| 4267 | public Builder ClearOptionalUint64() {
|
| 4268 | result.hasOptionalUint64 = false;
|
| 4269 | result.optionalUint64_ = 0UL;
|
| 4270 | return this;
|
| 4271 | }
|
| 4272 |
|
| 4273 | public bool HasOptionalSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4274 | get { return result.hasOptionalSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4275 | }
|
| 4276 | public int OptionalSint32 {
|
| 4277 | get { return result.OptionalSint32; }
|
| 4278 | set { SetOptionalSint32(value); }
|
| 4279 | }
|
| 4280 | public Builder SetOptionalSint32(int value) {
|
| 4281 | result.hasOptionalSint32 = true;
|
| 4282 | result.optionalSint32_ = value;
|
| 4283 | return this;
|
| 4284 | }
|
| 4285 | public Builder ClearOptionalSint32() {
|
| 4286 | result.hasOptionalSint32 = false;
|
| 4287 | result.optionalSint32_ = 0;
|
| 4288 | return this;
|
| 4289 | }
|
| 4290 |
|
| 4291 | public bool HasOptionalSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4292 | get { return result.hasOptionalSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4293 | }
|
| 4294 | public long OptionalSint64 {
|
| 4295 | get { return result.OptionalSint64; }
|
| 4296 | set { SetOptionalSint64(value); }
|
| 4297 | }
|
| 4298 | public Builder SetOptionalSint64(long value) {
|
| 4299 | result.hasOptionalSint64 = true;
|
| 4300 | result.optionalSint64_ = value;
|
| 4301 | return this;
|
| 4302 | }
|
| 4303 | public Builder ClearOptionalSint64() {
|
| 4304 | result.hasOptionalSint64 = false;
|
| 4305 | result.optionalSint64_ = 0;
|
| 4306 | return this;
|
| 4307 | }
|
| 4308 |
|
| 4309 | public bool HasOptionalFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4310 | get { return result.hasOptionalFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4311 | }
|
| 4312 | [global::System.CLSCompliant(false)]
|
| 4313 | public uint OptionalFixed32 {
|
| 4314 | get { return result.OptionalFixed32; }
|
| 4315 | set { SetOptionalFixed32(value); }
|
| 4316 | }
|
| 4317 | [global::System.CLSCompliant(false)]
|
| 4318 | public Builder SetOptionalFixed32(uint value) {
|
| 4319 | result.hasOptionalFixed32 = true;
|
| 4320 | result.optionalFixed32_ = value;
|
| 4321 | return this;
|
| 4322 | }
|
| 4323 | public Builder ClearOptionalFixed32() {
|
| 4324 | result.hasOptionalFixed32 = false;
|
| 4325 | result.optionalFixed32_ = 0;
|
| 4326 | return this;
|
| 4327 | }
|
| 4328 |
|
| 4329 | public bool HasOptionalFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4330 | get { return result.hasOptionalFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4331 | }
|
| 4332 | [global::System.CLSCompliant(false)]
|
| 4333 | public ulong OptionalFixed64 {
|
| 4334 | get { return result.OptionalFixed64; }
|
| 4335 | set { SetOptionalFixed64(value); }
|
| 4336 | }
|
| 4337 | [global::System.CLSCompliant(false)]
|
| 4338 | public Builder SetOptionalFixed64(ulong value) {
|
| 4339 | result.hasOptionalFixed64 = true;
|
| 4340 | result.optionalFixed64_ = value;
|
| 4341 | return this;
|
| 4342 | }
|
| 4343 | public Builder ClearOptionalFixed64() {
|
| 4344 | result.hasOptionalFixed64 = false;
|
| 4345 | result.optionalFixed64_ = 0;
|
| 4346 | return this;
|
| 4347 | }
|
| 4348 |
|
| 4349 | public bool HasOptionalSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4350 | get { return result.hasOptionalSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4351 | }
|
| 4352 | public int OptionalSfixed32 {
|
| 4353 | get { return result.OptionalSfixed32; }
|
| 4354 | set { SetOptionalSfixed32(value); }
|
| 4355 | }
|
| 4356 | public Builder SetOptionalSfixed32(int value) {
|
| 4357 | result.hasOptionalSfixed32 = true;
|
| 4358 | result.optionalSfixed32_ = value;
|
| 4359 | return this;
|
| 4360 | }
|
| 4361 | public Builder ClearOptionalSfixed32() {
|
| 4362 | result.hasOptionalSfixed32 = false;
|
| 4363 | result.optionalSfixed32_ = 0;
|
| 4364 | return this;
|
| 4365 | }
|
| 4366 |
|
| 4367 | public bool HasOptionalSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4368 | get { return result.hasOptionalSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4369 | }
|
| 4370 | public long OptionalSfixed64 {
|
| 4371 | get { return result.OptionalSfixed64; }
|
| 4372 | set { SetOptionalSfixed64(value); }
|
| 4373 | }
|
| 4374 | public Builder SetOptionalSfixed64(long value) {
|
| 4375 | result.hasOptionalSfixed64 = true;
|
| 4376 | result.optionalSfixed64_ = value;
|
| 4377 | return this;
|
| 4378 | }
|
| 4379 | public Builder ClearOptionalSfixed64() {
|
| 4380 | result.hasOptionalSfixed64 = false;
|
| 4381 | result.optionalSfixed64_ = 0;
|
| 4382 | return this;
|
| 4383 | }
|
| 4384 |
|
| 4385 | public bool HasOptionalFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4386 | get { return result.hasOptionalFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4387 | }
|
| 4388 | public float OptionalFloat {
|
| 4389 | get { return result.OptionalFloat; }
|
| 4390 | set { SetOptionalFloat(value); }
|
| 4391 | }
|
| 4392 | public Builder SetOptionalFloat(float value) {
|
| 4393 | result.hasOptionalFloat = true;
|
| 4394 | result.optionalFloat_ = value;
|
| 4395 | return this;
|
| 4396 | }
|
| 4397 | public Builder ClearOptionalFloat() {
|
| 4398 | result.hasOptionalFloat = false;
|
| 4399 | result.optionalFloat_ = 0F;
|
| 4400 | return this;
|
| 4401 | }
|
| 4402 |
|
| 4403 | public bool HasOptionalDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4404 | get { return result.hasOptionalDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4405 | }
|
| 4406 | public double OptionalDouble {
|
| 4407 | get { return result.OptionalDouble; }
|
| 4408 | set { SetOptionalDouble(value); }
|
| 4409 | }
|
| 4410 | public Builder SetOptionalDouble(double value) {
|
| 4411 | result.hasOptionalDouble = true;
|
| 4412 | result.optionalDouble_ = value;
|
| 4413 | return this;
|
| 4414 | }
|
| 4415 | public Builder ClearOptionalDouble() {
|
| 4416 | result.hasOptionalDouble = false;
|
| 4417 | result.optionalDouble_ = 0D;
|
| 4418 | return this;
|
| 4419 | }
|
| 4420 |
|
| 4421 | public bool HasOptionalBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4422 | get { return result.hasOptionalBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4423 | }
|
| 4424 | public bool OptionalBool {
|
| 4425 | get { return result.OptionalBool; }
|
| 4426 | set { SetOptionalBool(value); }
|
| 4427 | }
|
| 4428 | public Builder SetOptionalBool(bool value) {
|
| 4429 | result.hasOptionalBool = true;
|
| 4430 | result.optionalBool_ = value;
|
| 4431 | return this;
|
| 4432 | }
|
| 4433 | public Builder ClearOptionalBool() {
|
| 4434 | result.hasOptionalBool = false;
|
| 4435 | result.optionalBool_ = false;
|
| 4436 | return this;
|
| 4437 | }
|
| 4438 |
|
| 4439 | public bool HasOptionalString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4440 | get { return result.hasOptionalString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4441 | }
|
| 4442 | public string OptionalString {
|
| 4443 | get { return result.OptionalString; }
|
| 4444 | set { SetOptionalString(value); }
|
| 4445 | }
|
| 4446 | public Builder SetOptionalString(string value) {
|
| 4447 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4448 | result.hasOptionalString = true;
|
| 4449 | result.optionalString_ = value;
|
| 4450 | return this;
|
| 4451 | }
|
| 4452 | public Builder ClearOptionalString() {
|
| 4453 | result.hasOptionalString = false;
|
| 4454 | result.optionalString_ = "";
|
| 4455 | return this;
|
| 4456 | }
|
| 4457 |
|
| 4458 | public bool HasOptionalBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4459 | get { return result.hasOptionalBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4460 | }
|
| 4461 | public pb::ByteString OptionalBytes {
|
| 4462 | get { return result.OptionalBytes; }
|
| 4463 | set { SetOptionalBytes(value); }
|
| 4464 | }
|
| 4465 | public Builder SetOptionalBytes(pb::ByteString value) {
|
| 4466 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4467 | result.hasOptionalBytes = true;
|
| 4468 | result.optionalBytes_ = value;
|
| 4469 | return this;
|
| 4470 | }
|
| 4471 | public Builder ClearOptionalBytes() {
|
| 4472 | result.hasOptionalBytes = false;
|
| 4473 | result.optionalBytes_ = pb::ByteString.Empty;
|
| 4474 | return this;
|
| 4475 | }
|
| 4476 |
|
| 4477 | public bool HasOptionalGroup {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4478 | get { return result.hasOptionalGroup; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4479 | }
|
| 4480 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup OptionalGroup {
|
| 4481 | get { return result.OptionalGroup; }
|
| 4482 | set { SetOptionalGroup(value); }
|
| 4483 | }
|
| 4484 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4485 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4486 | result.hasOptionalGroup = true;
|
| 4487 | result.optionalGroup_ = value;
|
| 4488 | return this;
|
| 4489 | }
|
| 4490 | public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.Builder builderForValue) {
|
| 4491 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4492 | result.hasOptionalGroup = true;
|
| 4493 | result.optionalGroup_ = builderForValue.Build();
|
| 4494 | return this;
|
| 4495 | }
|
| 4496 | public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup value) {
|
| 4497 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4498 | if (result.hasOptionalGroup &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4499 | result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance) {
|
| 4500 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
|
| 4501 | } else {
|
| 4502 | result.optionalGroup_ = value;
|
| 4503 | }
|
| 4504 | result.hasOptionalGroup = true;
|
| 4505 | return this;
|
| 4506 | }
|
| 4507 | public Builder ClearOptionalGroup() {
|
| 4508 | result.hasOptionalGroup = false;
|
| 4509 | result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.OptionalGroup.DefaultInstance;
|
| 4510 | return this;
|
| 4511 | }
|
| 4512 |
|
| 4513 | public bool HasOptionalNestedMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4514 | get { return result.hasOptionalNestedMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4515 | }
|
| 4516 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage OptionalNestedMessage {
|
| 4517 | get { return result.OptionalNestedMessage; }
|
| 4518 | set { SetOptionalNestedMessage(value); }
|
| 4519 | }
|
| 4520 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4521 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4522 | result.hasOptionalNestedMessage = true;
|
| 4523 | result.optionalNestedMessage_ = value;
|
| 4524 | return this;
|
| 4525 | }
|
| 4526 | public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 4527 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4528 | result.hasOptionalNestedMessage = true;
|
| 4529 | result.optionalNestedMessage_ = builderForValue.Build();
|
| 4530 | return this;
|
| 4531 | }
|
| 4532 | public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 4533 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4534 | if (result.hasOptionalNestedMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4535 | result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance) {
|
| 4536 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
|
| 4537 | } else {
|
| 4538 | result.optionalNestedMessage_ = value;
|
| 4539 | }
|
| 4540 | result.hasOptionalNestedMessage = true;
|
| 4541 | return this;
|
| 4542 | }
|
| 4543 | public Builder ClearOptionalNestedMessage() {
|
| 4544 | result.hasOptionalNestedMessage = false;
|
| 4545 | result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.DefaultInstance;
|
| 4546 | return this;
|
| 4547 | }
|
| 4548 |
|
| 4549 | public bool HasOptionalForeignMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4550 | get { return result.hasOptionalForeignMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4551 | }
|
| 4552 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite OptionalForeignMessage {
|
| 4553 | get { return result.OptionalForeignMessage; }
|
| 4554 | set { SetOptionalForeignMessage(value); }
|
| 4555 | }
|
| 4556 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4557 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4558 | result.hasOptionalForeignMessage = true;
|
| 4559 | result.optionalForeignMessage_ = value;
|
| 4560 | return this;
|
| 4561 | }
|
| 4562 | public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 4563 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4564 | result.hasOptionalForeignMessage = true;
|
| 4565 | result.optionalForeignMessage_ = builderForValue.Build();
|
| 4566 | return this;
|
| 4567 | }
|
| 4568 | public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 4569 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4570 | if (result.hasOptionalForeignMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4571 | result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) {
|
| 4572 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
|
| 4573 | } else {
|
| 4574 | result.optionalForeignMessage_ = value;
|
| 4575 | }
|
| 4576 | result.hasOptionalForeignMessage = true;
|
| 4577 | return this;
|
| 4578 | }
|
| 4579 | public Builder ClearOptionalForeignMessage() {
|
| 4580 | result.hasOptionalForeignMessage = false;
|
| 4581 | result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance;
|
| 4582 | return this;
|
| 4583 | }
|
| 4584 |
|
| 4585 | public bool HasOptionalImportMessage {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4586 | get { return result.hasOptionalImportMessage; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4587 | }
|
| 4588 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite OptionalImportMessage {
|
| 4589 | get { return result.OptionalImportMessage; }
|
| 4590 | set { SetOptionalImportMessage(value); }
|
| 4591 | }
|
| 4592 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4593 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4594 | result.hasOptionalImportMessage = true;
|
| 4595 | result.optionalImportMessage_ = value;
|
| 4596 | return this;
|
| 4597 | }
|
| 4598 | public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 4599 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 4600 | result.hasOptionalImportMessage = true;
|
| 4601 | result.optionalImportMessage_ = builderForValue.Build();
|
| 4602 | return this;
|
| 4603 | }
|
| 4604 | public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 4605 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4606 | if (result.hasOptionalImportMessage &&
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4607 | result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance) {
|
| 4608 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
|
| 4609 | } else {
|
| 4610 | result.optionalImportMessage_ = value;
|
| 4611 | }
|
| 4612 | result.hasOptionalImportMessage = true;
|
| 4613 | return this;
|
| 4614 | }
|
| 4615 | public Builder ClearOptionalImportMessage() {
|
| 4616 | result.hasOptionalImportMessage = false;
|
| 4617 | result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.DefaultInstance;
|
| 4618 | return this;
|
| 4619 | }
|
| 4620 |
|
| 4621 | public bool HasOptionalNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4622 | get { return result.hasOptionalNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4623 | }
|
| 4624 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum OptionalNestedEnum {
|
| 4625 | get { return result.OptionalNestedEnum; }
|
| 4626 | set { SetOptionalNestedEnum(value); }
|
| 4627 | }
|
| 4628 | public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 4629 | result.hasOptionalNestedEnum = true;
|
| 4630 | result.optionalNestedEnum_ = value;
|
| 4631 | return this;
|
| 4632 | }
|
| 4633 | public Builder ClearOptionalNestedEnum() {
|
| 4634 | result.hasOptionalNestedEnum = false;
|
| 4635 | result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.FOO;
|
| 4636 | return this;
|
| 4637 | }
|
| 4638 |
|
| 4639 | public bool HasOptionalForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4640 | get { return result.hasOptionalForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4641 | }
|
| 4642 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite OptionalForeignEnum {
|
| 4643 | get { return result.OptionalForeignEnum; }
|
| 4644 | set { SetOptionalForeignEnum(value); }
|
| 4645 | }
|
| 4646 | public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 4647 | result.hasOptionalForeignEnum = true;
|
| 4648 | result.optionalForeignEnum_ = value;
|
| 4649 | return this;
|
| 4650 | }
|
| 4651 | public Builder ClearOptionalForeignEnum() {
|
| 4652 | result.hasOptionalForeignEnum = false;
|
| 4653 | result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_FOO;
|
| 4654 | return this;
|
| 4655 | }
|
| 4656 |
|
| 4657 | public bool HasOptionalImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4658 | get { return result.hasOptionalImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4659 | }
|
| 4660 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite OptionalImportEnum {
|
| 4661 | get { return result.OptionalImportEnum; }
|
| 4662 | set { SetOptionalImportEnum(value); }
|
| 4663 | }
|
| 4664 | public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 4665 | result.hasOptionalImportEnum = true;
|
| 4666 | result.optionalImportEnum_ = value;
|
| 4667 | return this;
|
| 4668 | }
|
| 4669 | public Builder ClearOptionalImportEnum() {
|
| 4670 | result.hasOptionalImportEnum = false;
|
| 4671 | result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_FOO;
|
| 4672 | return this;
|
| 4673 | }
|
| 4674 |
|
| 4675 | public bool HasOptionalStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4676 | get { return result.hasOptionalStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4677 | }
|
| 4678 | public string OptionalStringPiece {
|
| 4679 | get { return result.OptionalStringPiece; }
|
| 4680 | set { SetOptionalStringPiece(value); }
|
| 4681 | }
|
| 4682 | public Builder SetOptionalStringPiece(string value) {
|
| 4683 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4684 | result.hasOptionalStringPiece = true;
|
| 4685 | result.optionalStringPiece_ = value;
|
| 4686 | return this;
|
| 4687 | }
|
| 4688 | public Builder ClearOptionalStringPiece() {
|
| 4689 | result.hasOptionalStringPiece = false;
|
| 4690 | result.optionalStringPiece_ = "";
|
| 4691 | return this;
|
| 4692 | }
|
| 4693 |
|
| 4694 | public bool HasOptionalCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 4695 | get { return result.hasOptionalCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 4696 | }
|
| 4697 | public string OptionalCord {
|
| 4698 | get { return result.OptionalCord; }
|
| 4699 | set { SetOptionalCord(value); }
|
| 4700 | }
|
| 4701 | public Builder SetOptionalCord(string value) {
|
| 4702 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 4703 | result.hasOptionalCord = true;
|
| 4704 | result.optionalCord_ = value;
|
| 4705 | return this;
|
| 4706 | }
|
| 4707 | public Builder ClearOptionalCord() {
|
| 4708 | result.hasOptionalCord = false;
|
| 4709 | result.optionalCord_ = "";
|
| 4710 | return this;
|
| 4711 | }
|
| 4712 |
|
| 4713 | public pbc::IPopsicleList<int> RepeatedInt32List {
|
| 4714 | get { return result.repeatedInt32_; }
|
| 4715 | }
|
| 4716 | public int RepeatedInt32Count {
|
| 4717 | get { return result.RepeatedInt32Count; }
|
| 4718 | }
|
| 4719 | public int GetRepeatedInt32(int index) {
|
| 4720 | return result.GetRepeatedInt32(index);
|
| 4721 | }
|
| 4722 | public Builder SetRepeatedInt32(int index, int value) {
|
| 4723 | result.repeatedInt32_[index] = value;
|
| 4724 | return this;
|
| 4725 | }
|
| 4726 | public Builder AddRepeatedInt32(int value) {
|
| 4727 | result.repeatedInt32_.Add(value);
|
| 4728 | return this;
|
| 4729 | }
|
| 4730 | public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
|
| 4731 | base.AddRange(values, result.repeatedInt32_);
|
| 4732 | return this;
|
| 4733 | }
|
| 4734 | public Builder ClearRepeatedInt32() {
|
| 4735 | result.repeatedInt32_.Clear();
|
| 4736 | return this;
|
| 4737 | }
|
| 4738 |
|
| 4739 | public pbc::IPopsicleList<long> RepeatedInt64List {
|
| 4740 | get { return result.repeatedInt64_; }
|
| 4741 | }
|
| 4742 | public int RepeatedInt64Count {
|
| 4743 | get { return result.RepeatedInt64Count; }
|
| 4744 | }
|
| 4745 | public long GetRepeatedInt64(int index) {
|
| 4746 | return result.GetRepeatedInt64(index);
|
| 4747 | }
|
| 4748 | public Builder SetRepeatedInt64(int index, long value) {
|
| 4749 | result.repeatedInt64_[index] = value;
|
| 4750 | return this;
|
| 4751 | }
|
| 4752 | public Builder AddRepeatedInt64(long value) {
|
| 4753 | result.repeatedInt64_.Add(value);
|
| 4754 | return this;
|
| 4755 | }
|
| 4756 | public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
|
| 4757 | base.AddRange(values, result.repeatedInt64_);
|
| 4758 | return this;
|
| 4759 | }
|
| 4760 | public Builder ClearRepeatedInt64() {
|
| 4761 | result.repeatedInt64_.Clear();
|
| 4762 | return this;
|
| 4763 | }
|
| 4764 |
|
| 4765 | [global::System.CLSCompliant(false)]
|
| 4766 | public pbc::IPopsicleList<uint> RepeatedUint32List {
|
| 4767 | get { return result.repeatedUint32_; }
|
| 4768 | }
|
| 4769 | public int RepeatedUint32Count {
|
| 4770 | get { return result.RepeatedUint32Count; }
|
| 4771 | }
|
| 4772 | [global::System.CLSCompliant(false)]
|
| 4773 | public uint GetRepeatedUint32(int index) {
|
| 4774 | return result.GetRepeatedUint32(index);
|
| 4775 | }
|
| 4776 | [global::System.CLSCompliant(false)]
|
| 4777 | public Builder SetRepeatedUint32(int index, uint value) {
|
| 4778 | result.repeatedUint32_[index] = value;
|
| 4779 | return this;
|
| 4780 | }
|
| 4781 | [global::System.CLSCompliant(false)]
|
| 4782 | public Builder AddRepeatedUint32(uint value) {
|
| 4783 | result.repeatedUint32_.Add(value);
|
| 4784 | return this;
|
| 4785 | }
|
| 4786 | [global::System.CLSCompliant(false)]
|
| 4787 | public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
|
| 4788 | base.AddRange(values, result.repeatedUint32_);
|
| 4789 | return this;
|
| 4790 | }
|
| 4791 | public Builder ClearRepeatedUint32() {
|
| 4792 | result.repeatedUint32_.Clear();
|
| 4793 | return this;
|
| 4794 | }
|
| 4795 |
|
| 4796 | [global::System.CLSCompliant(false)]
|
| 4797 | public pbc::IPopsicleList<ulong> RepeatedUint64List {
|
| 4798 | get { return result.repeatedUint64_; }
|
| 4799 | }
|
| 4800 | public int RepeatedUint64Count {
|
| 4801 | get { return result.RepeatedUint64Count; }
|
| 4802 | }
|
| 4803 | [global::System.CLSCompliant(false)]
|
| 4804 | public ulong GetRepeatedUint64(int index) {
|
| 4805 | return result.GetRepeatedUint64(index);
|
| 4806 | }
|
| 4807 | [global::System.CLSCompliant(false)]
|
| 4808 | public Builder SetRepeatedUint64(int index, ulong value) {
|
| 4809 | result.repeatedUint64_[index] = value;
|
| 4810 | return this;
|
| 4811 | }
|
| 4812 | [global::System.CLSCompliant(false)]
|
| 4813 | public Builder AddRepeatedUint64(ulong value) {
|
| 4814 | result.repeatedUint64_.Add(value);
|
| 4815 | return this;
|
| 4816 | }
|
| 4817 | [global::System.CLSCompliant(false)]
|
| 4818 | public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
|
| 4819 | base.AddRange(values, result.repeatedUint64_);
|
| 4820 | return this;
|
| 4821 | }
|
| 4822 | public Builder ClearRepeatedUint64() {
|
| 4823 | result.repeatedUint64_.Clear();
|
| 4824 | return this;
|
| 4825 | }
|
| 4826 |
|
| 4827 | public pbc::IPopsicleList<int> RepeatedSint32List {
|
| 4828 | get { return result.repeatedSint32_; }
|
| 4829 | }
|
| 4830 | public int RepeatedSint32Count {
|
| 4831 | get { return result.RepeatedSint32Count; }
|
| 4832 | }
|
| 4833 | public int GetRepeatedSint32(int index) {
|
| 4834 | return result.GetRepeatedSint32(index);
|
| 4835 | }
|
| 4836 | public Builder SetRepeatedSint32(int index, int value) {
|
| 4837 | result.repeatedSint32_[index] = value;
|
| 4838 | return this;
|
| 4839 | }
|
| 4840 | public Builder AddRepeatedSint32(int value) {
|
| 4841 | result.repeatedSint32_.Add(value);
|
| 4842 | return this;
|
| 4843 | }
|
| 4844 | public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
|
| 4845 | base.AddRange(values, result.repeatedSint32_);
|
| 4846 | return this;
|
| 4847 | }
|
| 4848 | public Builder ClearRepeatedSint32() {
|
| 4849 | result.repeatedSint32_.Clear();
|
| 4850 | return this;
|
| 4851 | }
|
| 4852 |
|
| 4853 | public pbc::IPopsicleList<long> RepeatedSint64List {
|
| 4854 | get { return result.repeatedSint64_; }
|
| 4855 | }
|
| 4856 | public int RepeatedSint64Count {
|
| 4857 | get { return result.RepeatedSint64Count; }
|
| 4858 | }
|
| 4859 | public long GetRepeatedSint64(int index) {
|
| 4860 | return result.GetRepeatedSint64(index);
|
| 4861 | }
|
| 4862 | public Builder SetRepeatedSint64(int index, long value) {
|
| 4863 | result.repeatedSint64_[index] = value;
|
| 4864 | return this;
|
| 4865 | }
|
| 4866 | public Builder AddRepeatedSint64(long value) {
|
| 4867 | result.repeatedSint64_.Add(value);
|
| 4868 | return this;
|
| 4869 | }
|
| 4870 | public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
|
| 4871 | base.AddRange(values, result.repeatedSint64_);
|
| 4872 | return this;
|
| 4873 | }
|
| 4874 | public Builder ClearRepeatedSint64() {
|
| 4875 | result.repeatedSint64_.Clear();
|
| 4876 | return this;
|
| 4877 | }
|
| 4878 |
|
| 4879 | [global::System.CLSCompliant(false)]
|
| 4880 | public pbc::IPopsicleList<uint> RepeatedFixed32List {
|
| 4881 | get { return result.repeatedFixed32_; }
|
| 4882 | }
|
| 4883 | public int RepeatedFixed32Count {
|
| 4884 | get { return result.RepeatedFixed32Count; }
|
| 4885 | }
|
| 4886 | [global::System.CLSCompliant(false)]
|
| 4887 | public uint GetRepeatedFixed32(int index) {
|
| 4888 | return result.GetRepeatedFixed32(index);
|
| 4889 | }
|
| 4890 | [global::System.CLSCompliant(false)]
|
| 4891 | public Builder SetRepeatedFixed32(int index, uint value) {
|
| 4892 | result.repeatedFixed32_[index] = value;
|
| 4893 | return this;
|
| 4894 | }
|
| 4895 | [global::System.CLSCompliant(false)]
|
| 4896 | public Builder AddRepeatedFixed32(uint value) {
|
| 4897 | result.repeatedFixed32_.Add(value);
|
| 4898 | return this;
|
| 4899 | }
|
| 4900 | [global::System.CLSCompliant(false)]
|
| 4901 | public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
|
| 4902 | base.AddRange(values, result.repeatedFixed32_);
|
| 4903 | return this;
|
| 4904 | }
|
| 4905 | public Builder ClearRepeatedFixed32() {
|
| 4906 | result.repeatedFixed32_.Clear();
|
| 4907 | return this;
|
| 4908 | }
|
| 4909 |
|
| 4910 | [global::System.CLSCompliant(false)]
|
| 4911 | public pbc::IPopsicleList<ulong> RepeatedFixed64List {
|
| 4912 | get { return result.repeatedFixed64_; }
|
| 4913 | }
|
| 4914 | public int RepeatedFixed64Count {
|
| 4915 | get { return result.RepeatedFixed64Count; }
|
| 4916 | }
|
| 4917 | [global::System.CLSCompliant(false)]
|
| 4918 | public ulong GetRepeatedFixed64(int index) {
|
| 4919 | return result.GetRepeatedFixed64(index);
|
| 4920 | }
|
| 4921 | [global::System.CLSCompliant(false)]
|
| 4922 | public Builder SetRepeatedFixed64(int index, ulong value) {
|
| 4923 | result.repeatedFixed64_[index] = value;
|
| 4924 | return this;
|
| 4925 | }
|
| 4926 | [global::System.CLSCompliant(false)]
|
| 4927 | public Builder AddRepeatedFixed64(ulong value) {
|
| 4928 | result.repeatedFixed64_.Add(value);
|
| 4929 | return this;
|
| 4930 | }
|
| 4931 | [global::System.CLSCompliant(false)]
|
| 4932 | public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
|
| 4933 | base.AddRange(values, result.repeatedFixed64_);
|
| 4934 | return this;
|
| 4935 | }
|
| 4936 | public Builder ClearRepeatedFixed64() {
|
| 4937 | result.repeatedFixed64_.Clear();
|
| 4938 | return this;
|
| 4939 | }
|
| 4940 |
|
| 4941 | public pbc::IPopsicleList<int> RepeatedSfixed32List {
|
| 4942 | get { return result.repeatedSfixed32_; }
|
| 4943 | }
|
| 4944 | public int RepeatedSfixed32Count {
|
| 4945 | get { return result.RepeatedSfixed32Count; }
|
| 4946 | }
|
| 4947 | public int GetRepeatedSfixed32(int index) {
|
| 4948 | return result.GetRepeatedSfixed32(index);
|
| 4949 | }
|
| 4950 | public Builder SetRepeatedSfixed32(int index, int value) {
|
| 4951 | result.repeatedSfixed32_[index] = value;
|
| 4952 | return this;
|
| 4953 | }
|
| 4954 | public Builder AddRepeatedSfixed32(int value) {
|
| 4955 | result.repeatedSfixed32_.Add(value);
|
| 4956 | return this;
|
| 4957 | }
|
| 4958 | public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
|
| 4959 | base.AddRange(values, result.repeatedSfixed32_);
|
| 4960 | return this;
|
| 4961 | }
|
| 4962 | public Builder ClearRepeatedSfixed32() {
|
| 4963 | result.repeatedSfixed32_.Clear();
|
| 4964 | return this;
|
| 4965 | }
|
| 4966 |
|
| 4967 | public pbc::IPopsicleList<long> RepeatedSfixed64List {
|
| 4968 | get { return result.repeatedSfixed64_; }
|
| 4969 | }
|
| 4970 | public int RepeatedSfixed64Count {
|
| 4971 | get { return result.RepeatedSfixed64Count; }
|
| 4972 | }
|
| 4973 | public long GetRepeatedSfixed64(int index) {
|
| 4974 | return result.GetRepeatedSfixed64(index);
|
| 4975 | }
|
| 4976 | public Builder SetRepeatedSfixed64(int index, long value) {
|
| 4977 | result.repeatedSfixed64_[index] = value;
|
| 4978 | return this;
|
| 4979 | }
|
| 4980 | public Builder AddRepeatedSfixed64(long value) {
|
| 4981 | result.repeatedSfixed64_.Add(value);
|
| 4982 | return this;
|
| 4983 | }
|
| 4984 | public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
|
| 4985 | base.AddRange(values, result.repeatedSfixed64_);
|
| 4986 | return this;
|
| 4987 | }
|
| 4988 | public Builder ClearRepeatedSfixed64() {
|
| 4989 | result.repeatedSfixed64_.Clear();
|
| 4990 | return this;
|
| 4991 | }
|
| 4992 |
|
| 4993 | public pbc::IPopsicleList<float> RepeatedFloatList {
|
| 4994 | get { return result.repeatedFloat_; }
|
| 4995 | }
|
| 4996 | public int RepeatedFloatCount {
|
| 4997 | get { return result.RepeatedFloatCount; }
|
| 4998 | }
|
| 4999 | public float GetRepeatedFloat(int index) {
|
| 5000 | return result.GetRepeatedFloat(index);
|
| 5001 | }
|
| 5002 | public Builder SetRepeatedFloat(int index, float value) {
|
| 5003 | result.repeatedFloat_[index] = value;
|
| 5004 | return this;
|
| 5005 | }
|
| 5006 | public Builder AddRepeatedFloat(float value) {
|
| 5007 | result.repeatedFloat_.Add(value);
|
| 5008 | return this;
|
| 5009 | }
|
| 5010 | public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
|
| 5011 | base.AddRange(values, result.repeatedFloat_);
|
| 5012 | return this;
|
| 5013 | }
|
| 5014 | public Builder ClearRepeatedFloat() {
|
| 5015 | result.repeatedFloat_.Clear();
|
| 5016 | return this;
|
| 5017 | }
|
| 5018 |
|
| 5019 | public pbc::IPopsicleList<double> RepeatedDoubleList {
|
| 5020 | get { return result.repeatedDouble_; }
|
| 5021 | }
|
| 5022 | public int RepeatedDoubleCount {
|
| 5023 | get { return result.RepeatedDoubleCount; }
|
| 5024 | }
|
| 5025 | public double GetRepeatedDouble(int index) {
|
| 5026 | return result.GetRepeatedDouble(index);
|
| 5027 | }
|
| 5028 | public Builder SetRepeatedDouble(int index, double value) {
|
| 5029 | result.repeatedDouble_[index] = value;
|
| 5030 | return this;
|
| 5031 | }
|
| 5032 | public Builder AddRepeatedDouble(double value) {
|
| 5033 | result.repeatedDouble_.Add(value);
|
| 5034 | return this;
|
| 5035 | }
|
| 5036 | public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
|
| 5037 | base.AddRange(values, result.repeatedDouble_);
|
| 5038 | return this;
|
| 5039 | }
|
| 5040 | public Builder ClearRepeatedDouble() {
|
| 5041 | result.repeatedDouble_.Clear();
|
| 5042 | return this;
|
| 5043 | }
|
| 5044 |
|
| 5045 | public pbc::IPopsicleList<bool> RepeatedBoolList {
|
| 5046 | get { return result.repeatedBool_; }
|
| 5047 | }
|
| 5048 | public int RepeatedBoolCount {
|
| 5049 | get { return result.RepeatedBoolCount; }
|
| 5050 | }
|
| 5051 | public bool GetRepeatedBool(int index) {
|
| 5052 | return result.GetRepeatedBool(index);
|
| 5053 | }
|
| 5054 | public Builder SetRepeatedBool(int index, bool value) {
|
| 5055 | result.repeatedBool_[index] = value;
|
| 5056 | return this;
|
| 5057 | }
|
| 5058 | public Builder AddRepeatedBool(bool value) {
|
| 5059 | result.repeatedBool_.Add(value);
|
| 5060 | return this;
|
| 5061 | }
|
| 5062 | public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
|
| 5063 | base.AddRange(values, result.repeatedBool_);
|
| 5064 | return this;
|
| 5065 | }
|
| 5066 | public Builder ClearRepeatedBool() {
|
| 5067 | result.repeatedBool_.Clear();
|
| 5068 | return this;
|
| 5069 | }
|
| 5070 |
|
| 5071 | public pbc::IPopsicleList<string> RepeatedStringList {
|
| 5072 | get { return result.repeatedString_; }
|
| 5073 | }
|
| 5074 | public int RepeatedStringCount {
|
| 5075 | get { return result.RepeatedStringCount; }
|
| 5076 | }
|
| 5077 | public string GetRepeatedString(int index) {
|
| 5078 | return result.GetRepeatedString(index);
|
| 5079 | }
|
| 5080 | public Builder SetRepeatedString(int index, string value) {
|
| 5081 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5082 | result.repeatedString_[index] = value;
|
| 5083 | return this;
|
| 5084 | }
|
| 5085 | public Builder AddRepeatedString(string value) {
|
| 5086 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5087 | result.repeatedString_.Add(value);
|
| 5088 | return this;
|
| 5089 | }
|
| 5090 | public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
|
| 5091 | base.AddRange(values, result.repeatedString_);
|
| 5092 | return this;
|
| 5093 | }
|
| 5094 | public Builder ClearRepeatedString() {
|
| 5095 | result.repeatedString_.Clear();
|
| 5096 | return this;
|
| 5097 | }
|
| 5098 |
|
| 5099 | public pbc::IPopsicleList<pb::ByteString> RepeatedBytesList {
|
| 5100 | get { return result.repeatedBytes_; }
|
| 5101 | }
|
| 5102 | public int RepeatedBytesCount {
|
| 5103 | get { return result.RepeatedBytesCount; }
|
| 5104 | }
|
| 5105 | public pb::ByteString GetRepeatedBytes(int index) {
|
| 5106 | return result.GetRepeatedBytes(index);
|
| 5107 | }
|
| 5108 | public Builder SetRepeatedBytes(int index, pb::ByteString value) {
|
| 5109 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5110 | result.repeatedBytes_[index] = value;
|
| 5111 | return this;
|
| 5112 | }
|
| 5113 | public Builder AddRepeatedBytes(pb::ByteString value) {
|
| 5114 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5115 | result.repeatedBytes_.Add(value);
|
| 5116 | return this;
|
| 5117 | }
|
| 5118 | public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
|
| 5119 | base.AddRange(values, result.repeatedBytes_);
|
| 5120 | return this;
|
| 5121 | }
|
| 5122 | public Builder ClearRepeatedBytes() {
|
| 5123 | result.repeatedBytes_.Clear();
|
| 5124 | return this;
|
| 5125 | }
|
| 5126 |
|
| 5127 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> RepeatedGroupList {
|
| 5128 | get { return result.repeatedGroup_; }
|
| 5129 | }
|
| 5130 | public int RepeatedGroupCount {
|
| 5131 | get { return result.RepeatedGroupCount; }
|
| 5132 | }
|
| 5133 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup GetRepeatedGroup(int index) {
|
| 5134 | return result.GetRepeatedGroup(index);
|
| 5135 | }
|
| 5136 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5137 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5138 | result.repeatedGroup_[index] = value;
|
| 5139 | return this;
|
| 5140 | }
|
| 5141 | public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5142 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5143 | result.repeatedGroup_[index] = builderForValue.Build();
|
| 5144 | return this;
|
| 5145 | }
|
| 5146 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup value) {
|
| 5147 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5148 | result.repeatedGroup_.Add(value);
|
| 5149 | return this;
|
| 5150 | }
|
| 5151 | public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup.Builder builderForValue) {
|
| 5152 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5153 | result.repeatedGroup_.Add(builderForValue.Build());
|
| 5154 | return this;
|
| 5155 | }
|
| 5156 | public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.RepeatedGroup> values) {
|
| 5157 | base.AddRange(values, result.repeatedGroup_);
|
| 5158 | return this;
|
| 5159 | }
|
| 5160 | public Builder ClearRepeatedGroup() {
|
| 5161 | result.repeatedGroup_.Clear();
|
| 5162 | return this;
|
| 5163 | }
|
| 5164 |
|
| 5165 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> RepeatedNestedMessageList {
|
| 5166 | get { return result.repeatedNestedMessage_; }
|
| 5167 | }
|
| 5168 | public int RepeatedNestedMessageCount {
|
| 5169 | get { return result.RepeatedNestedMessageCount; }
|
| 5170 | }
|
| 5171 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage GetRepeatedNestedMessage(int index) {
|
| 5172 | return result.GetRepeatedNestedMessage(index);
|
| 5173 | }
|
| 5174 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5175 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5176 | result.repeatedNestedMessage_[index] = value;
|
| 5177 | return this;
|
| 5178 | }
|
| 5179 | public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5180 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5181 | result.repeatedNestedMessage_[index] = builderForValue.Build();
|
| 5182 | return this;
|
| 5183 | }
|
| 5184 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage value) {
|
| 5185 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5186 | result.repeatedNestedMessage_.Add(value);
|
| 5187 | return this;
|
| 5188 | }
|
| 5189 | public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage.Builder builderForValue) {
|
| 5190 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5191 | result.repeatedNestedMessage_.Add(builderForValue.Build());
|
| 5192 | return this;
|
| 5193 | }
|
| 5194 | public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedMessage> values) {
|
| 5195 | base.AddRange(values, result.repeatedNestedMessage_);
|
| 5196 | return this;
|
| 5197 | }
|
| 5198 | public Builder ClearRepeatedNestedMessage() {
|
| 5199 | result.repeatedNestedMessage_.Clear();
|
| 5200 | return this;
|
| 5201 | }
|
| 5202 |
|
| 5203 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> RepeatedForeignMessageList {
|
| 5204 | get { return result.repeatedForeignMessage_; }
|
| 5205 | }
|
| 5206 | public int RepeatedForeignMessageCount {
|
| 5207 | get { return result.RepeatedForeignMessageCount; }
|
| 5208 | }
|
| 5209 | public global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite GetRepeatedForeignMessage(int index) {
|
| 5210 | return result.GetRepeatedForeignMessage(index);
|
| 5211 | }
|
| 5212 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5213 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5214 | result.repeatedForeignMessage_[index] = value;
|
| 5215 | return this;
|
| 5216 | }
|
| 5217 | public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5218 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5219 | result.repeatedForeignMessage_[index] = builderForValue.Build();
|
| 5220 | return this;
|
| 5221 | }
|
| 5222 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite value) {
|
| 5223 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5224 | result.repeatedForeignMessage_.Add(value);
|
| 5225 | return this;
|
| 5226 | }
|
| 5227 | public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.Builder builderForValue) {
|
| 5228 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5229 | result.repeatedForeignMessage_.Add(builderForValue.Build());
|
| 5230 | return this;
|
| 5231 | }
|
| 5232 | public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite> values) {
|
| 5233 | base.AddRange(values, result.repeatedForeignMessage_);
|
| 5234 | return this;
|
| 5235 | }
|
| 5236 | public Builder ClearRepeatedForeignMessage() {
|
| 5237 | result.repeatedForeignMessage_.Clear();
|
| 5238 | return this;
|
| 5239 | }
|
| 5240 |
|
| 5241 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> RepeatedImportMessageList {
|
| 5242 | get { return result.repeatedImportMessage_; }
|
| 5243 | }
|
| 5244 | public int RepeatedImportMessageCount {
|
| 5245 | get { return result.RepeatedImportMessageCount; }
|
| 5246 | }
|
| 5247 | public global::Google.ProtocolBuffers.TestProtos.ImportMessageLite GetRepeatedImportMessage(int index) {
|
| 5248 | return result.GetRepeatedImportMessage(index);
|
| 5249 | }
|
| 5250 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5251 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5252 | result.repeatedImportMessage_[index] = value;
|
| 5253 | return this;
|
| 5254 | }
|
| 5255 | public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5256 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5257 | result.repeatedImportMessage_[index] = builderForValue.Build();
|
| 5258 | return this;
|
| 5259 | }
|
| 5260 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite value) {
|
| 5261 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5262 | result.repeatedImportMessage_.Add(value);
|
| 5263 | return this;
|
| 5264 | }
|
| 5265 | public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessageLite.Builder builderForValue) {
|
| 5266 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 5267 | result.repeatedImportMessage_.Add(builderForValue.Build());
|
| 5268 | return this;
|
| 5269 | }
|
| 5270 | public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessageLite> values) {
|
| 5271 | base.AddRange(values, result.repeatedImportMessage_);
|
| 5272 | return this;
|
| 5273 | }
|
| 5274 | public Builder ClearRepeatedImportMessage() {
|
| 5275 | result.repeatedImportMessage_.Clear();
|
| 5276 | return this;
|
| 5277 | }
|
| 5278 |
|
| 5279 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> RepeatedNestedEnumList {
|
| 5280 | get { return result.repeatedNestedEnum_; }
|
| 5281 | }
|
| 5282 | public int RepeatedNestedEnumCount {
|
| 5283 | get { return result.RepeatedNestedEnumCount; }
|
| 5284 | }
|
| 5285 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum GetRepeatedNestedEnum(int index) {
|
| 5286 | return result.GetRepeatedNestedEnum(index);
|
| 5287 | }
|
| 5288 | public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5289 | result.repeatedNestedEnum_[index] = value;
|
| 5290 | return this;
|
| 5291 | }
|
| 5292 | public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5293 | result.repeatedNestedEnum_.Add(value);
|
| 5294 | return this;
|
| 5295 | }
|
| 5296 | public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum> values) {
|
| 5297 | base.AddRange(values, result.repeatedNestedEnum_);
|
| 5298 | return this;
|
| 5299 | }
|
| 5300 | public Builder ClearRepeatedNestedEnum() {
|
| 5301 | result.repeatedNestedEnum_.Clear();
|
| 5302 | return this;
|
| 5303 | }
|
| 5304 |
|
| 5305 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> RepeatedForeignEnumList {
|
| 5306 | get { return result.repeatedForeignEnum_; }
|
| 5307 | }
|
| 5308 | public int RepeatedForeignEnumCount {
|
| 5309 | get { return result.RepeatedForeignEnumCount; }
|
| 5310 | }
|
| 5311 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetRepeatedForeignEnum(int index) {
|
| 5312 | return result.GetRepeatedForeignEnum(index);
|
| 5313 | }
|
| 5314 | public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5315 | result.repeatedForeignEnum_[index] = value;
|
| 5316 | return this;
|
| 5317 | }
|
| 5318 | public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5319 | result.repeatedForeignEnum_.Add(value);
|
| 5320 | return this;
|
| 5321 | }
|
| 5322 | public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 5323 | base.AddRange(values, result.repeatedForeignEnum_);
|
| 5324 | return this;
|
| 5325 | }
|
| 5326 | public Builder ClearRepeatedForeignEnum() {
|
| 5327 | result.repeatedForeignEnum_.Clear();
|
| 5328 | return this;
|
| 5329 | }
|
| 5330 |
|
| 5331 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> RepeatedImportEnumList {
|
| 5332 | get { return result.repeatedImportEnum_; }
|
| 5333 | }
|
| 5334 | public int RepeatedImportEnumCount {
|
| 5335 | get { return result.RepeatedImportEnumCount; }
|
| 5336 | }
|
| 5337 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite GetRepeatedImportEnum(int index) {
|
| 5338 | return result.GetRepeatedImportEnum(index);
|
| 5339 | }
|
| 5340 | public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5341 | result.repeatedImportEnum_[index] = value;
|
| 5342 | return this;
|
| 5343 | }
|
| 5344 | public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5345 | result.repeatedImportEnum_.Add(value);
|
| 5346 | return this;
|
| 5347 | }
|
| 5348 | public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnumLite> values) {
|
| 5349 | base.AddRange(values, result.repeatedImportEnum_);
|
| 5350 | return this;
|
| 5351 | }
|
| 5352 | public Builder ClearRepeatedImportEnum() {
|
| 5353 | result.repeatedImportEnum_.Clear();
|
| 5354 | return this;
|
| 5355 | }
|
| 5356 |
|
| 5357 | public pbc::IPopsicleList<string> RepeatedStringPieceList {
|
| 5358 | get { return result.repeatedStringPiece_; }
|
| 5359 | }
|
| 5360 | public int RepeatedStringPieceCount {
|
| 5361 | get { return result.RepeatedStringPieceCount; }
|
| 5362 | }
|
| 5363 | public string GetRepeatedStringPiece(int index) {
|
| 5364 | return result.GetRepeatedStringPiece(index);
|
| 5365 | }
|
| 5366 | public Builder SetRepeatedStringPiece(int index, string value) {
|
| 5367 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5368 | result.repeatedStringPiece_[index] = value;
|
| 5369 | return this;
|
| 5370 | }
|
| 5371 | public Builder AddRepeatedStringPiece(string value) {
|
| 5372 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5373 | result.repeatedStringPiece_.Add(value);
|
| 5374 | return this;
|
| 5375 | }
|
| 5376 | public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
|
| 5377 | base.AddRange(values, result.repeatedStringPiece_);
|
| 5378 | return this;
|
| 5379 | }
|
| 5380 | public Builder ClearRepeatedStringPiece() {
|
| 5381 | result.repeatedStringPiece_.Clear();
|
| 5382 | return this;
|
| 5383 | }
|
| 5384 |
|
| 5385 | public pbc::IPopsicleList<string> RepeatedCordList {
|
| 5386 | get { return result.repeatedCord_; }
|
| 5387 | }
|
| 5388 | public int RepeatedCordCount {
|
| 5389 | get { return result.RepeatedCordCount; }
|
| 5390 | }
|
| 5391 | public string GetRepeatedCord(int index) {
|
| 5392 | return result.GetRepeatedCord(index);
|
| 5393 | }
|
| 5394 | public Builder SetRepeatedCord(int index, string value) {
|
| 5395 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5396 | result.repeatedCord_[index] = value;
|
| 5397 | return this;
|
| 5398 | }
|
| 5399 | public Builder AddRepeatedCord(string value) {
|
| 5400 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5401 | result.repeatedCord_.Add(value);
|
| 5402 | return this;
|
| 5403 | }
|
| 5404 | public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
|
| 5405 | base.AddRange(values, result.repeatedCord_);
|
| 5406 | return this;
|
| 5407 | }
|
| 5408 | public Builder ClearRepeatedCord() {
|
| 5409 | result.repeatedCord_.Clear();
|
| 5410 | return this;
|
| 5411 | }
|
| 5412 |
|
| 5413 | public bool HasDefaultInt32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5414 | get { return result.hasDefaultInt32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5415 | }
|
| 5416 | public int DefaultInt32 {
|
| 5417 | get { return result.DefaultInt32; }
|
| 5418 | set { SetDefaultInt32(value); }
|
| 5419 | }
|
| 5420 | public Builder SetDefaultInt32(int value) {
|
| 5421 | result.hasDefaultInt32 = true;
|
| 5422 | result.defaultInt32_ = value;
|
| 5423 | return this;
|
| 5424 | }
|
| 5425 | public Builder ClearDefaultInt32() {
|
| 5426 | result.hasDefaultInt32 = false;
|
| 5427 | result.defaultInt32_ = 41;
|
| 5428 | return this;
|
| 5429 | }
|
| 5430 |
|
| 5431 | public bool HasDefaultInt64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5432 | get { return result.hasDefaultInt64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5433 | }
|
| 5434 | public long DefaultInt64 {
|
| 5435 | get { return result.DefaultInt64; }
|
| 5436 | set { SetDefaultInt64(value); }
|
| 5437 | }
|
| 5438 | public Builder SetDefaultInt64(long value) {
|
| 5439 | result.hasDefaultInt64 = true;
|
| 5440 | result.defaultInt64_ = value;
|
| 5441 | return this;
|
| 5442 | }
|
| 5443 | public Builder ClearDefaultInt64() {
|
| 5444 | result.hasDefaultInt64 = false;
|
| 5445 | result.defaultInt64_ = 42L;
|
| 5446 | return this;
|
| 5447 | }
|
| 5448 |
|
| 5449 | public bool HasDefaultUint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5450 | get { return result.hasDefaultUint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5451 | }
|
| 5452 | [global::System.CLSCompliant(false)]
|
| 5453 | public uint DefaultUint32 {
|
| 5454 | get { return result.DefaultUint32; }
|
| 5455 | set { SetDefaultUint32(value); }
|
| 5456 | }
|
| 5457 | [global::System.CLSCompliant(false)]
|
| 5458 | public Builder SetDefaultUint32(uint value) {
|
| 5459 | result.hasDefaultUint32 = true;
|
| 5460 | result.defaultUint32_ = value;
|
| 5461 | return this;
|
| 5462 | }
|
| 5463 | public Builder ClearDefaultUint32() {
|
| 5464 | result.hasDefaultUint32 = false;
|
| 5465 | result.defaultUint32_ = 43;
|
| 5466 | return this;
|
| 5467 | }
|
| 5468 |
|
| 5469 | public bool HasDefaultUint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5470 | get { return result.hasDefaultUint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5471 | }
|
| 5472 | [global::System.CLSCompliant(false)]
|
| 5473 | public ulong DefaultUint64 {
|
| 5474 | get { return result.DefaultUint64; }
|
| 5475 | set { SetDefaultUint64(value); }
|
| 5476 | }
|
| 5477 | [global::System.CLSCompliant(false)]
|
| 5478 | public Builder SetDefaultUint64(ulong value) {
|
| 5479 | result.hasDefaultUint64 = true;
|
| 5480 | result.defaultUint64_ = value;
|
| 5481 | return this;
|
| 5482 | }
|
| 5483 | public Builder ClearDefaultUint64() {
|
| 5484 | result.hasDefaultUint64 = false;
|
| 5485 | result.defaultUint64_ = 44UL;
|
| 5486 | return this;
|
| 5487 | }
|
| 5488 |
|
| 5489 | public bool HasDefaultSint32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5490 | get { return result.hasDefaultSint32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5491 | }
|
| 5492 | public int DefaultSint32 {
|
| 5493 | get { return result.DefaultSint32; }
|
| 5494 | set { SetDefaultSint32(value); }
|
| 5495 | }
|
| 5496 | public Builder SetDefaultSint32(int value) {
|
| 5497 | result.hasDefaultSint32 = true;
|
| 5498 | result.defaultSint32_ = value;
|
| 5499 | return this;
|
| 5500 | }
|
| 5501 | public Builder ClearDefaultSint32() {
|
| 5502 | result.hasDefaultSint32 = false;
|
| 5503 | result.defaultSint32_ = -45;
|
| 5504 | return this;
|
| 5505 | }
|
| 5506 |
|
| 5507 | public bool HasDefaultSint64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5508 | get { return result.hasDefaultSint64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5509 | }
|
| 5510 | public long DefaultSint64 {
|
| 5511 | get { return result.DefaultSint64; }
|
| 5512 | set { SetDefaultSint64(value); }
|
| 5513 | }
|
| 5514 | public Builder SetDefaultSint64(long value) {
|
| 5515 | result.hasDefaultSint64 = true;
|
| 5516 | result.defaultSint64_ = value;
|
| 5517 | return this;
|
| 5518 | }
|
| 5519 | public Builder ClearDefaultSint64() {
|
| 5520 | result.hasDefaultSint64 = false;
|
| 5521 | result.defaultSint64_ = 46;
|
| 5522 | return this;
|
| 5523 | }
|
| 5524 |
|
| 5525 | public bool HasDefaultFixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5526 | get { return result.hasDefaultFixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5527 | }
|
| 5528 | [global::System.CLSCompliant(false)]
|
| 5529 | public uint DefaultFixed32 {
|
| 5530 | get { return result.DefaultFixed32; }
|
| 5531 | set { SetDefaultFixed32(value); }
|
| 5532 | }
|
| 5533 | [global::System.CLSCompliant(false)]
|
| 5534 | public Builder SetDefaultFixed32(uint value) {
|
| 5535 | result.hasDefaultFixed32 = true;
|
| 5536 | result.defaultFixed32_ = value;
|
| 5537 | return this;
|
| 5538 | }
|
| 5539 | public Builder ClearDefaultFixed32() {
|
| 5540 | result.hasDefaultFixed32 = false;
|
| 5541 | result.defaultFixed32_ = 47;
|
| 5542 | return this;
|
| 5543 | }
|
| 5544 |
|
| 5545 | public bool HasDefaultFixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5546 | get { return result.hasDefaultFixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5547 | }
|
| 5548 | [global::System.CLSCompliant(false)]
|
| 5549 | public ulong DefaultFixed64 {
|
| 5550 | get { return result.DefaultFixed64; }
|
| 5551 | set { SetDefaultFixed64(value); }
|
| 5552 | }
|
| 5553 | [global::System.CLSCompliant(false)]
|
| 5554 | public Builder SetDefaultFixed64(ulong value) {
|
| 5555 | result.hasDefaultFixed64 = true;
|
| 5556 | result.defaultFixed64_ = value;
|
| 5557 | return this;
|
| 5558 | }
|
| 5559 | public Builder ClearDefaultFixed64() {
|
| 5560 | result.hasDefaultFixed64 = false;
|
| 5561 | result.defaultFixed64_ = 48;
|
| 5562 | return this;
|
| 5563 | }
|
| 5564 |
|
| 5565 | public bool HasDefaultSfixed32 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5566 | get { return result.hasDefaultSfixed32; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5567 | }
|
| 5568 | public int DefaultSfixed32 {
|
| 5569 | get { return result.DefaultSfixed32; }
|
| 5570 | set { SetDefaultSfixed32(value); }
|
| 5571 | }
|
| 5572 | public Builder SetDefaultSfixed32(int value) {
|
| 5573 | result.hasDefaultSfixed32 = true;
|
| 5574 | result.defaultSfixed32_ = value;
|
| 5575 | return this;
|
| 5576 | }
|
| 5577 | public Builder ClearDefaultSfixed32() {
|
| 5578 | result.hasDefaultSfixed32 = false;
|
| 5579 | result.defaultSfixed32_ = 49;
|
| 5580 | return this;
|
| 5581 | }
|
| 5582 |
|
| 5583 | public bool HasDefaultSfixed64 {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5584 | get { return result.hasDefaultSfixed64; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5585 | }
|
| 5586 | public long DefaultSfixed64 {
|
| 5587 | get { return result.DefaultSfixed64; }
|
| 5588 | set { SetDefaultSfixed64(value); }
|
| 5589 | }
|
| 5590 | public Builder SetDefaultSfixed64(long value) {
|
| 5591 | result.hasDefaultSfixed64 = true;
|
| 5592 | result.defaultSfixed64_ = value;
|
| 5593 | return this;
|
| 5594 | }
|
| 5595 | public Builder ClearDefaultSfixed64() {
|
| 5596 | result.hasDefaultSfixed64 = false;
|
| 5597 | result.defaultSfixed64_ = -50;
|
| 5598 | return this;
|
| 5599 | }
|
| 5600 |
|
| 5601 | public bool HasDefaultFloat {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5602 | get { return result.hasDefaultFloat; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5603 | }
|
| 5604 | public float DefaultFloat {
|
| 5605 | get { return result.DefaultFloat; }
|
| 5606 | set { SetDefaultFloat(value); }
|
| 5607 | }
|
| 5608 | public Builder SetDefaultFloat(float value) {
|
| 5609 | result.hasDefaultFloat = true;
|
| 5610 | result.defaultFloat_ = value;
|
| 5611 | return this;
|
| 5612 | }
|
| 5613 | public Builder ClearDefaultFloat() {
|
| 5614 | result.hasDefaultFloat = false;
|
| 5615 | result.defaultFloat_ = 51.5F;
|
| 5616 | return this;
|
| 5617 | }
|
| 5618 |
|
| 5619 | public bool HasDefaultDouble {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5620 | get { return result.hasDefaultDouble; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5621 | }
|
| 5622 | public double DefaultDouble {
|
| 5623 | get { return result.DefaultDouble; }
|
| 5624 | set { SetDefaultDouble(value); }
|
| 5625 | }
|
| 5626 | public Builder SetDefaultDouble(double value) {
|
| 5627 | result.hasDefaultDouble = true;
|
| 5628 | result.defaultDouble_ = value;
|
| 5629 | return this;
|
| 5630 | }
|
| 5631 | public Builder ClearDefaultDouble() {
|
| 5632 | result.hasDefaultDouble = false;
|
| 5633 | result.defaultDouble_ = 52000D;
|
| 5634 | return this;
|
| 5635 | }
|
| 5636 |
|
| 5637 | public bool HasDefaultBool {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5638 | get { return result.hasDefaultBool; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5639 | }
|
| 5640 | public bool DefaultBool {
|
| 5641 | get { return result.DefaultBool; }
|
| 5642 | set { SetDefaultBool(value); }
|
| 5643 | }
|
| 5644 | public Builder SetDefaultBool(bool value) {
|
| 5645 | result.hasDefaultBool = true;
|
| 5646 | result.defaultBool_ = value;
|
| 5647 | return this;
|
| 5648 | }
|
| 5649 | public Builder ClearDefaultBool() {
|
| 5650 | result.hasDefaultBool = false;
|
| 5651 | result.defaultBool_ = true;
|
| 5652 | return this;
|
| 5653 | }
|
| 5654 |
|
| 5655 | public bool HasDefaultString {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5656 | get { return result.hasDefaultString; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5657 | }
|
| 5658 | public string DefaultString {
|
| 5659 | get { return result.DefaultString; }
|
| 5660 | set { SetDefaultString(value); }
|
| 5661 | }
|
| 5662 | public Builder SetDefaultString(string value) {
|
| 5663 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5664 | result.hasDefaultString = true;
|
| 5665 | result.defaultString_ = value;
|
| 5666 | return this;
|
| 5667 | }
|
| 5668 | public Builder ClearDefaultString() {
|
| 5669 | result.hasDefaultString = false;
|
| 5670 | result.defaultString_ = "hello";
|
| 5671 | return this;
|
| 5672 | }
|
| 5673 |
|
| 5674 | public bool HasDefaultBytes {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5675 | get { return result.hasDefaultBytes; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5676 | }
|
| 5677 | public pb::ByteString DefaultBytes {
|
| 5678 | get { return result.DefaultBytes; }
|
| 5679 | set { SetDefaultBytes(value); }
|
| 5680 | }
|
| 5681 | public Builder SetDefaultBytes(pb::ByteString value) {
|
| 5682 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5683 | result.hasDefaultBytes = true;
|
| 5684 | result.defaultBytes_ = value;
|
| 5685 | return this;
|
| 5686 | }
|
| 5687 | public Builder ClearDefaultBytes() {
|
| 5688 | result.hasDefaultBytes = false;
|
csharptest | 02760b2 | 2011-07-14 14:46:42 -0500 | [diff] [blame] | 5689 | result.defaultBytes_ = pb::ByteString.FromBase64("d29ybGQ=");
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5690 | return this;
|
| 5691 | }
|
| 5692 |
|
| 5693 | public bool HasDefaultNestedEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5694 | get { return result.hasDefaultNestedEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5695 | }
|
| 5696 | public global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum DefaultNestedEnum {
|
| 5697 | get { return result.DefaultNestedEnum; }
|
| 5698 | set { SetDefaultNestedEnum(value); }
|
| 5699 | }
|
| 5700 | public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum value) {
|
| 5701 | result.hasDefaultNestedEnum = true;
|
| 5702 | result.defaultNestedEnum_ = value;
|
| 5703 | return this;
|
| 5704 | }
|
| 5705 | public Builder ClearDefaultNestedEnum() {
|
| 5706 | result.hasDefaultNestedEnum = false;
|
| 5707 | result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypesLite.Types.NestedEnum.BAR;
|
| 5708 | return this;
|
| 5709 | }
|
| 5710 |
|
| 5711 | public bool HasDefaultForeignEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5712 | get { return result.hasDefaultForeignEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5713 | }
|
| 5714 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite DefaultForeignEnum {
|
| 5715 | get { return result.DefaultForeignEnum; }
|
| 5716 | set { SetDefaultForeignEnum(value); }
|
| 5717 | }
|
| 5718 | public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 5719 | result.hasDefaultForeignEnum = true;
|
| 5720 | result.defaultForeignEnum_ = value;
|
| 5721 | return this;
|
| 5722 | }
|
| 5723 | public Builder ClearDefaultForeignEnum() {
|
| 5724 | result.hasDefaultForeignEnum = false;
|
| 5725 | result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite.FOREIGN_LITE_BAR;
|
| 5726 | return this;
|
| 5727 | }
|
| 5728 |
|
| 5729 | public bool HasDefaultImportEnum {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5730 | get { return result.hasDefaultImportEnum; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5731 | }
|
| 5732 | public global::Google.ProtocolBuffers.TestProtos.ImportEnumLite DefaultImportEnum {
|
| 5733 | get { return result.DefaultImportEnum; }
|
| 5734 | set { SetDefaultImportEnum(value); }
|
| 5735 | }
|
| 5736 | public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnumLite value) {
|
| 5737 | result.hasDefaultImportEnum = true;
|
| 5738 | result.defaultImportEnum_ = value;
|
| 5739 | return this;
|
| 5740 | }
|
| 5741 | public Builder ClearDefaultImportEnum() {
|
| 5742 | result.hasDefaultImportEnum = false;
|
| 5743 | result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnumLite.IMPORT_LITE_BAR;
|
| 5744 | return this;
|
| 5745 | }
|
| 5746 |
|
| 5747 | public bool HasDefaultStringPiece {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5748 | get { return result.hasDefaultStringPiece; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5749 | }
|
| 5750 | public string DefaultStringPiece {
|
| 5751 | get { return result.DefaultStringPiece; }
|
| 5752 | set { SetDefaultStringPiece(value); }
|
| 5753 | }
|
| 5754 | public Builder SetDefaultStringPiece(string value) {
|
| 5755 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5756 | result.hasDefaultStringPiece = true;
|
| 5757 | result.defaultStringPiece_ = value;
|
| 5758 | return this;
|
| 5759 | }
|
| 5760 | public Builder ClearDefaultStringPiece() {
|
| 5761 | result.hasDefaultStringPiece = false;
|
| 5762 | result.defaultStringPiece_ = "abc";
|
| 5763 | return this;
|
| 5764 | }
|
| 5765 |
|
| 5766 | public bool HasDefaultCord {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5767 | get { return result.hasDefaultCord; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5768 | }
|
| 5769 | public string DefaultCord {
|
| 5770 | get { return result.DefaultCord; }
|
| 5771 | set { SetDefaultCord(value); }
|
| 5772 | }
|
| 5773 | public Builder SetDefaultCord(string value) {
|
| 5774 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 5775 | result.hasDefaultCord = true;
|
| 5776 | result.defaultCord_ = value;
|
| 5777 | return this;
|
| 5778 | }
|
| 5779 | public Builder ClearDefaultCord() {
|
| 5780 | result.hasDefaultCord = false;
|
| 5781 | result.defaultCord_ = "123";
|
| 5782 | return this;
|
| 5783 | }
|
| 5784 | }
|
| 5785 | static TestAllTypesLite() {
|
| 5786 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 5787 | }
|
| 5788 | }
|
| 5789 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5790 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5791 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5792 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5793 | public sealed partial class ForeignMessageLite : pb::GeneratedMessageLite<ForeignMessageLite, ForeignMessageLite.Builder> {
|
| 5794 | private static readonly ForeignMessageLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5795 | private static readonly string[] _foreignMessageLiteFieldNames = new string[] { "c" };
|
| 5796 | private static readonly uint[] _foreignMessageLiteFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5797 | public static ForeignMessageLite DefaultInstance {
|
| 5798 | get { return defaultInstance; }
|
| 5799 | }
|
| 5800 |
|
| 5801 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5802 | get { return defaultInstance; }
|
| 5803 | }
|
| 5804 |
|
| 5805 | protected override ForeignMessageLite ThisMessage {
|
| 5806 | get { return this; }
|
| 5807 | }
|
| 5808 |
|
| 5809 | public const int CFieldNumber = 1;
|
| 5810 | private bool hasC;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 5811 | private int c_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5812 | public bool HasC {
|
| 5813 | get { return hasC; }
|
| 5814 | }
|
| 5815 | public int C {
|
| 5816 | get { return c_; }
|
| 5817 | }
|
| 5818 |
|
| 5819 | public override bool IsInitialized {
|
| 5820 | get {
|
| 5821 | return true;
|
| 5822 | }
|
| 5823 | }
|
| 5824 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 5825 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5826 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5827 | string[] field_names = _foreignMessageLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5828 | if (hasC) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5829 | output.WriteInt32(1, field_names[0], C);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5830 | }
|
| 5831 | }
|
| 5832 |
|
| 5833 | private int memoizedSerializedSize = -1;
|
| 5834 | public override int SerializedSize {
|
| 5835 | get {
|
| 5836 | int size = memoizedSerializedSize;
|
| 5837 | if (size != -1) return size;
|
| 5838 |
|
| 5839 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5840 | if (hasC) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5841 | size += pb::CodedOutputStream.ComputeInt32Size(1, C);
|
| 5842 | }
|
| 5843 | memoizedSerializedSize = size;
|
| 5844 | return size;
|
| 5845 | }
|
| 5846 | }
|
| 5847 |
|
| 5848 | #region Lite runtime methods
|
| 5849 | public override int GetHashCode() {
|
| 5850 | int hash = GetType().GetHashCode();
|
| 5851 | if (hasC) hash ^= c_.GetHashCode();
|
| 5852 | return hash;
|
| 5853 | }
|
| 5854 |
|
| 5855 | public override bool Equals(object obj) {
|
| 5856 | ForeignMessageLite other = obj as ForeignMessageLite;
|
| 5857 | if (other == null) return false;
|
| 5858 | if (hasC != other.hasC || (hasC && !c_.Equals(other.c_))) return false;
|
| 5859 | return true;
|
| 5860 | }
|
| 5861 |
|
| 5862 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 5863 | PrintField("c", hasC, c_, writer);
|
| 5864 | }
|
| 5865 | #endregion
|
| 5866 |
|
| 5867 | public static ForeignMessageLite ParseFrom(pb::ByteString data) {
|
| 5868 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5869 | }
|
| 5870 | public static ForeignMessageLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 5871 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5872 | }
|
| 5873 | public static ForeignMessageLite ParseFrom(byte[] data) {
|
| 5874 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 5875 | }
|
| 5876 | public static ForeignMessageLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 5877 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 5878 | }
|
| 5879 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input) {
|
| 5880 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5881 | }
|
| 5882 | public static ForeignMessageLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5883 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5884 | }
|
| 5885 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 5886 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 5887 | }
|
| 5888 | public static ForeignMessageLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 5889 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 5890 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5891 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5892 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 5893 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5894 | public static ForeignMessageLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5895 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 5896 | }
|
| 5897 | public static Builder CreateBuilder() { return new Builder(); }
|
| 5898 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 5899 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 5900 | public static Builder CreateBuilder(ForeignMessageLite prototype) {
|
| 5901 | return (Builder) new Builder().MergeFrom(prototype);
|
| 5902 | }
|
| 5903 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 5904 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 5905 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 5906 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5907 | public sealed partial class Builder : pb::GeneratedBuilderLite<ForeignMessageLite, Builder> {
|
| 5908 | protected override Builder ThisBuilder {
|
| 5909 | get { return this; }
|
| 5910 | }
|
| 5911 | public Builder() {}
|
| 5912 |
|
| 5913 | ForeignMessageLite result = new ForeignMessageLite();
|
| 5914 |
|
| 5915 | protected override ForeignMessageLite MessageBeingBuilt {
|
| 5916 | get { return result; }
|
| 5917 | }
|
| 5918 |
|
| 5919 | public override Builder Clear() {
|
| 5920 | result = new ForeignMessageLite();
|
| 5921 | return this;
|
| 5922 | }
|
| 5923 |
|
| 5924 | public override Builder Clone() {
|
| 5925 | return new Builder().MergeFrom(result);
|
| 5926 | }
|
| 5927 |
|
| 5928 | public override ForeignMessageLite DefaultInstanceForType {
|
| 5929 | get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance; }
|
| 5930 | }
|
| 5931 |
|
| 5932 | public override ForeignMessageLite BuildPartial() {
|
| 5933 | if (result == null) {
|
| 5934 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 5935 | }
|
| 5936 | ForeignMessageLite returnMe = result;
|
| 5937 | result = null;
|
| 5938 | return returnMe;
|
| 5939 | }
|
| 5940 |
|
| 5941 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 5942 | if (other is ForeignMessageLite) {
|
| 5943 | return MergeFrom((ForeignMessageLite) other);
|
| 5944 | } else {
|
| 5945 | base.MergeFrom(other);
|
| 5946 | return this;
|
| 5947 | }
|
| 5948 | }
|
| 5949 |
|
| 5950 | public override Builder MergeFrom(ForeignMessageLite other) {
|
| 5951 | if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessageLite.DefaultInstance) return this;
|
| 5952 | if (other.HasC) {
|
| 5953 | C = other.C;
|
| 5954 | }
|
| 5955 | return this;
|
| 5956 | }
|
| 5957 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5958 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5959 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 5960 | }
|
| 5961 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 5962 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5963 | uint tag;
|
| 5964 | string field_name;
|
| 5965 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5966 | if(tag == 0 && field_name != null) {
|
| 5967 | int field_ordinal = global::System.Array.BinarySearch(_foreignMessageLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 5968 | if(field_ordinal >= 0)
|
| 5969 | tag = _foreignMessageLiteFieldTags[field_ordinal];
|
| 5970 | else {
|
| 5971 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 5972 | continue;
|
| 5973 | }
|
| 5974 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5975 | switch (tag) {
|
| 5976 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 5977 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5978 | }
|
| 5979 | default: {
|
| 5980 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 5981 | return this;
|
| 5982 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 5983 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5984 | break;
|
| 5985 | }
|
| 5986 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 5987 | result.hasC = input.ReadInt32(ref result.c_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5988 | break;
|
| 5989 | }
|
| 5990 | }
|
| 5991 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 5992 |
|
| 5993 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5994 | }
|
| 5995 |
|
| 5996 |
|
| 5997 | public bool HasC {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 5998 | get { return result.hasC; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 5999 | }
|
| 6000 | public int C {
|
| 6001 | get { return result.C; }
|
| 6002 | set { SetC(value); }
|
| 6003 | }
|
| 6004 | public Builder SetC(int value) {
|
| 6005 | result.hasC = true;
|
| 6006 | result.c_ = value;
|
| 6007 | return this;
|
| 6008 | }
|
| 6009 | public Builder ClearC() {
|
| 6010 | result.hasC = false;
|
| 6011 | result.c_ = 0;
|
| 6012 | return this;
|
| 6013 | }
|
| 6014 | }
|
| 6015 | static ForeignMessageLite() {
|
| 6016 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 6017 | }
|
| 6018 | }
|
| 6019 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6020 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6021 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6022 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6023 | public sealed partial class TestPackedTypesLite : pb::GeneratedMessageLite<TestPackedTypesLite, TestPackedTypesLite.Builder> {
|
| 6024 | private static readonly TestPackedTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6025 | 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" };
|
| 6026 | 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] | 6027 | public static TestPackedTypesLite DefaultInstance {
|
| 6028 | get { return defaultInstance; }
|
| 6029 | }
|
| 6030 |
|
| 6031 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6032 | get { return defaultInstance; }
|
| 6033 | }
|
| 6034 |
|
| 6035 | protected override TestPackedTypesLite ThisMessage {
|
| 6036 | get { return this; }
|
| 6037 | }
|
| 6038 |
|
| 6039 | public const int PackedInt32FieldNumber = 90;
|
| 6040 | private int packedInt32MemoizedSerializedSize;
|
| 6041 | private pbc::PopsicleList<int> packedInt32_ = new pbc::PopsicleList<int>();
|
| 6042 | public scg::IList<int> PackedInt32List {
|
| 6043 | get { return pbc::Lists.AsReadOnly(packedInt32_); }
|
| 6044 | }
|
| 6045 | public int PackedInt32Count {
|
| 6046 | get { return packedInt32_.Count; }
|
| 6047 | }
|
| 6048 | public int GetPackedInt32(int index) {
|
| 6049 | return packedInt32_[index];
|
| 6050 | }
|
| 6051 |
|
| 6052 | public const int PackedInt64FieldNumber = 91;
|
| 6053 | private int packedInt64MemoizedSerializedSize;
|
| 6054 | private pbc::PopsicleList<long> packedInt64_ = new pbc::PopsicleList<long>();
|
| 6055 | public scg::IList<long> PackedInt64List {
|
| 6056 | get { return pbc::Lists.AsReadOnly(packedInt64_); }
|
| 6057 | }
|
| 6058 | public int PackedInt64Count {
|
| 6059 | get { return packedInt64_.Count; }
|
| 6060 | }
|
| 6061 | public long GetPackedInt64(int index) {
|
| 6062 | return packedInt64_[index];
|
| 6063 | }
|
| 6064 |
|
| 6065 | public const int PackedUint32FieldNumber = 92;
|
| 6066 | private int packedUint32MemoizedSerializedSize;
|
| 6067 | private pbc::PopsicleList<uint> packedUint32_ = new pbc::PopsicleList<uint>();
|
| 6068 | [global::System.CLSCompliant(false)]
|
| 6069 | public scg::IList<uint> PackedUint32List {
|
| 6070 | get { return pbc::Lists.AsReadOnly(packedUint32_); }
|
| 6071 | }
|
| 6072 | public int PackedUint32Count {
|
| 6073 | get { return packedUint32_.Count; }
|
| 6074 | }
|
| 6075 | [global::System.CLSCompliant(false)]
|
| 6076 | public uint GetPackedUint32(int index) {
|
| 6077 | return packedUint32_[index];
|
| 6078 | }
|
| 6079 |
|
| 6080 | public const int PackedUint64FieldNumber = 93;
|
| 6081 | private int packedUint64MemoizedSerializedSize;
|
| 6082 | private pbc::PopsicleList<ulong> packedUint64_ = new pbc::PopsicleList<ulong>();
|
| 6083 | [global::System.CLSCompliant(false)]
|
| 6084 | public scg::IList<ulong> PackedUint64List {
|
| 6085 | get { return pbc::Lists.AsReadOnly(packedUint64_); }
|
| 6086 | }
|
| 6087 | public int PackedUint64Count {
|
| 6088 | get { return packedUint64_.Count; }
|
| 6089 | }
|
| 6090 | [global::System.CLSCompliant(false)]
|
| 6091 | public ulong GetPackedUint64(int index) {
|
| 6092 | return packedUint64_[index];
|
| 6093 | }
|
| 6094 |
|
| 6095 | public const int PackedSint32FieldNumber = 94;
|
| 6096 | private int packedSint32MemoizedSerializedSize;
|
| 6097 | private pbc::PopsicleList<int> packedSint32_ = new pbc::PopsicleList<int>();
|
| 6098 | public scg::IList<int> PackedSint32List {
|
| 6099 | get { return pbc::Lists.AsReadOnly(packedSint32_); }
|
| 6100 | }
|
| 6101 | public int PackedSint32Count {
|
| 6102 | get { return packedSint32_.Count; }
|
| 6103 | }
|
| 6104 | public int GetPackedSint32(int index) {
|
| 6105 | return packedSint32_[index];
|
| 6106 | }
|
| 6107 |
|
| 6108 | public const int PackedSint64FieldNumber = 95;
|
| 6109 | private int packedSint64MemoizedSerializedSize;
|
| 6110 | private pbc::PopsicleList<long> packedSint64_ = new pbc::PopsicleList<long>();
|
| 6111 | public scg::IList<long> PackedSint64List {
|
| 6112 | get { return pbc::Lists.AsReadOnly(packedSint64_); }
|
| 6113 | }
|
| 6114 | public int PackedSint64Count {
|
| 6115 | get { return packedSint64_.Count; }
|
| 6116 | }
|
| 6117 | public long GetPackedSint64(int index) {
|
| 6118 | return packedSint64_[index];
|
| 6119 | }
|
| 6120 |
|
| 6121 | public const int PackedFixed32FieldNumber = 96;
|
| 6122 | private int packedFixed32MemoizedSerializedSize;
|
| 6123 | private pbc::PopsicleList<uint> packedFixed32_ = new pbc::PopsicleList<uint>();
|
| 6124 | [global::System.CLSCompliant(false)]
|
| 6125 | public scg::IList<uint> PackedFixed32List {
|
| 6126 | get { return pbc::Lists.AsReadOnly(packedFixed32_); }
|
| 6127 | }
|
| 6128 | public int PackedFixed32Count {
|
| 6129 | get { return packedFixed32_.Count; }
|
| 6130 | }
|
| 6131 | [global::System.CLSCompliant(false)]
|
| 6132 | public uint GetPackedFixed32(int index) {
|
| 6133 | return packedFixed32_[index];
|
| 6134 | }
|
| 6135 |
|
| 6136 | public const int PackedFixed64FieldNumber = 97;
|
| 6137 | private int packedFixed64MemoizedSerializedSize;
|
| 6138 | private pbc::PopsicleList<ulong> packedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 6139 | [global::System.CLSCompliant(false)]
|
| 6140 | public scg::IList<ulong> PackedFixed64List {
|
| 6141 | get { return pbc::Lists.AsReadOnly(packedFixed64_); }
|
| 6142 | }
|
| 6143 | public int PackedFixed64Count {
|
| 6144 | get { return packedFixed64_.Count; }
|
| 6145 | }
|
| 6146 | [global::System.CLSCompliant(false)]
|
| 6147 | public ulong GetPackedFixed64(int index) {
|
| 6148 | return packedFixed64_[index];
|
| 6149 | }
|
| 6150 |
|
| 6151 | public const int PackedSfixed32FieldNumber = 98;
|
| 6152 | private int packedSfixed32MemoizedSerializedSize;
|
| 6153 | private pbc::PopsicleList<int> packedSfixed32_ = new pbc::PopsicleList<int>();
|
| 6154 | public scg::IList<int> PackedSfixed32List {
|
| 6155 | get { return pbc::Lists.AsReadOnly(packedSfixed32_); }
|
| 6156 | }
|
| 6157 | public int PackedSfixed32Count {
|
| 6158 | get { return packedSfixed32_.Count; }
|
| 6159 | }
|
| 6160 | public int GetPackedSfixed32(int index) {
|
| 6161 | return packedSfixed32_[index];
|
| 6162 | }
|
| 6163 |
|
| 6164 | public const int PackedSfixed64FieldNumber = 99;
|
| 6165 | private int packedSfixed64MemoizedSerializedSize;
|
| 6166 | private pbc::PopsicleList<long> packedSfixed64_ = new pbc::PopsicleList<long>();
|
| 6167 | public scg::IList<long> PackedSfixed64List {
|
| 6168 | get { return pbc::Lists.AsReadOnly(packedSfixed64_); }
|
| 6169 | }
|
| 6170 | public int PackedSfixed64Count {
|
| 6171 | get { return packedSfixed64_.Count; }
|
| 6172 | }
|
| 6173 | public long GetPackedSfixed64(int index) {
|
| 6174 | return packedSfixed64_[index];
|
| 6175 | }
|
| 6176 |
|
| 6177 | public const int PackedFloatFieldNumber = 100;
|
| 6178 | private int packedFloatMemoizedSerializedSize;
|
| 6179 | private pbc::PopsicleList<float> packedFloat_ = new pbc::PopsicleList<float>();
|
| 6180 | public scg::IList<float> PackedFloatList {
|
| 6181 | get { return pbc::Lists.AsReadOnly(packedFloat_); }
|
| 6182 | }
|
| 6183 | public int PackedFloatCount {
|
| 6184 | get { return packedFloat_.Count; }
|
| 6185 | }
|
| 6186 | public float GetPackedFloat(int index) {
|
| 6187 | return packedFloat_[index];
|
| 6188 | }
|
| 6189 |
|
| 6190 | public const int PackedDoubleFieldNumber = 101;
|
| 6191 | private int packedDoubleMemoizedSerializedSize;
|
| 6192 | private pbc::PopsicleList<double> packedDouble_ = new pbc::PopsicleList<double>();
|
| 6193 | public scg::IList<double> PackedDoubleList {
|
| 6194 | get { return pbc::Lists.AsReadOnly(packedDouble_); }
|
| 6195 | }
|
| 6196 | public int PackedDoubleCount {
|
| 6197 | get { return packedDouble_.Count; }
|
| 6198 | }
|
| 6199 | public double GetPackedDouble(int index) {
|
| 6200 | return packedDouble_[index];
|
| 6201 | }
|
| 6202 |
|
| 6203 | public const int PackedBoolFieldNumber = 102;
|
| 6204 | private int packedBoolMemoizedSerializedSize;
|
| 6205 | private pbc::PopsicleList<bool> packedBool_ = new pbc::PopsicleList<bool>();
|
| 6206 | public scg::IList<bool> PackedBoolList {
|
| 6207 | get { return pbc::Lists.AsReadOnly(packedBool_); }
|
| 6208 | }
|
| 6209 | public int PackedBoolCount {
|
| 6210 | get { return packedBool_.Count; }
|
| 6211 | }
|
| 6212 | public bool GetPackedBool(int index) {
|
| 6213 | return packedBool_[index];
|
| 6214 | }
|
| 6215 |
|
| 6216 | public const int PackedEnumFieldNumber = 103;
|
| 6217 | private int packedEnumMemoizedSerializedSize;
|
| 6218 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> packedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 6219 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 6220 | get { return pbc::Lists.AsReadOnly(packedEnum_); }
|
| 6221 | }
|
| 6222 | public int PackedEnumCount {
|
| 6223 | get { return packedEnum_.Count; }
|
| 6224 | }
|
| 6225 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 6226 | return packedEnum_[index];
|
| 6227 | }
|
| 6228 |
|
| 6229 | public override bool IsInitialized {
|
| 6230 | get {
|
| 6231 | return true;
|
| 6232 | }
|
| 6233 | }
|
| 6234 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 6235 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6236 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6237 | string[] field_names = _testPackedTypesLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6238 | if (packedInt32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6239 | output.WritePackedInt32Array(90, field_names[6], packedInt32MemoizedSerializedSize, packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6240 | }
|
| 6241 | if (packedInt64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6242 | output.WritePackedInt64Array(91, field_names[7], packedInt64MemoizedSerializedSize, packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6243 | }
|
| 6244 | if (packedUint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6245 | output.WritePackedUInt32Array(92, field_names[12], packedUint32MemoizedSerializedSize, packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6246 | }
|
| 6247 | if (packedUint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6248 | output.WritePackedUInt64Array(93, field_names[13], packedUint64MemoizedSerializedSize, packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6249 | }
|
| 6250 | if (packedSint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6251 | output.WritePackedSInt32Array(94, field_names[10], packedSint32MemoizedSerializedSize, packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6252 | }
|
| 6253 | if (packedSint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6254 | output.WritePackedSInt64Array(95, field_names[11], packedSint64MemoizedSerializedSize, packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6255 | }
|
| 6256 | if (packedFixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6257 | output.WritePackedFixed32Array(96, field_names[3], packedFixed32MemoizedSerializedSize, packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6258 | }
|
| 6259 | if (packedFixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6260 | output.WritePackedFixed64Array(97, field_names[4], packedFixed64MemoizedSerializedSize, packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6261 | }
|
| 6262 | if (packedSfixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6263 | output.WritePackedSFixed32Array(98, field_names[8], packedSfixed32MemoizedSerializedSize, packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6264 | }
|
| 6265 | if (packedSfixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6266 | output.WritePackedSFixed64Array(99, field_names[9], packedSfixed64MemoizedSerializedSize, packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6267 | }
|
| 6268 | if (packedFloat_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6269 | output.WritePackedFloatArray(100, field_names[5], packedFloatMemoizedSerializedSize, packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6270 | }
|
| 6271 | if (packedDouble_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6272 | output.WritePackedDoubleArray(101, field_names[1], packedDoubleMemoizedSerializedSize, packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6273 | }
|
| 6274 | if (packedBool_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6275 | output.WritePackedBoolArray(102, field_names[0], packedBoolMemoizedSerializedSize, packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6276 | }
|
| 6277 | if (packedEnum_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6278 | output.WritePackedEnumArray(103, field_names[2], packedEnumMemoizedSerializedSize, packedEnum_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6279 | }
|
| 6280 | }
|
| 6281 |
|
| 6282 | private int memoizedSerializedSize = -1;
|
| 6283 | public override int SerializedSize {
|
| 6284 | get {
|
| 6285 | int size = memoizedSerializedSize;
|
| 6286 | if (size != -1) return size;
|
| 6287 |
|
| 6288 | size = 0;
|
| 6289 | {
|
| 6290 | int dataSize = 0;
|
| 6291 | foreach (int element in PackedInt32List) {
|
| 6292 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 6293 | }
|
| 6294 | size += dataSize;
|
| 6295 | if (packedInt32_.Count != 0) {
|
| 6296 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6297 | }
|
| 6298 | packedInt32MemoizedSerializedSize = dataSize;
|
| 6299 | }
|
| 6300 | {
|
| 6301 | int dataSize = 0;
|
| 6302 | foreach (long element in PackedInt64List) {
|
| 6303 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 6304 | }
|
| 6305 | size += dataSize;
|
| 6306 | if (packedInt64_.Count != 0) {
|
| 6307 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6308 | }
|
| 6309 | packedInt64MemoizedSerializedSize = dataSize;
|
| 6310 | }
|
| 6311 | {
|
| 6312 | int dataSize = 0;
|
| 6313 | foreach (uint element in PackedUint32List) {
|
| 6314 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 6315 | }
|
| 6316 | size += dataSize;
|
| 6317 | if (packedUint32_.Count != 0) {
|
| 6318 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6319 | }
|
| 6320 | packedUint32MemoizedSerializedSize = dataSize;
|
| 6321 | }
|
| 6322 | {
|
| 6323 | int dataSize = 0;
|
| 6324 | foreach (ulong element in PackedUint64List) {
|
| 6325 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 6326 | }
|
| 6327 | size += dataSize;
|
| 6328 | if (packedUint64_.Count != 0) {
|
| 6329 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6330 | }
|
| 6331 | packedUint64MemoizedSerializedSize = dataSize;
|
| 6332 | }
|
| 6333 | {
|
| 6334 | int dataSize = 0;
|
| 6335 | foreach (int element in PackedSint32List) {
|
| 6336 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 6337 | }
|
| 6338 | size += dataSize;
|
| 6339 | if (packedSint32_.Count != 0) {
|
| 6340 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6341 | }
|
| 6342 | packedSint32MemoizedSerializedSize = dataSize;
|
| 6343 | }
|
| 6344 | {
|
| 6345 | int dataSize = 0;
|
| 6346 | foreach (long element in PackedSint64List) {
|
| 6347 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 6348 | }
|
| 6349 | size += dataSize;
|
| 6350 | if (packedSint64_.Count != 0) {
|
| 6351 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6352 | }
|
| 6353 | packedSint64MemoizedSerializedSize = dataSize;
|
| 6354 | }
|
| 6355 | {
|
| 6356 | int dataSize = 0;
|
| 6357 | dataSize = 4 * packedFixed32_.Count;
|
| 6358 | size += dataSize;
|
| 6359 | if (packedFixed32_.Count != 0) {
|
| 6360 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6361 | }
|
| 6362 | packedFixed32MemoizedSerializedSize = dataSize;
|
| 6363 | }
|
| 6364 | {
|
| 6365 | int dataSize = 0;
|
| 6366 | dataSize = 8 * packedFixed64_.Count;
|
| 6367 | size += dataSize;
|
| 6368 | if (packedFixed64_.Count != 0) {
|
| 6369 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6370 | }
|
| 6371 | packedFixed64MemoizedSerializedSize = dataSize;
|
| 6372 | }
|
| 6373 | {
|
| 6374 | int dataSize = 0;
|
| 6375 | dataSize = 4 * packedSfixed32_.Count;
|
| 6376 | size += dataSize;
|
| 6377 | if (packedSfixed32_.Count != 0) {
|
| 6378 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6379 | }
|
| 6380 | packedSfixed32MemoizedSerializedSize = dataSize;
|
| 6381 | }
|
| 6382 | {
|
| 6383 | int dataSize = 0;
|
| 6384 | dataSize = 8 * packedSfixed64_.Count;
|
| 6385 | size += dataSize;
|
| 6386 | if (packedSfixed64_.Count != 0) {
|
| 6387 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6388 | }
|
| 6389 | packedSfixed64MemoizedSerializedSize = dataSize;
|
| 6390 | }
|
| 6391 | {
|
| 6392 | int dataSize = 0;
|
| 6393 | dataSize = 4 * packedFloat_.Count;
|
| 6394 | size += dataSize;
|
| 6395 | if (packedFloat_.Count != 0) {
|
| 6396 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6397 | }
|
| 6398 | packedFloatMemoizedSerializedSize = dataSize;
|
| 6399 | }
|
| 6400 | {
|
| 6401 | int dataSize = 0;
|
| 6402 | dataSize = 8 * packedDouble_.Count;
|
| 6403 | size += dataSize;
|
| 6404 | if (packedDouble_.Count != 0) {
|
| 6405 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6406 | }
|
| 6407 | packedDoubleMemoizedSerializedSize = dataSize;
|
| 6408 | }
|
| 6409 | {
|
| 6410 | int dataSize = 0;
|
| 6411 | dataSize = 1 * packedBool_.Count;
|
| 6412 | size += dataSize;
|
| 6413 | if (packedBool_.Count != 0) {
|
| 6414 | size += 2 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
|
| 6415 | }
|
| 6416 | packedBoolMemoizedSerializedSize = dataSize;
|
| 6417 | }
|
| 6418 | {
|
| 6419 | int dataSize = 0;
|
| 6420 | if (packedEnum_.Count > 0) {
|
| 6421 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in packedEnum_) {
|
| 6422 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 6423 | }
|
| 6424 | size += dataSize;
|
| 6425 | size += 2;
|
| 6426 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
|
| 6427 | }
|
| 6428 | packedEnumMemoizedSerializedSize = dataSize;
|
| 6429 | }
|
| 6430 | memoizedSerializedSize = size;
|
| 6431 | return size;
|
| 6432 | }
|
| 6433 | }
|
| 6434 |
|
| 6435 | #region Lite runtime methods
|
| 6436 | public override int GetHashCode() {
|
| 6437 | int hash = GetType().GetHashCode();
|
| 6438 | foreach(int i in packedInt32_)
|
| 6439 | hash ^= i.GetHashCode();
|
| 6440 | foreach(long i in packedInt64_)
|
| 6441 | hash ^= i.GetHashCode();
|
| 6442 | foreach(uint i in packedUint32_)
|
| 6443 | hash ^= i.GetHashCode();
|
| 6444 | foreach(ulong i in packedUint64_)
|
| 6445 | hash ^= i.GetHashCode();
|
| 6446 | foreach(int i in packedSint32_)
|
| 6447 | hash ^= i.GetHashCode();
|
| 6448 | foreach(long i in packedSint64_)
|
| 6449 | hash ^= i.GetHashCode();
|
| 6450 | foreach(uint i in packedFixed32_)
|
| 6451 | hash ^= i.GetHashCode();
|
| 6452 | foreach(ulong i in packedFixed64_)
|
| 6453 | hash ^= i.GetHashCode();
|
| 6454 | foreach(int i in packedSfixed32_)
|
| 6455 | hash ^= i.GetHashCode();
|
| 6456 | foreach(long i in packedSfixed64_)
|
| 6457 | hash ^= i.GetHashCode();
|
| 6458 | foreach(float i in packedFloat_)
|
| 6459 | hash ^= i.GetHashCode();
|
| 6460 | foreach(double i in packedDouble_)
|
| 6461 | hash ^= i.GetHashCode();
|
| 6462 | foreach(bool i in packedBool_)
|
| 6463 | hash ^= i.GetHashCode();
|
| 6464 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in packedEnum_)
|
| 6465 | hash ^= i.GetHashCode();
|
| 6466 | return hash;
|
| 6467 | }
|
| 6468 |
|
| 6469 | public override bool Equals(object obj) {
|
| 6470 | TestPackedTypesLite other = obj as TestPackedTypesLite;
|
| 6471 | if (other == null) return false;
|
| 6472 | if(packedInt32_.Count != other.packedInt32_.Count) return false;
|
| 6473 | for(int ix=0; ix < packedInt32_.Count; ix++)
|
| 6474 | if(!packedInt32_[ix].Equals(other.packedInt32_[ix])) return false;
|
| 6475 | if(packedInt64_.Count != other.packedInt64_.Count) return false;
|
| 6476 | for(int ix=0; ix < packedInt64_.Count; ix++)
|
| 6477 | if(!packedInt64_[ix].Equals(other.packedInt64_[ix])) return false;
|
| 6478 | if(packedUint32_.Count != other.packedUint32_.Count) return false;
|
| 6479 | for(int ix=0; ix < packedUint32_.Count; ix++)
|
| 6480 | if(!packedUint32_[ix].Equals(other.packedUint32_[ix])) return false;
|
| 6481 | if(packedUint64_.Count != other.packedUint64_.Count) return false;
|
| 6482 | for(int ix=0; ix < packedUint64_.Count; ix++)
|
| 6483 | if(!packedUint64_[ix].Equals(other.packedUint64_[ix])) return false;
|
| 6484 | if(packedSint32_.Count != other.packedSint32_.Count) return false;
|
| 6485 | for(int ix=0; ix < packedSint32_.Count; ix++)
|
| 6486 | if(!packedSint32_[ix].Equals(other.packedSint32_[ix])) return false;
|
| 6487 | if(packedSint64_.Count != other.packedSint64_.Count) return false;
|
| 6488 | for(int ix=0; ix < packedSint64_.Count; ix++)
|
| 6489 | if(!packedSint64_[ix].Equals(other.packedSint64_[ix])) return false;
|
| 6490 | if(packedFixed32_.Count != other.packedFixed32_.Count) return false;
|
| 6491 | for(int ix=0; ix < packedFixed32_.Count; ix++)
|
| 6492 | if(!packedFixed32_[ix].Equals(other.packedFixed32_[ix])) return false;
|
| 6493 | if(packedFixed64_.Count != other.packedFixed64_.Count) return false;
|
| 6494 | for(int ix=0; ix < packedFixed64_.Count; ix++)
|
| 6495 | if(!packedFixed64_[ix].Equals(other.packedFixed64_[ix])) return false;
|
| 6496 | if(packedSfixed32_.Count != other.packedSfixed32_.Count) return false;
|
| 6497 | for(int ix=0; ix < packedSfixed32_.Count; ix++)
|
| 6498 | if(!packedSfixed32_[ix].Equals(other.packedSfixed32_[ix])) return false;
|
| 6499 | if(packedSfixed64_.Count != other.packedSfixed64_.Count) return false;
|
| 6500 | for(int ix=0; ix < packedSfixed64_.Count; ix++)
|
| 6501 | if(!packedSfixed64_[ix].Equals(other.packedSfixed64_[ix])) return false;
|
| 6502 | if(packedFloat_.Count != other.packedFloat_.Count) return false;
|
| 6503 | for(int ix=0; ix < packedFloat_.Count; ix++)
|
| 6504 | if(!packedFloat_[ix].Equals(other.packedFloat_[ix])) return false;
|
| 6505 | if(packedDouble_.Count != other.packedDouble_.Count) return false;
|
| 6506 | for(int ix=0; ix < packedDouble_.Count; ix++)
|
| 6507 | if(!packedDouble_[ix].Equals(other.packedDouble_[ix])) return false;
|
| 6508 | if(packedBool_.Count != other.packedBool_.Count) return false;
|
| 6509 | for(int ix=0; ix < packedBool_.Count; ix++)
|
| 6510 | if(!packedBool_[ix].Equals(other.packedBool_[ix])) return false;
|
| 6511 | if(packedEnum_.Count != other.packedEnum_.Count) return false;
|
| 6512 | for(int ix=0; ix < packedEnum_.Count; ix++)
|
| 6513 | if(!packedEnum_[ix].Equals(other.packedEnum_[ix])) return false;
|
| 6514 | return true;
|
| 6515 | }
|
| 6516 |
|
| 6517 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 6518 | PrintField("packed_int32", packedInt32_, writer);
|
| 6519 | PrintField("packed_int64", packedInt64_, writer);
|
| 6520 | PrintField("packed_uint32", packedUint32_, writer);
|
| 6521 | PrintField("packed_uint64", packedUint64_, writer);
|
| 6522 | PrintField("packed_sint32", packedSint32_, writer);
|
| 6523 | PrintField("packed_sint64", packedSint64_, writer);
|
| 6524 | PrintField("packed_fixed32", packedFixed32_, writer);
|
| 6525 | PrintField("packed_fixed64", packedFixed64_, writer);
|
| 6526 | PrintField("packed_sfixed32", packedSfixed32_, writer);
|
| 6527 | PrintField("packed_sfixed64", packedSfixed64_, writer);
|
| 6528 | PrintField("packed_float", packedFloat_, writer);
|
| 6529 | PrintField("packed_double", packedDouble_, writer);
|
| 6530 | PrintField("packed_bool", packedBool_, writer);
|
| 6531 | PrintField("packed_enum", packedEnum_, writer);
|
| 6532 | }
|
| 6533 | #endregion
|
| 6534 |
|
| 6535 | public static TestPackedTypesLite ParseFrom(pb::ByteString data) {
|
| 6536 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6537 | }
|
| 6538 | public static TestPackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 6539 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6540 | }
|
| 6541 | public static TestPackedTypesLite ParseFrom(byte[] data) {
|
| 6542 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 6543 | }
|
| 6544 | public static TestPackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 6545 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 6546 | }
|
| 6547 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 6548 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6549 | }
|
| 6550 | public static TestPackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6551 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6552 | }
|
| 6553 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 6554 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 6555 | }
|
| 6556 | public static TestPackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 6557 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 6558 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6559 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6560 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 6561 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6562 | public static TestPackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6563 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 6564 | }
|
| 6565 | public static Builder CreateBuilder() { return new Builder(); }
|
| 6566 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 6567 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 6568 | public static Builder CreateBuilder(TestPackedTypesLite prototype) {
|
| 6569 | return (Builder) new Builder().MergeFrom(prototype);
|
| 6570 | }
|
| 6571 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 6572 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 6573 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 6574 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6575 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestPackedTypesLite, Builder> {
|
| 6576 | protected override Builder ThisBuilder {
|
| 6577 | get { return this; }
|
| 6578 | }
|
| 6579 | public Builder() {}
|
| 6580 |
|
| 6581 | TestPackedTypesLite result = new TestPackedTypesLite();
|
| 6582 |
|
| 6583 | protected override TestPackedTypesLite MessageBeingBuilt {
|
| 6584 | get { return result; }
|
| 6585 | }
|
| 6586 |
|
| 6587 | public override Builder Clear() {
|
| 6588 | result = new TestPackedTypesLite();
|
| 6589 | return this;
|
| 6590 | }
|
| 6591 |
|
| 6592 | public override Builder Clone() {
|
| 6593 | return new Builder().MergeFrom(result);
|
| 6594 | }
|
| 6595 |
|
| 6596 | public override TestPackedTypesLite DefaultInstanceForType {
|
| 6597 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance; }
|
| 6598 | }
|
| 6599 |
|
| 6600 | public override TestPackedTypesLite BuildPartial() {
|
| 6601 | if (result == null) {
|
| 6602 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 6603 | }
|
| 6604 | result.packedInt32_.MakeReadOnly();
|
| 6605 | result.packedInt64_.MakeReadOnly();
|
| 6606 | result.packedUint32_.MakeReadOnly();
|
| 6607 | result.packedUint64_.MakeReadOnly();
|
| 6608 | result.packedSint32_.MakeReadOnly();
|
| 6609 | result.packedSint64_.MakeReadOnly();
|
| 6610 | result.packedFixed32_.MakeReadOnly();
|
| 6611 | result.packedFixed64_.MakeReadOnly();
|
| 6612 | result.packedSfixed32_.MakeReadOnly();
|
| 6613 | result.packedSfixed64_.MakeReadOnly();
|
| 6614 | result.packedFloat_.MakeReadOnly();
|
| 6615 | result.packedDouble_.MakeReadOnly();
|
| 6616 | result.packedBool_.MakeReadOnly();
|
| 6617 | result.packedEnum_.MakeReadOnly();
|
| 6618 | TestPackedTypesLite returnMe = result;
|
| 6619 | result = null;
|
| 6620 | return returnMe;
|
| 6621 | }
|
| 6622 |
|
| 6623 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 6624 | if (other is TestPackedTypesLite) {
|
| 6625 | return MergeFrom((TestPackedTypesLite) other);
|
| 6626 | } else {
|
| 6627 | base.MergeFrom(other);
|
| 6628 | return this;
|
| 6629 | }
|
| 6630 | }
|
| 6631 |
|
| 6632 | public override Builder MergeFrom(TestPackedTypesLite other) {
|
| 6633 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedTypesLite.DefaultInstance) return this;
|
| 6634 | if (other.packedInt32_.Count != 0) {
|
| 6635 | base.AddRange(other.packedInt32_, result.packedInt32_);
|
| 6636 | }
|
| 6637 | if (other.packedInt64_.Count != 0) {
|
| 6638 | base.AddRange(other.packedInt64_, result.packedInt64_);
|
| 6639 | }
|
| 6640 | if (other.packedUint32_.Count != 0) {
|
| 6641 | base.AddRange(other.packedUint32_, result.packedUint32_);
|
| 6642 | }
|
| 6643 | if (other.packedUint64_.Count != 0) {
|
| 6644 | base.AddRange(other.packedUint64_, result.packedUint64_);
|
| 6645 | }
|
| 6646 | if (other.packedSint32_.Count != 0) {
|
| 6647 | base.AddRange(other.packedSint32_, result.packedSint32_);
|
| 6648 | }
|
| 6649 | if (other.packedSint64_.Count != 0) {
|
| 6650 | base.AddRange(other.packedSint64_, result.packedSint64_);
|
| 6651 | }
|
| 6652 | if (other.packedFixed32_.Count != 0) {
|
| 6653 | base.AddRange(other.packedFixed32_, result.packedFixed32_);
|
| 6654 | }
|
| 6655 | if (other.packedFixed64_.Count != 0) {
|
| 6656 | base.AddRange(other.packedFixed64_, result.packedFixed64_);
|
| 6657 | }
|
| 6658 | if (other.packedSfixed32_.Count != 0) {
|
| 6659 | base.AddRange(other.packedSfixed32_, result.packedSfixed32_);
|
| 6660 | }
|
| 6661 | if (other.packedSfixed64_.Count != 0) {
|
| 6662 | base.AddRange(other.packedSfixed64_, result.packedSfixed64_);
|
| 6663 | }
|
| 6664 | if (other.packedFloat_.Count != 0) {
|
| 6665 | base.AddRange(other.packedFloat_, result.packedFloat_);
|
| 6666 | }
|
| 6667 | if (other.packedDouble_.Count != 0) {
|
| 6668 | base.AddRange(other.packedDouble_, result.packedDouble_);
|
| 6669 | }
|
| 6670 | if (other.packedBool_.Count != 0) {
|
| 6671 | base.AddRange(other.packedBool_, result.packedBool_);
|
| 6672 | }
|
| 6673 | if (other.packedEnum_.Count != 0) {
|
| 6674 | base.AddRange(other.packedEnum_, result.packedEnum_);
|
| 6675 | }
|
| 6676 | return this;
|
| 6677 | }
|
| 6678 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6679 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6680 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 6681 | }
|
| 6682 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 6683 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6684 | uint tag;
|
| 6685 | string field_name;
|
| 6686 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 6687 | if(tag == 0 && field_name != null) {
|
| 6688 | int field_ordinal = global::System.Array.BinarySearch(_testPackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 6689 | if(field_ordinal >= 0)
|
| 6690 | tag = _testPackedTypesLiteFieldTags[field_ordinal];
|
| 6691 | else {
|
| 6692 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 6693 | continue;
|
| 6694 | }
|
| 6695 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6696 | switch (tag) {
|
| 6697 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 6698 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6699 | }
|
| 6700 | default: {
|
| 6701 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 6702 | return this;
|
| 6703 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6704 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6705 | break;
|
| 6706 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6707 | case 722:
|
| 6708 | case 720: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6709 | input.ReadInt32Array(tag, field_name, result.packedInt32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6710 | break;
|
| 6711 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6712 | case 730:
|
| 6713 | case 728: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6714 | input.ReadInt64Array(tag, field_name, result.packedInt64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6715 | break;
|
| 6716 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6717 | case 738:
|
| 6718 | case 736: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6719 | input.ReadUInt32Array(tag, field_name, result.packedUint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6720 | break;
|
| 6721 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6722 | case 746:
|
| 6723 | case 744: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6724 | input.ReadUInt64Array(tag, field_name, result.packedUint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6725 | break;
|
| 6726 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6727 | case 754:
|
| 6728 | case 752: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6729 | input.ReadSInt32Array(tag, field_name, result.packedSint32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6730 | break;
|
| 6731 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6732 | case 762:
|
| 6733 | case 760: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6734 | input.ReadSInt64Array(tag, field_name, result.packedSint64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6735 | break;
|
| 6736 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6737 | case 770:
|
| 6738 | case 773: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6739 | input.ReadFixed32Array(tag, field_name, result.packedFixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6740 | break;
|
| 6741 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6742 | case 778:
|
| 6743 | case 777: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6744 | input.ReadFixed64Array(tag, field_name, result.packedFixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6745 | break;
|
| 6746 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6747 | case 786:
|
| 6748 | case 789: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6749 | input.ReadSFixed32Array(tag, field_name, result.packedSfixed32_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6750 | break;
|
| 6751 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6752 | case 794:
|
| 6753 | case 793: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6754 | input.ReadSFixed64Array(tag, field_name, result.packedSfixed64_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6755 | break;
|
| 6756 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6757 | case 802:
|
| 6758 | case 805: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6759 | input.ReadFloatArray(tag, field_name, result.packedFloat_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6760 | break;
|
| 6761 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6762 | case 810:
|
| 6763 | case 809: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6764 | input.ReadDoubleArray(tag, field_name, result.packedDouble_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6765 | break;
|
| 6766 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6767 | case 818:
|
| 6768 | case 816: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 6769 | input.ReadBoolArray(tag, field_name, result.packedBool_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6770 | break;
|
| 6771 | }
|
csharptest | 6da3170 | 2011-06-04 12:52:57 -0500 | [diff] [blame] | 6772 | case 826:
|
| 6773 | case 824: {
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 6774 | scg::ICollection<object> unknownItems;
|
| 6775 | 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] | 6776 | break;
|
| 6777 | }
|
| 6778 | }
|
| 6779 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 6780 |
|
| 6781 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 6782 | }
|
| 6783 |
|
| 6784 |
|
| 6785 | public pbc::IPopsicleList<int> PackedInt32List {
|
| 6786 | get { return result.packedInt32_; }
|
| 6787 | }
|
| 6788 | public int PackedInt32Count {
|
| 6789 | get { return result.PackedInt32Count; }
|
| 6790 | }
|
| 6791 | public int GetPackedInt32(int index) {
|
| 6792 | return result.GetPackedInt32(index);
|
| 6793 | }
|
| 6794 | public Builder SetPackedInt32(int index, int value) {
|
| 6795 | result.packedInt32_[index] = value;
|
| 6796 | return this;
|
| 6797 | }
|
| 6798 | public Builder AddPackedInt32(int value) {
|
| 6799 | result.packedInt32_.Add(value);
|
| 6800 | return this;
|
| 6801 | }
|
| 6802 | public Builder AddRangePackedInt32(scg::IEnumerable<int> values) {
|
| 6803 | base.AddRange(values, result.packedInt32_);
|
| 6804 | return this;
|
| 6805 | }
|
| 6806 | public Builder ClearPackedInt32() {
|
| 6807 | result.packedInt32_.Clear();
|
| 6808 | return this;
|
| 6809 | }
|
| 6810 |
|
| 6811 | public pbc::IPopsicleList<long> PackedInt64List {
|
| 6812 | get { return result.packedInt64_; }
|
| 6813 | }
|
| 6814 | public int PackedInt64Count {
|
| 6815 | get { return result.PackedInt64Count; }
|
| 6816 | }
|
| 6817 | public long GetPackedInt64(int index) {
|
| 6818 | return result.GetPackedInt64(index);
|
| 6819 | }
|
| 6820 | public Builder SetPackedInt64(int index, long value) {
|
| 6821 | result.packedInt64_[index] = value;
|
| 6822 | return this;
|
| 6823 | }
|
| 6824 | public Builder AddPackedInt64(long value) {
|
| 6825 | result.packedInt64_.Add(value);
|
| 6826 | return this;
|
| 6827 | }
|
| 6828 | public Builder AddRangePackedInt64(scg::IEnumerable<long> values) {
|
| 6829 | base.AddRange(values, result.packedInt64_);
|
| 6830 | return this;
|
| 6831 | }
|
| 6832 | public Builder ClearPackedInt64() {
|
| 6833 | result.packedInt64_.Clear();
|
| 6834 | return this;
|
| 6835 | }
|
| 6836 |
|
| 6837 | [global::System.CLSCompliant(false)]
|
| 6838 | public pbc::IPopsicleList<uint> PackedUint32List {
|
| 6839 | get { return result.packedUint32_; }
|
| 6840 | }
|
| 6841 | public int PackedUint32Count {
|
| 6842 | get { return result.PackedUint32Count; }
|
| 6843 | }
|
| 6844 | [global::System.CLSCompliant(false)]
|
| 6845 | public uint GetPackedUint32(int index) {
|
| 6846 | return result.GetPackedUint32(index);
|
| 6847 | }
|
| 6848 | [global::System.CLSCompliant(false)]
|
| 6849 | public Builder SetPackedUint32(int index, uint value) {
|
| 6850 | result.packedUint32_[index] = value;
|
| 6851 | return this;
|
| 6852 | }
|
| 6853 | [global::System.CLSCompliant(false)]
|
| 6854 | public Builder AddPackedUint32(uint value) {
|
| 6855 | result.packedUint32_.Add(value);
|
| 6856 | return this;
|
| 6857 | }
|
| 6858 | [global::System.CLSCompliant(false)]
|
| 6859 | public Builder AddRangePackedUint32(scg::IEnumerable<uint> values) {
|
| 6860 | base.AddRange(values, result.packedUint32_);
|
| 6861 | return this;
|
| 6862 | }
|
| 6863 | public Builder ClearPackedUint32() {
|
| 6864 | result.packedUint32_.Clear();
|
| 6865 | return this;
|
| 6866 | }
|
| 6867 |
|
| 6868 | [global::System.CLSCompliant(false)]
|
| 6869 | public pbc::IPopsicleList<ulong> PackedUint64List {
|
| 6870 | get { return result.packedUint64_; }
|
| 6871 | }
|
| 6872 | public int PackedUint64Count {
|
| 6873 | get { return result.PackedUint64Count; }
|
| 6874 | }
|
| 6875 | [global::System.CLSCompliant(false)]
|
| 6876 | public ulong GetPackedUint64(int index) {
|
| 6877 | return result.GetPackedUint64(index);
|
| 6878 | }
|
| 6879 | [global::System.CLSCompliant(false)]
|
| 6880 | public Builder SetPackedUint64(int index, ulong value) {
|
| 6881 | result.packedUint64_[index] = value;
|
| 6882 | return this;
|
| 6883 | }
|
| 6884 | [global::System.CLSCompliant(false)]
|
| 6885 | public Builder AddPackedUint64(ulong value) {
|
| 6886 | result.packedUint64_.Add(value);
|
| 6887 | return this;
|
| 6888 | }
|
| 6889 | [global::System.CLSCompliant(false)]
|
| 6890 | public Builder AddRangePackedUint64(scg::IEnumerable<ulong> values) {
|
| 6891 | base.AddRange(values, result.packedUint64_);
|
| 6892 | return this;
|
| 6893 | }
|
| 6894 | public Builder ClearPackedUint64() {
|
| 6895 | result.packedUint64_.Clear();
|
| 6896 | return this;
|
| 6897 | }
|
| 6898 |
|
| 6899 | public pbc::IPopsicleList<int> PackedSint32List {
|
| 6900 | get { return result.packedSint32_; }
|
| 6901 | }
|
| 6902 | public int PackedSint32Count {
|
| 6903 | get { return result.PackedSint32Count; }
|
| 6904 | }
|
| 6905 | public int GetPackedSint32(int index) {
|
| 6906 | return result.GetPackedSint32(index);
|
| 6907 | }
|
| 6908 | public Builder SetPackedSint32(int index, int value) {
|
| 6909 | result.packedSint32_[index] = value;
|
| 6910 | return this;
|
| 6911 | }
|
| 6912 | public Builder AddPackedSint32(int value) {
|
| 6913 | result.packedSint32_.Add(value);
|
| 6914 | return this;
|
| 6915 | }
|
| 6916 | public Builder AddRangePackedSint32(scg::IEnumerable<int> values) {
|
| 6917 | base.AddRange(values, result.packedSint32_);
|
| 6918 | return this;
|
| 6919 | }
|
| 6920 | public Builder ClearPackedSint32() {
|
| 6921 | result.packedSint32_.Clear();
|
| 6922 | return this;
|
| 6923 | }
|
| 6924 |
|
| 6925 | public pbc::IPopsicleList<long> PackedSint64List {
|
| 6926 | get { return result.packedSint64_; }
|
| 6927 | }
|
| 6928 | public int PackedSint64Count {
|
| 6929 | get { return result.PackedSint64Count; }
|
| 6930 | }
|
| 6931 | public long GetPackedSint64(int index) {
|
| 6932 | return result.GetPackedSint64(index);
|
| 6933 | }
|
| 6934 | public Builder SetPackedSint64(int index, long value) {
|
| 6935 | result.packedSint64_[index] = value;
|
| 6936 | return this;
|
| 6937 | }
|
| 6938 | public Builder AddPackedSint64(long value) {
|
| 6939 | result.packedSint64_.Add(value);
|
| 6940 | return this;
|
| 6941 | }
|
| 6942 | public Builder AddRangePackedSint64(scg::IEnumerable<long> values) {
|
| 6943 | base.AddRange(values, result.packedSint64_);
|
| 6944 | return this;
|
| 6945 | }
|
| 6946 | public Builder ClearPackedSint64() {
|
| 6947 | result.packedSint64_.Clear();
|
| 6948 | return this;
|
| 6949 | }
|
| 6950 |
|
| 6951 | [global::System.CLSCompliant(false)]
|
| 6952 | public pbc::IPopsicleList<uint> PackedFixed32List {
|
| 6953 | get { return result.packedFixed32_; }
|
| 6954 | }
|
| 6955 | public int PackedFixed32Count {
|
| 6956 | get { return result.PackedFixed32Count; }
|
| 6957 | }
|
| 6958 | [global::System.CLSCompliant(false)]
|
| 6959 | public uint GetPackedFixed32(int index) {
|
| 6960 | return result.GetPackedFixed32(index);
|
| 6961 | }
|
| 6962 | [global::System.CLSCompliant(false)]
|
| 6963 | public Builder SetPackedFixed32(int index, uint value) {
|
| 6964 | result.packedFixed32_[index] = value;
|
| 6965 | return this;
|
| 6966 | }
|
| 6967 | [global::System.CLSCompliant(false)]
|
| 6968 | public Builder AddPackedFixed32(uint value) {
|
| 6969 | result.packedFixed32_.Add(value);
|
| 6970 | return this;
|
| 6971 | }
|
| 6972 | [global::System.CLSCompliant(false)]
|
| 6973 | public Builder AddRangePackedFixed32(scg::IEnumerable<uint> values) {
|
| 6974 | base.AddRange(values, result.packedFixed32_);
|
| 6975 | return this;
|
| 6976 | }
|
| 6977 | public Builder ClearPackedFixed32() {
|
| 6978 | result.packedFixed32_.Clear();
|
| 6979 | return this;
|
| 6980 | }
|
| 6981 |
|
| 6982 | [global::System.CLSCompliant(false)]
|
| 6983 | public pbc::IPopsicleList<ulong> PackedFixed64List {
|
| 6984 | get { return result.packedFixed64_; }
|
| 6985 | }
|
| 6986 | public int PackedFixed64Count {
|
| 6987 | get { return result.PackedFixed64Count; }
|
| 6988 | }
|
| 6989 | [global::System.CLSCompliant(false)]
|
| 6990 | public ulong GetPackedFixed64(int index) {
|
| 6991 | return result.GetPackedFixed64(index);
|
| 6992 | }
|
| 6993 | [global::System.CLSCompliant(false)]
|
| 6994 | public Builder SetPackedFixed64(int index, ulong value) {
|
| 6995 | result.packedFixed64_[index] = value;
|
| 6996 | return this;
|
| 6997 | }
|
| 6998 | [global::System.CLSCompliant(false)]
|
| 6999 | public Builder AddPackedFixed64(ulong value) {
|
| 7000 | result.packedFixed64_.Add(value);
|
| 7001 | return this;
|
| 7002 | }
|
| 7003 | [global::System.CLSCompliant(false)]
|
| 7004 | public Builder AddRangePackedFixed64(scg::IEnumerable<ulong> values) {
|
| 7005 | base.AddRange(values, result.packedFixed64_);
|
| 7006 | return this;
|
| 7007 | }
|
| 7008 | public Builder ClearPackedFixed64() {
|
| 7009 | result.packedFixed64_.Clear();
|
| 7010 | return this;
|
| 7011 | }
|
| 7012 |
|
| 7013 | public pbc::IPopsicleList<int> PackedSfixed32List {
|
| 7014 | get { return result.packedSfixed32_; }
|
| 7015 | }
|
| 7016 | public int PackedSfixed32Count {
|
| 7017 | get { return result.PackedSfixed32Count; }
|
| 7018 | }
|
| 7019 | public int GetPackedSfixed32(int index) {
|
| 7020 | return result.GetPackedSfixed32(index);
|
| 7021 | }
|
| 7022 | public Builder SetPackedSfixed32(int index, int value) {
|
| 7023 | result.packedSfixed32_[index] = value;
|
| 7024 | return this;
|
| 7025 | }
|
| 7026 | public Builder AddPackedSfixed32(int value) {
|
| 7027 | result.packedSfixed32_.Add(value);
|
| 7028 | return this;
|
| 7029 | }
|
| 7030 | public Builder AddRangePackedSfixed32(scg::IEnumerable<int> values) {
|
| 7031 | base.AddRange(values, result.packedSfixed32_);
|
| 7032 | return this;
|
| 7033 | }
|
| 7034 | public Builder ClearPackedSfixed32() {
|
| 7035 | result.packedSfixed32_.Clear();
|
| 7036 | return this;
|
| 7037 | }
|
| 7038 |
|
| 7039 | public pbc::IPopsicleList<long> PackedSfixed64List {
|
| 7040 | get { return result.packedSfixed64_; }
|
| 7041 | }
|
| 7042 | public int PackedSfixed64Count {
|
| 7043 | get { return result.PackedSfixed64Count; }
|
| 7044 | }
|
| 7045 | public long GetPackedSfixed64(int index) {
|
| 7046 | return result.GetPackedSfixed64(index);
|
| 7047 | }
|
| 7048 | public Builder SetPackedSfixed64(int index, long value) {
|
| 7049 | result.packedSfixed64_[index] = value;
|
| 7050 | return this;
|
| 7051 | }
|
| 7052 | public Builder AddPackedSfixed64(long value) {
|
| 7053 | result.packedSfixed64_.Add(value);
|
| 7054 | return this;
|
| 7055 | }
|
| 7056 | public Builder AddRangePackedSfixed64(scg::IEnumerable<long> values) {
|
| 7057 | base.AddRange(values, result.packedSfixed64_);
|
| 7058 | return this;
|
| 7059 | }
|
| 7060 | public Builder ClearPackedSfixed64() {
|
| 7061 | result.packedSfixed64_.Clear();
|
| 7062 | return this;
|
| 7063 | }
|
| 7064 |
|
| 7065 | public pbc::IPopsicleList<float> PackedFloatList {
|
| 7066 | get { return result.packedFloat_; }
|
| 7067 | }
|
| 7068 | public int PackedFloatCount {
|
| 7069 | get { return result.PackedFloatCount; }
|
| 7070 | }
|
| 7071 | public float GetPackedFloat(int index) {
|
| 7072 | return result.GetPackedFloat(index);
|
| 7073 | }
|
| 7074 | public Builder SetPackedFloat(int index, float value) {
|
| 7075 | result.packedFloat_[index] = value;
|
| 7076 | return this;
|
| 7077 | }
|
| 7078 | public Builder AddPackedFloat(float value) {
|
| 7079 | result.packedFloat_.Add(value);
|
| 7080 | return this;
|
| 7081 | }
|
| 7082 | public Builder AddRangePackedFloat(scg::IEnumerable<float> values) {
|
| 7083 | base.AddRange(values, result.packedFloat_);
|
| 7084 | return this;
|
| 7085 | }
|
| 7086 | public Builder ClearPackedFloat() {
|
| 7087 | result.packedFloat_.Clear();
|
| 7088 | return this;
|
| 7089 | }
|
| 7090 |
|
| 7091 | public pbc::IPopsicleList<double> PackedDoubleList {
|
| 7092 | get { return result.packedDouble_; }
|
| 7093 | }
|
| 7094 | public int PackedDoubleCount {
|
| 7095 | get { return result.PackedDoubleCount; }
|
| 7096 | }
|
| 7097 | public double GetPackedDouble(int index) {
|
| 7098 | return result.GetPackedDouble(index);
|
| 7099 | }
|
| 7100 | public Builder SetPackedDouble(int index, double value) {
|
| 7101 | result.packedDouble_[index] = value;
|
| 7102 | return this;
|
| 7103 | }
|
| 7104 | public Builder AddPackedDouble(double value) {
|
| 7105 | result.packedDouble_.Add(value);
|
| 7106 | return this;
|
| 7107 | }
|
| 7108 | public Builder AddRangePackedDouble(scg::IEnumerable<double> values) {
|
| 7109 | base.AddRange(values, result.packedDouble_);
|
| 7110 | return this;
|
| 7111 | }
|
| 7112 | public Builder ClearPackedDouble() {
|
| 7113 | result.packedDouble_.Clear();
|
| 7114 | return this;
|
| 7115 | }
|
| 7116 |
|
| 7117 | public pbc::IPopsicleList<bool> PackedBoolList {
|
| 7118 | get { return result.packedBool_; }
|
| 7119 | }
|
| 7120 | public int PackedBoolCount {
|
| 7121 | get { return result.PackedBoolCount; }
|
| 7122 | }
|
| 7123 | public bool GetPackedBool(int index) {
|
| 7124 | return result.GetPackedBool(index);
|
| 7125 | }
|
| 7126 | public Builder SetPackedBool(int index, bool value) {
|
| 7127 | result.packedBool_[index] = value;
|
| 7128 | return this;
|
| 7129 | }
|
| 7130 | public Builder AddPackedBool(bool value) {
|
| 7131 | result.packedBool_.Add(value);
|
| 7132 | return this;
|
| 7133 | }
|
| 7134 | public Builder AddRangePackedBool(scg::IEnumerable<bool> values) {
|
| 7135 | base.AddRange(values, result.packedBool_);
|
| 7136 | return this;
|
| 7137 | }
|
| 7138 | public Builder ClearPackedBool() {
|
| 7139 | result.packedBool_.Clear();
|
| 7140 | return this;
|
| 7141 | }
|
| 7142 |
|
| 7143 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> PackedEnumList {
|
| 7144 | get { return result.packedEnum_; }
|
| 7145 | }
|
| 7146 | public int PackedEnumCount {
|
| 7147 | get { return result.PackedEnumCount; }
|
| 7148 | }
|
| 7149 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetPackedEnum(int index) {
|
| 7150 | return result.GetPackedEnum(index);
|
| 7151 | }
|
| 7152 | public Builder SetPackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7153 | result.packedEnum_[index] = value;
|
| 7154 | return this;
|
| 7155 | }
|
| 7156 | public Builder AddPackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 7157 | result.packedEnum_.Add(value);
|
| 7158 | return this;
|
| 7159 | }
|
| 7160 | public Builder AddRangePackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 7161 | base.AddRange(values, result.packedEnum_);
|
| 7162 | return this;
|
| 7163 | }
|
| 7164 | public Builder ClearPackedEnum() {
|
| 7165 | result.packedEnum_.Clear();
|
| 7166 | return this;
|
| 7167 | }
|
| 7168 | }
|
| 7169 | static TestPackedTypesLite() {
|
| 7170 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 7171 | }
|
| 7172 | }
|
| 7173 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 7174 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7175 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7176 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7177 | public sealed partial class TestUnpackedTypesLite : pb::GeneratedMessageLite<TestUnpackedTypesLite, TestUnpackedTypesLite.Builder> {
|
| 7178 | private static readonly TestUnpackedTypesLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7179 | 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" };
|
| 7180 | 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] | 7181 | public static TestUnpackedTypesLite DefaultInstance {
|
| 7182 | get { return defaultInstance; }
|
| 7183 | }
|
| 7184 |
|
| 7185 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7186 | get { return defaultInstance; }
|
| 7187 | }
|
| 7188 |
|
| 7189 | protected override TestUnpackedTypesLite ThisMessage {
|
| 7190 | get { return this; }
|
| 7191 | }
|
| 7192 |
|
| 7193 | public const int UnpackedInt32FieldNumber = 90;
|
| 7194 | private pbc::PopsicleList<int> unpackedInt32_ = new pbc::PopsicleList<int>();
|
| 7195 | public scg::IList<int> UnpackedInt32List {
|
| 7196 | get { return pbc::Lists.AsReadOnly(unpackedInt32_); }
|
| 7197 | }
|
| 7198 | public int UnpackedInt32Count {
|
| 7199 | get { return unpackedInt32_.Count; }
|
| 7200 | }
|
| 7201 | public int GetUnpackedInt32(int index) {
|
| 7202 | return unpackedInt32_[index];
|
| 7203 | }
|
| 7204 |
|
| 7205 | public const int UnpackedInt64FieldNumber = 91;
|
| 7206 | private pbc::PopsicleList<long> unpackedInt64_ = new pbc::PopsicleList<long>();
|
| 7207 | public scg::IList<long> UnpackedInt64List {
|
| 7208 | get { return pbc::Lists.AsReadOnly(unpackedInt64_); }
|
| 7209 | }
|
| 7210 | public int UnpackedInt64Count {
|
| 7211 | get { return unpackedInt64_.Count; }
|
| 7212 | }
|
| 7213 | public long GetUnpackedInt64(int index) {
|
| 7214 | return unpackedInt64_[index];
|
| 7215 | }
|
| 7216 |
|
| 7217 | public const int UnpackedUint32FieldNumber = 92;
|
| 7218 | private pbc::PopsicleList<uint> unpackedUint32_ = new pbc::PopsicleList<uint>();
|
| 7219 | [global::System.CLSCompliant(false)]
|
| 7220 | public scg::IList<uint> UnpackedUint32List {
|
| 7221 | get { return pbc::Lists.AsReadOnly(unpackedUint32_); }
|
| 7222 | }
|
| 7223 | public int UnpackedUint32Count {
|
| 7224 | get { return unpackedUint32_.Count; }
|
| 7225 | }
|
| 7226 | [global::System.CLSCompliant(false)]
|
| 7227 | public uint GetUnpackedUint32(int index) {
|
| 7228 | return unpackedUint32_[index];
|
| 7229 | }
|
| 7230 |
|
| 7231 | public const int UnpackedUint64FieldNumber = 93;
|
| 7232 | private pbc::PopsicleList<ulong> unpackedUint64_ = new pbc::PopsicleList<ulong>();
|
| 7233 | [global::System.CLSCompliant(false)]
|
| 7234 | public scg::IList<ulong> UnpackedUint64List {
|
| 7235 | get { return pbc::Lists.AsReadOnly(unpackedUint64_); }
|
| 7236 | }
|
| 7237 | public int UnpackedUint64Count {
|
| 7238 | get { return unpackedUint64_.Count; }
|
| 7239 | }
|
| 7240 | [global::System.CLSCompliant(false)]
|
| 7241 | public ulong GetUnpackedUint64(int index) {
|
| 7242 | return unpackedUint64_[index];
|
| 7243 | }
|
| 7244 |
|
| 7245 | public const int UnpackedSint32FieldNumber = 94;
|
| 7246 | private pbc::PopsicleList<int> unpackedSint32_ = new pbc::PopsicleList<int>();
|
| 7247 | public scg::IList<int> UnpackedSint32List {
|
| 7248 | get { return pbc::Lists.AsReadOnly(unpackedSint32_); }
|
| 7249 | }
|
| 7250 | public int UnpackedSint32Count {
|
| 7251 | get { return unpackedSint32_.Count; }
|
| 7252 | }
|
| 7253 | public int GetUnpackedSint32(int index) {
|
| 7254 | return unpackedSint32_[index];
|
| 7255 | }
|
| 7256 |
|
| 7257 | public const int UnpackedSint64FieldNumber = 95;
|
| 7258 | private pbc::PopsicleList<long> unpackedSint64_ = new pbc::PopsicleList<long>();
|
| 7259 | public scg::IList<long> UnpackedSint64List {
|
| 7260 | get { return pbc::Lists.AsReadOnly(unpackedSint64_); }
|
| 7261 | }
|
| 7262 | public int UnpackedSint64Count {
|
| 7263 | get { return unpackedSint64_.Count; }
|
| 7264 | }
|
| 7265 | public long GetUnpackedSint64(int index) {
|
| 7266 | return unpackedSint64_[index];
|
| 7267 | }
|
| 7268 |
|
| 7269 | public const int UnpackedFixed32FieldNumber = 96;
|
| 7270 | private pbc::PopsicleList<uint> unpackedFixed32_ = new pbc::PopsicleList<uint>();
|
| 7271 | [global::System.CLSCompliant(false)]
|
| 7272 | public scg::IList<uint> UnpackedFixed32List {
|
| 7273 | get { return pbc::Lists.AsReadOnly(unpackedFixed32_); }
|
| 7274 | }
|
| 7275 | public int UnpackedFixed32Count {
|
| 7276 | get { return unpackedFixed32_.Count; }
|
| 7277 | }
|
| 7278 | [global::System.CLSCompliant(false)]
|
| 7279 | public uint GetUnpackedFixed32(int index) {
|
| 7280 | return unpackedFixed32_[index];
|
| 7281 | }
|
| 7282 |
|
| 7283 | public const int UnpackedFixed64FieldNumber = 97;
|
| 7284 | private pbc::PopsicleList<ulong> unpackedFixed64_ = new pbc::PopsicleList<ulong>();
|
| 7285 | [global::System.CLSCompliant(false)]
|
| 7286 | public scg::IList<ulong> UnpackedFixed64List {
|
| 7287 | get { return pbc::Lists.AsReadOnly(unpackedFixed64_); }
|
| 7288 | }
|
| 7289 | public int UnpackedFixed64Count {
|
| 7290 | get { return unpackedFixed64_.Count; }
|
| 7291 | }
|
| 7292 | [global::System.CLSCompliant(false)]
|
| 7293 | public ulong GetUnpackedFixed64(int index) {
|
| 7294 | return unpackedFixed64_[index];
|
| 7295 | }
|
| 7296 |
|
| 7297 | public const int UnpackedSfixed32FieldNumber = 98;
|
| 7298 | private pbc::PopsicleList<int> unpackedSfixed32_ = new pbc::PopsicleList<int>();
|
| 7299 | public scg::IList<int> UnpackedSfixed32List {
|
| 7300 | get { return pbc::Lists.AsReadOnly(unpackedSfixed32_); }
|
| 7301 | }
|
| 7302 | public int UnpackedSfixed32Count {
|
| 7303 | get { return unpackedSfixed32_.Count; }
|
| 7304 | }
|
| 7305 | public int GetUnpackedSfixed32(int index) {
|
| 7306 | return unpackedSfixed32_[index];
|
| 7307 | }
|
| 7308 |
|
| 7309 | public const int UnpackedSfixed64FieldNumber = 99;
|
| 7310 | private pbc::PopsicleList<long> unpackedSfixed64_ = new pbc::PopsicleList<long>();
|
| 7311 | public scg::IList<long> UnpackedSfixed64List {
|
| 7312 | get { return pbc::Lists.AsReadOnly(unpackedSfixed64_); }
|
| 7313 | }
|
| 7314 | public int UnpackedSfixed64Count {
|
| 7315 | get { return unpackedSfixed64_.Count; }
|
| 7316 | }
|
| 7317 | public long GetUnpackedSfixed64(int index) {
|
| 7318 | return unpackedSfixed64_[index];
|
| 7319 | }
|
| 7320 |
|
| 7321 | public const int UnpackedFloatFieldNumber = 100;
|
| 7322 | private pbc::PopsicleList<float> unpackedFloat_ = new pbc::PopsicleList<float>();
|
| 7323 | public scg::IList<float> UnpackedFloatList {
|
| 7324 | get { return pbc::Lists.AsReadOnly(unpackedFloat_); }
|
| 7325 | }
|
| 7326 | public int UnpackedFloatCount {
|
| 7327 | get { return unpackedFloat_.Count; }
|
| 7328 | }
|
| 7329 | public float GetUnpackedFloat(int index) {
|
| 7330 | return unpackedFloat_[index];
|
| 7331 | }
|
| 7332 |
|
| 7333 | public const int UnpackedDoubleFieldNumber = 101;
|
| 7334 | private pbc::PopsicleList<double> unpackedDouble_ = new pbc::PopsicleList<double>();
|
| 7335 | public scg::IList<double> UnpackedDoubleList {
|
| 7336 | get { return pbc::Lists.AsReadOnly(unpackedDouble_); }
|
| 7337 | }
|
| 7338 | public int UnpackedDoubleCount {
|
| 7339 | get { return unpackedDouble_.Count; }
|
| 7340 | }
|
| 7341 | public double GetUnpackedDouble(int index) {
|
| 7342 | return unpackedDouble_[index];
|
| 7343 | }
|
| 7344 |
|
| 7345 | public const int UnpackedBoolFieldNumber = 102;
|
| 7346 | private pbc::PopsicleList<bool> unpackedBool_ = new pbc::PopsicleList<bool>();
|
| 7347 | public scg::IList<bool> UnpackedBoolList {
|
| 7348 | get { return pbc::Lists.AsReadOnly(unpackedBool_); }
|
| 7349 | }
|
| 7350 | public int UnpackedBoolCount {
|
| 7351 | get { return unpackedBool_.Count; }
|
| 7352 | }
|
| 7353 | public bool GetUnpackedBool(int index) {
|
| 7354 | return unpackedBool_[index];
|
| 7355 | }
|
| 7356 |
|
| 7357 | public const int UnpackedEnumFieldNumber = 103;
|
| 7358 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> unpackedEnum_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>();
|
| 7359 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 7360 | get { return pbc::Lists.AsReadOnly(unpackedEnum_); }
|
| 7361 | }
|
| 7362 | public int UnpackedEnumCount {
|
| 7363 | get { return unpackedEnum_.Count; }
|
| 7364 | }
|
| 7365 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 7366 | return unpackedEnum_[index];
|
| 7367 | }
|
| 7368 |
|
| 7369 | public override bool IsInitialized {
|
| 7370 | get {
|
| 7371 | return true;
|
| 7372 | }
|
| 7373 | }
|
| 7374 |
|
| 7375 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 7376 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7377 | string[] field_names = _testUnpackedTypesLiteFieldNames;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7378 | if (unpackedInt32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7379 | output.WriteInt32Array(90, field_names[6], unpackedInt32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7380 | }
|
| 7381 | if (unpackedInt64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7382 | output.WriteInt64Array(91, field_names[7], unpackedInt64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7383 | }
|
| 7384 | if (unpackedUint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7385 | output.WriteUInt32Array(92, field_names[12], unpackedUint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7386 | }
|
| 7387 | if (unpackedUint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7388 | output.WriteUInt64Array(93, field_names[13], unpackedUint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7389 | }
|
| 7390 | if (unpackedSint32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7391 | output.WriteSInt32Array(94, field_names[10], unpackedSint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7392 | }
|
| 7393 | if (unpackedSint64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7394 | output.WriteSInt64Array(95, field_names[11], unpackedSint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7395 | }
|
| 7396 | if (unpackedFixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7397 | output.WriteFixed32Array(96, field_names[3], unpackedFixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7398 | }
|
| 7399 | if (unpackedFixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7400 | output.WriteFixed64Array(97, field_names[4], unpackedFixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7401 | }
|
| 7402 | if (unpackedSfixed32_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7403 | output.WriteSFixed32Array(98, field_names[8], unpackedSfixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7404 | }
|
| 7405 | if (unpackedSfixed64_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7406 | output.WriteSFixed64Array(99, field_names[9], unpackedSfixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7407 | }
|
| 7408 | if (unpackedFloat_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7409 | output.WriteFloatArray(100, field_names[5], unpackedFloat_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7410 | }
|
| 7411 | if (unpackedDouble_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7412 | output.WriteDoubleArray(101, field_names[1], unpackedDouble_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7413 | }
|
| 7414 | if (unpackedBool_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7415 | output.WriteBoolArray(102, field_names[0], unpackedBool_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7416 | }
|
| 7417 | if (unpackedEnum_.Count > 0) {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7418 | output.WriteEnumArray(103, field_names[2], unpackedEnum_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7419 | }
|
| 7420 | }
|
| 7421 |
|
| 7422 | private int memoizedSerializedSize = -1;
|
| 7423 | public override int SerializedSize {
|
| 7424 | get {
|
| 7425 | int size = memoizedSerializedSize;
|
| 7426 | if (size != -1) return size;
|
| 7427 |
|
| 7428 | size = 0;
|
| 7429 | {
|
| 7430 | int dataSize = 0;
|
| 7431 | foreach (int element in UnpackedInt32List) {
|
| 7432 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 7433 | }
|
| 7434 | size += dataSize;
|
| 7435 | size += 2 * unpackedInt32_.Count;
|
| 7436 | }
|
| 7437 | {
|
| 7438 | int dataSize = 0;
|
| 7439 | foreach (long element in UnpackedInt64List) {
|
| 7440 | dataSize += pb::CodedOutputStream.ComputeInt64SizeNoTag(element);
|
| 7441 | }
|
| 7442 | size += dataSize;
|
| 7443 | size += 2 * unpackedInt64_.Count;
|
| 7444 | }
|
| 7445 | {
|
| 7446 | int dataSize = 0;
|
| 7447 | foreach (uint element in UnpackedUint32List) {
|
| 7448 | dataSize += pb::CodedOutputStream.ComputeUInt32SizeNoTag(element);
|
| 7449 | }
|
| 7450 | size += dataSize;
|
| 7451 | size += 2 * unpackedUint32_.Count;
|
| 7452 | }
|
| 7453 | {
|
| 7454 | int dataSize = 0;
|
| 7455 | foreach (ulong element in UnpackedUint64List) {
|
| 7456 | dataSize += pb::CodedOutputStream.ComputeUInt64SizeNoTag(element);
|
| 7457 | }
|
| 7458 | size += dataSize;
|
| 7459 | size += 2 * unpackedUint64_.Count;
|
| 7460 | }
|
| 7461 | {
|
| 7462 | int dataSize = 0;
|
| 7463 | foreach (int element in UnpackedSint32List) {
|
| 7464 | dataSize += pb::CodedOutputStream.ComputeSInt32SizeNoTag(element);
|
| 7465 | }
|
| 7466 | size += dataSize;
|
| 7467 | size += 2 * unpackedSint32_.Count;
|
| 7468 | }
|
| 7469 | {
|
| 7470 | int dataSize = 0;
|
| 7471 | foreach (long element in UnpackedSint64List) {
|
| 7472 | dataSize += pb::CodedOutputStream.ComputeSInt64SizeNoTag(element);
|
| 7473 | }
|
| 7474 | size += dataSize;
|
| 7475 | size += 2 * unpackedSint64_.Count;
|
| 7476 | }
|
| 7477 | {
|
| 7478 | int dataSize = 0;
|
| 7479 | dataSize = 4 * unpackedFixed32_.Count;
|
| 7480 | size += dataSize;
|
| 7481 | size += 2 * unpackedFixed32_.Count;
|
| 7482 | }
|
| 7483 | {
|
| 7484 | int dataSize = 0;
|
| 7485 | dataSize = 8 * unpackedFixed64_.Count;
|
| 7486 | size += dataSize;
|
| 7487 | size += 2 * unpackedFixed64_.Count;
|
| 7488 | }
|
| 7489 | {
|
| 7490 | int dataSize = 0;
|
| 7491 | dataSize = 4 * unpackedSfixed32_.Count;
|
| 7492 | size += dataSize;
|
| 7493 | size += 2 * unpackedSfixed32_.Count;
|
| 7494 | }
|
| 7495 | {
|
| 7496 | int dataSize = 0;
|
| 7497 | dataSize = 8 * unpackedSfixed64_.Count;
|
| 7498 | size += dataSize;
|
| 7499 | size += 2 * unpackedSfixed64_.Count;
|
| 7500 | }
|
| 7501 | {
|
| 7502 | int dataSize = 0;
|
| 7503 | dataSize = 4 * unpackedFloat_.Count;
|
| 7504 | size += dataSize;
|
| 7505 | size += 2 * unpackedFloat_.Count;
|
| 7506 | }
|
| 7507 | {
|
| 7508 | int dataSize = 0;
|
| 7509 | dataSize = 8 * unpackedDouble_.Count;
|
| 7510 | size += dataSize;
|
| 7511 | size += 2 * unpackedDouble_.Count;
|
| 7512 | }
|
| 7513 | {
|
| 7514 | int dataSize = 0;
|
| 7515 | dataSize = 1 * unpackedBool_.Count;
|
| 7516 | size += dataSize;
|
| 7517 | size += 2 * unpackedBool_.Count;
|
| 7518 | }
|
| 7519 | {
|
| 7520 | int dataSize = 0;
|
| 7521 | if (unpackedEnum_.Count > 0) {
|
| 7522 | foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite element in unpackedEnum_) {
|
| 7523 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 7524 | }
|
| 7525 | size += dataSize;
|
| 7526 | size += 2 * unpackedEnum_.Count;
|
| 7527 | }
|
| 7528 | }
|
| 7529 | memoizedSerializedSize = size;
|
| 7530 | return size;
|
| 7531 | }
|
| 7532 | }
|
| 7533 |
|
| 7534 | #region Lite runtime methods
|
| 7535 | public override int GetHashCode() {
|
| 7536 | int hash = GetType().GetHashCode();
|
| 7537 | foreach(int i in unpackedInt32_)
|
| 7538 | hash ^= i.GetHashCode();
|
| 7539 | foreach(long i in unpackedInt64_)
|
| 7540 | hash ^= i.GetHashCode();
|
| 7541 | foreach(uint i in unpackedUint32_)
|
| 7542 | hash ^= i.GetHashCode();
|
| 7543 | foreach(ulong i in unpackedUint64_)
|
| 7544 | hash ^= i.GetHashCode();
|
| 7545 | foreach(int i in unpackedSint32_)
|
| 7546 | hash ^= i.GetHashCode();
|
| 7547 | foreach(long i in unpackedSint64_)
|
| 7548 | hash ^= i.GetHashCode();
|
| 7549 | foreach(uint i in unpackedFixed32_)
|
| 7550 | hash ^= i.GetHashCode();
|
| 7551 | foreach(ulong i in unpackedFixed64_)
|
| 7552 | hash ^= i.GetHashCode();
|
| 7553 | foreach(int i in unpackedSfixed32_)
|
| 7554 | hash ^= i.GetHashCode();
|
| 7555 | foreach(long i in unpackedSfixed64_)
|
| 7556 | hash ^= i.GetHashCode();
|
| 7557 | foreach(float i in unpackedFloat_)
|
| 7558 | hash ^= i.GetHashCode();
|
| 7559 | foreach(double i in unpackedDouble_)
|
| 7560 | hash ^= i.GetHashCode();
|
| 7561 | foreach(bool i in unpackedBool_)
|
| 7562 | hash ^= i.GetHashCode();
|
| 7563 | foreach(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite i in unpackedEnum_)
|
| 7564 | hash ^= i.GetHashCode();
|
| 7565 | return hash;
|
| 7566 | }
|
| 7567 |
|
| 7568 | public override bool Equals(object obj) {
|
| 7569 | TestUnpackedTypesLite other = obj as TestUnpackedTypesLite;
|
| 7570 | if (other == null) return false;
|
| 7571 | if(unpackedInt32_.Count != other.unpackedInt32_.Count) return false;
|
| 7572 | for(int ix=0; ix < unpackedInt32_.Count; ix++)
|
| 7573 | if(!unpackedInt32_[ix].Equals(other.unpackedInt32_[ix])) return false;
|
| 7574 | if(unpackedInt64_.Count != other.unpackedInt64_.Count) return false;
|
| 7575 | for(int ix=0; ix < unpackedInt64_.Count; ix++)
|
| 7576 | if(!unpackedInt64_[ix].Equals(other.unpackedInt64_[ix])) return false;
|
| 7577 | if(unpackedUint32_.Count != other.unpackedUint32_.Count) return false;
|
| 7578 | for(int ix=0; ix < unpackedUint32_.Count; ix++)
|
| 7579 | if(!unpackedUint32_[ix].Equals(other.unpackedUint32_[ix])) return false;
|
| 7580 | if(unpackedUint64_.Count != other.unpackedUint64_.Count) return false;
|
| 7581 | for(int ix=0; ix < unpackedUint64_.Count; ix++)
|
| 7582 | if(!unpackedUint64_[ix].Equals(other.unpackedUint64_[ix])) return false;
|
| 7583 | if(unpackedSint32_.Count != other.unpackedSint32_.Count) return false;
|
| 7584 | for(int ix=0; ix < unpackedSint32_.Count; ix++)
|
| 7585 | if(!unpackedSint32_[ix].Equals(other.unpackedSint32_[ix])) return false;
|
| 7586 | if(unpackedSint64_.Count != other.unpackedSint64_.Count) return false;
|
| 7587 | for(int ix=0; ix < unpackedSint64_.Count; ix++)
|
| 7588 | if(!unpackedSint64_[ix].Equals(other.unpackedSint64_[ix])) return false;
|
| 7589 | if(unpackedFixed32_.Count != other.unpackedFixed32_.Count) return false;
|
| 7590 | for(int ix=0; ix < unpackedFixed32_.Count; ix++)
|
| 7591 | if(!unpackedFixed32_[ix].Equals(other.unpackedFixed32_[ix])) return false;
|
| 7592 | if(unpackedFixed64_.Count != other.unpackedFixed64_.Count) return false;
|
| 7593 | for(int ix=0; ix < unpackedFixed64_.Count; ix++)
|
| 7594 | if(!unpackedFixed64_[ix].Equals(other.unpackedFixed64_[ix])) return false;
|
| 7595 | if(unpackedSfixed32_.Count != other.unpackedSfixed32_.Count) return false;
|
| 7596 | for(int ix=0; ix < unpackedSfixed32_.Count; ix++)
|
| 7597 | if(!unpackedSfixed32_[ix].Equals(other.unpackedSfixed32_[ix])) return false;
|
| 7598 | if(unpackedSfixed64_.Count != other.unpackedSfixed64_.Count) return false;
|
| 7599 | for(int ix=0; ix < unpackedSfixed64_.Count; ix++)
|
| 7600 | if(!unpackedSfixed64_[ix].Equals(other.unpackedSfixed64_[ix])) return false;
|
| 7601 | if(unpackedFloat_.Count != other.unpackedFloat_.Count) return false;
|
| 7602 | for(int ix=0; ix < unpackedFloat_.Count; ix++)
|
| 7603 | if(!unpackedFloat_[ix].Equals(other.unpackedFloat_[ix])) return false;
|
| 7604 | if(unpackedDouble_.Count != other.unpackedDouble_.Count) return false;
|
| 7605 | for(int ix=0; ix < unpackedDouble_.Count; ix++)
|
| 7606 | if(!unpackedDouble_[ix].Equals(other.unpackedDouble_[ix])) return false;
|
| 7607 | if(unpackedBool_.Count != other.unpackedBool_.Count) return false;
|
| 7608 | for(int ix=0; ix < unpackedBool_.Count; ix++)
|
| 7609 | if(!unpackedBool_[ix].Equals(other.unpackedBool_[ix])) return false;
|
| 7610 | if(unpackedEnum_.Count != other.unpackedEnum_.Count) return false;
|
| 7611 | for(int ix=0; ix < unpackedEnum_.Count; ix++)
|
| 7612 | if(!unpackedEnum_[ix].Equals(other.unpackedEnum_[ix])) return false;
|
| 7613 | return true;
|
| 7614 | }
|
| 7615 |
|
| 7616 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 7617 | PrintField("unpacked_int32", unpackedInt32_, writer);
|
| 7618 | PrintField("unpacked_int64", unpackedInt64_, writer);
|
| 7619 | PrintField("unpacked_uint32", unpackedUint32_, writer);
|
| 7620 | PrintField("unpacked_uint64", unpackedUint64_, writer);
|
| 7621 | PrintField("unpacked_sint32", unpackedSint32_, writer);
|
| 7622 | PrintField("unpacked_sint64", unpackedSint64_, writer);
|
| 7623 | PrintField("unpacked_fixed32", unpackedFixed32_, writer);
|
| 7624 | PrintField("unpacked_fixed64", unpackedFixed64_, writer);
|
| 7625 | PrintField("unpacked_sfixed32", unpackedSfixed32_, writer);
|
| 7626 | PrintField("unpacked_sfixed64", unpackedSfixed64_, writer);
|
| 7627 | PrintField("unpacked_float", unpackedFloat_, writer);
|
| 7628 | PrintField("unpacked_double", unpackedDouble_, writer);
|
| 7629 | PrintField("unpacked_bool", unpackedBool_, writer);
|
| 7630 | PrintField("unpacked_enum", unpackedEnum_, writer);
|
| 7631 | }
|
| 7632 | #endregion
|
| 7633 |
|
| 7634 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data) {
|
| 7635 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7636 | }
|
| 7637 | public static TestUnpackedTypesLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 7638 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7639 | }
|
| 7640 | public static TestUnpackedTypesLite ParseFrom(byte[] data) {
|
| 7641 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 7642 | }
|
| 7643 | public static TestUnpackedTypesLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 7644 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 7645 | }
|
| 7646 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input) {
|
| 7647 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7648 | }
|
| 7649 | public static TestUnpackedTypesLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7650 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7651 | }
|
| 7652 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 7653 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 7654 | }
|
| 7655 | public static TestUnpackedTypesLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7656 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 7657 | }
|
| 7658 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input) {
|
| 7659 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 7660 | }
|
| 7661 | public static TestUnpackedTypesLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7662 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 7663 | }
|
| 7664 | public static Builder CreateBuilder() { return new Builder(); }
|
| 7665 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 7666 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 7667 | public static Builder CreateBuilder(TestUnpackedTypesLite prototype) {
|
| 7668 | return (Builder) new Builder().MergeFrom(prototype);
|
| 7669 | }
|
| 7670 |
|
| 7671 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 7672 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 7673 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 7674 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestUnpackedTypesLite, Builder> {
|
| 7675 | protected override Builder ThisBuilder {
|
| 7676 | get { return this; }
|
| 7677 | }
|
| 7678 | public Builder() {}
|
| 7679 |
|
| 7680 | TestUnpackedTypesLite result = new TestUnpackedTypesLite();
|
| 7681 |
|
| 7682 | protected override TestUnpackedTypesLite MessageBeingBuilt {
|
| 7683 | get { return result; }
|
| 7684 | }
|
| 7685 |
|
| 7686 | public override Builder Clear() {
|
| 7687 | result = new TestUnpackedTypesLite();
|
| 7688 | return this;
|
| 7689 | }
|
| 7690 |
|
| 7691 | public override Builder Clone() {
|
| 7692 | return new Builder().MergeFrom(result);
|
| 7693 | }
|
| 7694 |
|
| 7695 | public override TestUnpackedTypesLite DefaultInstanceForType {
|
| 7696 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance; }
|
| 7697 | }
|
| 7698 |
|
| 7699 | public override TestUnpackedTypesLite BuildPartial() {
|
| 7700 | if (result == null) {
|
| 7701 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 7702 | }
|
| 7703 | result.unpackedInt32_.MakeReadOnly();
|
| 7704 | result.unpackedInt64_.MakeReadOnly();
|
| 7705 | result.unpackedUint32_.MakeReadOnly();
|
| 7706 | result.unpackedUint64_.MakeReadOnly();
|
| 7707 | result.unpackedSint32_.MakeReadOnly();
|
| 7708 | result.unpackedSint64_.MakeReadOnly();
|
| 7709 | result.unpackedFixed32_.MakeReadOnly();
|
| 7710 | result.unpackedFixed64_.MakeReadOnly();
|
| 7711 | result.unpackedSfixed32_.MakeReadOnly();
|
| 7712 | result.unpackedSfixed64_.MakeReadOnly();
|
| 7713 | result.unpackedFloat_.MakeReadOnly();
|
| 7714 | result.unpackedDouble_.MakeReadOnly();
|
| 7715 | result.unpackedBool_.MakeReadOnly();
|
| 7716 | result.unpackedEnum_.MakeReadOnly();
|
| 7717 | TestUnpackedTypesLite returnMe = result;
|
| 7718 | result = null;
|
| 7719 | return returnMe;
|
| 7720 | }
|
| 7721 |
|
| 7722 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 7723 | if (other is TestUnpackedTypesLite) {
|
| 7724 | return MergeFrom((TestUnpackedTypesLite) other);
|
| 7725 | } else {
|
| 7726 | base.MergeFrom(other);
|
| 7727 | return this;
|
| 7728 | }
|
| 7729 | }
|
| 7730 |
|
| 7731 | public override Builder MergeFrom(TestUnpackedTypesLite other) {
|
| 7732 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedTypesLite.DefaultInstance) return this;
|
| 7733 | if (other.unpackedInt32_.Count != 0) {
|
| 7734 | base.AddRange(other.unpackedInt32_, result.unpackedInt32_);
|
| 7735 | }
|
| 7736 | if (other.unpackedInt64_.Count != 0) {
|
| 7737 | base.AddRange(other.unpackedInt64_, result.unpackedInt64_);
|
| 7738 | }
|
| 7739 | if (other.unpackedUint32_.Count != 0) {
|
| 7740 | base.AddRange(other.unpackedUint32_, result.unpackedUint32_);
|
| 7741 | }
|
| 7742 | if (other.unpackedUint64_.Count != 0) {
|
| 7743 | base.AddRange(other.unpackedUint64_, result.unpackedUint64_);
|
| 7744 | }
|
| 7745 | if (other.unpackedSint32_.Count != 0) {
|
| 7746 | base.AddRange(other.unpackedSint32_, result.unpackedSint32_);
|
| 7747 | }
|
| 7748 | if (other.unpackedSint64_.Count != 0) {
|
| 7749 | base.AddRange(other.unpackedSint64_, result.unpackedSint64_);
|
| 7750 | }
|
| 7751 | if (other.unpackedFixed32_.Count != 0) {
|
| 7752 | base.AddRange(other.unpackedFixed32_, result.unpackedFixed32_);
|
| 7753 | }
|
| 7754 | if (other.unpackedFixed64_.Count != 0) {
|
| 7755 | base.AddRange(other.unpackedFixed64_, result.unpackedFixed64_);
|
| 7756 | }
|
| 7757 | if (other.unpackedSfixed32_.Count != 0) {
|
| 7758 | base.AddRange(other.unpackedSfixed32_, result.unpackedSfixed32_);
|
| 7759 | }
|
| 7760 | if (other.unpackedSfixed64_.Count != 0) {
|
| 7761 | base.AddRange(other.unpackedSfixed64_, result.unpackedSfixed64_);
|
| 7762 | }
|
| 7763 | if (other.unpackedFloat_.Count != 0) {
|
| 7764 | base.AddRange(other.unpackedFloat_, result.unpackedFloat_);
|
| 7765 | }
|
| 7766 | if (other.unpackedDouble_.Count != 0) {
|
| 7767 | base.AddRange(other.unpackedDouble_, result.unpackedDouble_);
|
| 7768 | }
|
| 7769 | if (other.unpackedBool_.Count != 0) {
|
| 7770 | base.AddRange(other.unpackedBool_, result.unpackedBool_);
|
| 7771 | }
|
| 7772 | if (other.unpackedEnum_.Count != 0) {
|
| 7773 | base.AddRange(other.unpackedEnum_, result.unpackedEnum_);
|
| 7774 | }
|
| 7775 | return this;
|
| 7776 | }
|
| 7777 |
|
| 7778 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 7779 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 7780 | }
|
| 7781 |
|
| 7782 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 7783 | uint tag;
|
| 7784 | string field_name;
|
| 7785 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 7786 | if(tag == 0 && field_name != null) {
|
| 7787 | int field_ordinal = global::System.Array.BinarySearch(_testUnpackedTypesLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 7788 | if(field_ordinal >= 0)
|
| 7789 | tag = _testUnpackedTypesLiteFieldTags[field_ordinal];
|
| 7790 | else {
|
| 7791 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 7792 | continue;
|
| 7793 | }
|
| 7794 | }
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7795 | switch (tag) {
|
| 7796 | case 0: {
|
| 7797 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 7798 | }
|
| 7799 | default: {
|
| 7800 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 7801 | return this;
|
| 7802 | }
|
| 7803 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 7804 | break;
|
| 7805 | }
|
| 7806 | case 722:
|
| 7807 | case 720: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7808 | input.ReadInt32Array(tag, field_name, result.unpackedInt32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7809 | break;
|
| 7810 | }
|
| 7811 | case 730:
|
| 7812 | case 728: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7813 | input.ReadInt64Array(tag, field_name, result.unpackedInt64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7814 | break;
|
| 7815 | }
|
| 7816 | case 738:
|
| 7817 | case 736: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7818 | input.ReadUInt32Array(tag, field_name, result.unpackedUint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7819 | break;
|
| 7820 | }
|
| 7821 | case 746:
|
| 7822 | case 744: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7823 | input.ReadUInt64Array(tag, field_name, result.unpackedUint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7824 | break;
|
| 7825 | }
|
| 7826 | case 754:
|
| 7827 | case 752: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7828 | input.ReadSInt32Array(tag, field_name, result.unpackedSint32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7829 | break;
|
| 7830 | }
|
| 7831 | case 762:
|
| 7832 | case 760: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7833 | input.ReadSInt64Array(tag, field_name, result.unpackedSint64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7834 | break;
|
| 7835 | }
|
| 7836 | case 770:
|
| 7837 | case 773: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7838 | input.ReadFixed32Array(tag, field_name, result.unpackedFixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7839 | break;
|
| 7840 | }
|
| 7841 | case 778:
|
| 7842 | case 777: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7843 | input.ReadFixed64Array(tag, field_name, result.unpackedFixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7844 | break;
|
| 7845 | }
|
| 7846 | case 786:
|
| 7847 | case 789: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7848 | input.ReadSFixed32Array(tag, field_name, result.unpackedSfixed32_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7849 | break;
|
| 7850 | }
|
| 7851 | case 794:
|
| 7852 | case 793: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7853 | input.ReadSFixed64Array(tag, field_name, result.unpackedSfixed64_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7854 | break;
|
| 7855 | }
|
| 7856 | case 802:
|
| 7857 | case 805: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7858 | input.ReadFloatArray(tag, field_name, result.unpackedFloat_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7859 | break;
|
| 7860 | }
|
| 7861 | case 810:
|
| 7862 | case 809: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7863 | input.ReadDoubleArray(tag, field_name, result.unpackedDouble_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7864 | break;
|
| 7865 | }
|
| 7866 | case 818:
|
| 7867 | case 816: {
|
csharptest | b00ea13 | 2011-06-10 01:09:57 -0500 | [diff] [blame] | 7868 | input.ReadBoolArray(tag, field_name, result.unpackedBool_);
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 7869 | break;
|
| 7870 | }
|
| 7871 | case 826:
|
| 7872 | case 824: {
|
| 7873 | scg::ICollection<object> unknownItems;
|
| 7874 | input.ReadEnumArray<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite>(tag, field_name, result.unpackedEnum_, out unknownItems);
|
| 7875 | break;
|
| 7876 | }
|
| 7877 | }
|
| 7878 | }
|
| 7879 |
|
| 7880 | return this;
|
| 7881 | }
|
| 7882 |
|
| 7883 |
|
| 7884 | public pbc::IPopsicleList<int> UnpackedInt32List {
|
| 7885 | get { return result.unpackedInt32_; }
|
| 7886 | }
|
| 7887 | public int UnpackedInt32Count {
|
| 7888 | get { return result.UnpackedInt32Count; }
|
| 7889 | }
|
| 7890 | public int GetUnpackedInt32(int index) {
|
| 7891 | return result.GetUnpackedInt32(index);
|
| 7892 | }
|
| 7893 | public Builder SetUnpackedInt32(int index, int value) {
|
| 7894 | result.unpackedInt32_[index] = value;
|
| 7895 | return this;
|
| 7896 | }
|
| 7897 | public Builder AddUnpackedInt32(int value) {
|
| 7898 | result.unpackedInt32_.Add(value);
|
| 7899 | return this;
|
| 7900 | }
|
| 7901 | public Builder AddRangeUnpackedInt32(scg::IEnumerable<int> values) {
|
| 7902 | base.AddRange(values, result.unpackedInt32_);
|
| 7903 | return this;
|
| 7904 | }
|
| 7905 | public Builder ClearUnpackedInt32() {
|
| 7906 | result.unpackedInt32_.Clear();
|
| 7907 | return this;
|
| 7908 | }
|
| 7909 |
|
| 7910 | public pbc::IPopsicleList<long> UnpackedInt64List {
|
| 7911 | get { return result.unpackedInt64_; }
|
| 7912 | }
|
| 7913 | public int UnpackedInt64Count {
|
| 7914 | get { return result.UnpackedInt64Count; }
|
| 7915 | }
|
| 7916 | public long GetUnpackedInt64(int index) {
|
| 7917 | return result.GetUnpackedInt64(index);
|
| 7918 | }
|
| 7919 | public Builder SetUnpackedInt64(int index, long value) {
|
| 7920 | result.unpackedInt64_[index] = value;
|
| 7921 | return this;
|
| 7922 | }
|
| 7923 | public Builder AddUnpackedInt64(long value) {
|
| 7924 | result.unpackedInt64_.Add(value);
|
| 7925 | return this;
|
| 7926 | }
|
| 7927 | public Builder AddRangeUnpackedInt64(scg::IEnumerable<long> values) {
|
| 7928 | base.AddRange(values, result.unpackedInt64_);
|
| 7929 | return this;
|
| 7930 | }
|
| 7931 | public Builder ClearUnpackedInt64() {
|
| 7932 | result.unpackedInt64_.Clear();
|
| 7933 | return this;
|
| 7934 | }
|
| 7935 |
|
| 7936 | [global::System.CLSCompliant(false)]
|
| 7937 | public pbc::IPopsicleList<uint> UnpackedUint32List {
|
| 7938 | get { return result.unpackedUint32_; }
|
| 7939 | }
|
| 7940 | public int UnpackedUint32Count {
|
| 7941 | get { return result.UnpackedUint32Count; }
|
| 7942 | }
|
| 7943 | [global::System.CLSCompliant(false)]
|
| 7944 | public uint GetUnpackedUint32(int index) {
|
| 7945 | return result.GetUnpackedUint32(index);
|
| 7946 | }
|
| 7947 | [global::System.CLSCompliant(false)]
|
| 7948 | public Builder SetUnpackedUint32(int index, uint value) {
|
| 7949 | result.unpackedUint32_[index] = value;
|
| 7950 | return this;
|
| 7951 | }
|
| 7952 | [global::System.CLSCompliant(false)]
|
| 7953 | public Builder AddUnpackedUint32(uint value) {
|
| 7954 | result.unpackedUint32_.Add(value);
|
| 7955 | return this;
|
| 7956 | }
|
| 7957 | [global::System.CLSCompliant(false)]
|
| 7958 | public Builder AddRangeUnpackedUint32(scg::IEnumerable<uint> values) {
|
| 7959 | base.AddRange(values, result.unpackedUint32_);
|
| 7960 | return this;
|
| 7961 | }
|
| 7962 | public Builder ClearUnpackedUint32() {
|
| 7963 | result.unpackedUint32_.Clear();
|
| 7964 | return this;
|
| 7965 | }
|
| 7966 |
|
| 7967 | [global::System.CLSCompliant(false)]
|
| 7968 | public pbc::IPopsicleList<ulong> UnpackedUint64List {
|
| 7969 | get { return result.unpackedUint64_; }
|
| 7970 | }
|
| 7971 | public int UnpackedUint64Count {
|
| 7972 | get { return result.UnpackedUint64Count; }
|
| 7973 | }
|
| 7974 | [global::System.CLSCompliant(false)]
|
| 7975 | public ulong GetUnpackedUint64(int index) {
|
| 7976 | return result.GetUnpackedUint64(index);
|
| 7977 | }
|
| 7978 | [global::System.CLSCompliant(false)]
|
| 7979 | public Builder SetUnpackedUint64(int index, ulong value) {
|
| 7980 | result.unpackedUint64_[index] = value;
|
| 7981 | return this;
|
| 7982 | }
|
| 7983 | [global::System.CLSCompliant(false)]
|
| 7984 | public Builder AddUnpackedUint64(ulong value) {
|
| 7985 | result.unpackedUint64_.Add(value);
|
| 7986 | return this;
|
| 7987 | }
|
| 7988 | [global::System.CLSCompliant(false)]
|
| 7989 | public Builder AddRangeUnpackedUint64(scg::IEnumerable<ulong> values) {
|
| 7990 | base.AddRange(values, result.unpackedUint64_);
|
| 7991 | return this;
|
| 7992 | }
|
| 7993 | public Builder ClearUnpackedUint64() {
|
| 7994 | result.unpackedUint64_.Clear();
|
| 7995 | return this;
|
| 7996 | }
|
| 7997 |
|
| 7998 | public pbc::IPopsicleList<int> UnpackedSint32List {
|
| 7999 | get { return result.unpackedSint32_; }
|
| 8000 | }
|
| 8001 | public int UnpackedSint32Count {
|
| 8002 | get { return result.UnpackedSint32Count; }
|
| 8003 | }
|
| 8004 | public int GetUnpackedSint32(int index) {
|
| 8005 | return result.GetUnpackedSint32(index);
|
| 8006 | }
|
| 8007 | public Builder SetUnpackedSint32(int index, int value) {
|
| 8008 | result.unpackedSint32_[index] = value;
|
| 8009 | return this;
|
| 8010 | }
|
| 8011 | public Builder AddUnpackedSint32(int value) {
|
| 8012 | result.unpackedSint32_.Add(value);
|
| 8013 | return this;
|
| 8014 | }
|
| 8015 | public Builder AddRangeUnpackedSint32(scg::IEnumerable<int> values) {
|
| 8016 | base.AddRange(values, result.unpackedSint32_);
|
| 8017 | return this;
|
| 8018 | }
|
| 8019 | public Builder ClearUnpackedSint32() {
|
| 8020 | result.unpackedSint32_.Clear();
|
| 8021 | return this;
|
| 8022 | }
|
| 8023 |
|
| 8024 | public pbc::IPopsicleList<long> UnpackedSint64List {
|
| 8025 | get { return result.unpackedSint64_; }
|
| 8026 | }
|
| 8027 | public int UnpackedSint64Count {
|
| 8028 | get { return result.UnpackedSint64Count; }
|
| 8029 | }
|
| 8030 | public long GetUnpackedSint64(int index) {
|
| 8031 | return result.GetUnpackedSint64(index);
|
| 8032 | }
|
| 8033 | public Builder SetUnpackedSint64(int index, long value) {
|
| 8034 | result.unpackedSint64_[index] = value;
|
| 8035 | return this;
|
| 8036 | }
|
| 8037 | public Builder AddUnpackedSint64(long value) {
|
| 8038 | result.unpackedSint64_.Add(value);
|
| 8039 | return this;
|
| 8040 | }
|
| 8041 | public Builder AddRangeUnpackedSint64(scg::IEnumerable<long> values) {
|
| 8042 | base.AddRange(values, result.unpackedSint64_);
|
| 8043 | return this;
|
| 8044 | }
|
| 8045 | public Builder ClearUnpackedSint64() {
|
| 8046 | result.unpackedSint64_.Clear();
|
| 8047 | return this;
|
| 8048 | }
|
| 8049 |
|
| 8050 | [global::System.CLSCompliant(false)]
|
| 8051 | public pbc::IPopsicleList<uint> UnpackedFixed32List {
|
| 8052 | get { return result.unpackedFixed32_; }
|
| 8053 | }
|
| 8054 | public int UnpackedFixed32Count {
|
| 8055 | get { return result.UnpackedFixed32Count; }
|
| 8056 | }
|
| 8057 | [global::System.CLSCompliant(false)]
|
| 8058 | public uint GetUnpackedFixed32(int index) {
|
| 8059 | return result.GetUnpackedFixed32(index);
|
| 8060 | }
|
| 8061 | [global::System.CLSCompliant(false)]
|
| 8062 | public Builder SetUnpackedFixed32(int index, uint value) {
|
| 8063 | result.unpackedFixed32_[index] = value;
|
| 8064 | return this;
|
| 8065 | }
|
| 8066 | [global::System.CLSCompliant(false)]
|
| 8067 | public Builder AddUnpackedFixed32(uint value) {
|
| 8068 | result.unpackedFixed32_.Add(value);
|
| 8069 | return this;
|
| 8070 | }
|
| 8071 | [global::System.CLSCompliant(false)]
|
| 8072 | public Builder AddRangeUnpackedFixed32(scg::IEnumerable<uint> values) {
|
| 8073 | base.AddRange(values, result.unpackedFixed32_);
|
| 8074 | return this;
|
| 8075 | }
|
| 8076 | public Builder ClearUnpackedFixed32() {
|
| 8077 | result.unpackedFixed32_.Clear();
|
| 8078 | return this;
|
| 8079 | }
|
| 8080 |
|
| 8081 | [global::System.CLSCompliant(false)]
|
| 8082 | public pbc::IPopsicleList<ulong> UnpackedFixed64List {
|
| 8083 | get { return result.unpackedFixed64_; }
|
| 8084 | }
|
| 8085 | public int UnpackedFixed64Count {
|
| 8086 | get { return result.UnpackedFixed64Count; }
|
| 8087 | }
|
| 8088 | [global::System.CLSCompliant(false)]
|
| 8089 | public ulong GetUnpackedFixed64(int index) {
|
| 8090 | return result.GetUnpackedFixed64(index);
|
| 8091 | }
|
| 8092 | [global::System.CLSCompliant(false)]
|
| 8093 | public Builder SetUnpackedFixed64(int index, ulong value) {
|
| 8094 | result.unpackedFixed64_[index] = value;
|
| 8095 | return this;
|
| 8096 | }
|
| 8097 | [global::System.CLSCompliant(false)]
|
| 8098 | public Builder AddUnpackedFixed64(ulong value) {
|
| 8099 | result.unpackedFixed64_.Add(value);
|
| 8100 | return this;
|
| 8101 | }
|
| 8102 | [global::System.CLSCompliant(false)]
|
| 8103 | public Builder AddRangeUnpackedFixed64(scg::IEnumerable<ulong> values) {
|
| 8104 | base.AddRange(values, result.unpackedFixed64_);
|
| 8105 | return this;
|
| 8106 | }
|
| 8107 | public Builder ClearUnpackedFixed64() {
|
| 8108 | result.unpackedFixed64_.Clear();
|
| 8109 | return this;
|
| 8110 | }
|
| 8111 |
|
| 8112 | public pbc::IPopsicleList<int> UnpackedSfixed32List {
|
| 8113 | get { return result.unpackedSfixed32_; }
|
| 8114 | }
|
| 8115 | public int UnpackedSfixed32Count {
|
| 8116 | get { return result.UnpackedSfixed32Count; }
|
| 8117 | }
|
| 8118 | public int GetUnpackedSfixed32(int index) {
|
| 8119 | return result.GetUnpackedSfixed32(index);
|
| 8120 | }
|
| 8121 | public Builder SetUnpackedSfixed32(int index, int value) {
|
| 8122 | result.unpackedSfixed32_[index] = value;
|
| 8123 | return this;
|
| 8124 | }
|
| 8125 | public Builder AddUnpackedSfixed32(int value) {
|
| 8126 | result.unpackedSfixed32_.Add(value);
|
| 8127 | return this;
|
| 8128 | }
|
| 8129 | public Builder AddRangeUnpackedSfixed32(scg::IEnumerable<int> values) {
|
| 8130 | base.AddRange(values, result.unpackedSfixed32_);
|
| 8131 | return this;
|
| 8132 | }
|
| 8133 | public Builder ClearUnpackedSfixed32() {
|
| 8134 | result.unpackedSfixed32_.Clear();
|
| 8135 | return this;
|
| 8136 | }
|
| 8137 |
|
| 8138 | public pbc::IPopsicleList<long> UnpackedSfixed64List {
|
| 8139 | get { return result.unpackedSfixed64_; }
|
| 8140 | }
|
| 8141 | public int UnpackedSfixed64Count {
|
| 8142 | get { return result.UnpackedSfixed64Count; }
|
| 8143 | }
|
| 8144 | public long GetUnpackedSfixed64(int index) {
|
| 8145 | return result.GetUnpackedSfixed64(index);
|
| 8146 | }
|
| 8147 | public Builder SetUnpackedSfixed64(int index, long value) {
|
| 8148 | result.unpackedSfixed64_[index] = value;
|
| 8149 | return this;
|
| 8150 | }
|
| 8151 | public Builder AddUnpackedSfixed64(long value) {
|
| 8152 | result.unpackedSfixed64_.Add(value);
|
| 8153 | return this;
|
| 8154 | }
|
| 8155 | public Builder AddRangeUnpackedSfixed64(scg::IEnumerable<long> values) {
|
| 8156 | base.AddRange(values, result.unpackedSfixed64_);
|
| 8157 | return this;
|
| 8158 | }
|
| 8159 | public Builder ClearUnpackedSfixed64() {
|
| 8160 | result.unpackedSfixed64_.Clear();
|
| 8161 | return this;
|
| 8162 | }
|
| 8163 |
|
| 8164 | public pbc::IPopsicleList<float> UnpackedFloatList {
|
| 8165 | get { return result.unpackedFloat_; }
|
| 8166 | }
|
| 8167 | public int UnpackedFloatCount {
|
| 8168 | get { return result.UnpackedFloatCount; }
|
| 8169 | }
|
| 8170 | public float GetUnpackedFloat(int index) {
|
| 8171 | return result.GetUnpackedFloat(index);
|
| 8172 | }
|
| 8173 | public Builder SetUnpackedFloat(int index, float value) {
|
| 8174 | result.unpackedFloat_[index] = value;
|
| 8175 | return this;
|
| 8176 | }
|
| 8177 | public Builder AddUnpackedFloat(float value) {
|
| 8178 | result.unpackedFloat_.Add(value);
|
| 8179 | return this;
|
| 8180 | }
|
| 8181 | public Builder AddRangeUnpackedFloat(scg::IEnumerable<float> values) {
|
| 8182 | base.AddRange(values, result.unpackedFloat_);
|
| 8183 | return this;
|
| 8184 | }
|
| 8185 | public Builder ClearUnpackedFloat() {
|
| 8186 | result.unpackedFloat_.Clear();
|
| 8187 | return this;
|
| 8188 | }
|
| 8189 |
|
| 8190 | public pbc::IPopsicleList<double> UnpackedDoubleList {
|
| 8191 | get { return result.unpackedDouble_; }
|
| 8192 | }
|
| 8193 | public int UnpackedDoubleCount {
|
| 8194 | get { return result.UnpackedDoubleCount; }
|
| 8195 | }
|
| 8196 | public double GetUnpackedDouble(int index) {
|
| 8197 | return result.GetUnpackedDouble(index);
|
| 8198 | }
|
| 8199 | public Builder SetUnpackedDouble(int index, double value) {
|
| 8200 | result.unpackedDouble_[index] = value;
|
| 8201 | return this;
|
| 8202 | }
|
| 8203 | public Builder AddUnpackedDouble(double value) {
|
| 8204 | result.unpackedDouble_.Add(value);
|
| 8205 | return this;
|
| 8206 | }
|
| 8207 | public Builder AddRangeUnpackedDouble(scg::IEnumerable<double> values) {
|
| 8208 | base.AddRange(values, result.unpackedDouble_);
|
| 8209 | return this;
|
| 8210 | }
|
| 8211 | public Builder ClearUnpackedDouble() {
|
| 8212 | result.unpackedDouble_.Clear();
|
| 8213 | return this;
|
| 8214 | }
|
| 8215 |
|
| 8216 | public pbc::IPopsicleList<bool> UnpackedBoolList {
|
| 8217 | get { return result.unpackedBool_; }
|
| 8218 | }
|
| 8219 | public int UnpackedBoolCount {
|
| 8220 | get { return result.UnpackedBoolCount; }
|
| 8221 | }
|
| 8222 | public bool GetUnpackedBool(int index) {
|
| 8223 | return result.GetUnpackedBool(index);
|
| 8224 | }
|
| 8225 | public Builder SetUnpackedBool(int index, bool value) {
|
| 8226 | result.unpackedBool_[index] = value;
|
| 8227 | return this;
|
| 8228 | }
|
| 8229 | public Builder AddUnpackedBool(bool value) {
|
| 8230 | result.unpackedBool_.Add(value);
|
| 8231 | return this;
|
| 8232 | }
|
| 8233 | public Builder AddRangeUnpackedBool(scg::IEnumerable<bool> values) {
|
| 8234 | base.AddRange(values, result.unpackedBool_);
|
| 8235 | return this;
|
| 8236 | }
|
| 8237 | public Builder ClearUnpackedBool() {
|
| 8238 | result.unpackedBool_.Clear();
|
| 8239 | return this;
|
| 8240 | }
|
| 8241 |
|
| 8242 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> UnpackedEnumList {
|
| 8243 | get { return result.unpackedEnum_; }
|
| 8244 | }
|
| 8245 | public int UnpackedEnumCount {
|
| 8246 | get { return result.UnpackedEnumCount; }
|
| 8247 | }
|
| 8248 | public global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite GetUnpackedEnum(int index) {
|
| 8249 | return result.GetUnpackedEnum(index);
|
| 8250 | }
|
| 8251 | public Builder SetUnpackedEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8252 | result.unpackedEnum_[index] = value;
|
| 8253 | return this;
|
| 8254 | }
|
| 8255 | public Builder AddUnpackedEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite value) {
|
| 8256 | result.unpackedEnum_.Add(value);
|
| 8257 | return this;
|
| 8258 | }
|
| 8259 | public Builder AddRangeUnpackedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnumLite> values) {
|
| 8260 | base.AddRange(values, result.unpackedEnum_);
|
| 8261 | return this;
|
| 8262 | }
|
| 8263 | public Builder ClearUnpackedEnum() {
|
| 8264 | result.unpackedEnum_.Clear();
|
| 8265 | return this;
|
| 8266 | }
|
| 8267 | }
|
| 8268 | static TestUnpackedTypesLite() {
|
| 8269 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8270 | }
|
| 8271 | }
|
| 8272 |
|
| 8273 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8274 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8275 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8276 | public sealed partial class TestAllExtensionsLite : pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder> {
|
| 8277 | private static readonly TestAllExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8278 | private static readonly string[] _testAllExtensionsLiteFieldNames = new string[] { };
|
| 8279 | private static readonly uint[] _testAllExtensionsLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8280 | public static TestAllExtensionsLite DefaultInstance {
|
| 8281 | get { return defaultInstance; }
|
| 8282 | }
|
| 8283 |
|
| 8284 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8285 | get { return defaultInstance; }
|
| 8286 | }
|
| 8287 |
|
| 8288 | protected override TestAllExtensionsLite ThisMessage {
|
| 8289 | get { return this; }
|
| 8290 | }
|
| 8291 |
|
| 8292 | public override bool IsInitialized {
|
| 8293 | get {
|
| 8294 | if (!ExtensionsAreInitialized) return false;
|
| 8295 | return true;
|
| 8296 | }
|
| 8297 | }
|
| 8298 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8299 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8300 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8301 | string[] field_names = _testAllExtensionsLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8302 | pb::ExtendableMessageLite<TestAllExtensionsLite, TestAllExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8303 | extensionWriter.WriteUntil(536870912, output);
|
| 8304 | }
|
| 8305 |
|
| 8306 | private int memoizedSerializedSize = -1;
|
| 8307 | public override int SerializedSize {
|
| 8308 | get {
|
| 8309 | int size = memoizedSerializedSize;
|
| 8310 | if (size != -1) return size;
|
| 8311 |
|
| 8312 | size = 0;
|
| 8313 | size += ExtensionsSerializedSize;
|
| 8314 | memoizedSerializedSize = size;
|
| 8315 | return size;
|
| 8316 | }
|
| 8317 | }
|
| 8318 |
|
| 8319 | #region Lite runtime methods
|
| 8320 | public override int GetHashCode() {
|
| 8321 | int hash = GetType().GetHashCode();
|
| 8322 | hash ^= base.GetHashCode();
|
| 8323 | return hash;
|
| 8324 | }
|
| 8325 |
|
| 8326 | public override bool Equals(object obj) {
|
| 8327 | TestAllExtensionsLite other = obj as TestAllExtensionsLite;
|
| 8328 | if (other == null) return false;
|
| 8329 | if (!base.Equals(other)) return false;
|
| 8330 | return true;
|
| 8331 | }
|
| 8332 |
|
| 8333 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8334 | base.PrintTo(writer);
|
| 8335 | }
|
| 8336 | #endregion
|
| 8337 |
|
| 8338 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8339 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8340 | }
|
| 8341 | public static TestAllExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8342 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8343 | }
|
| 8344 | public static TestAllExtensionsLite ParseFrom(byte[] data) {
|
| 8345 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8346 | }
|
| 8347 | public static TestAllExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8348 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8349 | }
|
| 8350 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 8351 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8352 | }
|
| 8353 | public static TestAllExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8354 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8355 | }
|
| 8356 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8357 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8358 | }
|
| 8359 | public static TestAllExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8360 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8361 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8362 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8363 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8364 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8365 | public static TestAllExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8366 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8367 | }
|
| 8368 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8369 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8370 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8371 | public static Builder CreateBuilder(TestAllExtensionsLite prototype) {
|
| 8372 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8373 | }
|
| 8374 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8375 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8376 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8377 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8378 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestAllExtensionsLite, Builder> {
|
| 8379 | protected override Builder ThisBuilder {
|
| 8380 | get { return this; }
|
| 8381 | }
|
| 8382 | public Builder() {}
|
| 8383 |
|
| 8384 | TestAllExtensionsLite result = new TestAllExtensionsLite();
|
| 8385 |
|
| 8386 | protected override TestAllExtensionsLite MessageBeingBuilt {
|
| 8387 | get { return result; }
|
| 8388 | }
|
| 8389 |
|
| 8390 | public override Builder Clear() {
|
| 8391 | result = new TestAllExtensionsLite();
|
| 8392 | return this;
|
| 8393 | }
|
| 8394 |
|
| 8395 | public override Builder Clone() {
|
| 8396 | return new Builder().MergeFrom(result);
|
| 8397 | }
|
| 8398 |
|
| 8399 | public override TestAllExtensionsLite DefaultInstanceForType {
|
| 8400 | get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance; }
|
| 8401 | }
|
| 8402 |
|
| 8403 | public override TestAllExtensionsLite BuildPartial() {
|
| 8404 | if (result == null) {
|
| 8405 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8406 | }
|
| 8407 | TestAllExtensionsLite returnMe = result;
|
| 8408 | result = null;
|
| 8409 | return returnMe;
|
| 8410 | }
|
| 8411 |
|
| 8412 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8413 | if (other is TestAllExtensionsLite) {
|
| 8414 | return MergeFrom((TestAllExtensionsLite) other);
|
| 8415 | } else {
|
| 8416 | base.MergeFrom(other);
|
| 8417 | return this;
|
| 8418 | }
|
| 8419 | }
|
| 8420 |
|
| 8421 | public override Builder MergeFrom(TestAllExtensionsLite other) {
|
| 8422 | if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite.DefaultInstance) return this;
|
| 8423 | this.MergeExtensionFields(other);
|
| 8424 | return this;
|
| 8425 | }
|
| 8426 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8427 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8428 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8429 | }
|
| 8430 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8431 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8432 | uint tag;
|
| 8433 | string field_name;
|
| 8434 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8435 | if(tag == 0 && field_name != null) {
|
| 8436 | int field_ordinal = global::System.Array.BinarySearch(_testAllExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8437 | if(field_ordinal >= 0)
|
| 8438 | tag = _testAllExtensionsLiteFieldTags[field_ordinal];
|
| 8439 | else {
|
| 8440 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8441 | continue;
|
| 8442 | }
|
| 8443 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8444 | switch (tag) {
|
| 8445 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8446 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8447 | }
|
| 8448 | default: {
|
| 8449 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8450 | return this;
|
| 8451 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8452 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8453 | break;
|
| 8454 | }
|
| 8455 | }
|
| 8456 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8457 |
|
| 8458 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8459 | }
|
| 8460 |
|
| 8461 | }
|
| 8462 | static TestAllExtensionsLite() {
|
| 8463 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8464 | }
|
| 8465 | }
|
| 8466 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8467 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8468 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8469 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8470 | public sealed partial class OptionalGroup_extension_lite : pb::GeneratedMessageLite<OptionalGroup_extension_lite, OptionalGroup_extension_lite.Builder> {
|
| 8471 | private static readonly OptionalGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8472 | private static readonly string[] _optionalGroupExtensionLiteFieldNames = new string[] { "a" };
|
| 8473 | private static readonly uint[] _optionalGroupExtensionLiteFieldTags = new uint[] { 136 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8474 | public static OptionalGroup_extension_lite DefaultInstance {
|
| 8475 | get { return defaultInstance; }
|
| 8476 | }
|
| 8477 |
|
| 8478 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8479 | get { return defaultInstance; }
|
| 8480 | }
|
| 8481 |
|
| 8482 | protected override OptionalGroup_extension_lite ThisMessage {
|
| 8483 | get { return this; }
|
| 8484 | }
|
| 8485 |
|
| 8486 | public const int AFieldNumber = 17;
|
| 8487 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 8488 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8489 | public bool HasA {
|
| 8490 | get { return hasA; }
|
| 8491 | }
|
| 8492 | public int A {
|
| 8493 | get { return a_; }
|
| 8494 | }
|
| 8495 |
|
| 8496 | public override bool IsInitialized {
|
| 8497 | get {
|
| 8498 | return true;
|
| 8499 | }
|
| 8500 | }
|
| 8501 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8502 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8503 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8504 | string[] field_names = _optionalGroupExtensionLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8505 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8506 | output.WriteInt32(17, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8507 | }
|
| 8508 | }
|
| 8509 |
|
| 8510 | private int memoizedSerializedSize = -1;
|
| 8511 | public override int SerializedSize {
|
| 8512 | get {
|
| 8513 | int size = memoizedSerializedSize;
|
| 8514 | if (size != -1) return size;
|
| 8515 |
|
| 8516 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8517 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8518 | size += pb::CodedOutputStream.ComputeInt32Size(17, A);
|
| 8519 | }
|
| 8520 | memoizedSerializedSize = size;
|
| 8521 | return size;
|
| 8522 | }
|
| 8523 | }
|
| 8524 |
|
| 8525 | #region Lite runtime methods
|
| 8526 | public override int GetHashCode() {
|
| 8527 | int hash = GetType().GetHashCode();
|
| 8528 | if (hasA) hash ^= a_.GetHashCode();
|
| 8529 | return hash;
|
| 8530 | }
|
| 8531 |
|
| 8532 | public override bool Equals(object obj) {
|
| 8533 | OptionalGroup_extension_lite other = obj as OptionalGroup_extension_lite;
|
| 8534 | if (other == null) return false;
|
| 8535 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8536 | return true;
|
| 8537 | }
|
| 8538 |
|
| 8539 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8540 | PrintField("a", hasA, a_, writer);
|
| 8541 | }
|
| 8542 | #endregion
|
| 8543 |
|
| 8544 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8545 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8546 | }
|
| 8547 | public static OptionalGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8548 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8549 | }
|
| 8550 | public static OptionalGroup_extension_lite ParseFrom(byte[] data) {
|
| 8551 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8552 | }
|
| 8553 | public static OptionalGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8554 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8555 | }
|
| 8556 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8557 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8558 | }
|
| 8559 | public static OptionalGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8560 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8561 | }
|
| 8562 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8563 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8564 | }
|
| 8565 | public static OptionalGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8566 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8567 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8568 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8569 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8570 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8571 | public static OptionalGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8572 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8573 | }
|
| 8574 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8575 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8576 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8577 | public static Builder CreateBuilder(OptionalGroup_extension_lite prototype) {
|
| 8578 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8579 | }
|
| 8580 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8581 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8582 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8583 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8584 | public sealed partial class Builder : pb::GeneratedBuilderLite<OptionalGroup_extension_lite, Builder> {
|
| 8585 | protected override Builder ThisBuilder {
|
| 8586 | get { return this; }
|
| 8587 | }
|
| 8588 | public Builder() {}
|
| 8589 |
|
| 8590 | OptionalGroup_extension_lite result = new OptionalGroup_extension_lite();
|
| 8591 |
|
| 8592 | protected override OptionalGroup_extension_lite MessageBeingBuilt {
|
| 8593 | get { return result; }
|
| 8594 | }
|
| 8595 |
|
| 8596 | public override Builder Clear() {
|
| 8597 | result = new OptionalGroup_extension_lite();
|
| 8598 | return this;
|
| 8599 | }
|
| 8600 |
|
| 8601 | public override Builder Clone() {
|
| 8602 | return new Builder().MergeFrom(result);
|
| 8603 | }
|
| 8604 |
|
| 8605 | public override OptionalGroup_extension_lite DefaultInstanceForType {
|
| 8606 | get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance; }
|
| 8607 | }
|
| 8608 |
|
| 8609 | public override OptionalGroup_extension_lite BuildPartial() {
|
| 8610 | if (result == null) {
|
| 8611 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8612 | }
|
| 8613 | OptionalGroup_extension_lite returnMe = result;
|
| 8614 | result = null;
|
| 8615 | return returnMe;
|
| 8616 | }
|
| 8617 |
|
| 8618 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8619 | if (other is OptionalGroup_extension_lite) {
|
| 8620 | return MergeFrom((OptionalGroup_extension_lite) other);
|
| 8621 | } else {
|
| 8622 | base.MergeFrom(other);
|
| 8623 | return this;
|
| 8624 | }
|
| 8625 | }
|
| 8626 |
|
| 8627 | public override Builder MergeFrom(OptionalGroup_extension_lite other) {
|
| 8628 | if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension_lite.DefaultInstance) return this;
|
| 8629 | if (other.HasA) {
|
| 8630 | A = other.A;
|
| 8631 | }
|
| 8632 | return this;
|
| 8633 | }
|
| 8634 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8635 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8636 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8637 | }
|
| 8638 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8639 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8640 | uint tag;
|
| 8641 | string field_name;
|
| 8642 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8643 | if(tag == 0 && field_name != null) {
|
| 8644 | int field_ordinal = global::System.Array.BinarySearch(_optionalGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8645 | if(field_ordinal >= 0)
|
| 8646 | tag = _optionalGroupExtensionLiteFieldTags[field_ordinal];
|
| 8647 | else {
|
| 8648 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8649 | continue;
|
| 8650 | }
|
| 8651 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8652 | switch (tag) {
|
| 8653 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8654 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8655 | }
|
| 8656 | default: {
|
| 8657 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8658 | return this;
|
| 8659 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8660 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8661 | break;
|
| 8662 | }
|
| 8663 | case 136: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8664 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8665 | break;
|
| 8666 | }
|
| 8667 | }
|
| 8668 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8669 |
|
| 8670 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8671 | }
|
| 8672 |
|
| 8673 |
|
| 8674 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8675 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8676 | }
|
| 8677 | public int A {
|
| 8678 | get { return result.A; }
|
| 8679 | set { SetA(value); }
|
| 8680 | }
|
| 8681 | public Builder SetA(int value) {
|
| 8682 | result.hasA = true;
|
| 8683 | result.a_ = value;
|
| 8684 | return this;
|
| 8685 | }
|
| 8686 | public Builder ClearA() {
|
| 8687 | result.hasA = false;
|
| 8688 | result.a_ = 0;
|
| 8689 | return this;
|
| 8690 | }
|
| 8691 | }
|
| 8692 | static OptionalGroup_extension_lite() {
|
| 8693 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8694 | }
|
| 8695 | }
|
| 8696 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8697 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8698 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8699 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8700 | public sealed partial class RepeatedGroup_extension_lite : pb::GeneratedMessageLite<RepeatedGroup_extension_lite, RepeatedGroup_extension_lite.Builder> {
|
| 8701 | private static readonly RepeatedGroup_extension_lite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8702 | private static readonly string[] _repeatedGroupExtensionLiteFieldNames = new string[] { "a" };
|
| 8703 | private static readonly uint[] _repeatedGroupExtensionLiteFieldTags = new uint[] { 376 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8704 | public static RepeatedGroup_extension_lite DefaultInstance {
|
| 8705 | get { return defaultInstance; }
|
| 8706 | }
|
| 8707 |
|
| 8708 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8709 | get { return defaultInstance; }
|
| 8710 | }
|
| 8711 |
|
| 8712 | protected override RepeatedGroup_extension_lite ThisMessage {
|
| 8713 | get { return this; }
|
| 8714 | }
|
| 8715 |
|
| 8716 | public const int AFieldNumber = 47;
|
| 8717 | private bool hasA;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 8718 | private int a_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8719 | public bool HasA {
|
| 8720 | get { return hasA; }
|
| 8721 | }
|
| 8722 | public int A {
|
| 8723 | get { return a_; }
|
| 8724 | }
|
| 8725 |
|
| 8726 | public override bool IsInitialized {
|
| 8727 | get {
|
| 8728 | return true;
|
| 8729 | }
|
| 8730 | }
|
| 8731 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8732 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8733 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8734 | string[] field_names = _repeatedGroupExtensionLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8735 | if (hasA) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8736 | output.WriteInt32(47, field_names[0], A);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8737 | }
|
| 8738 | }
|
| 8739 |
|
| 8740 | private int memoizedSerializedSize = -1;
|
| 8741 | public override int SerializedSize {
|
| 8742 | get {
|
| 8743 | int size = memoizedSerializedSize;
|
| 8744 | if (size != -1) return size;
|
| 8745 |
|
| 8746 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8747 | if (hasA) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8748 | size += pb::CodedOutputStream.ComputeInt32Size(47, A);
|
| 8749 | }
|
| 8750 | memoizedSerializedSize = size;
|
| 8751 | return size;
|
| 8752 | }
|
| 8753 | }
|
| 8754 |
|
| 8755 | #region Lite runtime methods
|
| 8756 | public override int GetHashCode() {
|
| 8757 | int hash = GetType().GetHashCode();
|
| 8758 | if (hasA) hash ^= a_.GetHashCode();
|
| 8759 | return hash;
|
| 8760 | }
|
| 8761 |
|
| 8762 | public override bool Equals(object obj) {
|
| 8763 | RepeatedGroup_extension_lite other = obj as RepeatedGroup_extension_lite;
|
| 8764 | if (other == null) return false;
|
| 8765 | if (hasA != other.hasA || (hasA && !a_.Equals(other.a_))) return false;
|
| 8766 | return true;
|
| 8767 | }
|
| 8768 |
|
| 8769 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8770 | PrintField("a", hasA, a_, writer);
|
| 8771 | }
|
| 8772 | #endregion
|
| 8773 |
|
| 8774 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data) {
|
| 8775 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8776 | }
|
| 8777 | public static RepeatedGroup_extension_lite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8778 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8779 | }
|
| 8780 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data) {
|
| 8781 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8782 | }
|
| 8783 | public static RepeatedGroup_extension_lite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 8784 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8785 | }
|
| 8786 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input) {
|
| 8787 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8788 | }
|
| 8789 | public static RepeatedGroup_extension_lite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8790 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8791 | }
|
| 8792 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 8793 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 8794 | }
|
| 8795 | public static RepeatedGroup_extension_lite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 8796 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 8797 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8798 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8799 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 8800 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8801 | public static RepeatedGroup_extension_lite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8802 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 8803 | }
|
| 8804 | public static Builder CreateBuilder() { return new Builder(); }
|
| 8805 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 8806 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 8807 | public static Builder CreateBuilder(RepeatedGroup_extension_lite prototype) {
|
| 8808 | return (Builder) new Builder().MergeFrom(prototype);
|
| 8809 | }
|
| 8810 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8811 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8812 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8813 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8814 | public sealed partial class Builder : pb::GeneratedBuilderLite<RepeatedGroup_extension_lite, Builder> {
|
| 8815 | protected override Builder ThisBuilder {
|
| 8816 | get { return this; }
|
| 8817 | }
|
| 8818 | public Builder() {}
|
| 8819 |
|
| 8820 | RepeatedGroup_extension_lite result = new RepeatedGroup_extension_lite();
|
| 8821 |
|
| 8822 | protected override RepeatedGroup_extension_lite MessageBeingBuilt {
|
| 8823 | get { return result; }
|
| 8824 | }
|
| 8825 |
|
| 8826 | public override Builder Clear() {
|
| 8827 | result = new RepeatedGroup_extension_lite();
|
| 8828 | return this;
|
| 8829 | }
|
| 8830 |
|
| 8831 | public override Builder Clone() {
|
| 8832 | return new Builder().MergeFrom(result);
|
| 8833 | }
|
| 8834 |
|
| 8835 | public override RepeatedGroup_extension_lite DefaultInstanceForType {
|
| 8836 | get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance; }
|
| 8837 | }
|
| 8838 |
|
| 8839 | public override RepeatedGroup_extension_lite BuildPartial() {
|
| 8840 | if (result == null) {
|
| 8841 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 8842 | }
|
| 8843 | RepeatedGroup_extension_lite returnMe = result;
|
| 8844 | result = null;
|
| 8845 | return returnMe;
|
| 8846 | }
|
| 8847 |
|
| 8848 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 8849 | if (other is RepeatedGroup_extension_lite) {
|
| 8850 | return MergeFrom((RepeatedGroup_extension_lite) other);
|
| 8851 | } else {
|
| 8852 | base.MergeFrom(other);
|
| 8853 | return this;
|
| 8854 | }
|
| 8855 | }
|
| 8856 |
|
| 8857 | public override Builder MergeFrom(RepeatedGroup_extension_lite other) {
|
| 8858 | if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension_lite.DefaultInstance) return this;
|
| 8859 | if (other.HasA) {
|
| 8860 | A = other.A;
|
| 8861 | }
|
| 8862 | return this;
|
| 8863 | }
|
| 8864 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8865 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8866 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 8867 | }
|
| 8868 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 8869 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8870 | uint tag;
|
| 8871 | string field_name;
|
| 8872 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8873 | if(tag == 0 && field_name != null) {
|
| 8874 | int field_ordinal = global::System.Array.BinarySearch(_repeatedGroupExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 8875 | if(field_ordinal >= 0)
|
| 8876 | tag = _repeatedGroupExtensionLiteFieldTags[field_ordinal];
|
| 8877 | else {
|
| 8878 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 8879 | continue;
|
| 8880 | }
|
| 8881 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8882 | switch (tag) {
|
| 8883 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 8884 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8885 | }
|
| 8886 | default: {
|
| 8887 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 8888 | return this;
|
| 8889 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 8890 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8891 | break;
|
| 8892 | }
|
| 8893 | case 376: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8894 | result.hasA = input.ReadInt32(ref result.a_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8895 | break;
|
| 8896 | }
|
| 8897 | }
|
| 8898 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 8899 |
|
| 8900 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8901 | }
|
| 8902 |
|
| 8903 |
|
| 8904 | public bool HasA {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 8905 | get { return result.hasA; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8906 | }
|
| 8907 | public int A {
|
| 8908 | get { return result.A; }
|
| 8909 | set { SetA(value); }
|
| 8910 | }
|
| 8911 | public Builder SetA(int value) {
|
| 8912 | result.hasA = true;
|
| 8913 | result.a_ = value;
|
| 8914 | return this;
|
| 8915 | }
|
| 8916 | public Builder ClearA() {
|
| 8917 | result.hasA = false;
|
| 8918 | result.a_ = 0;
|
| 8919 | return this;
|
| 8920 | }
|
| 8921 | }
|
| 8922 | static RepeatedGroup_extension_lite() {
|
| 8923 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 8924 | }
|
| 8925 | }
|
| 8926 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 8927 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 8928 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 8929 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8930 | public sealed partial class TestPackedExtensionsLite : pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder> {
|
| 8931 | private static readonly TestPackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8932 | private static readonly string[] _testPackedExtensionsLiteFieldNames = new string[] { };
|
| 8933 | private static readonly uint[] _testPackedExtensionsLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8934 | public static TestPackedExtensionsLite DefaultInstance {
|
| 8935 | get { return defaultInstance; }
|
| 8936 | }
|
| 8937 |
|
| 8938 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 8939 | get { return defaultInstance; }
|
| 8940 | }
|
| 8941 |
|
| 8942 | protected override TestPackedExtensionsLite ThisMessage {
|
| 8943 | get { return this; }
|
| 8944 | }
|
| 8945 |
|
| 8946 | public override bool IsInitialized {
|
| 8947 | get {
|
| 8948 | if (!ExtensionsAreInitialized) return false;
|
| 8949 | return true;
|
| 8950 | }
|
| 8951 | }
|
| 8952 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 8953 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8954 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 8955 | string[] field_names = _testPackedExtensionsLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 8956 | pb::ExtendableMessageLite<TestPackedExtensionsLite, TestPackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 8957 | extensionWriter.WriteUntil(536870912, output);
|
| 8958 | }
|
| 8959 |
|
| 8960 | private int memoizedSerializedSize = -1;
|
| 8961 | public override int SerializedSize {
|
| 8962 | get {
|
| 8963 | int size = memoizedSerializedSize;
|
| 8964 | if (size != -1) return size;
|
| 8965 |
|
| 8966 | size = 0;
|
| 8967 | size += ExtensionsSerializedSize;
|
| 8968 | memoizedSerializedSize = size;
|
| 8969 | return size;
|
| 8970 | }
|
| 8971 | }
|
| 8972 |
|
| 8973 | #region Lite runtime methods
|
| 8974 | public override int GetHashCode() {
|
| 8975 | int hash = GetType().GetHashCode();
|
| 8976 | hash ^= base.GetHashCode();
|
| 8977 | return hash;
|
| 8978 | }
|
| 8979 |
|
| 8980 | public override bool Equals(object obj) {
|
| 8981 | TestPackedExtensionsLite other = obj as TestPackedExtensionsLite;
|
| 8982 | if (other == null) return false;
|
| 8983 | if (!base.Equals(other)) return false;
|
| 8984 | return true;
|
| 8985 | }
|
| 8986 |
|
| 8987 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 8988 | base.PrintTo(writer);
|
| 8989 | }
|
| 8990 | #endregion
|
| 8991 |
|
| 8992 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 8993 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 8994 | }
|
| 8995 | public static TestPackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 8996 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 8997 | }
|
| 8998 | public static TestPackedExtensionsLite ParseFrom(byte[] data) {
|
| 8999 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9000 | }
|
| 9001 | public static TestPackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9002 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9003 | }
|
| 9004 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 9005 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9006 | }
|
| 9007 | public static TestPackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9008 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9009 | }
|
| 9010 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9011 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9012 | }
|
| 9013 | public static TestPackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9014 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9015 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9016 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9017 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9018 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9019 | public static TestPackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9020 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9021 | }
|
| 9022 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9023 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9024 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9025 | public static Builder CreateBuilder(TestPackedExtensionsLite prototype) {
|
| 9026 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9027 | }
|
| 9028 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9029 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9030 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9031 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9032 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestPackedExtensionsLite, Builder> {
|
| 9033 | protected override Builder ThisBuilder {
|
| 9034 | get { return this; }
|
| 9035 | }
|
| 9036 | public Builder() {}
|
| 9037 |
|
| 9038 | TestPackedExtensionsLite result = new TestPackedExtensionsLite();
|
| 9039 |
|
| 9040 | protected override TestPackedExtensionsLite MessageBeingBuilt {
|
| 9041 | get { return result; }
|
| 9042 | }
|
| 9043 |
|
| 9044 | public override Builder Clear() {
|
| 9045 | result = new TestPackedExtensionsLite();
|
| 9046 | return this;
|
| 9047 | }
|
| 9048 |
|
| 9049 | public override Builder Clone() {
|
| 9050 | return new Builder().MergeFrom(result);
|
| 9051 | }
|
| 9052 |
|
| 9053 | public override TestPackedExtensionsLite DefaultInstanceForType {
|
| 9054 | get { return global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance; }
|
| 9055 | }
|
| 9056 |
|
| 9057 | public override TestPackedExtensionsLite BuildPartial() {
|
| 9058 | if (result == null) {
|
| 9059 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9060 | }
|
| 9061 | TestPackedExtensionsLite returnMe = result;
|
| 9062 | result = null;
|
| 9063 | return returnMe;
|
| 9064 | }
|
| 9065 |
|
| 9066 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9067 | if (other is TestPackedExtensionsLite) {
|
| 9068 | return MergeFrom((TestPackedExtensionsLite) other);
|
| 9069 | } else {
|
| 9070 | base.MergeFrom(other);
|
| 9071 | return this;
|
| 9072 | }
|
| 9073 | }
|
| 9074 |
|
| 9075 | public override Builder MergeFrom(TestPackedExtensionsLite other) {
|
| 9076 | if (other == global::Google.ProtocolBuffers.TestProtos.TestPackedExtensionsLite.DefaultInstance) return this;
|
| 9077 | this.MergeExtensionFields(other);
|
| 9078 | return this;
|
| 9079 | }
|
| 9080 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9081 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9082 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9083 | }
|
| 9084 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9085 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9086 | uint tag;
|
| 9087 | string field_name;
|
| 9088 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9089 | if(tag == 0 && field_name != null) {
|
| 9090 | int field_ordinal = global::System.Array.BinarySearch(_testPackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9091 | if(field_ordinal >= 0)
|
| 9092 | tag = _testPackedExtensionsLiteFieldTags[field_ordinal];
|
| 9093 | else {
|
| 9094 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9095 | continue;
|
| 9096 | }
|
| 9097 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9098 | switch (tag) {
|
| 9099 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9100 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9101 | }
|
| 9102 | default: {
|
| 9103 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9104 | return this;
|
| 9105 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9106 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9107 | break;
|
| 9108 | }
|
| 9109 | }
|
| 9110 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9111 |
|
| 9112 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9113 | }
|
| 9114 |
|
| 9115 | }
|
| 9116 | static TestPackedExtensionsLite() {
|
| 9117 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9118 | }
|
| 9119 | }
|
| 9120 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9121 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9122 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9123 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9124 | public sealed partial class TestUnpackedExtensionsLite : pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder> {
|
| 9125 | private static readonly TestUnpackedExtensionsLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9126 | private static readonly string[] _testUnpackedExtensionsLiteFieldNames = new string[] { };
|
| 9127 | private static readonly uint[] _testUnpackedExtensionsLiteFieldTags = new uint[] { };
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9128 | public static TestUnpackedExtensionsLite DefaultInstance {
|
| 9129 | get { return defaultInstance; }
|
| 9130 | }
|
| 9131 |
|
| 9132 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 9133 | get { return defaultInstance; }
|
| 9134 | }
|
| 9135 |
|
| 9136 | protected override TestUnpackedExtensionsLite ThisMessage {
|
| 9137 | get { return this; }
|
| 9138 | }
|
| 9139 |
|
| 9140 | public override bool IsInitialized {
|
| 9141 | get {
|
| 9142 | if (!ExtensionsAreInitialized) return false;
|
| 9143 | return true;
|
| 9144 | }
|
| 9145 | }
|
| 9146 |
|
| 9147 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 9148 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9149 | string[] field_names = _testUnpackedExtensionsLiteFieldNames;
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9150 | pb::ExtendableMessageLite<TestUnpackedExtensionsLite, TestUnpackedExtensionsLite.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
|
| 9151 | extensionWriter.WriteUntil(536870912, output);
|
| 9152 | }
|
| 9153 |
|
| 9154 | private int memoizedSerializedSize = -1;
|
| 9155 | public override int SerializedSize {
|
| 9156 | get {
|
| 9157 | int size = memoizedSerializedSize;
|
| 9158 | if (size != -1) return size;
|
| 9159 |
|
| 9160 | size = 0;
|
| 9161 | size += ExtensionsSerializedSize;
|
| 9162 | memoizedSerializedSize = size;
|
| 9163 | return size;
|
| 9164 | }
|
| 9165 | }
|
| 9166 |
|
| 9167 | #region Lite runtime methods
|
| 9168 | public override int GetHashCode() {
|
| 9169 | int hash = GetType().GetHashCode();
|
| 9170 | hash ^= base.GetHashCode();
|
| 9171 | return hash;
|
| 9172 | }
|
| 9173 |
|
| 9174 | public override bool Equals(object obj) {
|
| 9175 | TestUnpackedExtensionsLite other = obj as TestUnpackedExtensionsLite;
|
| 9176 | if (other == null) return false;
|
| 9177 | if (!base.Equals(other)) return false;
|
| 9178 | return true;
|
| 9179 | }
|
| 9180 |
|
| 9181 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9182 | base.PrintTo(writer);
|
| 9183 | }
|
| 9184 | #endregion
|
| 9185 |
|
| 9186 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data) {
|
| 9187 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9188 | }
|
| 9189 | public static TestUnpackedExtensionsLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9190 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9191 | }
|
| 9192 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data) {
|
| 9193 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9194 | }
|
| 9195 | public static TestUnpackedExtensionsLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9196 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9197 | }
|
| 9198 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input) {
|
| 9199 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9200 | }
|
| 9201 | public static TestUnpackedExtensionsLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9202 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9203 | }
|
| 9204 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9205 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9206 | }
|
| 9207 | public static TestUnpackedExtensionsLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9208 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9209 | }
|
| 9210 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input) {
|
| 9211 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9212 | }
|
| 9213 | public static TestUnpackedExtensionsLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9214 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9215 | }
|
| 9216 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9217 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9218 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9219 | public static Builder CreateBuilder(TestUnpackedExtensionsLite prototype) {
|
| 9220 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9221 | }
|
| 9222 |
|
| 9223 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9224 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9225 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 9226 | public sealed partial class Builder : pb::ExtendableBuilderLite<TestUnpackedExtensionsLite, Builder> {
|
| 9227 | protected override Builder ThisBuilder {
|
| 9228 | get { return this; }
|
| 9229 | }
|
| 9230 | public Builder() {}
|
| 9231 |
|
| 9232 | TestUnpackedExtensionsLite result = new TestUnpackedExtensionsLite();
|
| 9233 |
|
| 9234 | protected override TestUnpackedExtensionsLite MessageBeingBuilt {
|
| 9235 | get { return result; }
|
| 9236 | }
|
| 9237 |
|
| 9238 | public override Builder Clear() {
|
| 9239 | result = new TestUnpackedExtensionsLite();
|
| 9240 | return this;
|
| 9241 | }
|
| 9242 |
|
| 9243 | public override Builder Clone() {
|
| 9244 | return new Builder().MergeFrom(result);
|
| 9245 | }
|
| 9246 |
|
| 9247 | public override TestUnpackedExtensionsLite DefaultInstanceForType {
|
| 9248 | get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance; }
|
| 9249 | }
|
| 9250 |
|
| 9251 | public override TestUnpackedExtensionsLite BuildPartial() {
|
| 9252 | if (result == null) {
|
| 9253 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9254 | }
|
| 9255 | TestUnpackedExtensionsLite returnMe = result;
|
| 9256 | result = null;
|
| 9257 | return returnMe;
|
| 9258 | }
|
| 9259 |
|
| 9260 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9261 | if (other is TestUnpackedExtensionsLite) {
|
| 9262 | return MergeFrom((TestUnpackedExtensionsLite) other);
|
| 9263 | } else {
|
| 9264 | base.MergeFrom(other);
|
| 9265 | return this;
|
| 9266 | }
|
| 9267 | }
|
| 9268 |
|
| 9269 | public override Builder MergeFrom(TestUnpackedExtensionsLite other) {
|
| 9270 | if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance) return this;
|
| 9271 | this.MergeExtensionFields(other);
|
| 9272 | return this;
|
| 9273 | }
|
| 9274 |
|
| 9275 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 9276 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9277 | }
|
| 9278 |
|
| 9279 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9280 | uint tag;
|
| 9281 | string field_name;
|
| 9282 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9283 | if(tag == 0 && field_name != null) {
|
| 9284 | int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9285 | if(field_ordinal >= 0)
|
| 9286 | tag = _testUnpackedExtensionsLiteFieldTags[field_ordinal];
|
| 9287 | else {
|
| 9288 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9289 | continue;
|
| 9290 | }
|
| 9291 | }
|
csharptest | c2a1f9b | 2011-06-06 11:40:01 -0500 | [diff] [blame] | 9292 | switch (tag) {
|
| 9293 | case 0: {
|
| 9294 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 9295 | }
|
| 9296 | default: {
|
| 9297 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9298 | return this;
|
| 9299 | }
|
| 9300 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9301 | break;
|
| 9302 | }
|
| 9303 | }
|
| 9304 | }
|
| 9305 |
|
| 9306 | return this;
|
| 9307 | }
|
| 9308 |
|
| 9309 | }
|
| 9310 | static TestUnpackedExtensionsLite() {
|
| 9311 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9312 | }
|
| 9313 | }
|
| 9314 |
|
| 9315 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9316 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9317 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9318 | public sealed partial class TestNestedExtensionLite : pb::GeneratedMessageLite<TestNestedExtensionLite, TestNestedExtensionLite.Builder> {
|
| 9319 | private static readonly TestNestedExtensionLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9320 | private static readonly string[] _testNestedExtensionLiteFieldNames = new string[] { };
|
| 9321 | private static readonly uint[] _testNestedExtensionLiteFieldTags = new uint[] { };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9322 | public static TestNestedExtensionLite DefaultInstance {
|
| 9323 | get { return defaultInstance; }
|
| 9324 | }
|
| 9325 |
|
| 9326 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9327 | get { return defaultInstance; }
|
| 9328 | }
|
| 9329 |
|
| 9330 | protected override TestNestedExtensionLite ThisMessage {
|
| 9331 | get { return this; }
|
| 9332 | }
|
| 9333 |
|
| 9334 | public const int NestedExtensionFieldNumber = 12345;
|
| 9335 | public static pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestAllExtensionsLite, int> NestedExtension;
|
| 9336 | public override bool IsInitialized {
|
| 9337 | get {
|
| 9338 | return true;
|
| 9339 | }
|
| 9340 | }
|
| 9341 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9342 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9343 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9344 | string[] field_names = _testNestedExtensionLiteFieldNames;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9345 | }
|
| 9346 |
|
| 9347 | private int memoizedSerializedSize = -1;
|
| 9348 | public override int SerializedSize {
|
| 9349 | get {
|
| 9350 | int size = memoizedSerializedSize;
|
| 9351 | if (size != -1) return size;
|
| 9352 |
|
| 9353 | size = 0;
|
| 9354 | memoizedSerializedSize = size;
|
| 9355 | return size;
|
| 9356 | }
|
| 9357 | }
|
| 9358 |
|
| 9359 | #region Lite runtime methods
|
| 9360 | public override int GetHashCode() {
|
| 9361 | int hash = GetType().GetHashCode();
|
| 9362 | return hash;
|
| 9363 | }
|
| 9364 |
|
| 9365 | public override bool Equals(object obj) {
|
| 9366 | TestNestedExtensionLite other = obj as TestNestedExtensionLite;
|
| 9367 | if (other == null) return false;
|
| 9368 | return true;
|
| 9369 | }
|
| 9370 |
|
| 9371 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9372 | }
|
| 9373 | #endregion
|
| 9374 |
|
| 9375 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data) {
|
| 9376 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9377 | }
|
| 9378 | public static TestNestedExtensionLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9379 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9380 | }
|
| 9381 | public static TestNestedExtensionLite ParseFrom(byte[] data) {
|
| 9382 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9383 | }
|
| 9384 | public static TestNestedExtensionLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9385 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9386 | }
|
| 9387 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input) {
|
| 9388 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9389 | }
|
| 9390 | public static TestNestedExtensionLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9391 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9392 | }
|
| 9393 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9394 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9395 | }
|
| 9396 | public static TestNestedExtensionLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9397 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9398 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9399 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9400 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9401 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9402 | public static TestNestedExtensionLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9403 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9404 | }
|
| 9405 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9406 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9407 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9408 | public static Builder CreateBuilder(TestNestedExtensionLite prototype) {
|
| 9409 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9410 | }
|
| 9411 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9412 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9413 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9414 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9415 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestNestedExtensionLite, Builder> {
|
| 9416 | protected override Builder ThisBuilder {
|
| 9417 | get { return this; }
|
| 9418 | }
|
| 9419 | public Builder() {}
|
| 9420 |
|
| 9421 | TestNestedExtensionLite result = new TestNestedExtensionLite();
|
| 9422 |
|
| 9423 | protected override TestNestedExtensionLite MessageBeingBuilt {
|
| 9424 | get { return result; }
|
| 9425 | }
|
| 9426 |
|
| 9427 | public override Builder Clear() {
|
| 9428 | result = new TestNestedExtensionLite();
|
| 9429 | return this;
|
| 9430 | }
|
| 9431 |
|
| 9432 | public override Builder Clone() {
|
| 9433 | return new Builder().MergeFrom(result);
|
| 9434 | }
|
| 9435 |
|
| 9436 | public override TestNestedExtensionLite DefaultInstanceForType {
|
| 9437 | get { return global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance; }
|
| 9438 | }
|
| 9439 |
|
| 9440 | public override TestNestedExtensionLite BuildPartial() {
|
| 9441 | if (result == null) {
|
| 9442 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9443 | }
|
| 9444 | TestNestedExtensionLite returnMe = result;
|
| 9445 | result = null;
|
| 9446 | return returnMe;
|
| 9447 | }
|
| 9448 |
|
| 9449 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9450 | if (other is TestNestedExtensionLite) {
|
| 9451 | return MergeFrom((TestNestedExtensionLite) other);
|
| 9452 | } else {
|
| 9453 | base.MergeFrom(other);
|
| 9454 | return this;
|
| 9455 | }
|
| 9456 | }
|
| 9457 |
|
| 9458 | public override Builder MergeFrom(TestNestedExtensionLite other) {
|
| 9459 | if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedExtensionLite.DefaultInstance) return this;
|
| 9460 | return this;
|
| 9461 | }
|
| 9462 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9463 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9464 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9465 | }
|
| 9466 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9467 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9468 | uint tag;
|
| 9469 | string field_name;
|
| 9470 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9471 | if(tag == 0 && field_name != null) {
|
| 9472 | int field_ordinal = global::System.Array.BinarySearch(_testNestedExtensionLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9473 | if(field_ordinal >= 0)
|
| 9474 | tag = _testNestedExtensionLiteFieldTags[field_ordinal];
|
| 9475 | else {
|
| 9476 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9477 | continue;
|
| 9478 | }
|
| 9479 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9480 | switch (tag) {
|
| 9481 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9482 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9483 | }
|
| 9484 | default: {
|
| 9485 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9486 | return this;
|
| 9487 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9488 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9489 | break;
|
| 9490 | }
|
| 9491 | }
|
| 9492 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9493 |
|
| 9494 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9495 | }
|
| 9496 |
|
| 9497 | }
|
| 9498 | static TestNestedExtensionLite() {
|
| 9499 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9500 | }
|
| 9501 | }
|
| 9502 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9503 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9504 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9505 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9506 | public sealed partial class TestDeprecatedLite : pb::GeneratedMessageLite<TestDeprecatedLite, TestDeprecatedLite.Builder> {
|
| 9507 | private static readonly TestDeprecatedLite defaultInstance = new Builder().BuildPartial();
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9508 | private static readonly string[] _testDeprecatedLiteFieldNames = new string[] { "deprecated_field" };
|
| 9509 | private static readonly uint[] _testDeprecatedLiteFieldTags = new uint[] { 8 };
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9510 | public static TestDeprecatedLite DefaultInstance {
|
| 9511 | get { return defaultInstance; }
|
| 9512 | }
|
| 9513 |
|
| 9514 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9515 | get { return defaultInstance; }
|
| 9516 | }
|
| 9517 |
|
| 9518 | protected override TestDeprecatedLite ThisMessage {
|
| 9519 | get { return this; }
|
| 9520 | }
|
| 9521 |
|
| 9522 | public const int DeprecatedFieldFieldNumber = 1;
|
| 9523 | private bool hasDeprecatedField;
|
csharptest | ced18e1 | 2011-06-09 19:47:56 -0500 | [diff] [blame] | 9524 | private int deprecatedField_;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9525 | public bool HasDeprecatedField {
|
| 9526 | get { return hasDeprecatedField; }
|
| 9527 | }
|
| 9528 | public int DeprecatedField {
|
| 9529 | get { return deprecatedField_; }
|
| 9530 | }
|
| 9531 |
|
| 9532 | public override bool IsInitialized {
|
| 9533 | get {
|
| 9534 | return true;
|
| 9535 | }
|
| 9536 | }
|
| 9537 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 9538 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9539 | int size = SerializedSize;
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9540 | string[] field_names = _testDeprecatedLiteFieldNames;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9541 | if (hasDeprecatedField) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9542 | output.WriteInt32(1, field_names[0], DeprecatedField);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9543 | }
|
| 9544 | }
|
| 9545 |
|
| 9546 | private int memoizedSerializedSize = -1;
|
| 9547 | public override int SerializedSize {
|
| 9548 | get {
|
| 9549 | int size = memoizedSerializedSize;
|
| 9550 | if (size != -1) return size;
|
| 9551 |
|
| 9552 | size = 0;
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9553 | if (hasDeprecatedField) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9554 | size += pb::CodedOutputStream.ComputeInt32Size(1, DeprecatedField);
|
| 9555 | }
|
| 9556 | memoizedSerializedSize = size;
|
| 9557 | return size;
|
| 9558 | }
|
| 9559 | }
|
| 9560 |
|
| 9561 | #region Lite runtime methods
|
| 9562 | public override int GetHashCode() {
|
| 9563 | int hash = GetType().GetHashCode();
|
| 9564 | if (hasDeprecatedField) hash ^= deprecatedField_.GetHashCode();
|
| 9565 | return hash;
|
| 9566 | }
|
| 9567 |
|
| 9568 | public override bool Equals(object obj) {
|
| 9569 | TestDeprecatedLite other = obj as TestDeprecatedLite;
|
| 9570 | if (other == null) return false;
|
| 9571 | if (hasDeprecatedField != other.hasDeprecatedField || (hasDeprecatedField && !deprecatedField_.Equals(other.deprecatedField_))) return false;
|
| 9572 | return true;
|
| 9573 | }
|
| 9574 |
|
| 9575 | public override void PrintTo(global::System.IO.TextWriter writer) {
|
| 9576 | PrintField("deprecated_field", hasDeprecatedField, deprecatedField_, writer);
|
| 9577 | }
|
| 9578 | #endregion
|
| 9579 |
|
| 9580 | public static TestDeprecatedLite ParseFrom(pb::ByteString data) {
|
| 9581 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9582 | }
|
| 9583 | public static TestDeprecatedLite ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 9584 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9585 | }
|
| 9586 | public static TestDeprecatedLite ParseFrom(byte[] data) {
|
| 9587 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 9588 | }
|
| 9589 | public static TestDeprecatedLite ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 9590 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 9591 | }
|
| 9592 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input) {
|
| 9593 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9594 | }
|
| 9595 | public static TestDeprecatedLite ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9596 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9597 | }
|
| 9598 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 9599 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 9600 | }
|
| 9601 | public static TestDeprecatedLite ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 9602 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 9603 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9604 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9605 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 9606 | }
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9607 | public static TestDeprecatedLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9608 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 9609 | }
|
| 9610 | public static Builder CreateBuilder() { return new Builder(); }
|
| 9611 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 9612 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 9613 | public static Builder CreateBuilder(TestDeprecatedLite prototype) {
|
| 9614 | return (Builder) new Builder().MergeFrom(prototype);
|
| 9615 | }
|
| 9616 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9617 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 9618 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 9619 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9620 | public sealed partial class Builder : pb::GeneratedBuilderLite<TestDeprecatedLite, Builder> {
|
| 9621 | protected override Builder ThisBuilder {
|
| 9622 | get { return this; }
|
| 9623 | }
|
| 9624 | public Builder() {}
|
| 9625 |
|
| 9626 | TestDeprecatedLite result = new TestDeprecatedLite();
|
| 9627 |
|
| 9628 | protected override TestDeprecatedLite MessageBeingBuilt {
|
| 9629 | get { return result; }
|
| 9630 | }
|
| 9631 |
|
| 9632 | public override Builder Clear() {
|
| 9633 | result = new TestDeprecatedLite();
|
| 9634 | return this;
|
| 9635 | }
|
| 9636 |
|
| 9637 | public override Builder Clone() {
|
| 9638 | return new Builder().MergeFrom(result);
|
| 9639 | }
|
| 9640 |
|
| 9641 | public override TestDeprecatedLite DefaultInstanceForType {
|
| 9642 | get { return global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance; }
|
| 9643 | }
|
| 9644 |
|
| 9645 | public override TestDeprecatedLite BuildPartial() {
|
| 9646 | if (result == null) {
|
| 9647 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 9648 | }
|
| 9649 | TestDeprecatedLite returnMe = result;
|
| 9650 | result = null;
|
| 9651 | return returnMe;
|
| 9652 | }
|
| 9653 |
|
| 9654 | public override Builder MergeFrom(pb::IMessageLite other) {
|
| 9655 | if (other is TestDeprecatedLite) {
|
| 9656 | return MergeFrom((TestDeprecatedLite) other);
|
| 9657 | } else {
|
| 9658 | base.MergeFrom(other);
|
| 9659 | return this;
|
| 9660 | }
|
| 9661 | }
|
| 9662 |
|
| 9663 | public override Builder MergeFrom(TestDeprecatedLite other) {
|
| 9664 | if (other == global::Google.ProtocolBuffers.TestProtos.TestDeprecatedLite.DefaultInstance) return this;
|
| 9665 | if (other.HasDeprecatedField) {
|
| 9666 | DeprecatedField = other.DeprecatedField;
|
| 9667 | }
|
| 9668 | return this;
|
| 9669 | }
|
| 9670 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9671 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9672 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 9673 | }
|
| 9674 |
|
csharptest | 17699c2 | 2011-06-03 21:57:15 -0500 | [diff] [blame] | 9675 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9676 | uint tag;
|
| 9677 | string field_name;
|
| 9678 | while (input.ReadTag(out tag, out field_name)) {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9679 | if(tag == 0 && field_name != null) {
|
| 9680 | int field_ordinal = global::System.Array.BinarySearch(_testDeprecatedLiteFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 9681 | if(field_ordinal >= 0)
|
| 9682 | tag = _testDeprecatedLiteFieldTags[field_ordinal];
|
| 9683 | else {
|
| 9684 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
| 9685 | continue;
|
| 9686 | }
|
| 9687 | }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9688 | switch (tag) {
|
| 9689 | case 0: {
|
csharptest | 9928441 | 2011-06-03 14:51:06 -0500 | [diff] [blame] | 9690 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9691 | }
|
| 9692 | default: {
|
| 9693 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 9694 | return this;
|
| 9695 | }
|
csharptest | d2af9e9 | 2011-06-03 21:35:02 -0500 | [diff] [blame] | 9696 | ParseUnknownField(input, extensionRegistry, tag, field_name);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9697 | break;
|
| 9698 | }
|
| 9699 | case 8: {
|
csharptest | 920b09a | 2011-06-08 20:13:29 -0500 | [diff] [blame] | 9700 | result.hasDeprecatedField = input.ReadInt32(ref result.deprecatedField_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9701 | break;
|
| 9702 | }
|
| 9703 | }
|
| 9704 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame] | 9705 |
|
| 9706 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9707 | }
|
| 9708 |
|
| 9709 |
|
| 9710 | public bool HasDeprecatedField {
|
csharptest | c671a4b | 2011-06-08 11:51:24 -0500 | [diff] [blame] | 9711 | get { return result.hasDeprecatedField; }
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 9712 | }
|
| 9713 | public int DeprecatedField {
|
| 9714 | get { return result.DeprecatedField; }
|
| 9715 | set { SetDeprecatedField(value); }
|
| 9716 | }
|
| 9717 | public Builder SetDeprecatedField(int value) {
|
| 9718 | result.hasDeprecatedField = true;
|
| 9719 | result.deprecatedField_ = value;
|
| 9720 | return this;
|
| 9721 | }
|
| 9722 | public Builder ClearDeprecatedField() {
|
| 9723 | result.hasDeprecatedField = false;
|
| 9724 | result.deprecatedField_ = 0;
|
| 9725 | return this;
|
| 9726 | }
|
| 9727 | }
|
| 9728 | static TestDeprecatedLite() {
|
| 9729 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestLiteProtoFile.Descriptor, null);
|
| 9730 | }
|
| 9731 | }
|
| 9732 |
|
| 9733 | #endregion
|
| 9734 |
|
| 9735 | }
|
csharptest | 2d88733 | 2011-08-12 20:13:44 -0500 | [diff] [blame] | 9736 |
|
| 9737 | #endregion Designer generated code
|